Full VMs
A complete Linux virtual machine (Cloud Hypervisor) with systemd and cloud-init, created from every SDK and the CLI.
A Full VM is a sandbox that runs a stock Linux distribution (Debian 13) as a complete virtual machine on Cloud Hypervisor: its own kernel, systemd as PID 1, cloud-init, and the usual lifecycle (stop, start, reboot, pause, resume, snapshot, fork). Use it when your workload needs a real init system, services, or kernel features that the default microVM (enter-agent-linux) does not give you.
Create a Full VM#
Ask for the general-linux-vm runtime. Without a template, the server uses the project's default Full VM template.
import { Sandal } from "@sandal-dev/sdk";
const sandal = Sandal.fromEnv();
const vm = await sandal.createSandbox({ runtime: "general-linux-vm", name: "my-vm", ttlSeconds: 3600 });
try {
const r = await vm.exec(["sh", "-c", "systemctl is-system-running; . /etc/os-release; echo $PRETTY_NAME"]);
console.log(r.stdout); // running / Debian GNU/Linux 13 (trixie)
await vm.writeText("/workspace/hello.txt", "hello from a Full VM");
console.log(await vm.readText("/workspace/hello.txt"));
} finally {
await vm.delete();
}The TypeScript runtime option also accepts a templateAlias of your own Full VM template, or checks that a pinned template really is a Full VM. Combining runtime: "general-linux-vm" with kind: "container" is refused before any request is sent.
What you get#
- Debian 13 with
systemdrunning andcloud-initfinished when the sandbox reportsrunning. - A non-root default user (uid 2000).
sudois not configured in the default template, and exec as root (sandal exec --root,user: "root"in the SDKs) is refused there with422 capability_unavailable(CLI exit code 7; the message namestenant-root-v1). No root-capable template is generally offered yet; a root + FUSE sandbox template is in preview. execcommands run withoutHOMEset and without/proc, sopsand~paths do not work there; use absolute paths (for example/workspace/...) andsystemctl.- The files API works inside
/workspace(also/home/enter/workspace); other paths answer400. Useexecfor the rest of the filesystem. - Sizes
xstoxlas for every sandbox. A running Full VM can grow in place (sandboxes.resize, CPU, memory and root disk; grow only).
Lifecycle and speed#
Measured on production at size s (November 2026):
| Action | Time |
|---|---|
| Create to running (SDK or CLI) | 15-19 s (about 29 s on a host that has not booted the template yet) |
| First exec / warm exec | about 0.5 s / 0.3 s |
| Stop / start (disk kept) | 1-3 s / about 6 s |
| Reboot (new boot id) | about 6 s |
| Pause / resume (memory kept, same VM) | about 0.7-1 s / 1-2.5 s |
| Snapshot / fork | about 9 s / 15-25 s |
Limits#
- No persistent volumes and no desktop on a Full VM yet; use the default VM runtime for those (Volumes, Computer use).
sandal capabilities(orsandboxSystem.capabilities) listsgeneral-linux-vmamong the runtime profiles where Full VMs are available. A project without it getscapability_unavailable(featuregeneral-linux-vm); nothing is created or billed.