[virt-tools-list] [PATCH v1] virtinst: set preserve when on_crash in s390x

Leno Hou lenohou at gmail.com
Tue May 10 13:24:20 UTC 2016


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 <lenohou at gmail.com>
---
 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




More information about the virt-tools-list mailing list