TL;DR
A microVM is a virtual machine that keeps its own guest kernel but drops almost all emulated hardware, so it starts faster and uses less memory than a full VM. Firecracker, built at AWS for Lambda and Fargate, targets 125 ms or less from its start call to the guest's init process. This guide explains what a microVM removes, how its layers stack, which four open-source monitors build them and where each one runs, and when the trade-offs are worth it.
Virtual machines have isolated workloads on shared servers for more than two decades. A classic VM emulates a whole PC, with firmware, a full set of devices and a boot process designed for physical hardware, so any operating system can run on it unchanged. That flexibility costs seconds at startup and memory for every guest.
Those costs made VMs a poor fit for anything that lives for less than a minute, such as a serverless function or a script an AI agent wants to run. A microVM keeps the part of a VM that does the isolating and throws away most of the rest. By the end of this guide, you will know what a microVM is, what it leaves out compared with a full VM, which projects build them, and how to judge whether one fits your workload.
What a MicroVM Is When You Strip Away the Jargon
A microVM is a virtual machine built for a single workload. It has its own Linux kernel and its own memory, enforced by the processor's hardware virtualization, but it exposes only the few devices that workload needs, usually a disk, a network interface and a console.
Three terms come up in every microVM discussion:
- Hypervisor: the part of the operating system that uses the processor's virtualization features to run guests, such as KVM on Linux.
- Virtual machine monitor (VMM): the user-space program that sets up a guest and emulates its devices. Firecracker is a VMM.
- Guest kernel: the kernel that runs inside the VM, separate from the host's kernel.
The word "micro" refers to the device model and boot path rather than the workload. The workload inside a microVM can still get several vCPUs and gigabytes of memory.
What a Full Virtual Machine Carries That a MicroVM Leaves Out
A full VM emulates a whole PC so that any operating system can boot on it unchanged. A microVM assumes a modern Linux guest that already knows how to talk to paravirtual devices, so it can skip most of that emulation and boot the kernel directly.
- Firmware: a full VM runs BIOS or UEFI first, while a microVM often skips it and loads the kernel directly.
- Device buses: a full VM usually has PCI, often with ACPI, while a microVM frequently has none, or a minimal set.
- Emulated devices: a full VM offers graphics, USB, sound and legacy controllers, while a microVM offers a few virtio devices for disk, network and console.
- Guest operating systems: a full VM runs Windows, Linux, BSD and others, while a microVM usually runs Linux.
QEMU's microvm machine type is a clear example: it has no PCI and no ACPI, supports up to eight virtio-mmio devices, and is built for short-lived guests. Fewer devices also leaves less code an attacker can reach from inside the guest.
Suppose we have a team adding a code-interpreter feature to an analytics product, where each user question can run a short Python script. Booting a full VM per question would take too long, while per-question microVMs start close enough to a process to be usable. To see why that is safe, it helps to look at the layers underneath.
How the Layers Stack From the Processor Up to Your Code
A microVM is a stack of five layers, and each one has a job. Reading the stack from the bottom up shows where the isolation comes from and which pieces are software that could contain bugs.
Only the bottom layer is silicon. The hypervisor and the VMM are software, which is why microVM projects work so hard to keep the VMM small: every emulated device left out is code an attacker inside the guest can no longer reach.
For the code-interpreter example, a script that breaks out of its process lands in its own guest kernel. To touch the host it would also need a flaw in the VMM or the hypervisor, and which VMM you pick decides where you can run all of this.
Four Open-Source MicroVM Monitors Compared by Host Support
libkrun, Firecracker, Cloud Hypervisor and QEMU's microvm machine type are the four open-source projects most microVM products build on. They differ less in isolation than in where they run, since a monitor tied to Linux KVM cannot boot a guest directly on a developer's Mac or Windows laptop.
- libkrun: a library embedded in another program that uses KVM on Linux and Hypervisor.framework on Apple silicon, with Windows Hypervisor Platform support listed as upcoming.
- Firecracker: a standalone VMM from AWS that runs on KVM on Linux, built for serverless workloads such as Lambda and Fargate.
- Cloud Hypervisor: a standalone VMM that runs on KVM and the Microsoft Hypervisor (MSHV) on Linux, aimed at cloud workloads with minimal emulation and a small attack surface.
-
QEMU
microvm: a machine type inside QEMU for x86 guests, usually on KVM, built for short-lived guests without PCI or ACPI.
Firecracker and Cloud Hypervisor stay on Linux hosts, based on each project's documentation as of 30 November 2026. libkrun is the one that also reaches macOS, and products built on it can add more: VirtX, for example, runs its libkrun-based microVMs on Windows 11 x86_64 through the Windows Hypervisor Platform as well.
Firecracker's specification also publishes the numbers many microVM articles quote: 125 ms or less from the InstanceStart call to the guest's init process, and 5 MiB or less of VMM memory overhead for a 1 vCPU, 128 MiB guest. Real start times vary with the image, the kernel and the host, so treat them as a design target rather than a promise for your setup.
Where MicroVMs Run in Production Systems Today
MicroVMs already run under services many developers use without noticing. They sit behind the sandboxes AI agents use to run code, behind serverless platforms and behind container runtimes that want VM-grade isolation.
- Local and self-hosted agent sandboxes: VirtX starts libkrun-based microVMs from Python, Node.js or Rust code on a laptop, a server you run or its own cloud, and boots them from OCI images.
- Hosted agent sandboxes: Vercel Sandbox runs each sandbox in a Firecracker microVM, and E2B's open-source stack uses Firecracker too.
- Serverless functions: AWS created Firecracker to run Lambda and Fargate workloads.
- Containers with VM isolation: Kata Containers builds lightweight VMs that behave like containers, using QEMU, Cloud Hypervisor or Firecracker underneath.
The common thread is a job that should not share a kernel with its neighbours and does not live long. The code-interpreter feature fits that pattern exactly, and the next section shows how VirtX runs it.
How VirtX Runs the Code Interpreter Example on a Laptop
VirtX is an Apache-2.0 project from Brekkylab, built on libkrun, the monitor from the list above that reaches macOS. Each sandbox is a microVM with its own Linux kernel, booted from an OCI image without a Docker install or a background daemon, so a per-question sandbox for the code-interpreter team is a short program in Python, Node.js or Rust.
Local sandboxes run on Linux with KVM, macOS on Apple silicon and Windows 11 on x86_64, and the guest is always Linux. The same program can start sandboxes on a laptop, on a server the team runs or on VirtX cloud, which is in early access, by changing only the line that creates the client. That lets the team test the per-question microVM on developer machines before it ships. The costs in the next section apply to it like any other microVM.
What a MicroVM Costs Compared With a Container
A microVM trades some speed, density and flexibility for a separate kernel per workload. Those costs are small for short isolated jobs and larger for long-running or hardware-heavy ones.
The host needs VT-x, AMD-V or Arm virtualization turned on, and many cloud VMs only expose it through nested virtualization. A guest kernel still has to boot, so a microVM starts slower than a container process, and each guest holds its own kernel and page cache in memory. Anything the VMM leaves out, such as a display or specialised hardware, is unavailable or needs extra work, and most microVM monitors target Linux guests only.
Where Should You Start
A microVM gives a workload its own kernel at close to container speed by cutting a virtual machine down to the devices it needs. It earns its place when the code is short-lived and not fully trusted, and it adds overhead with little benefit when the code is yours and long-running.
Pick the monitor that matches your host from the list above. On a Linux server, Firecracker is the reference point; on a Mac or Windows laptop, a libkrun-based tool such as VirtX lets you boot one from a few lines of code, and the VirtX quick start runs a first command in one.
Frequently Asked Questions About How MicroVMs Work
What does the "micro" in microVM refer to?
It refers to the small device model and short boot path, not to the size of the workload. A microVM drops firmware, legacy buses and most emulated hardware. It can still be given several vCPUs and gigabytes of memory.
Is a microVM faster than a regular virtual machine?
It is designed to start faster and use less memory, because it skips firmware and most device emulation. Firecracker targets 125 ms or less to the guest's init process. Actual numbers depend on the image, kernel and host.
Which processors can run a microVM today?
Any modern x86 or Arm processor with hardware virtualization, such as Intel VT-x, AMD-V or Arm's virtualization extensions, enabled in firmware where needed. The host operating system also needs a hypervisor interface such as KVM, Hypervisor.framework or the Windows Hypervisor Platform.
How does Firecracker relate to a microVM?
A microVM is the kind of virtual machine, and Firecracker is one program that creates and runs microVMs on Linux with KVM. Cloud Hypervisor, QEMU's microvm machine type and libkrun are other ways to run them.
Is Kata Containers a type of microVM?
Kata Containers is a container runtime that runs each container or pod inside a lightweight VM. It uses a monitor such as QEMU, Cloud Hypervisor or Firecracker to create that VM, so you keep a container workflow while each workload gets its own kernel.
This article was written with input from Brekkylab, the team behind VirtX.

Top comments (0)