File virtinst-keep-install-iso-attached.patch of Package virt-manager

Older SLE guests have a two stage installation that need the ISO.
Newer SLE PV guests hang when a cdrom device is attached without
an ISO file.

Index: virt-manager-3.2.0/virtinst/install/installer.py
===================================================================
--- virt-manager-3.2.0.orig/virtinst/install/installer.py
+++ virt-manager-3.2.0/virtinst/install/installer.py
@@ -167,7 +167,8 @@ class Installer(object):
     def _remove_install_cdrom_media(self, guest):
         if not self._install_cdrom_device_added:
             return
-        if guest.osinfo.is_windows():
+        if (guest.osinfo.is_windows() or
+            guest.osinfo.name.startswith(("sles", "sled", "opensuse"))):
             # Keep media attached for windows which has a multi stage install
             return
         for disk in guest.devices.disk:
openSUSE Build Service is sponsored by