Upgrading a guest by using a libvirt domain XML file
You can upgrade a guest configuration by specifying another libvirt domain XML file with the same guest name.
another-guest
with the following key parameters: - Number of CPUs:
4
- Number of virtual disks:
2
- Location of QCOW2 file for
disk 0
:/var/lib/libvirt/images/another-guest/0-disk.qcow2
- Location of ISO file for
disk 1
:/var/lib/libvirt/images/another-guest/1-config.iso
- Type of disk defined for
disk 0
:disk
- Type of disk defined for
disk 1
:cdrom
- Memory:
4096 MB
- vhost interface:
dp0vhost0
We can reconfigure the guest by using another XML file with different values for established parameters and a set of additional parameters, for example, a remote display. In reconfiguring the guest, the old parameters are deleted and the guest restarted.
Step | Command |
---|---|
Switch to configuration mode. |
|
Display the details of the guest that is going to be modified. |
|
Display the bridge details for the guest. |
|
Display the vhost interfaces for the guest. |
|
Exit the configuration mode. |
|
Apply the new libvirt domain XML file for the guest in operational mode. |
|
Switch to the configuration mode. |
|
Display the new parameters of the guest. |
|
Display the vhost interfaces for the guest. |
|