Definition of a virtual server on different hosts using the same configuration-XML
Deploy virtual servers by copying their domain configuration-XML files to different hosts and defining them afterwards.
When you define a virtual server using the alias machine
type, libvirt replaces the alias machine type by the machine type which reflects the current
hypervisor release of the host running the virtual server. The libvirt-internal configuration reflects the installed hypervisor
release.
Example:
- Domain configuration-XML using the alias machine type:
<type arch="s390x" machine="s390-ccw-virtio">hvm</type>
- Libvirt-internal configuration for QEMU release 6.2:
<type arch="s390x" machine="s390-ccw-virtio-6.2">hvm</type>
Depending on your distribution, there may be additional machine types. The following command
displays the available machine types:
# qemu-kvm --machine help
Figure 1 shows that creating virtual servers from the same
domain configuration-XML file on different hosts results in different machine types.