1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-02 17:06:09 +00:00
webvirtcloud/instances
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
..
api feat(instances): a protected VM is not deleted nor restored over 2026-11-19 22:00:25 +03:00
migrations fix(computes): a VM that returns gets its protection, schedules and backups back 2026-11-20 08:17:23 +03:00
templates feat(instances): a guest that crashes or hangs is restarted or stopped 2026-11-22 22:04:04 +03:00
templatetags fix: power jobs name their action, refuse what does not apply and recover by the VM's state 2026-11-20 12:10:06 +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 chore: remove code nothing uses 2026-11-06 10:53:37 +03:00
addresses.py fix(instances): one guest's bad address no longer ends a search or the VM report 2026-11-13 16:07:12 +03:00
apps.py format python code with black 2022-11-02 08:54:35 +03:00
forms.py fix(i18n): form fields shown with their form's label are translated 2026-11-21 15:41:11 +03:00
jobs.py feat(instances): a guest that crashes or hangs is restarted or stopped 2026-11-22 22:04:04 +03:00
models.py feat(instances): a guest that crashes or hangs is restarted or stopped 2026-11-22 22:04:04 +03:00
report.py perf: the Logs and VM report downloads are written row by row 2026-11-05 18:58:13 +03:00
states.py feat(instances): a VM a fault stopped or paused says why 2026-11-22 21:19:35 +03:00
urls.py feat(instances): snapshot the VMs chosen on the VM list 2026-11-20 14:24:46 +03:00
utils.py feat(instances): a VM a fault stopped or paused says why 2026-11-22 21:19:35 +03:00
views.py feat(instances): a VM a fault stopped or paused says why 2026-11-22 21:19:35 +03:00