Skip to content

svm sandbox

Every command also takes the global options (--domain, --json, --config); see the CLI overview.

open an interactive guest shell.

Terminal window
svm sandbox connect <sandbox_id> [options]
Argument Kind Default Description
<sandbox_id> positional
--no-interactive flag connect and print sandbox information only
--on-resume value how a paused sandbox comes back: restore memory and processes (default), or boot cold from the disk One of: restore, reboot.
--user value run the shell as this user (default: the template’s user)
--cwd value start the shell in this directory
--env append set a variable in the shell; repeatable

.

Terminal window
svm sandbox create [options]
Argument Kind Default Description
--template value default: [sandbox] template in svm.toml, else base
--timeout-seconds value default: svm.toml, else 300
--cpu-count value
--memory-mb value
--disk-mb value
--profile value explicit VMM profile; an unavailable profile is refused
--gpu value GPU class, PCI address, or any; requires a GPU-enabled deployment
--metadata append
--auto-pause flag
--on-timeout value what reaching the deadline does; pause is the same as –auto-pause One of: pause, kill.
--auto-resume flag a request to the paused sandbox’s public URL wakes it (the default, except after a filesystem pause)
--no-auto-resume flag a request to the paused sandbox’s public URL does not wake it
--volume append mount a volume at create time; repeatable
--insecure flag disable secure public-URL access
--connect flag open an interactive guest shell once the sandbox is created
--user value run the shell as this user (default: the template’s user)
--cwd value start the shell in this directory
--env append set a variable in the shell; repeatable

run a command in a sandbox.

Terminal window
svm sandbox exec <sandbox_id> <argv> [options]
Argument Kind Default Description
<sandbox_id> positional
--timeout value 60
--user value
--sandbox-profile value confine the command with Landlock inside the sandbox One of: read-only, workspace-only, workspace-offline.
<argv> positional (remainder)

delete a file or an empty directory.

Terminal window
svm sandbox files delete <sandbox_id> <path> [options]
Argument Kind Default Description
<sandbox_id> positional
<path> positional
--user value run as this account (default: the sandbox’s default user)

list a directory (default /home/user).

Terminal window
svm sandbox files list <sandbox_id> <path> [options]
Argument Kind Default Description
<sandbox_id> positional
<path> positional (?) /home/user
--depth value 1 levels to descend (default 1)
--user value run as this account (default: the sandbox’s default user)

print a file, or save it with –output (streamed; any size, any bytes).

Terminal window
svm sandbox files read <sandbox_id> <path> [options]
Argument Kind Default Description
<sandbox_id> positional
<path> positional
--output, -o value write to FILE (through FILE.part, renamed when complete) instead of stdout
--user value run as this account (default: the sandbox’s default user)
--gzip flag send the data compressed over the wire

write a file from –from FILE, –content TEXT, or standard input.

Terminal window
svm sandbox files write <sandbox_id> <path> [options]
Argument Kind Default Description
<sandbox_id> positional
<path> positional
--from value upload this local file (streamed)
--content value the text to write
--mode value 644 octal permission bits (default 644)
--user value run as this account (default: the sandbox’s default user)
--metadata append store a key-value pair with the file (up to 16; repeatable); a write replaces the file’s pairs
--gzip flag send the data compressed over the wire

fork a live sandbox into one or more children.

Terminal window
svm sandbox fork <sandbox_id> [options]
Argument Kind Default Description
--count value 1
--timeout-seconds value
--metadata append
<sandbox_id> positional

make a sandbox port reachable on a local port until interrupted.

Terminal window
svm sandbox forward <sandbox_id> <port> [options]
Argument Kind Default Description
<sandbox_id> positional
<port> positional the port inside the sandbox
--local-port value local port (default: any free one)
--host value 127.0.0.1 local address to listen on (default: loopback)

show one sandbox without changing its state.

Terminal window
svm sandbox info <sandbox_id>
Argument Kind Default Description
<sandbox_id> positional

.

Terminal window
svm sandbox kill <sandbox_id>
Argument Kind Default Description
<sandbox_id> positional

.

Terminal window
svm sandbox list [options]
Argument Kind Default Description
--state value comma-separated states
--template value
--metadata append repeatable; all must match
--page-size value 50
--page-token value

.

Terminal window
svm sandbox logs <sandbox_id> [options]
Argument Kind Default Description
<sandbox_id> positional
--page-size value 100
--page-token value
--start value
--end value

.

Terminal window
svm sandbox metrics <sandbox_id> [options]
Argument Kind Default Description
<sandbox_id> positional
--start value
--end value

pause a sandbox; it keeps its memory and disk and stops billing compute.

Terminal window
svm sandbox pause <sandbox_id> [options]
Argument Kind Default Description
<sandbox_id> positional
--wait flag return only when the sandbox is paused
--mode value what the pause keeps: memory and disk (default), or the disk only, so the sandbox reboots when it resumes One of: memory, filesystem.

resume a paused sandbox.

Terminal window
svm sandbox resume <sandbox_id> [options]
Argument Kind Default Description
<sandbox_id> positional
--timeout-seconds value new lifetime from now
--on-resume value restore memory and processes (default), or boot cold from the disk One of: restore, reboot.
--wait flag return only when the sandbox is running