Use this when a VM is hung and needs a hard reboot.
Reset
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.
1. Reset is like pressing the reset button: no guest shutdown.
2. Prefer reboot from inside or via agent.
3. Use for hung guests.
4. Expect filesystem recovery.
5. Log the reason.
reset → CPU reset → firmware → boot
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Common mistakes Narrow the fault
- Resetting a VM during disk writes (risk of corruption).
- Using reset for clusters/DBs without checking their recovery.
Step 2 Things to know Narrow the fault
- No clean shutdown — same risk as pressing a physical reset button.
- Prefer
virsh reboot/Restart-VMGuest(graceful) when the guest responds.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- A reset gives the guest no chance to shut down cleanly.
- Unsaved data and file systems are at risk.
virsh reset <vm>— hardware reset (libvirt)qm reset <vmid>— reset (Proxmox)Restart-VM <vm> -Force— forced restart (Hyper-V)
ReferenceWhy it matters1 section · depth on demand
How it works
Reset is like pressing the hardware reset button: the VM restarts immediately without the guest OS shutting down, so unsaved data and filesystem caches are lost. Use it only when the guest is hung.
ReferenceImportant terms & boundaries3 sections · depth on demand
In depth
Reset is not reboot
| Command | What the guest experiences | Data risk |
|---|---|---|
virsh reboot vm / qm reboot 101 | ACPI or guest-agent request; OS shuts down cleanly and restarts | None if the guest cooperates |
virsh shutdown vm / qm shutdown 101 | Clean power-off request | None |
virsh reset vm / qm reset 101 | Hardware reset button — CPU restarts immediately, no OS shutdown | Like a crash: unflushed writes lost |
virsh destroy vm / qm stop 101 | Power pulled; QEMU process ends | Like a crash |
Reset keeps the QEMU process running (same PID, same configuration in memory); stop/destroy ends it, and the next start applies pending configuration changes.
When reset is the right tool
- The guest is hung (no ping, no console response, guest agent dead) and a clean reboot request is ignored.
- Kernel panic or BSOD where the guest does not reboot by itself.
- Testing that applications recover from an unclean restart.
Before pressing reset
1. Check the console (virsh console vm, noVNC) — a guest stuck at a prompt or in fsck is not hung.
2. Capture evidence if the cause matters: virsh dump vm /var/tmp/vm.core --memory-only or virsh screenshot vm /tmp/vm.png.
3. Try virsh reboot vm --mode agent if the agent responds but ACPI is ignored.
After a reset
| Check | Why |
|---|---|
| File system check / journal replay in guest logs | Unclean restart |
| Database recovery messages | Transactions after the last flush may be rolled back |
Watchdog configuration (i6300esb/itco device) | An automatic watchdog reset may be preferable to manual intervention for appliances |
The virsh manual lists reset, reboot, shutdown and destroy as separate domain commands — scripts should use the gentle ones first with a timeout, and escalate.
Commands
| Platform | Hard reset |
|---|---|
| KVM/libvirt | virsh reset vm01 |
| Proxmox | qm reset 101 |
| Hyper-V | Restart-VM vm01 -Force |
| vSphere | Restart-VM vm01 |
Reset vs reboot
| Action | Guest notified | Data risk |
|---|---|---|
| Reboot (guest) | Yes | Low |
| Reset (hard) | No | Like power loss |
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Virtual Machine Lifecycle → Reset. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://libvirt.org/docs.html · confidence 94%