mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-19 17:02:15 +00:00
1e830adaa9
The UUID conversion of mkvm, clonevm, rinv and rscan used the machine type that the domain XML names. A domain that names none, or names an alias such as pc, gets the default machine type of the hypervisor: pc-i440fx-2.1 on QEMU 2.1 and pc-i440fx-rhel7.1.0 on the qemu-kvm of RHEL 7.1. Its guest then reported a swapped UUID that the plugin did not expect. The plugin now asks libvirt for the machine type through the domain capabilities of the hypervisor, as it already does for the video model, and converts the UUID for that machine type. The domain XML keeps the machine type it names. When libvirt cannot answer, the plugin uses the machine type of the XML, as before. (cherry picked from commit f3b47fcca98ca75c123615433df38d3642d2c5d4)