Use this when an operation fails because of a VM's current state.
VM State
VM state is a VM's current power and runtime condition — running, powered off, suspended or saved, paused, or in transition such as migrating. Operations like snapshots, migration and hardware changes depend on that state.
1. States: running, paused, saved, shut off, crashed.
2. The reason explains why (e.g. paused: I/O error).
3. Paused on I/O error often means storage full.
4. Compare management state with guest reachability.
5. Alert on unexpected states.
request/event → state transition → reported state
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 Checking VM state Verify boundary
| Platform | Command |
|---|---|
| vSphere (PowerCLI) | Get-VM web01 | Select PowerState |
| Hyper-V | Get-VM web01 | Select State,Status,Uptime |
| Proxmox | qm status 120 --verbose |
| KVM | virsh domstate web01 --reason |
States: running, stopped/powered off, paused, suspended/saved, migrating. A "running" VM can still have a hung guest; check the guest agent heartbeat.
Step 2 Common mistakes Narrow the fault
- "Running" does not mean the guest OS is healthy — check guest agent heartbeat and services.
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.
- Some actions need power off.
- Transitional states block changes.
- Stale locks show wrong state.
virsh domstate <vm> --reason— state and reasonqm status <vmid> --verbose— Proxmox stateGet-VM <vm> | fl State,Status,Uptime— Hyper-V state
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
| State | VMware | Hyper-V | KVM/libvirt |
|---|---|---|---|
| Running | poweredOn | Running | running |
| Stopped | poweredOff | Off | shut off |
| Saved | suspended | Saved | (saved via managedsave) |
| Paused | — | Paused | paused |
| Error / blocked | — | Paused-Critical (storage full) | paused (I/O error), crashed |
A VM paused on I/O error or Paused-Critical usually means its storage filled up — free space, then resume; do not hard-reset first.
virsh list --all; virsh domstate vm1 --reason
Get-VM | ft Name,State,Status
State names
| Platform | Command | States |
|---|---|---|
| KVM | virsh domstate --reason vm01 | running, paused, shut off, crashed, pmsuspended |
| Proxmox | qm status 101 --verbose | running, stopped, paused |
| Hyper-V | Get-VM vm01 | Select State,Status | Running, Off, Saved, Paused |
| vSphere | Get-VM vm01 | Select PowerState | PoweredOn, PoweredOff, Suspended |
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 → VM State. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://libvirt.org/docs.html · confidence 94%