Skip to content

Sandbox management

Use mvmctl when you need the local management layer for sandboxes.

Terminal window
mvmctl init ./agent-sandbox --preset python
mvmctl build ./agent-sandbox
mvmctl up ./agent-sandbox --name agent-sandbox

mvmctl build uses the builder VM for Linux image construction. mvmctl up boots the runtime guest from the built artifact.

Terminal window
mvmctl ls
mvmctl boot-report agent-sandbox
mvmctl logs agent-sandbox

Use JSON output where commands support it when integrating with tooling.

Terminal window
mvmctl exec agent-sandbox -- python /work/task.py
mvmctl fs ls agent-sandbox /work
mvmctl forward agent-sandbox -p 8080:8080

Command execution, file operations, and port forwarding cross trust boundaries. Keep command args explicit, file paths narrow, and ports intentional.

Terminal window
mvmctl pause agent-sandbox
mvmctl resume agent-sandbox

For backend-specific machine-state files:

Terminal window
mvmctl snapshot save agent-sandbox --path /tmp/agent-sandbox.vzsnap --hypervisor vz
mvmctl snapshot restore agent-sandbox --path /tmp/agent-sandbox.vzsnap --hypervisor vz

Snapshots can contain memory, files, and runtime credentials. Apply retention and deletion policy.

Terminal window
mvmctl down agent-sandbox
mvmctl cleanup

Stopping compute is not the same as deleting all state. Check manifests, volumes, snapshots, and cache entries when you need stronger cleanup.