2015-05-04 22:15:01 +02:00
|
|
|
Use the correct qemu emulator based on the architecture.
|
2015-07-10 16:37:12 +02:00
|
|
|
We want to get away from using the old qemu-dm emulator
|
|
|
|
for Xen HVM guests so default to qemu-system-i386.
|
2016-01-12 21:36:29 +01:00
|
|
|
Index: virt-manager-1.3.2/virtinst/guest.py
|
2014-03-28 15:17:05 +01:00
|
|
|
===================================================================
|
2016-01-12 21:36:29 +01:00
|
|
|
--- virt-manager-1.3.2.orig/virtinst/guest.py
|
|
|
|
+++ virt-manager-1.3.2/virtinst/guest.py
|
|
|
|
@@ -849,14 +849,11 @@ class Guest(XMLBuilder):
|
2014-03-28 15:17:05 +01:00
|
|
|
self.emulator = None
|
|
|
|
return
|
|
|
|
|
|
|
|
- if self.emulator:
|
2016-01-12 21:36:29 +01:00
|
|
|
- return
|
|
|
|
-
|
|
|
|
if self.os.is_hvm() and self.type == "xen":
|
2014-03-28 15:17:05 +01:00
|
|
|
- if self.conn.caps.host.cpu.arch == "x86_64":
|
|
|
|
- self.emulator = "/usr/lib64/xen/bin/qemu-dm"
|
2014-04-29 00:47:42 +02:00
|
|
|
- else:
|
|
|
|
- self.emulator = "/usr/lib/xen/bin/qemu-dm"
|
2016-01-12 21:36:29 +01:00
|
|
|
+ # Force not using Xen's old qemu-dm except for remote
|
|
|
|
+ # connections where we don't know the Xen version
|
|
|
|
+ if not self.conn.is_remote() or not self.emulator:
|
|
|
|
+ self.emulator = "/usr/lib/xen/bin/qemu-system-i386"
|
2014-03-28 15:17:05 +01:00
|
|
|
|
2014-04-29 00:47:42 +02:00
|
|
|
def _set_cpu_defaults(self):
|
|
|
|
self.cpu.set_topology_defaults(self.vcpus)
|