Snapshot
Cheat sheet · https://pcornel.dk/topic.php?topic=3566
Answer
A Snapshot captures a reference point for a VM or virtual disk without normally creating a fully independent duplicate of all data. Later changes are typically redirected or tracked so the preserved state can remain addressable.
Remember
- A snapshot normally depends on its source/base storage and is therefore not an independent copy.
- Snapshot creation can be fast because metadata/delta redirection may occur without copying the whole virtual disk.
- Deleting a snapshot commonly means merge/consolidation of dependent data rather than simply deleting all referenced blocks.
- Consistency level depends on whether guest/application quiescing was performed.
First checks
virsh snapshot-create-as <vm> pre-change --disk-only --atomic— disk snapshot (libvirt)qm snapshot <vmid> pre-change --vmstate 0— Proxmox snapshotGet-VMSnapshot <vm>— Hyper-V
Verify in this order
current state → frozen base + delta
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 → Snapshot reference map
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Base | Pre-snapshot state | Still required in most designs |
| Boundary | Point-in-time reference | Metadata success only |
| Delta | Post-snapshot writes | Consumes capacity |
| Recovery | Revert/clone/export depending platform | Must be tested |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3566