mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-02 17:06:09 +00:00
The VM Settings "When the guest crashes" choice (on_crash, restart for new VMs) never acted: a guest reports a crash through a panic device, and the panel gave VMs none. A guest whose kernel panicked stayed "running" until someone noticed. - new VMs get the panic device the host offers (get_panic_model: x86 ISA pvpanic, which Linux has built in and Windows gets with virtio-win; the PCI one elsewhere; ISA on x86 when libvirt does not tell), and an x86 machine without a watchdog of its own (not q35, which has the iTCO; not microvm, which has no PCI bus) an i6300esb - choosing Restart or Stop adds the panic device to a VM without one, an i6300esb when it has no watchdog (libvirt before 9.1 shows no iTCO on q35), and gives its watchdogs the matching action (reset, poweroff): a guest that arms its watchdog and hangs is met as one that crashed. A VM without these devices shows no choice made and says it cannot report a crash or a hang yet. From the next start, as before Checked live on a Vagrant host with a guest whose init exits (kernel panic): without the device it stayed "running (booted)"; after Stop it ended "shut off (crashed)", after Restart it booted again. |
||
|---|---|---|
| .. | ||
| tests | ||
| __init__.py | ||
| backup.py | ||
| connection.py | ||
| create.py | ||
| hostdetails.py | ||
| instance.py | ||
| interface.py | ||
| libvirt-ssh | ||
| network.py | ||
| nodedevs.py | ||
| nwfilters.py | ||
| storage.py | ||
| util.py | ||
| virtsecrets.py | ||