mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-23 17:34:21 +03:00
virtinst: set preserve when on_crash in s390x
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@gmail.com>
This commit is contained in:
parent
8b6c404305
commit
1ba524db04
@ -12,7 +12,7 @@
|
||||
<clock offset="utc"/>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>restart</on_crash>
|
||||
<on_crash>preserve</on_crash>
|
||||
<devices>
|
||||
<emulator>/usr/bin/qemu-kvm</emulator>
|
||||
<disk type="file" device="disk">
|
||||
|
@ -12,7 +12,7 @@
|
||||
<clock offset="utc"/>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>restart</on_crash>
|
||||
<on_crash>preserve</on_crash>
|
||||
<devices>
|
||||
<emulator>/usr/bin/qemu-system-s390x</emulator>
|
||||
<disk type="file" device="disk">
|
||||
|
@ -358,6 +358,9 @@ class Guest(XMLBuilder):
|
||||
if install:
|
||||
self.on_reboot = "destroy"
|
||||
self.on_crash = "destroy"
|
||||
# on_crash=restart can cause reboot loops on s390x, so use preserve
|
||||
elif self.os.is_s390x():
|
||||
self.on_crash = "preserve"
|
||||
|
||||
self._set_osxml_defaults()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user