Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

Reset

Direct 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.

When to use this

Use this when a VM is hung and needs a hard reboot.

First 30 seconds

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.

Operational verification

reset → CPU reset → firmware → boot

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
virtualization
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformvirtualization
Scope / prerequisiteUse this when a VM is hung and needs a hard reboot.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • A reset gives the guest no chance to shut down cleanly.
  • Unsaved data and file systems are at risk.
Key checks
  • 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

CommandWhat the guest experiencesData risk
virsh reboot vm / qm reboot 101ACPI or guest-agent request; OS shuts down cleanly and restartsNone if the guest cooperates
virsh shutdown vm / qm shutdown 101Clean power-off requestNone
virsh reset vm / qm reset 101Hardware reset button — CPU restarts immediately, no OS shutdownLike a crash: unflushed writes lost
virsh destroy vm / qm stop 101Power pulled; QEMU process endsLike 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

CheckWhy
File system check / journal replay in guest logsUnclean restart
Database recovery messagesTransactions 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Commands

PlatformHard reset
KVM/libvirtvirsh reset vm01
Proxmoxqm reset 101
Hyper-VRestart-VM vm01 -Force
vSphereRestart-VM vm01
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docvirtualization current

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%
Confirmation

Confirm action

Continue?