Skip to content

A VM runs your programs with its own CPU, memory and disk, and by default sleeps when nothing uses it. Its size is fixed at creation; its name, settings and sleep policy can change later.

A create makes the VM and starts it on its first request. The name is unique in its project, and the size is fixed for the life of the VM.

  1. Open the dashboard.
  2. Select Create SVM.
  3. Enter worker in Name.
  4. Leave Capacity tier at Shared and RAM at 2 GiB · 1 CPU.
  5. Leave Profile at No profile and Sleep at Auto.
  6. Select Create SVM. The list shows worker as Stopped.

A new VM is stopped until its first request or si svm start.

The size is fixed at creation. memory_mib sets RAM, and tier chooses shared CPU or whole physical cores. A shared VM may use up to twice its base CPU from spare capacity; a dedicated VM’s ceiling is its base.

Tier RAM Base CPU CPU ceiling
Shared 2048 MiB (default) 1 vCPU 2 vCPU
Shared 4096 MiB 2 vCPU 4 vCPU
Shared 8192 MiB 4 vCPU 8 vCPU
Shared 16384 MiB 8 vCPU 16 vCPU
Dedicated 4096 MiB (CLI and dashboard default) 2 vCPU 2 vCPU
Dedicated 8192 MiB 4 vCPU 4 vCPU
Dedicated 16384 MiB 8 vCPU 8 vCPU

Scroll horizontally to see all columns.

The CLI picks a dedicated VM with --dedicated and a size with --memory-mib. The API uses tier and memory_mib; a dedicated API create must send memory_mib, because its default of 2048 is shared-only.

A list returns one page of the project’s VMs, newest first. limit is 1 to 200 and 100 by default, and next_cursor reads the next page. Filter with label.<key>=<value> pairs, or with si ls --label KEY=VALUE; all pairs must match.

  1. Open the dashboard. The SVMs table lists each VM with its state and resources.
  2. Select Load more when it appears to read the next page.

Each row has Terminal and Desktop links, a Delete button, and More actions for Start, Sleep, Stop, Snapshot, Fork or Details.

Get returns one VM by id, or by name in a project. An id resolves in every project; a name resolves in project, default when omitted. The generation in the answer is what a conditional change or a wait names.

  1. Open the dashboard.
  2. Select worker in the list. The header shows Terminal, Desktop, the Delete button and More actions.
  3. Read the state in the header and the resources, region and ID under Overview.

The CLI sends a command that names no VM to the default VM. si use sets it and stores the choice in your CLI configuration. Without an argument, it uses the only VM or opens a picker.

Terminal window
si use worker
Output
default SVM is 6f1c0f0e8a

A change can set name, env, egress, secret_injections, readiness, concurrency or labels. It keeps every field you omit and replaces a block you send whole. Domain filter, secret injection, readiness and concurrency changes apply at once on a running VM and at its next wake otherwise. The id, disk, size, region, profile and snapshot stay as they were.

  1. Open the dashboard.
  2. Select worker in the list.
  3. Select the Name field on Overview.
  4. Enter builder.
  5. Select Save.

Environment variables, Outbound access and Secrets are on Security.

Start wakes a stopped or paused VM now. A request to the VM’s terminal address wakes it too. The answer carries the new state and generation.

  1. Open the dashboard.
  2. Select builder in the list.
  3. Select More actions, then Start.

Stop ends the processes and keeps the disk. The next start boots from the disk, and the answer is stopped.

  1. Open the dashboard.
  2. Select builder in the list.
  3. Select More actions, then Stop.

Pause is a sleep in memory: it keeps the processes that remain and resumes them on the next request. A VM with no process sleeps on disk instead, so this VM answers stopped. Start the VM first, because a stopped VM has nothing to pause. The dashboard calls this action Sleep.

  1. Open the dashboard.
  2. Select builder in the list.
  3. Select More actions, then Start.
  4. Select More actions, then Sleep.

The policy decides when the VM sleeps. auto follows the workload, timer sleeps after a set inactivity, and on never sleeps and uses its memory all the time. A running VM applies auto or a timer at its next check, and on at once. A sleeping VM applies the policy at its next wake, and on starts it at once.

  1. Open the dashboard.
  2. Select builder in the list.
  3. Select Sleep mode on Overview.
  4. Choose Timer and select Save. Idle seconds shows 1800.

Sleep and wake explains what each mode keeps.

Wait holds the request until the node reports the named state at a generation. It answers wait_timeout at the deadline, and generation_moved if the VM changed first. The generation is the one the last change answered; this VM is at 7.

Terminal window
si svm wait builder --state stopped --generation 7
Output
stopped

Delete removes the disk, processes, terminals and preview connections, and it cannot be undone. The API takes the id; the CLI takes a name or the default VM. The VM host answers 404 within 30 seconds, and the row stays deleting until the node confirms.

  1. Open the dashboard.
  2. Select builder in the list.
  3. Select the Delete button.
  4. Enter builder in Type builder to confirm.
  5. Select Delete SVM.
