← All notes

Sandboxing untrusted agent code: Firecracker microVMs vs gVisor

Answer: Firecracker runs workloads in lightweight virtual machines called microVMs; gVisor is an application kernel, not a virtual machine hypervisor or a system call filter. gVisor is open-source and safely runs untrusted code.

Firecracker

Its main component is a VMM using Linux KVM to create and run microVMs. It has a minimalist design, thread-specific seccomp filters and a Jailer process that applies a cgroup/namespace isolation barrier, then drops privileges.

gVisor

Its kernel-like component is called the Sentry and is written in memory-safe Go. While gVisor can use virtualization (KVM), it can also work without virtualization. The Gofer is a slightly-more-trusted companion process.

Notes

See also

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: firecracker-microvm/firecracker (GitHub), Firecracker README, Apache-2.0 (https://raw.githubusercontent.com/firecracker-microvm/firecracker/main/LICENSE); google/gvisor (GitHub), Introduction to gVisor security, Apache-2.0 (https://raw.githubusercontent.com/google/gvisor/master/LICENSE); google/gvisor (GitHub), gVisor Docker quick start, Apache-2.0 (https://raw.githubusercontent.com/google/gvisor/master/LICENSE). Text was condensed and changed from the originals.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: firecracker-microvm/firecracker (GitHub), Firecracker README, Apache-2.0 (https://raw.githubusercontent.com/firecracker-microvm/firecracker/main/LICENSE); google/gvisor (GitHub), Introduction to gVisor security, Apache-2.0 (https://raw.githubusercontent.com/google/gvisor/master/LICENSE); google/gvisor (GitHub), gVisor Docker quick start, Apache-2.0 (https://raw.githubusercontent.com/google/gvisor/master/LICENSE).

Cite this

Permanent ID: iil:note:9xpwmav0

iinventedlight. 2026. "Sandboxing untrusted agent code: Firecracker microVMs vs gVisor." iinventedlight Library, iil:note:9xpwmav0, version of 2026-11-16. https://iinventedlight.com/library/notes/ao-sandbox-firecracker-and-gvisor/. License: CC-BY-4.0.

@misc{iil_note_9xpwmav0,
  author = {{iinventedlight}},
  title = {{Sandboxing untrusted agent code: Firecracker microVMs vs gVisor}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-16},
  url = {https://iinventedlight.com/library/notes/ao-sandbox-firecracker-and-gvisor/},
  note = {Permanent ID iil:note:9xpwmav0. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/ao-sandbox-firecracker-and-gvisor.md.