1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-02 08:56:07 +00:00
webvirtcloud/vrtManager
catborise ede9e0bca7 feat(instances): a guest that crashes or hangs is restarted or stopped
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.
2026-11-22 22:04:04 +03:00
..
tests feat(instances): a guest that crashes or hangs is restarted or stopped 2026-11-22 22:04:04 +03:00
__init__.py Initial commit 2015-02-27 10:53:51 +02:00
backup.py feat(backups): verify a backup's files on demand 2026-11-19 16:10:19 +03:00
connection.py feat(instances): a guest that crashes or hangs is restarted or stopped 2026-11-22 22:04:04 +03:00
create.py feat(instances): a guest that crashes or hangs is restarted or stopped 2026-11-22 22:04:04 +03:00
hostdetails.py fix: the host comparison reads afresh, skips silent hosts and unread listings; bulk form limit 2026-11-20 13:58:48 +03:00
instance.py feat(instances): a guest that crashes or hangs is restarted or stopped 2026-11-22 22:04:04 +03:00
interface.py fix(interfaces): the interface the panel reaches its host by is kept 2026-11-12 16:17:33 +03:00
libvirt-ssh fix(vrtManager): libvirt connections open within a time limit 2026-10-05 09:06:52 +03:00
network.py fix(networks): the XML editor does not overwrite a change made meanwhile 2026-11-12 13:30:09 +03:00
nodedevs.py fix(instances): USB device changes as PCI ones; device refusals name no VM to owners 2026-11-11 22:58:40 +03:00
nwfilters.py feat(computes): the Computes page tells what a host lacks for another host's VMs 2026-11-20 13:00:15 +03:00
storage.py feat(storages): a pool's volume downloaded from a URL 2026-11-20 14:50:04 +03:00
util.py feat(instances): a guest that crashes or hangs is restarted or stopped 2026-11-22 22:04:04 +03:00
virtsecrets.py fix(virtsecrets): a secret in use is not deleted by its UUID in capitals 2026-11-12 16:17:21 +03:00