svm sandbox
Every command also takes the global options (--domain, --json, --config); see the CLI overview.
svm sandbox connect
Section titled “svm sandbox connect”open an interactive guest shell.
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 |
svm sandbox create
Section titled “svm sandbox create”.
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 |
svm sandbox exec
Section titled “svm sandbox exec”run a command in a sandbox.
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) |
svm sandbox files delete
Section titled “svm sandbox files delete”delete a file or an empty directory.
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) |
svm sandbox files list
Section titled “svm sandbox files list”list a directory (default /home/user).
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) |
svm sandbox files read
Section titled “svm sandbox files read”print a file, or save it with –output (streamed; any size, any bytes).
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 |
svm sandbox files write
Section titled “svm sandbox files write”write a file from –from FILE, –content TEXT, or standard input.
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 |
svm sandbox fork
Section titled “svm sandbox fork”fork a live sandbox into one or more children.
svm sandbox fork <sandbox_id> [options]| Argument | Kind | Default | Description |
|---|---|---|---|
--count |
value | 1 |
|
--timeout-seconds |
value | ||
--metadata |
append | ||
<sandbox_id> |
positional |
svm sandbox forward
Section titled “svm sandbox forward”make a sandbox port reachable on a local port until interrupted.
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) |
svm sandbox info
Section titled “svm sandbox info”show one sandbox without changing its state.
svm sandbox info <sandbox_id>| Argument | Kind | Default | Description |
|---|---|---|---|
<sandbox_id> |
positional |
svm sandbox kill
Section titled “svm sandbox kill”.
svm sandbox kill <sandbox_id>| Argument | Kind | Default | Description |
|---|---|---|---|
<sandbox_id> |
positional |
svm sandbox list
Section titled “svm sandbox list”.
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 |
svm sandbox logs
Section titled “svm sandbox logs”.
svm sandbox logs <sandbox_id> [options]| Argument | Kind | Default | Description |
|---|---|---|---|
<sandbox_id> |
positional | ||
--page-size |
value | 100 |
|
--page-token |
value | ||
--start |
value | ||
--end |
value |
svm sandbox metrics
Section titled “svm sandbox metrics”.
svm sandbox metrics <sandbox_id> [options]| Argument | Kind | Default | Description |
|---|---|---|---|
<sandbox_id> |
positional | ||
--start |
value | ||
--end |
value |
svm sandbox pause
Section titled “svm sandbox pause”pause a sandbox; it keeps its memory and disk and stops billing compute.
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. |
svm sandbox resume
Section titled “svm sandbox resume”resume a paused sandbox.
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 |