Definitions

How computers for agents work, from the hardware to the sandbox.

Definitionsf

Firecracker

Firecracker is a minimal virtual machine monitor written in Rust that offers only a handful of virtio devices and no legacy firmware.

Firecracker is an open-source virtual machine monitor that Amazon Web Services created to run its serverless services. It runs as a user-space process, one per virtual machine, and provides the devices and the machine model. It works beside KVM, which runs in the Linux kernel and handles CPU and memory virtualization. The small virtual machines it runs are often called microVMs.

Firecracker leaves out most of what a general virtual machine monitor offers. It has no BIOS or other legacy firmware, no graphics and no USB. It provides a small set of virtio devices for networking and block storage, along with a serial console. This small surface reduces the code an attacker could exploit and lets a microVM boot in a fraction of a second. A built-in jailer process adds further limits around each monitor.

Firecracker suits workloads that need the isolation of a virtual machine at a cost close to a container. Serverless platforms, multi-tenant services and sandboxes for untrusted code are common uses. Each microVM has its own guest kernel, so a flaw in one guest does not expose the host kernel directly. Cloud Hypervisor is a similar minimal monitor that is also written in Rust.

Related terms