virt-manager/virtinst-set-qemu-emulator.patch
Charles Arnold d8b1788c9f - Update to virt-manager 2.2.1 (fate#326786)
virt-manager-2.2.1.tar.bz2
  * CVE-2019-10183: Replace –unattended user-password and admin-password with user-password-file and admin-password-file (Fabiano Fidêncio)
  * Consistent –memballoon default across non-x86 (Andrea Bolognani)
  * virt-install: add –numatune memnode.* (Athina Plaskasoviti)
  * Drop hard dep on gtksourceview4, gtksourceview3 is fine as well
- Drop patches no longer needed
  033e9702-xmleditor-Handle-gtksourceview3-as-well-as-gtksourceview4.patch
  51d28f04-unattended-Dont-log-user-admin-passwords.patch
  5312a961-virt-install-Revive-wait-0-as-alias-for-noautoconsole.patch
  58c68764-unattended-Read-the-passwords-from-a-file.patch

OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=477
2019-07-05 16:18:33 +00:00

19 lines
846 B
Diff

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.
Index: virt-manager-2.2.1/virtinst/guest.py
===================================================================
--- virt-manager-2.2.1.orig/virtinst/guest.py
+++ virt-manager-2.2.1/virtinst/guest.py
@@ -738,6 +738,10 @@ class Guest(XMLBuilder):
self._add_default_memballoon()
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: