SnapshotInfo tells you what SmolVM saved for a snapshot and how it can be restored. You receive it from vm.snapshot(...) and from snapshot list operations.
Fields
Unique snapshot identifier. If you do not provide one, SmolVM generates it.
Source VM identifier.
Backend used by the source VM. Public docs focus on Firecracker and QEMU.
Files SmolVM wrote for the snapshot.
VM configuration captured at snapshot time. SmolVM uses it during restore.
Network configuration captured at snapshot time. SmolVM uses it to restore the VM’s network identity.
UTC timestamp for when the snapshot was created.
What was saved:
FULL, DIFF, or DISK. DISK is disk-only on QEMU and restores with a cold boot. On Firecracker, SmolVM still captures memory and VM state for every snapshot type.Whether this snapshot has been restored at least once.
VM ID of the most recently restored instance, if any.
Usage
Creating a snapshot
Listing snapshots
Restoring from a snapshot
Related
SmolVM.snapshot()— Create a snapshot from a running VMSmolVM.from_snapshot()— Restore a VM from a snapshot- Snapshots guide — Step-by-step guide to using snapshots
- Exceptions —
SnapshotAlreadyExistsErrorandSnapshotNotFoundError
