Architecture · October 29, 2026 · 7 min read
Why agents need microVMs, not containers
Agents don't just run a snippet. They install packages, run browsers and keep state for hours. That needs a real computer.
By Kalworks engineering
The first thing every team building agents tries is Docker. It's familiar, it's on every laptop and it works for the demo. Then three things happen, usually in this order.
1. Agents need a whole operating system
A coding agent doesn't run one function. It runs apt-get install, starts a database, opens a browser, compiles a project and runs a test suite that forks a hundred processes. Some of that needs privileges you'd never hand a container: mounting filesystems, loading modules, running its own Docker.
In a microVM, the agent gets root on its own kernel. It can do all of that without touching the host, because the host isn't the thing it's root on.
2. Containers start fast. Environments don't.
A container starts in milliseconds. A container with a 3 GiB image, a warm package cache and a running service starts in 10 to 20 seconds, every time, because all of that state gets rebuilt from layers.
MicroVMs let us snapshot the whole running machine: memory, processes, open files. Restoring a snapshot means the agent starts at the moment the environment was ready, with the database already up and the dependencies already loaded. That's how the first machines in a fleet are ready in under a second.
3. Shared kernels and untrusted code don't mix
Agent-written code is untrusted code, even when it's your agent. It will do things nobody reviewed. With containers, a single kernel vulnerability reachable from inside is reachable from every tenant on the host. With microVMs, the attack surface between guest and host is a few emulated devices, inside a jailed, unprivileged process.
What we gave up
MicroVMs aren't free:
- Density. Each machine has its own kernel and a memory reservation. We fit fewer per host than you'd fit containers.
- GPUs. Passing GPUs into microVMs is still hard. GPU machines are on our roadmap, not in this release.
- Startup without snapshots. A true cold boot from an image you've never used is 41 s p50 for us, mostly image transfer. Snapshots and warm pools hide this for repeat runs; they can't hide it for the very first one.
When containers are fine
If you're running your own trusted code, in your own cloud account, for one tenant, containers are a good choice and you probably don't need us. The case for microVMs is the case where the code is unreviewed, the tasks are many and short, and a wrong result costs more than a slower start.
That's the case agents create.