2014-03-24 16:05:15 +01:00
|
|
|
Index: virt-manager-1.0.1/virtinst/guest.py
|
|
|
|
===================================================================
|
|
|
|
--- virt-manager-1.0.1.orig/virtinst/guest.py
|
|
|
|
+++ virt-manager-1.0.1/virtinst/guest.py
|
2014-03-27 23:27:37 +01:00
|
|
|
@@ -331,7 +331,16 @@ class Guest(XMLBuilder):
|
2014-03-24 16:05:15 +01:00
|
|
|
this.)
|
|
|
|
@type disk_boot: C{bool}
|
|
|
|
"""
|
|
|
|
- osblob_install = install and not disk_boot
|
|
|
|
+ boot_pvgrub2 = False
|
2014-03-27 23:27:37 +01:00
|
|
|
+ if install == False and self.os.is_xenpv():
|
|
|
|
+ os_ver = self._get_os_variant()
|
|
|
|
+ if os_ver == "sles12" or os_ver == "sled12":
|
|
|
|
+ boot_pvgrub2 = True
|
|
|
|
+ self.installer._install_kernel = "/usr/lib/grub2/x86_64-xen/grub.xen"
|
|
|
|
+ self.installer._install_initrd = None
|
|
|
|
+ self.installer.extraargs = None
|
|
|
|
+ logging.info("Using grub.xen to boot guest")
|
2014-03-24 16:05:15 +01:00
|
|
|
+ osblob_install = (install or boot_pvgrub2) and not disk_boot
|
|
|
|
if osblob_install and not self.installer.has_install_phase():
|
|
|
|
return None
|
|
|
|
|
2014-03-27 23:27:37 +01:00
|
|
|
@@ -348,7 +357,8 @@ class Guest(XMLBuilder):
|
2014-03-24 16:05:15 +01:00
|
|
|
if (not install and
|
|
|
|
self.os.is_xenpv() and
|
|
|
|
not self.os.kernel):
|
|
|
|
- self.bootloader = "/usr/bin/pygrub"
|
|
|
|
+ if boot_pvgrub2 is False:
|
|
|
|
+ self.bootloader = "/usr/bin/pygrub"
|
|
|
|
self.os.clear()
|
|
|
|
|
|
|
|
return self.get_xml_config()
|