Overview
TheSnapshotInfo model holds all metadata about a saved VM snapshot. It is returned when you create a snapshot and can be retrieved from the snapshot list.
Fields
Unique identifier for the snapshot. Must contain only lowercase letters, numbers, and hyphens. If not provided during creation, SmolVM generates one automatically.
The identifier of the source VM that was snapshotted.
Path to the saved VM state file (
vmstate.bin).Path to the saved memory dump (
mem.bin).Path to the saved root filesystem copy (
disk.ext4).The full VM configuration at the time of the snapshot. Used during restore to recreate the VM with the same settings.
The network configuration at the time of the snapshot. Used during restore to reattach the VM to its original network identity.
UTC timestamp of when the snapshot was created.
Whether this snapshot has been restored at least once.
The 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