Pcornel
Virtualization · Snapshots & Checkpoints

Revert

Cheat sheet · https://pcornel.dk/topic.php?topic=3573

Back to the Topic

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

BoundaryMeaningEvidence limit
TargetHistorical snapshot/checkpointVerify exact timestamp
Later changesMay be lost/divergedImpact boundary
External systemsDo not automatically revertReconcile
SuccessVM state appliedStill 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

Confirmation

Confirm action

Continue?