Field Type Default Allowed values What it changes
name (--name) string or null None ^[a-z][a-z0-9-]{0,31}$, and not an id (^[0-9a-hjkmnp-tv-z]{10}$) The name, unique in its project. null on a change clears it.
tier (--dedicated) string shared; dedicated with the flag shared, dedicated Shared CPU or whole physical cores. Fixed at creation.
memory_mib (--memory-mib) integer 2048 (4096 with --dedicated on the CLI) 2048, 4096, 8192, 16384 shared; 4096, 8192, 16384 dedicated RAM, and the base CPU that follows it. Fixed at creation.
project (--project) string default A project name or id The project of the VM. A body field on create and a query on get, change, lifecycle and wait. Its profile, snapshot, fork source and secrets must belong to it.
profile_id (--profile) string None A profile name in the VM’s project, or its id Copies the profile’s environment variables, inbox and domain filter into the blocks the create does not set. See Profiles.
snapshot (--snapshot) string None A snapshot name in the VM’s project, or its id Starts the disk from the snapshot. Excludes fork_of. See Snapshots.
fork_of (--fork) string None A VM name in the VM’s project, or its id Takes a snapshot of that VM and starts from it. Excludes snapshot. See Snapshots.
env (--env) object {} At most 128 variables and 32 KiB; a name is letters, digits and _, not starting with a digit; a value may not hold a NUL byte; SVM_*, SI_*, proxy variables, HOME, USER and LOGNAME are refused Environment variables. A change replaces the map whole.
inbox (--email, --allow-sender) object Off enabled; allowed_senders is null for any sender, [] for none, or exact addresses The email inbox. --allow-sender implies --email. See Email.
egress (--egress-filter, --allow-domain) object Filtering off, no domains filtering; allowed_domains exact hosts or *.domain The outbound domain filter. A change replaces the block whole.
secret_injections (--inject, --inject-rule) array [] A rule has an exact HTTPS domain, a secret_id, exactly one of header or placeholder, and an optional value_prefix (empty by default) without CR, LF or NUL; value_format is raw (default) or basic_x_access_token HTTPS rules that add a secret to requests to a domain. A change replaces the list whole. See Secrets.
labels object {} At most 32 labels; a key is 1 to 63 lowercase letters, digits or ._/-, starting with a letter or digit; a value is at most 128 UTF-8 bytes; a key may not start with si. Labels for the label.<key>=<value> list filter. A change replaces the map whole; {} removes all.
readiness object or null null port 1 to 65535, optional path an absolute HTTP path, timeout_s 1 to 120 The service port whose readiness releases a request that waits on a wake; null removes it. See Web addresses.
concurrency integer 64, or the profile’s value 1 to 1024, never above the plan maximum The most requests that run at once. A request above it waits in the queue.
sleep.mode (si svm sleep) string auto auto, timer, on When the VM sleeps.
sleep.after_s (si svm sleep ... timer) integer None 30 to 86400; only timer The inactivity before a timer sleeps.
ttl_s (--ttl) integer None 1 to 2592000 seconds (30 days) The minute cron deletes the VM when it expires. The CLI takes a duration such as 72h.
if_absent (--if-absent) boolean false true or false; needs a name Returns the existing VM with the same name and 200 instead of 409 name_taken.
region string First preferred region with room A region name such as eu-gra Places the VM. Fixed at creation.
If-Match (header) string None A generation in quotes, such as "7" Makes a change conditional. A stale generation answers 412 generation_mismatch.

Scroll horizontally to see all columns.

Most CLI flags in the table belong to si create; --project is a global flag. To change a name, environment variables, domain filter or secret injection, use the dashboard or the API. Readiness, concurrency and labels are API-only.

State What it means for you What you can do
running Programs run and requests are served. Change settings, change the sleep policy, pause, stop, delete.
paused The VM is asleep in memory; its processes resume on the next request. Start to wake it now, stop, change settings, change the sleep policy, delete.
stopped The VM is asleep on disk; processes have ended and the disk is kept. Start, change settings, change the sleep policy, delete.
unknown The node has not reported a state. Treat the VM as asleep. Start, change settings, change the sleep policy, delete.
deleting The delete is confirmed and the record is going away. Nothing; it disappears when the node confirms.

Scroll horizontally to see all columns.

The dashboard labels running Awake, paused Asleep and unknown Checking, and calls start on a paused VM Wake. Wait works for running, paused and stopped. An unknown report never matches, and a deleting VM is not waited on.

Sleep and wake explains what a sleep in memory keeps that a sleep on disk does not.

