When booting from empty disk image or none bootdev, its leads
system IPL enter into infinite loop with message on s390x.
This patch sets preserve when on_crash to avoid the loop.

Signed-off-by: Leno Hou <[email protected]>
---
 virtinst/guest.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/virtinst/guest.py b/virtinst/guest.py
index ab6dcba..67b1180 100644
--- a/virtinst/guest.py
+++ b/virtinst/guest.py
@@ -358,6 +358,8 @@ class Guest(XMLBuilder):
         if install:
             self.on_reboot = "destroy"
             self.on_crash = "destroy"
+       elif self.os.is_s390x():
+            self.on_crash = "preserve"
 
         self._set_osxml_defaults()
 
-- 
1.9.1

_______________________________________________
virt-tools-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/virt-tools-list

Reply via email to