Revert
Cheat sheet · https://pcornel.dk/topic.php?topic=3573
Answer
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.
Remember
- 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.
First checks
qm rollback <vmid> <snap>— revert (Proxmox)virsh snapshot-revert <vm> <snap>— revert (libvirt)Restore-VMSnapshot -VMName <vm> -Name <n>— Hyper-V apply
Verify in this order
current state discarded → snapshot state restored
Where it usually breaks
First mismatch in guest/app quiescence → hypervisor snapshot/template task → metadata/backing chain → storage durability → restore/clone read-back; preserve identity/native error/pre-state before mutation.
Snapshots & Checkpoints → Revert reference map
| 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 |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3573