virt-manager/virtman-allow-pv-iso-install.patch

25 lines
1.0 KiB
Diff

Index: virt-manager-0.9.5/src/virtManager/create.py
===================================================================
--- virt-manager-0.9.5.orig/src/virtManager/create.py
+++ virt-manager-0.9.5/src/virtManager/create.py
@@ -686,11 +686,18 @@ class vmmCreate(vmmGObjectUI):
default = len(model)
if gtype == "xen":
+ pv_cdrom = False
+ if self.guest and self.guest._lookup_osdict_key('pv_cdrom_install'):
+ pv_cdrom = True
+
if (instmethod == INSTALL_PAGE_PXE or
- instmethod == INSTALL_PAGE_ISO):
+ instmethod == INSTALL_PAGE_ISO and
+ pv_cdrom == False):
sensitive = False
tooltip = _("Only URL or import installs are supported "
"for paravirt.")
+ else:
+ default = 0
model.append([label, gtype, domtype, sensitive])