Pcornel
Virtualization · Virtual Machine Lifecycle

Reset

Cheat sheet · https://pcornel.dk/topic.php?topic=3438

Back to the Topic

Answer

Resetting a VM is a hard reboot, like pressing a physical reset button: the guest gets no chance to shut down cleanly, so unsaved data and file systems can be affected. Use restart via guest tools when the OS responds.

Remember

  • A reset gives the guest no chance to shut down cleanly.
  • Unsaved data and file systems are at risk.

First checks

  • virsh reset <vm> — hardware reset (libvirt)
  • qm reset <vmid> — reset (Proxmox)
  • Restart-VM <vm> -Force — forced restart (Hyper-V)

Commands

virsh reboot vm
qm reboot 101
virsh shutdown vm
qm shutdown 101
virsh reset vm
qm reset 101
virsh destroy vm
qm stop 101
virsh console vm
virsh dump vm /var/tmp/vm.core --memory-only
virsh screenshot vm /tmp/vm.png
virsh reboot vm --mode agent
virsh
virsh reset vm01
virsh reboot

Verify in this order

reset → CPU reset → firmware → boot

Where it usually breaks

First mismatch in management intent → host/cluster capability → hypervisor runtime/task → virtual resource/device → guest state → workload-visible read-back; preserve identity/native error/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3438

Confirmation

Confirm action

Continue?