Use it for controlled rollback after failed changes or testing only when the data-loss window, external dependencies and snapshot consistency level are understood.
Revert
Revert changes the VM's active state to a historical snapshot/checkpoint. It is a destructive timeline operation from the perspective of changes made after the selected point unless those later states are separately preserved.
1. Revert discards changes since the snapshot.
2. Domain controllers and clustered apps can break (USN rollback).
3. Data written after is lost.
4. Confirm with owner.
5. Check time sync after.
current state discarded → snapshot state restored
Run regression/integration checks and decide whether to retain, merge or remove remaining snapshot states.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
It does not show later data was preserved, every integration is consistent or independent disaster recovery exists.
Next check: Run regression/integration checks and decide whether to retain, merge or remove remaining snapshot states.
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 Verification path Verify boundary
recovery intent → target validation → impact boundary → apply/revert → VM state transition → guest/app/external verification
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.
- Revert can discard or detach later VM changes from the active timeline.
- External systems do not roll back with the VM, so credentials, transactions, leases, replication and distributed state may become inconsistent.
- Successful VM boot after revert is not proof that the application is healthy.
- Revert is not equivalent to restoring an independent backup after storage loss.
qm rollback <vmid> <snap>— revert (Proxmox)virsh snapshot-revert <vm> <snap>— revert (libvirt)Restore-VMSnapshot -VMName <vm> -Name <n>— Hyper-V apply
ReferenceWhy it matters1 section · depth on demand
In depth
Reverting returns the VM to the snapshot's state and discards everything written since. Before reverting:
- Data written since (orders, mails, logs) will be lost — export it if needed.
- Domain members may lose their machine-account password sync (secure channel) if reverted far back;
Test-ComputerSecureChannel -Repair. - Clustered or replicated applications may see the reverted node as stale.
qm rollback 120 pre-patch
virsh snapshot-revert vm1 pre-patch
Restore-VMCheckpoint -VMName vm1 -Name pre-patch
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
Revert succeeded ≠ later data preserved ≠ external systems reverted ≠ application recovered.
Reverting safely
- Reverting discards all changes since the snapshot, including data.
- Domain members may lose their computer account password sync — rejoin may be needed if the snapshot is older than the machine password age (30 days).
- Take a new snapshot before reverting if you may need to go back.
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 Snapshots & Checkpoints → Revert. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://libvirt.org/docs.html · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Snapshots & Checkpoints → Revert reference map
Fast snapshot/checkpoint boundaries for Snapshots & Checkpoints → Revert.
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Target | Historical snapshot/checkpoint | Verify exact timestamp |
| Later changes | May be lost/diverged | Impact boundary |
| External systems | Do not automatically revert | Reconcile |
| Success | VM state applied | Still test application |