Differences between revisions 18 and 19
Revision 18 as of 2017-12-13 13:41:38
Size: 1190
Comment:
Revision 19 as of 2017-12-21 11:21:52
Size: 1910
Comment:
Deletions are marked like this. Additions are marked like this.
Line 8: Line 8:
In a physical computer it is not a good idea to replace hardware while the computer is running. The same can be said for the virtual domain. Start by shutting down the guest, then edit the domain. In a physical computer it is not a good idea to replace hardware while the computer is running. The same can be said for the virtual domain. Start by shutting down the guest, then edit the domain. That being said there are many pieces of virtual hardware that can be added while the guest is running.
Line 34: Line 34:
== Disk ==

add a 16GiB harddisk for each of the servers
{{{
lvcreate --size 16G --name kvm_gluster01_vdb vg2
lvcreate --size 16G --name kvm_gluster02_vdb vg2
lvcreate --size 16G --name kvm_gluster03_vdb vg2
lvcreate --size 16G --name kvm_gluster04_vdb vg2
}}}

hotadd those disks
{{{
virsh attach-disk gluster01 --source /dev/vg2/kvm_gluster01_vdb --target vdb
virsh attach-disk gluster02 --source /dev/vg2/kvm_gluster02_vdb --target vdb
virsh attach-disk gluster03 --source /dev/vg2/kvm_gluster03_vdb --target vdb
virsh attach-disk gluster04 --source /dev/vg2/kvm_gluster04_vdb --target vdb
}}}

Domain Editing

Your domain is virtual hardware. This hardware is described in an XML file. The XML file is stored in /etc/libvirt/qemu/. There is one file for each domain. It is possible to use virsh to dump the XML.

virsh dumpxml clone

In a physical computer it is not a good idea to replace hardware while the computer is running. The same can be said for the virtual domain. Start by shutting down the guest, then edit the domain. That being said there are many pieces of virtual hardware that can be added while the guest is running.

virsh edit clone

Console

During installation it is usefull to have access to the console of the domain. After the installation this is no longer needed. The following section can be removed from the configuration to disable access to the domain console.

<graphics type='spice' autoport='yes' listen='192.168.1.33'>
  <listen type='address' address='192.168.1.33'/>
  <image compression='off'/>
</graphics>

Memory

Increase or decrease the memory by editing this line.

<memory unit='KiB'>1048576</memory>
<currentMemory unit='KiB'>1048576</currentMemory>

Disk

add a 16GiB harddisk for each of the servers

lvcreate --size 16G --name kvm_gluster01_vdb vg2
lvcreate --size 16G --name kvm_gluster02_vdb vg2
lvcreate --size 16G --name kvm_gluster03_vdb vg2
lvcreate --size 16G --name kvm_gluster04_vdb vg2

hotadd those disks

virsh attach-disk gluster01 --source /dev/vg2/kvm_gluster01_vdb --target vdb
virsh attach-disk gluster02 --source /dev/vg2/kvm_gluster02_vdb --target vdb
virsh attach-disk gluster03 --source /dev/vg2/kvm_gluster03_vdb --target vdb
virsh attach-disk gluster04 --source /dev/vg2/kvm_gluster04_vdb --target vdb

Network Interface

Check your MAC address

<mac address='52:54:00:9e:33:2f'/>

None: Domain Editing (last edited 2021-02-19 19:14:12 by Kristian Kallenberg)