# VMs

Create, size, start, stop, pause and delete VMs, and change their settings, sleep policy and labels.

Source: https://slashinfra.com/docs/platform/vms
Last modified: 2026-11-30T16:36:19.000Z

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.

## Create a VM

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.

### Dashboard

- Open the [dashboard](https://app.slashinfra.com/svms). 
- Select Create SVM. 
- Enter `worker` in Name. 
- Leave Capacity tier at Shared and RAM at 2 GiB · 1 CPU. 
- Leave Profile at No profile and Sleep at Auto. 
- Select Create SVM. The list shows `worker` as Stopped.

### CLI

```bash
si create --name worker
```

Output

```text
6f1c0f0e8a
```

### curl

```bash
curl -sS -X POST "https://api.slashinfra.com/svms" \
-H "Authorization: Bearer $SI_API_KEY" -H "Content-Type: application/json" \
-d '{"name":"worker"}'
```

Output

```text
{"id":"6f1c0f0e8a","project":"proj_6f1c0f0e8a","url":"https://6f1c0f0e8a.slashinfra.dev/bin/bash","region":"eu-gra","expires_at":null,"generation":1,"labels":{}}
```

### Python

```python
import os, requests

res = requests.post(
"https://api.slashinfra.com/svms",
headers={"Authorization": f"Bearer {os.environ['SI_API_KEY']}"},
json={"name": "worker"},
)
res.raise_for_status()
print(res.json()["id"])
```

Output

```text
6f1c0f0e8a
```

### TypeScript

```ts
const res = await fetch('https://api.slashinfra.com/svms', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.SI_API_KEY!}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({ name: 'worker' }),
})
if (!res.ok) throw new Error(await res.text())
const vm = (await res.json()) as { id: string }
console.log(vm.id)
```

Output

```text
6f1c0f0e8a
```

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

## Choose a size

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 |

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.

## List VMs

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.

### Dashboard

- Open the [dashboard](https://app.slashinfra.com/svms). The SVMs table lists each VM with its state and resources. 
- 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.

### CLI

```bash
si ls
```

Output

```text
id          name        tier    ram    cpu    cpu ceiling  state    created
6f1c0f0e8a  worker   shared  2 GiB  1 CPU  2 CPU        stopped  2026-11-29 12:48:01Z
...
```

### curl

```bash
curl -sS "https://api.slashinfra.com/svms?limit=100" \
-H "Authorization: Bearer $SI_API_KEY"
```

Output

```text
{"svms":[{"id":"6f1c0f0e8a","project":"proj_6f1c0f0e8a","name":"worker","state":"stopped","state_changed_ms":1795956481887,"generation":1,...}],"next_cursor":null}
```

### Python

```python
import os, requests

res = requests.get(
"https://api.slashinfra.com/svms",
headers={"Authorization": f"Bearer {os.environ['SI_API_KEY']}"},
params={"limit": 100},
)
res.raise_for_status()
for vm in res.json()["svms"]:
print(vm["id"], vm["name"], vm["state"])
```

Output

```text
6f1c0f0e8a worker stopped
```

### TypeScript

```ts
const res = await fetch('https://api.slashinfra.com/svms?limit=100', {
headers: { Authorization: `Bearer ${process.env.SI_API_KEY!}` },
})
if (!res.ok) throw new Error(await res.text())
const page = (await res.json()) as { svms: { id: string; name: string | null; state: string }[] }
for (const vm of page.svms) console.log(vm.id, vm.name, vm.state)
```

Output

```text
6f1c0f0e8a worker stopped
```

## Get a VM

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.

### Dashboard

- Open the [dashboard](https://app.slashinfra.com/svms). 
- Select `worker` in the list. The header shows Terminal, Desktop, the Delete button and More actions. 
- Read the state in the header and the resources, region and ID under Overview.

### curl

```bash
curl -sS "https://api.slashinfra.com/svms/worker" \
-H "Authorization: Bearer $SI_API_KEY"
```

Output

```text
{"id":"6f1c0f0e8a","project":"proj_6f1c0f0e8a","name":"worker","state":"stopped","state_changed_ms":1795956481887,"generation":1,"labels":{},"image":"default","url":"https://6f1c0f0e8a.slashinfra.dev/bin/bash","region":"eu-gra",...}
```

### Python

```python
import os, requests

res = requests.get(
"https://api.slashinfra.com/svms/worker",
headers={"Authorization": f"Bearer {os.environ['SI_API_KEY']}"},
)
res.raise_for_status()
vm = res.json()
print(vm["id"], vm["name"], vm["state"], vm["generation"])
```

Output

```text
6f1c0f0e8a worker stopped 1
```

### TypeScript

```ts
const res = await fetch('https://api.slashinfra.com/svms/worker', {
headers: { Authorization: `Bearer ${process.env.SI_API_KEY!}` },
})
if (!res.ok) throw new Error(await res.text())
const vm = (await res.json()) as { id: string; name: string | null; state: string; generation: number }
console.log(vm.id, vm.name, vm.state, vm.generation)
```

Output

```text
6f1c0f0e8a worker stopped 1
```

## Choose the default VM

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.

### CLI

```bash
si use worker
```

Output

```text
default SVM is 6f1c0f0e8a
```

## Change the settings

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.

### Dashboard

- Open the [dashboard](https://app.slashinfra.com/svms). 
- Select `worker` in the list. 
- Select the Name field on Overview. 
- Enter `builder`. 
- Select Save.

Environment variables, Outbound access and Secrets are on Security.

### curl

```bash
curl -sS -X PATCH "https://api.slashinfra.com/svms/worker" \
-H "Authorization: Bearer $SI_API_KEY" -H "Content-Type: application/json" \
-d '{"name":"builder"}'
```

Output

```text
{"id":"6f1c0f0e8a","project":"proj_6f1c0f0e8a","name":"builder","state":"stopped","state_changed_ms":1795956481887,"generation":2,"labels":{},"image":"default","url":"https://6f1c0f0e8a.slashinfra.dev/bin/bash","region":"eu-gra",...}
```

### Python

```python
import os, requests

res = requests.patch(
"https://api.slashinfra.com/svms/worker",
headers={"Authorization": f"Bearer {os.environ['SI_API_KEY']}"},
json={"name": "builder"},
)
res.raise_for_status()
print(res.json()["name"])
```

Output

```text
builder
```

### TypeScript

```ts
const res = await fetch('https://api.slashinfra.com/svms/worker', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.SI_API_KEY!}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({ name: 'builder' }),
})
if (!res.ok) throw new Error(await res.text())
console.log(((await res.json()) as { name: string }).name)
```

Output

```text
builder
```

## Start a VM

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.

### Dashboard

- Open the [dashboard](https://app.slashinfra.com/svms). 
- Select `builder` in the list. 
- Select More actions, then Start.

### CLI

```bash
si svm start builder
```

Output

```text
running
```

### curl

```bash
curl -sS -X POST "https://api.slashinfra.com/svms/builder/start" \
-H "Authorization: Bearer $SI_API_KEY"
```

Output

```text
{"id":"6f1c0f0e8a","state":"running","generation":3}
```

### Python

```python
import os, requests

res = requests.post(
"https://api.slashinfra.com/svms/builder/start",
headers={"Authorization": f"Bearer {os.environ['SI_API_KEY']}"},
)
res.raise_for_status()
print(res.json()["state"])
```

Output

```text
running
```

### TypeScript

```ts
const res = await fetch('https://api.slashinfra.com/svms/builder/start', {
method: 'POST',
headers: { Authorization: `Bearer ${process.env.SI_API_KEY!}` },
})
if (!res.ok) throw new Error(await res.text())
console.log(((await res.json()) as { state: string }).state)
```

Output

```text
running
```

## Stop a VM

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

### Dashboard

- Open the [dashboard](https://app.slashinfra.com/svms). 
- Select `builder` in the list. 
- Select More actions, then Stop.

### CLI

```bash
si svm stop builder
```

Output

```text
stopped
```

### curl

```bash
curl -sS -X POST "https://api.slashinfra.com/svms/builder/stop" \
-H "Authorization: Bearer $SI_API_KEY"
```

Output

```text
{"id":"6f1c0f0e8a","state":"stopped","generation":4}
```

### Python

```python
import os, requests

res = requests.post(
"https://api.slashinfra.com/svms/builder/stop",
headers={"Authorization": f"Bearer {os.environ['SI_API_KEY']}"},
)
res.raise_for_status()
print(res.json()["state"])
```

Output

```text
stopped
```

### TypeScript

```ts
const res = await fetch('https://api.slashinfra.com/svms/builder/stop', {
method: 'POST',
headers: { Authorization: `Bearer ${process.env.SI_API_KEY!}` },
})
if (!res.ok) throw new Error(await res.text())
console.log(((await res.json()) as { state: string }).state)
```

Output

```text
stopped
```

## Pause a VM

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.

### Dashboard

- Open the [dashboard](https://app.slashinfra.com/svms). 
- Select `builder` in the list. 
- Select More actions, then Start. 
- Select More actions, then Sleep.

### CLI

```bash
si svm start builder
si svm pause builder
```

Output

```text
running
stopped
```

### curl

```bash
curl -sS -X POST "https://api.slashinfra.com/svms/builder/start" \
-H "Authorization: Bearer $SI_API_KEY"
curl -sS -X POST "https://api.slashinfra.com/svms/builder/pause" \
-H "Authorization: Bearer $SI_API_KEY"
```

Output

```text
{"id":"6f1c0f0e8a","state":"running","generation":5}
{"id":"6f1c0f0e8a","state":"stopped","generation":6}
```

### Python

```python
import os, requests

for action in ("start", "pause"):
res = requests.post(
f"https://api.slashinfra.com/svms/builder/{action}",
headers={"Authorization": f"Bearer {os.environ['SI_API_KEY']}"},
)
res.raise_for_status()
print(res.json()["state"])
```

Output

```text
running
stopped
```

### TypeScript

```ts
for (const action of ['start', 'pause']) {
const res = await fetch(`https://api.slashinfra.com/svms/builder/${action}`, {
method: 'POST',
headers: { Authorization: `Bearer ${process.env.SI_API_KEY!}` },
})
if (!res.ok) throw new Error(await res.text())
console.log(((await res.json()) as { state: string }).state)
}
```

Output

```text
running
stopped
```

## Change the sleep policy

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.

### Dashboard

- Open the [dashboard](https://app.slashinfra.com/svms). 
- Select `builder` in the list. 
- Select Sleep mode on Overview. 
- Choose Timer and select Save. Idle seconds shows `1800`.

### CLI

```bash
si svm sleep builder timer 30m
```

Output

```text
timer 30m
```

### curl

```bash
curl -sS -X PUT "https://api.slashinfra.com/svms/builder/sleep" \
-H "Authorization: Bearer $SI_API_KEY" -H "Content-Type: application/json" \
-d '{"mode":"timer","after_s":1800}'
```

Output

```text
{"mode":"timer","after_s":1800}
```

### Python

```python
import os, requests

res = requests.put(
"https://api.slashinfra.com/svms/builder/sleep",
headers={"Authorization": f"Bearer {os.environ['SI_API_KEY']}"},
json={"mode": "timer", "after_s": 1800},
)
res.raise_for_status()
policy = res.json()
print(policy["mode"], policy["after_s"])
```

Output

```text
timer 1800
```

### TypeScript

```ts
const res = await fetch('https://api.slashinfra.com/svms/builder/sleep', {
method: 'PUT',
headers: {
Authorization: `Bearer ${process.env.SI_API_KEY!}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({ mode: 'timer', after_s: 1800 }),
})
if (!res.ok) throw new Error(await res.text())
const policy = (await res.json()) as { mode: string; after_s: number }
console.log(policy.mode, policy.after_s)
```

Output

```text
timer 1800
```

[Sleep and wake](https://slashinfra.com/docs/how/sleep-and-wake) explains what each mode keeps.

## Wait for a state

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`.

### CLI

```bash
si svm wait builder --state stopped --generation 7
```

Output

```text
stopped
```

### curl

```bash
curl -sS "https://api.slashinfra.com/svms/builder/wait?state=stopped&generation=7&timeout_s=30" \
-H "Authorization: Bearer $SI_API_KEY"
```

Output

```text
{"id":"6f1c0f0e8a","project":"proj_6f1c0f0e8a","name":"builder","state":"stopped","state_changed_ms":1795956484031,"generation":7,...}
```

### Python

```python
import os, requests

res = requests.get(
"https://api.slashinfra.com/svms/builder/wait",
headers={"Authorization": f"Bearer {os.environ['SI_API_KEY']}"},
params={"state": "stopped", "generation": 7, "timeout_s": 30},
)
res.raise_for_status()
print(res.json()["state"])
```

Output

```text
stopped
```

### TypeScript

```ts
const url = new URL('https://api.slashinfra.com/svms/builder/wait')
url.searchParams.set('state', 'stopped')
url.searchParams.set('generation', '7')
url.searchParams.set('timeout_s', '30')
const res = await fetch(url, {
headers: { Authorization: `Bearer ${process.env.SI_API_KEY!}` },
})
if (!res.ok) throw new Error(await res.text())
console.log(((await res.json()) as { state: string }).state)
```

Output

```text
stopped
```

## Delete a VM

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.

### Dashboard

- Open the [dashboard](https://app.slashinfra.com/svms). 
- Select `builder` in the list. 
- Select the Delete button. 
- Enter `builder` in Type builder to confirm. 
- Select Delete SVM.

### CLI

```bash
si rm
```

Output

```text
deleted 6f1c0f0e8a
```

### curl

```bash
curl -sS -i -X DELETE "https://api.slashinfra.com/svms/6f1c0f0e8a" \
-H "Authorization: Bearer $SI_API_KEY"
```

Output

```text
HTTP/2 204
...
```

### Python

```python
import os, requests

res = requests.delete(
"https://api.slashinfra.com/svms/6f1c0f0e8a",
headers={"Authorization": f"Bearer {os.environ['SI_API_KEY']}"},
)
res.raise_for_status()
print(res.status_code)
```

Output

```text
204
```

### TypeScript

```ts
const res = await fetch('https://api.slashinfra.com/svms/6f1c0f0e8a', {
method: 'DELETE',
headers: { Authorization: `Bearer ${process.env.SI_API_KEY!}` },
})
if (!res.ok) throw new Error(await res.text())
console.log(res.status)
```

Output

```text
204
```

## Options

| 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](https://slashinfra.com/docs/platform/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](https://slashinfra.com/docs/platform/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](https://slashinfra.com/docs/platform/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](https://slashinfra.com/docs/platform/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](https://slashinfra.com/docs/platform/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](https://slashinfra.com/docs/platform/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`. |

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.

## States

| 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. |

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](https://slashinfra.com/docs/how/sleep-and-wake) explains what a sleep in memory keeps that a sleep on disk does not.

## Errors

| Code | When | Fix |
| --- | --- | --- |   
| [`invalid_name`](https://slashinfra.com/docs/reference/errors#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`](https://slashinfra.com/docs/reference/errors#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`](https://slashinfra.com/docs/reference/errors#name_taken) | The name is already used in the project. | Choose another name, or send `if_absent` with a name. | 
| [`svm_limit`](https://slashinfra.com/docs/reference/errors#svm_limit) | Create would exceed the plan’s VM count. | Delete a VM, or ask about your plan. | 
| [`invalid_limit`](https://slashinfra.com/docs/reference/errors#invalid_limit) | `limit` is outside 1 to 200. | Send a whole number from 1 to 200. | 
| [`invalid_cursor`](https://slashinfra.com/docs/reference/errors#invalid_cursor) | `cursor` does not come from this list. | Read the first page again. | 
| [`invalid_memory`](https://slashinfra.com/docs/reference/errors#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`](https://slashinfra.com/docs/reference/errors#invalid_tier) | `tier` is not `shared` or `dedicated`. | Send one of the two tiers. | 
| [`invalid_size`](https://slashinfra.com/docs/reference/errors#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`](https://slashinfra.com/docs/reference/errors#size_unavailable) | No node offers that size. | Choose a smaller size, or retry. | 
| [`no_capacity`](https://slashinfra.com/docs/reference/errors#no_capacity) | No node has room for the create or wake. | Wait for `Retry-After` and retry. | 
| [`dedicated_capacity`](https://slashinfra.com/docs/reference/errors#dedicated_capacity) | No dedicated core is free. | Retry later, or create a shared VM. | 
| [`invalid_sleep`](https://slashinfra.com/docs/reference/errors#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`](https://slashinfra.com/docs/reference/errors#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`](https://slashinfra.com/docs/reference/errors#generation_mismatch) | `If-Match` names a generation that is not current. | Read the VM and send its current generation. | 
| [`generation_moved`](https://slashinfra.com/docs/reference/errors#generation_moved) | The VM changed during a wait or a lifecycle action. | Read the VM and retry. | 
| [`wait_timeout`](https://slashinfra.com/docs/reference/errors#wait_timeout) | The state did not arrive within `timeout_s`. | Wait again, or raise `timeout_s` to 60. | 
| [`svm_not_found`](https://slashinfra.com/docs/reference/errors#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`](https://slashinfra.com/docs/reference/errors#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`](https://slashinfra.com/docs/reference/errors#not_found) | Delete names an id that no longer exists. | Use the id from the create or the list. | 
| [`deleting`](https://slashinfra.com/docs/reference/errors#deleting) | The VM is already being deleted. | Wait for it to disappear. | 
| [`conflict`](https://slashinfra.com/docs/reference/errors#conflict) | Another change happened at the same time. | Read the VM and retry. | 
| [`svm_unreachable`](https://slashinfra.com/docs/reference/errors#svm_unreachable) | The node did not answer the lifecycle action. | Wait for `Retry-After` and retry. | 
| [`invalid_snapshot`](https://slashinfra.com/docs/reference/errors#invalid_snapshot) | Both `snapshot` and `fork_of` are set, or the reference is malformed. | Send one of them. | 
| [`snapshot_not_found`](https://slashinfra.com/docs/reference/errors#snapshot_not_found) | The snapshot does not exist in the project. | Check the snapshot name and project. | 
| [`snapshot_failed`](https://slashinfra.com/docs/reference/errors#snapshot_failed) | The snapshot failed, so the create cannot start from it. | Create a new snapshot. | 
| [`invalid_ttl`](https://slashinfra.com/docs/reference/errors#invalid_ttl) | The lifetime is outside 1 to 2592000 seconds. | Send a TTL in that range. | 
| [`unknown_region`](https://slashinfra.com/docs/reference/errors#unknown_region) | `region` names no region. | Omit `region`, or choose another one. | 
| [`invalid_env`](https://slashinfra.com/docs/reference/errors#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`](https://slashinfra.com/docs/reference/errors#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`](https://slashinfra.com/docs/reference/errors#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`](https://slashinfra.com/docs/reference/errors#reserved_label) | A label name starts with `si.`. | Use another label name. | 
| [`invalid_domain`](https://slashinfra.com/docs/reference/errors#invalid_domain) | An egress domain is malformed. | Use an exact host name, or `*.domain` for subdomains. | 
| [`invalid_injection`](https://slashinfra.com/docs/reference/errors#invalid_injection) | A secret rule is malformed. | Give a domain, a secret, and exactly one of `header` or `placeholder`. | 
| [`invalid_sender`](https://slashinfra.com/docs/reference/errors#invalid_sender) | An inbox sender is not a full email address. | Use full addresses, or leave `allowed_senders` null for any sender. | 
| [`unknown_secret`](https://slashinfra.com/docs/reference/errors#unknown_secret) | A rule names a secret id that no secret of the organization has. | List the secrets of the project. | 
| [`unknown_connection`](https://slashinfra.com/docs/reference/errors#unknown_connection) | A rule names a connection that does not exist. | List the connections of the project. | 
| [`secret_not_found`](https://slashinfra.com/docs/reference/errors#secret_not_found) | A rule names a secret of another project. | Check the secret id and project. | 
| [`profile_not_found`](https://slashinfra.com/docs/reference/errors#profile_not_found) | The profile does not exist in the project. | Check the profile name and project. | 
| [`invalid_readiness`](https://slashinfra.com/docs/reference/errors#invalid_readiness) | The readiness block is malformed. | Send `port` from 1 to 65535 and `timeout_s` from 1 to 120. | 
| [`invalid_concurrency`](https://slashinfra.com/docs/reference/errors#invalid_concurrency) | Concurrency is outside 1 to 1024, or above the plan maximum. | Choose a lower value. | 
| [`invalid_if_match`](https://slashinfra.com/docs/reference/errors#invalid_if_match) | The `If-Match` header is not a quoted generation. | Send the generation in quotes, such as `"7"`. |

Errors that any request can return are in the [error catalog](https://slashinfra.com/docs/reference/errors).

## Permissions

| 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` |

## Limits

- 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](https://slashinfra.com/docs/reference/limits).

## Next

- [Who can reach your VM](https://slashinfra.com/docs/how/access): the roles, keys and project scope that reach a VM. 
- [Snapshots](https://slashinfra.com/docs/platform/snapshots): start a new VM from a disk, or fork a running one. 
- [Control API VMs](https://slashinfra.com/docs/api-reference/control/svms): every operation, field and status code.
