What is a microVM? Firecracker vs Kata Containers vs gVisor
A microVM is a small virtual machine that boots its own Linux kernel in a fraction of a second and uses a few megabytes of memory beyond what the guest needs. It gets there by dropping almost everything an ordinary VM emulates: no BIOS, no PCI bus, no USB, only a handful of virtual devices. You get the isolation of a VM at a cost close to a container's. Firecracker and Cloud Hypervisor are microVM monitors. Kata Containers is a container runtime that puts each container inside such a VM. gVisor is a different thing: a kernel written in Go that runs in user space, with no guest kernel at all.
The quickest way to see one is to start it. Lizard Sandboxes are Firecracker microVMs, each with its own kernel. With Lizard CLI installed, lizard sandbox create -t base -s small --timeout 600000 starts a 2 vCPU, 4 GB machine for ten minutes, and lizard sandbox exec <id> -- uname -r prints the kernel that machine booted.
What is a microVM?
A microVM is a virtual machine built on hardware virtualization (KVM on Linux) with a deliberately tiny device model, so it starts in milliseconds and many of them fit on one host. Each microVM has its own guest kernel, its own memory and its own virtual disk and network card. The program that creates it is called a virtual machine monitor, or VMM.
Firecracker, which AWS built to run Lambda and Fargate, is the best-known microVM monitor. Its FAQ describes the design: a VMM written in Rust that gives the guest a minimal device model, "excluding non-essential functionality". The FAQ lists six emulated devices: virtio-net, virtio-balloon, virtio-block, virtio-vsock, a serial console and a keyboard controller used only to stop the VM. (The project site still says five; it leaves out the balloon device.) QEMU, by comparison, can emulate whole PC generations.
Fewer devices means less code facing the guest, so there is less to attack and less to initialize at boot. QEMU later added its own microvm machine type, which its documentation calls "inspired by Firecracker": no PCI, no ACPI, up to eight virtio-mmio devices.
MicroVM vs container: what is the difference?
A container shares the host's kernel and a microVM brings its own.
A container is an ordinary Linux process with a restricted view of the system. Namespaces hide other processes, files and networks from it, and cgroups cap its CPU and memory. When code in the container makes a system call, the host kernel answers it, the same kernel that serves every other container on the machine. A kernel bug that the container can reach is a bug in everyone's kernel.
A microVM moves that boundary down a level. The workload's system calls go to a guest kernel inside the VM. The host sees the VM only through the CPU's virtualization extensions and the VMM's few devices. To get out, an attacker needs a guest kernel exploit and then a second bug in KVM or the VMM.
You can see the difference with one command. Run uname -r in a Docker container on Linux and you get the host's kernel version, because there is no other kernel. Run it in a microVM and you get the guest's. This is a Small sandbox on Lizard on 15 November 2026:
$ lizard sandbox create -t base -s small --timeout 600000
$ lizard sandbox exec island-mail-tule -- uname -r
6.1.177+
$ lizard sandbox rm island-mail-tuleThe second argument is the ID that create prints. A Small sandbox costs $0.0162 an hour, billed per second, so ten minutes is $0.0027 (pricing, checked 15 November 2026). The -s small flag matters: on a paid plan a create with no size gives you a Medium at twice the rate.
The kernel boundary has practical effects too:
| Container | MicroVM | |
|---|---|---|
| Kernel | The host's, the same one every other container uses | Its own guest kernel |
| What the host exposes to the workload | The Linux system call interface | KVM plus a few virtual devices |
| Start | A process start | A kernel boot (Firecracker's own target: 125 ms or less) |
| Needs | Any Linux host | A host with KVM: bare metal or nested virtualization |
| Docker inside, kernel modules, sysctls | Only with extra privileges | Yes, the kernel is the guest's own |
The last row is easy to forget. A microVM protects the host better, and it also gives the workload a more complete machine.
How do Firecracker, Cloud Hypervisor, Kata Containers and gVisor compare?
Firecracker and Cloud Hypervisor are VMMs, Kata Containers is a container runtime that drives a VMM, and gVisor replaces the VM with a user-space kernel. The numbers below are what each project publishes about itself, read on 15 November 2026. Nobody ran them on the same hardware, so they are design targets and no basis for ranking the projects.
| What it is | Isolation boundary | Guest kernel | Published start time | Published memory overhead | Who uses it | |
|---|---|---|---|---|---|---|
| Linux container (Docker default) | Namespaces and cgroups | Host kernel's system call interface | No | Process start | None fixed | Most container platforms |
| Firecracker | VMM in Rust on KVM | Hardware virtualization, 6 devices | Yes, Linux (and OSv) | 125 ms or less from API call to guest /sbin/init | 5 MiB or less for the VMM's threads | AWS Lambda and Fargate |
| Cloud Hypervisor | VMM in Rust on KVM or Microsoft Hypervisor | Hardware virtualization, virtio devices | Yes, Linux or Windows | "less than 100ms" to user space with direct kernel boot | No figure on the project site | Kata Containers; Northflank's main VMM |
| Kata Containers | OCI container runtime | Whatever its hypervisor provides | Yes, "a dedicated kernel" | No figure on the project site | No figure on the project site | Baidu, per the project site; Northflank |
| gVisor | Application kernel in Go, in user space | The gVisor kernel, which makes few host calls | No | No figure; docs say "fast startup" | No figure; docs say no "large fixed overheads" | Created by Google; Modal and Northflank offer it |
Two of those numbers come with fine print. Firecracker's specification measures the 125 ms from the InstanceStart API call to the guest's init process, "with the serial console disabled and a minimal kernel and root file system". The 5 MiB is the memory of Firecracker's own threads for a VM with 1 vCPU and 128 MiB of RAM, and the spec says some workloads push it higher. Both are enforced by tests on every pull request. Neither tells you how long a hosted product takes to hand you a shell, since that also includes scheduling, networking and the disk image.
Firecracker
Firecracker is the minimal option: Linux hosts with KVM, and Linux or OSv guests. It started from Chromium OS's VMM, crosvm. The project site says one host can create up to 150 microVMs a second. A companion program, the jailer, puts each Firecracker process behind ordinary Linux user-space barriers as "a second line of defense". Firecracker does not boot Windows, and Kata's hypervisor table marks it as having no GPU support.
Cloud Hypervisor
Cloud Hypervisor is the more general Rust VMM. Its README lists Windows guests (Windows Server 2025, Windows 11), CPU, memory and PCI hotplug, and migration between machines. It runs on KVM or the Microsoft Hypervisor and is governed under the Linux Foundation. Pick it over Firecracker when you need to resize a running VM or pass a device through.
Kata Containers
Kata Containers sits one level above a VMM. It is a container runtime: containerd or Kubernetes asks it for a container, and it boots a lightweight VM and starts the container inside. Its hypervisor list has QEMU, Cloud Hypervisor, Firecracker, Dragonball and StratoVirt. The project launched in December 2017 from Intel Clear Containers and Hyper.sh runV and sits under the OpenInfra Foundation. Use it when you already run Kubernetes and want VM isolation without changing your manifests.
gVisor
gVisor is not a VM, and its docs say so: "gVisor is also not a VM in the everyday sense of the term." It is an application kernel that implements the Linux system call interface in Go. The workload's system calls go to gVisor, and gVisor makes a much smaller set of calls to the real host kernel. It ships as an OCI runtime, runsc, so Docker and Kubernetes can use it like any other runtime.
gVisor can also use KVM. Its platform guide describes two modes: systrap, the default since mid-2023, which traps system calls with seccomp, and KVM, where gVisor acts "as both guest OS and VMM". Even then there is "no virtualized hardware layer" and no Linux guest kernel.
The price is compatibility and system call speed. The performance guide says that "application system calls must traverse additional layers of software" and that parts of the reimplemented kernel, the network stack for one, are less efficient than Linux's. The gain is that gVisor needs no virtualization support, so it runs inside ordinary cloud VMs.
When should you use a microVM instead of a container?
Use a microVM when you do not control or trust the code, and a container when you do. Containers are the right default for your own services: one team, reviewed code, a deploy pipeline. They start as fast as a process and need no special hardware.
The cases that call for a kernel per workload:
- Code written by an AI agent. An agent that runs shell commands will sooner or later run something nobody reviewed. See what an AI sandbox is for the wider picture.
- Code from your users. Online judges, notebooks, plugin systems and CI for outside pull requests all run untrusted code next to other customers' data.
- Many tenants on one host. If two customers' workloads share a machine, a kernel bug should not be enough to cross between them.
- Workloads that need a real machine. Running Docker inside the sandbox, loading a kernel module or changing a sysctl is routine in a VM and a privilege problem in a container.
gVisor fits in between: stronger than a plain container, no KVM required, and some software will hit a system call it does not implement. Kata Containers is how you get microVMs when your platform is already Kubernetes.
A microVM has two costs. You need hosts with KVM, and each VM carries a guest kernel's memory on top of the VMM's few megabytes.
Which sandbox providers use microVMs?
Eight of the eleven products below put every workload in a microVM, and six of those name Firecracker. Modal and Northflank offer gVisor next to VMs, and Daytona's default is a container. Each row quotes the provider's own documentation as it read on 15 November 2026.
| Provider | What its docs say | Source |
|---|---|---|
| Lizard Sandboxes | "Sandboxes run as Firecracker microVMs, each with its own kernel" | Lizard docs |
| E2B | "Firecracker microVMs that resume from a snapshot" | E2B Runtime README |
| Vercel Sandbox | "Each sandbox runs in a secure Firecracker microVM with its own filesystem and network" | Vercel docs |
| Cloudflare Containers | "Each container instance runs in a Firecracker microVM with its own kernel and network" | Cloudflare docs |
| Fly.io Machines | "Application code runs in Firecracker microVMs" | Fly.io architecture |
| Fly.io Sprites | "Hardware-level" isolation, a "dedicated microVM"; no hypervisor named | Sprites docs |
| AWS Lambda MicroVMs | "isolated, stateful compute sandboxes built on Firecracker" | Firecracker site |
| Docker Sandboxes | A microVM per agent session on a VMM Docker wrote itself, using Apple's Hypervisor.framework, Windows Hypervisor Platform or Linux KVM | Docker blog, 16 April 2026 |
| Modal Sandboxes | Two runtimes: gVisor, or a VM "with its own Linux kernel" | Modal docs |
| Northflank | "Kata Containers with Cloud Hypervisor as the primary VMM", plus Firecracker and gVisor for some workloads | Northflank blog, 15 April 2026 |
| Daytona | "Sandboxes run as Linux containers by default"; VM sandboxes with "a dedicated Linux VM or Windows operating system" on request; no hypervisor named | Daytona docs |
Docker is the odd one out because its microVMs run on your laptop, where Firecracker cannot: Firecracker supports only Linux hosts with KVM. Docker Sandboxes covers that product. For two Firecracker clouds side by side, see Lizard vs E2B.
Products on the same hypervisor still differ in what happens around the VM: how long it may live, whether a pause keeps memory, what a fork copies and how it is billed. On Lizard, a new account's trial runs one Small sandbox at a time and deletes each sandbox within an hour of its start, and longer runs and parallel forks need a paid plan (limits, checked 15 November 2026).
FAQ
Is gVisor a VM? No. gVisor is an application kernel written in Go that runs in user space and answers the workload's system calls itself. Its own docs say it is "not a VM in the everyday sense of the term". It can use KVM as a platform, but it never boots a Linux guest kernel.
Is Kata Containers a microVM? Not exactly. Kata Containers is a container runtime that starts each container inside a lightweight VM. The VM comes from the hypervisor you configure: QEMU, Cloud Hypervisor, Firecracker, Dragonball or StratoVirt. With Firecracker or Cloud Hypervisor underneath, a Kata container runs in a microVM.
Does Docker use microVMs? Docker Engine on Linux does not: its containers share the host's kernel. Docker Sandboxes, the product for coding agents, runs each agent session in its own microVM on a VMM Docker built for macOS, Windows and Linux, according to Docker's blog post of 16 April 2026.
Is QEMU a microVM? QEMU is a general VMM that can emulate full PCs. It has a machine type named microvm, which the QEMU docs describe as "inspired by Firecracker": no PCI or ACPI, and up to eight virtio-mmio devices.
How fast does a microVM boot? Firecracker's specification promises 125 ms or less from the start call to the guest's init process, on a minimal kernel and root file system. Cloud Hypervisor's site says less than 100 ms to user space with direct kernel boot. Hosted products add scheduling and network setup on top of that.
Can I run a microVM on my laptop? On Linux with KVM you can run Firecracker or Cloud Hypervisor directly. Firecracker does not support macOS or Windows hosts. Docker Sandboxes runs microVMs on all three systems, and a hosted sandbox avoids the question.
Build with AI. Ship with Lizard
You don't need a platform team to go live. Your whole cloud, one CLI command away.
- Services
- —
- Add-ons
- —
- Deployments
- —
- Sandbox starts
- —