mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06: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"/>
|
<clock offset="utc"/>
|
||||||
<on_poweroff>destroy</on_poweroff>
|
<on_poweroff>destroy</on_poweroff>
|
||||||
<on_reboot>restart</on_reboot>
|
<on_reboot>restart</on_reboot>
|
||||||
<on_crash>restart</on_crash>
|
<on_crash>preserve</on_crash>
|
||||||
<devices>
|
<devices>
|
||||||
<emulator>/usr/bin/qemu-kvm</emulator>
|
<emulator>/usr/bin/qemu-kvm</emulator>
|
||||||
<disk type="file" device="disk">
|
<disk type="file" device="disk">
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
<clock offset="utc"/>
|
<clock offset="utc"/>
|
||||||
<on_poweroff>destroy</on_poweroff>
|
<on_poweroff>destroy</on_poweroff>
|
||||||
<on_reboot>restart</on_reboot>
|
<on_reboot>restart</on_reboot>
|
||||||
<on_crash>restart</on_crash>
|
<on_crash>preserve</on_crash>
|
||||||
<devices>
|
<devices>
|
||||||
<emulator>/usr/bin/qemu-system-s390x</emulator>
|
<emulator>/usr/bin/qemu-system-s390x</emulator>
|
||||||
<disk type="file" device="disk">
|
<disk type="file" device="disk">
|
||||||
|
@ -358,6 +358,9 @@ class Guest(XMLBuilder):
|
|||||||
if install:
|
if install:
|
||||||
self.on_reboot = "destroy"
|
self.on_reboot = "destroy"
|
||||||
self.on_crash = "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()
|
self._set_osxml_defaults()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user