2019-06-04 00:07:43 +02:00
|
|
|
Use the correct qemu emulator based on the architecture.
|
|
|
|
We want to get away from using the old qemu-dm emulator
|
|
|
|
for Xen HVM guests so default to qemu-system-i386.
|
2022-11-04 18:04:31 +01:00
|
|
|
Index: virt-manager-4.1.0/virtinst/guest.py
|
2019-06-04 00:07:43 +02:00
|
|
|
===================================================================
|
2022-11-04 18:04:31 +01:00
|
|
|
--- virt-manager-4.1.0.orig/virtinst/guest.py
|
|
|
|
+++ virt-manager-4.1.0/virtinst/guest.py
|
|
|
|
@@ -797,6 +797,10 @@ class Guest(XMLBuilder):
|
2022-03-03 05:17:21 +01:00
|
|
|
self._add_default_tpm()
|
2019-06-04 00:07:43 +02:00
|
|
|
|
|
|
|
self.clock.set_defaults(self)
|
|
|
|
+ if self.os.is_hvm() and self.type == "xen":
|
|
|
|
+ # Force not using Xen's old qemu-dm
|
|
|
|
+ if not self.emulator or "qemu-dm" in self.emulator:
|
|
|
|
+ self.emulator = "/usr/lib/xen/bin/qemu-system-i386"
|
|
|
|
self.cpu.set_defaults(self)
|
|
|
|
self.features.set_defaults(self)
|
|
|
|
for seclabel in self.seclabels:
|