From 47f719b76e100602d036a9f220fb0684e9eea35a Mon Sep 17 00:00:00 2001 From: Charles Arnold Date: Mon, 25 Jan 2021 21:42:35 +0000 Subject: [PATCH] - bsc#1180897 - SLES15 SP2: VM does not boot after virt-install installing from ISO image. virtinst-keep-iso-for-xenpv.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=539 --- virt-manager.changes | 7 +++++++ virt-manager.spec | 2 ++ virtinst-keep-iso-for-xenpv.patch | 16 ++++++++++++++++ 3 files changed, 25 insertions(+) create mode 100644 virtinst-keep-iso-for-xenpv.patch diff --git a/virt-manager.changes b/virt-manager.changes index f04dc41e..43731f38 100644 --- a/virt-manager.changes +++ b/virt-manager.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Jan 25 14:32:10 MST 2021 - carnold@suse.com + +- bsc#1180897 - SLES15 SP2: VM does not boot after virt-install + installing from ISO image. + virtinst-keep-iso-for-xenpv.patch + ------------------------------------------------------------------- Mon Jan 25 11:32:34 MST 2021 - carnold@suse.com diff --git a/virt-manager.spec b/virt-manager.spec index fad6bc0e..24cc792a 100644 --- a/virt-manager.spec +++ b/virt-manager.spec @@ -77,6 +77,7 @@ Patch176: virtinst-dont-use-special-copy-cpu-features.patch Patch177: virtinst-set-default-nic.patch Patch178: virtinst-sap-detection.patch Patch179: virtinst-smbios-unsupported-for-xenpv.patch +Patch180: virtinst-keep-iso-for-xenpv.patch BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -207,6 +208,7 @@ machine). %patch177 -p1 %patch178 -p1 %patch179 -p1 +%patch180 -p1 %build %if %{default_hvs} diff --git a/virtinst-keep-iso-for-xenpv.patch b/virtinst-keep-iso-for-xenpv.patch new file mode 100644 index 00000000..19f68edd --- /dev/null +++ b/virtinst-keep-iso-for-xenpv.patch @@ -0,0 +1,16 @@ +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 +@@ -174,8 +174,9 @@ class Installer(object): + for disk in guest.devices.disk: + if (disk.is_cdrom() and + disk.get_source_path() == self._cdrom_path()): +- disk.set_source_path(None) +- disk.sync_path_props() ++ if not guest.os.is_xenpv(): ++ disk.set_source_path(None) ++ disk.sync_path_props() + break + + def _add_unattended_install_cdrom_device(self, guest, location):