Firecracker is a virtualization stack for running container and function workloads in microVMs. It pairs hardware isolation with low overhead for multi-tenant serverless-style hosting.
Overview
Firecracker targets secure, multi-tenant execution of container and function workloads with minimal overhead. Workloads run inside lightweight virtual machines called microVMs that aim to combine KVM-style isolation with container-like startup and density.
The core is a virtual machine monitor that uses Linux KVM to create and run microVMs, with an optional path to run guests as Nitro Sandboxes on AWS instead of KVM. The design strips non-essential devices and guest-facing features to shrink memory use and attack surface, which also supports faster boot and higher utilization on a host.
Operators control each microVM through a REST API specified in OpenAPI. Typical actions include sizing vCPUs and memory, attaching network interfaces and file-backed block devices, rate-limiting virtio devices, configuring logging and metrics, and booting from a chosen kernel and root filesystem. A jailer companion process can add cgroup and namespace isolation and drop privileges in production setups.
Firecracker was created at Amazon Web Services for services such as Lambda and Fargate, and integrates with container ecosystems including Kata Containers and Flintlock. On 64-bit Intel, AMD, and Arm hosts with hardware virtualization, it is positioned as a focused alternative to general-purpose VMMs such as QEMU for serverless functions and containers.
Key features
- KVM-based microVM creation and control API
- Minimal emulated device model
- Virtio network and block devices with rate limiters
- Jailer process for hardened production startup
- Demand paging and CPU oversubscription by default
- Nitro Sandbox guest mode on EC2
- Integration with Kata Containers and Flintlock
- Guest metadata service and vsock support
Use cases
- Serverless function isolation
- Multi-tenant container hosting
- Building custom microVM infrastructure
- Lambda-style compute sandboxes
- Dense packing of isolated workloads on one host