Code When Fix
invalid_name Create or rename sends a name that breaks the rule in Options. Send 1 to 32 lowercase letters, digits or hyphens, with a letter first, and not an id.
invalid_if_absent if_absent is not a boolean, or the create has no name. Send if_absent with a name, or omit both.
name_taken The name is already used in the project. Choose another name, or send if_absent with a name.
svm_limit Create would exceed the plan’s VM count. Delete a VM, or ask about your plan.
invalid_limit limit is outside 1 to 200. Send a whole number from 1 to 200.
invalid_cursor cursor does not come from this list. Read the first page again.
invalid_memory RAM is not a size of the chosen tier. Choose 2048, 4096, 8192 or 16384 MiB shared, or 4096, 8192 or 16384 dedicated.
invalid_tier tier is not shared or dedicated. Send one of the two tiers.
invalid_size The body sends a derived field such as cpu_millis or disk_mib. Remove the derived field; the size follows from memory_mib and tier.
size_unavailable No node offers that size. Choose a smaller size, or retry.
no_capacity No node has room for the create or wake. Wait for Retry-After and retry.
dedicated_capacity No dedicated core is free. Retry later, or create a shared VM.
invalid_sleep The policy is not auto, timer or on, or its timer is out of range. Send auto, on, or timer with after_s from 30 to 86400.
invalid_patch The change names no field that can change. Send at least one of name, env, egress, secret_injections, readiness, concurrency or labels.
generation_mismatch If-Match names a generation that is not current. Read the VM and send its current generation.
generation_moved The VM changed during a wait or a lifecycle action. Read the VM and retry.
wait_timeout The state did not arrive within timeout_s. Wait again, or raise timeout_s to 60.
svm_not_found No VM has that name in the project, or no VM has that id. Check the name, id and project.
project_not_found The named project does not exist or is outside the key’s scope. Check the project name and the key’s scope.
not_found Delete names an id that no longer exists. Use the id from the create or the list.
deleting The VM is already being deleted. Wait for it to disappear.
conflict Another change happened at the same time. Read the VM and retry.
svm_unreachable The node did not answer the lifecycle action. Wait for Retry-After and retry.
invalid_snapshot Both snapshot and fork_of are set, or the reference is malformed. Send one of them.
snapshot_not_found The snapshot does not exist in the project. Check the snapshot name and project.
snapshot_failed The snapshot failed, so the create cannot start from it. Create a new snapshot.
invalid_ttl The lifetime is outside 1 to 2592000 seconds. Send a TTL in that range.
unknown_region region names no region. Omit region, or choose another one.
invalid_env A variable name breaks the rules or is reserved. Rename it. SVM_*, SI_*, proxy variables, HOME, USER and LOGNAME are refused.
env_too_large The variables number more than 128 or total more than 32 KiB. Remove variables, or move large values to files.
invalid_labels There are too many labels, or a key or value breaks the rules. Use at most 32 labels, each with a valid key and a value of 128 bytes or less.
reserved_label A label name starts with si.. Use another label name.
invalid_domain An egress domain is malformed. Use an exact host name, or *.domain for subdomains.
invalid_injection A secret rule is malformed. Give a domain, a secret, and exactly one of header or placeholder.
invalid_sender An inbox sender is not a full email address. Use full addresses, or leave allowed_senders null for any sender.
unknown_secret A rule names a secret id that no secret of the organization has. List the secrets of the project.
unknown_connection A rule names a connection that does not exist. List the connections of the project.
secret_not_found A rule names a secret of another project. Check the secret id and project.
profile_not_found The profile does not exist in the project. Check the profile name and project.
invalid_readiness The readiness block is malformed. Send port from 1 to 65535 and timeout_s from 1 to 120.
invalid_concurrency Concurrency is outside 1 to 1024, or above the plan maximum. Choose a lower value.
invalid_if_match The If-Match header is not a quoted generation. Send the generation in quotes, such as "7".

Scroll horizontally to see all columns.

Errors that any request can return are in the error catalog.

Operation Who can Key action
Create a VM Any member svm:write
List VMs Any member svm:read
Get a VM Any member svm:read
Choose the default VM Any member svm:read
Change settings Any member svm:write
Start a VM Any member svm:exec
Stop a VM Any member svm:exec
Pause a VM Any member svm:exec
Change the sleep policy Any member svm:write
Wait for a state Any member svm:read
Delete a VM Any member svm:delete

Scroll horizontally to see all columns.

  • The Standard plan allows 5 VMs and Pro allows 50. A create above the limit answers 409 svm_limit.
  • Shared RAM is 2048, 4096, 8192 or 16384 MiB. Dedicated RAM is 4096, 8192 or 16384 MiB.
  • Base CPU is 1 vCPU per 2048 MiB. A shared VM has a ceiling of twice its base; a dedicated VM’s ceiling is its base.
  • Every VM has a 50 GiB sparse disk. Empty space does not count as stored data, and a full disk answers 507.
  • Concurrency is 1 to 1024 and 64 by default, or the profile’s value. The node ceiling is 16 by default, and requests above the lower of the two wait in the queue.
  • A name has 1 to 32 lowercase letters, digits and hyphens and starts with a letter. It is unique in its project.
  • A TTL is 1 second to 2592000 seconds (30 days).
  • A timer is 30 to 86400 seconds.
  • A wait is 1 to 60 seconds and 30 by default.
  • A list returns 1 to 200 VMs, 100 by default.
  • The env block holds at most 128 variables and 32 KiB.
  • A VM has at most 32 labels, each value at most 128 bytes.
  • A readiness timeout is 1 to 120 seconds.

The full list is in Limits.