2013-07-03 23:44:06 +02:00
|
|
|
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
|
2013-07-23 01:35:08 +02:00
|
|
|
@@ -686,11 +686,18 @@ class vmmCreate(vmmGObjectUI):
|
2013-07-03 23:44:06 +02:00
|
|
|
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.")
|
2013-07-23 01:35:08 +02:00
|
|
|
+ else:
|
|
|
|
+ default = 0
|
2013-07-03 23:44:06 +02:00
|
|
|
|
2013-07-23 01:35:08 +02:00
|
|
|
model.append([label, gtype, domtype, sensitive])
|
2013-07-03 23:44:06 +02:00
|
|
|
|