Chasm compared with other sandboxing tools
In short: Chasm gives each agent a persistent, full Linux VM with its own kernel on one host you control. Containers (Docker, LXC, Incus containers) start faster and use less memory but share the host kernel. gVisor narrows the host kernel interface a container sees. Firecracker, QEMU with libvirt and Incus are the building blocks you would assemble yourself; Chasm is built on Incus, QEMU and KVM. Fly.io Sprites and Fly Machines run hosted VMs with fast starts, public URLs and idle sleep that Chasm does not have.
Both Chasm and Docker can cap CPU and memory and discard a workspace. Choose Chasm when you want unfamiliar code to run behind a VM boundary: each sandbox boots its own Linux kernel. An ordinary Docker Engine container on Linux shares the kernel of its container host. Chasm uses Incus to provide the VM and adds a sealed starting image, memory admission checks and a private workspace with a defined cleanup policy.
How Chasm is built
Chasm is not an alternative to KVM or QEMU; it runs on them. KVM is the hypervisor in the Linux kernel. QEMU is the virtual machine monitor that emulates each VM’s hardware on top of KVM. Incus creates and manages those QEMU VMs, and uses LXC for its containers. Chasm sits on Incus and adds the sealed template, memory admission checks, the private workspace and its cleanup, and a constrained operator CLI. The useful comparison is with managing QEMU VMs yourself, for example through libvirt.
Which isolation model fits the workload?
| Tool | What runs the workload? | When to choose it | Security decision you still own |
|---|---|---|---|
| Chasm | A full Incus VM per sandbox, with a guest kernel and a private root disk and workspace. | Run unfamiliar code that needs a full Linux system, with a separate guest kernel for each workload. Chasm provisions the VM, refuses a start when the memory budgets of running sandboxes plus the new one exceed host memory minus a reserve, and removes its private workspace on delete. | All guests can write to the site’s shared volume and reach peers on the stock bridge. Use the site within one operator trust domain. Architecture |
| Incus | System containers sharing the host kernel, or VMs with their own kernels. | Manage a mix of long-lived or disposable Linux systems and configure their profiles, networks and storage directly. | Select the instance type, device access, network and privileges for each workload. Incus instance types |
| QEMU with libvirt | A full VM per guest on KVM, defined and managed with libvirt tools such as virsh or virt-manager. |
Run any guest operating system or hardware configuration and manage each VM by hand. | Choose and maintain the guest images, networks, storage, shared folders and cleanup for every VM. libvirt · QEMU |
| LXC | System containers that run a full Linux userspace but share the host kernel. Incus uses LXC for its containers. | Run long-lived Linux systems with less memory and faster startup than a VM, when sharing the host kernel is acceptable. | Choose unprivileged or privileged containers, ID mapping, nesting and device access. LXC introduction |
| Docker Engine on Linux | Ordinary Linux containers isolate processes with namespaces and account for resources with cgroups. They share the host kernel. | Package an application as an image and run it with the Docker toolchain. | Review daemon access, capabilities, privileged mode and host mounts. Access to the Docker daemon is a privileged boundary. Docker Engine security |
| Firecracker | A KVM microVM with a guest kernel and a deliberately small virtual device model. | Build a service that launches large numbers of lightweight VMs and supplies its own orchestration. | The service operator supplies guest images, networking, storage and the host controls around the VMM. Firecracker architecture |
| Vagrant | A provider creates the environment. A VM provider and the Docker provider use different isolation mechanisms. | Describe a reproducible development environment and choose a provider for each host. | Review the provider, synced folders, forwarded ports and provisioners in the project configuration. Vagrant providers |
| gVisor | An application kernel in userspace implements the Linux interfaces used by a sandboxed container. | Keep a container workflow while reducing the host system-call interface exposed to applications. | Check application compatibility and measure filesystem, networking and system-call-heavy paths for your workload. gVisor architecture · Performance guide |
| Fly.io Sprites | A hosted, hardware-isolated microVM per Sprite, with a persistent ext4 disk that is backed up to object storage when idle. | You want a persistent agent machine without running hardware: it sleeps when idle, wakes on a request to its HTTPS URL, and takes quick filesystem checkpoints. | Fly operates the hosts and storage; you decide what code and credentials to place in the Sprite and who can reach its URL. |
| Fly Machines | Hosted VMs started from a container image through a REST API, placed in the regions you choose. | Deploy and scale applications that start in well under a second, with Fly’s networking and optional volumes. | Fly operates the platform; you own the image, its secrets, and the exposure of each service. |
Chasm and Fly.io
Chasm overlaps with Sprites: both give an agent a persistent Linux VM that keeps its disk between sessions. Chasm does not aim to replace Fly.io. Fly Machines is an application platform with fast launches from container images, a request-driven proxy, and placement across regions; Chasm runs named machines on one host you control and has none of those.
Choose Chasm when the machine and its data must stay on your own hardware, when you want to inspect or change every layer down to Incus and QEMU, or when you don’t want a hosted control plane. Choose Sprites or Fly Machines when you’d rather not run hosts, or need idle sleep with wake-on-request, public HTTPS URLs, quick checkpoints, or multiple regions. Chasm offers none of these today.
Fly.io details are taken from its public documentation as of November 2026.
How should I compare performance?
Measure the operation your users wait for. For an interactive sandbox, time from the start request until a command can run in the guest. Record template or image preparation separately, along with guest size, host hardware, cache state and concurrency. For a storage-heavy workload, also measure reads and writes on the actual workspace mount.
Chasm 0.1.0 lifecycle timings
A single Debian 13 qualification site ran Incus 7.0.2 in a nested KVM fixture on an Intel Xeon E5-2680 v4. The site VM had 4 vCPUs and 8 GiB RAM. One sandbox used 1 vCPU and 2 GiB RAM. The site and sealed template were already provisioned. A monotonic clock measured each complete operator CLI invocation, including the local user switch.
| Operation | Wall time in execution order | What completion means |
|---|---|---|
| Create | 86.6 s (one observation) | Create from the local sealed template and return a stopped sandbox with workspace. |
| Start | 28.9, 26.8, 30.9 s (median 28.9 s) | Start the same stopped guest and return agent_ready=true. |
| Stop | 4.1, 61.9, 62.0 s (median 61.9 s) | Return from the stop command. Two of three stops took about a minute; the timing trace does not identify the cause. |
| Delete | 0.53 s (one observation) | Return from deletion of the stopped VM and its workspace. |
The sequence was one create, three start/stop cycles, then one delete. Host and guest caches were left in their natural state. These observations describe one serial workload under nested virtualization. Bare-metal latency, concurrent sandbox density, throughput and tail latency remain unmeasured.
Firecracker reports microVM startup below 125 ms and VMM memory overhead below 5 MiB in its reference configuration. The memory figure excludes the workload’s guest RAM. Chasm’s configured guest memory budget and its time to report a ready guest agent measure different things. The release qualification did not run a common cross-product benchmark. Firecracker figures
What security testing has Chasm undergone?
Chasm 0.1.0 underwent maintainer-run defensive qualification and AI-assisted code review. The release evidence identifies no independent third-party penetration test. The checks below describe what was actually exercised for release commit 9aec85297794cb0bb8a44d01c694a6a847e17c01.
| Area | What was checked | Scope of the evidence |
|---|---|---|
| Routed network policy | An isolated Linux network fixture established reachability, applied the release rules, then checked that the private IPv4 target and the IPv6 input and forward targets stopped answering. A permitted IPv4 target still answered. | Covers the tested routes and hooks. Guests on the stock bridge can communicate directly. |
| Privileged lifecycle operations | Review found a workspace ownership check that could be skipped and a forced deletion after a stopped-state check. Both were corrected. Regression tests cover ownership refusal and a VM that restarts before deletion. | Tests use controlled Incus responses for failure cases. A disposable Debian 13 site also exercised normal create, start, stop and delete against real Incus. |
| Interrupted operations | Tests cover firewall cleanup across backend changes and failed template publication. On a disposable Incus 7 site, the qualification fixture moved a sealed VM back to its pre-publication builder name and exercised explicit recovery. | The live test verified recovery of that builder and its sealed snapshot. It also exposed a profile-format assumption that the original mocks missed. |
| Guest hardening | The optional Lynis audit ran inside a disposable guest and returned a hardening index of 63. The collector checked instance and boot identity before publishing the report. | This is a configuration score for that guest and package state. It does not measure hypervisor escape resistance or host isolation. Run the guest audit |
| Release artifact | All 22 local CI checks and the additional Go race checks passed. Gitleaks scanned the selected archive and reachable release history with zero findings. | These checks cover tested behavior, observed races and recognizable secret patterns. The operator and host administrators remain trusted. |
To inspect what the regression cases assert, start with the deletion tests, firewall tests, and builder recovery tests.
See the security policy for the threat model and vulnerability reporting process.