Skip to content

Persistence, pause & resume

State is a product decision. A sandbox can be disposable, long-running, paused, cold-stored, or backed by volumes. See Lifecycle states for the full state model. For stateful agent and service workspaces, see Persistent workspaces.

StateMechanismNotes
Files inside a running VMVM runtime diskLost when the VM is destroyed unless captured or copied out.
Host-mounted filesMount or copy workflowHost exposure depends on mount mode and path selection.
Managed local volumemvmctl volumeEncrypted at rest when locked.
Machine statepause/resume or snapshot save/restoreMay contain memory, files, processes, and credentials present in the guest.
Terminal window
mvmctl pause agent-sandbox
mvmctl resume agent-sandbox

The exact backend mechanics differ. See Snapshots for Firecracker sealed snapshots and Vz machine-state files.

Cold mode is the product posture where a sandbox is snapshotted, compute is released, and the sandbox can later be restored. See Cold mode.

Terminal window
mvmctl down agent-sandbox
mvmctl sandbox gc
mvmctl cleanup

Stopping compute does not automatically erase every artifact. Check volumes, snapshots, receipts, logs, and caches when the workflow needs stronger cleanup.

  • Treat snapshots as sensitive state.
  • Avoid preserving browser sessions or agent workspaces unless required.
  • Lock managed volumes after use.
  • Prefer explicit destroy/cleanup steps in tutorials and automation.