virt-manager/virtman-default-to-xen-pv.patch
Charles Arnold b78bd34b50 - bnc#909225 - pygrub Unable to find partition containing kernel
Update virtinst-pvgrub2-bootloader.patch

- Reorder virt-manager patches according to type
- Drop virtman-cdrom.patch

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

18 lines
777 B
Diff

Index: virt-manager-1.1.0/virtManager/create.py
===================================================================
--- virt-manager-1.1.0.orig/virtManager/create.py
+++ virt-manager-1.1.0/virtManager/create.py
@@ -884,7 +884,12 @@ class vmmCreate(vmmGObjectUI):
if gtype is None:
# If none specified, prefer HVM so install options aren't limited
# with a default PV choice.
+ # If xen connection, favor PV installation
+ conn_is_xen = self.conn.is_xen()
for g in self.conn.caps.guests:
+ if conn_is_xen and g.os_type == "xen":
+ gtype = "xen"
+ break
if g.os_type == "hvm":
gtype = "hvm"
break