Upgrading a guest and keeping the old files
You can use the keep-old-images option with the upgrade virtualization xml command to prevent the deletion of old images.
another-guest
with the following key parameters for the XML file: - Number of CPUs:
2
- Number of virtual disks:
2
- Type of disk defined for
disk 0
:disk
- Type of disk defined for
disk 1
:cdrom
- Memory:
2048 MB
- vhost interface:
dp0vhost0
anddp0vhost1
We can upgrade the images for both disk 0
and disk 1
with a single command. The old images are not overwritten.
Step | Command |
---|---|
Switch to configuration mode. |
|
Display the details of the guest parameters. |
|
Display the vhost interfaces of the guest called another-guest . |
|
Exit the configuration mode. |
|
Apply the new XML file, new guest image, and new ISO file for the guest. |
|
Switch to the configuration mode. |
|
Display the details of the upgraded guest. |
|
Display the vhost interfaces of the upgraded guest. |
|