4f22f7f4d5
5332ee4d-enable-media-detection-for-ISO-images.patch 53341e7e-hide-hardware-removal-for-non-devices.patch 53342f31-set-right-ip-address-for-ipv6.patch - bnc#870098 - virt-manager+x show wrong number of assigned cpu's virtman-init-vm-processor-topology.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=157
18 lines
777 B
Diff
18 lines
777 B
Diff
Index: virt-manager-1.0.1/virtManager/create.py
|
|
===================================================================
|
|
--- virt-manager-1.0.1.orig/virtManager/create.py
|
|
+++ virt-manager-1.0.1/virtManager/create.py
|
|
@@ -862,7 +862,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
|