---
title: "Tangled CI runs on microVMs"
description: "Tangled's self-hostable CI runner, spindle, adds a microVM engine that boots each workflow in its own QEMU microVM, with NixOS images configurable directly from the workflow YAML (services like Postgres, Docker, flake dependencies, binary caches)."
url: "https://swe.quest/articles/tangled-ci-runs-on-microvms-9e3d7881d88984e8"
canonical: "https://tangled.org/blog/spindle-microvm/"
source: "Tangled"
published: "2026-06-16"
difficulty: "medium"
kind: "Deep dive"
reading_minutes: 12
tags: ["ci-cd","virtualization","sandboxing","linux","build-systems"]
---

# Tangled CI runs on microVMs

A post on [Tangled](https://swe.quest/sources/tangled.md), published 2026-06-16, 12 min read, Deep dive. Original: [https://tangled.org/blog/spindle-microvm/](https://tangled.org/blog/spindle-microvm/)

## Summary

Tangled's self-hostable CI runner, spindle, adds a microVM engine that boots each workflow in its own QEMU microVM, with NixOS images configurable directly from the workflow YAML (services like Postgres, Docker, flake dependencies, binary caches). A Rust guest agent, shuttle, dials back over vsock and executes steps as an unprivileged user. Host-side proxies give the guest read/write access to Nix caches without credentials, and background uploads mean rebuilt paths are reused on later runs. Isolation comes from unprivileged user/net namespaces, slirp4netns, blackhole routes for RFC 6890 ranges, and a filtering DNS proxy, with a fair resource scheduler and optional per-workflow cgroups for enforcement and clear OOM reporting.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [CI/CD](https://swe.quest/tags/ci-cd.md) (Reliability & operations)
- [Virtualization](https://swe.quest/tags/virtualization.md) (Infrastructure)
- [Sandboxing & isolation](https://swe.quest/tags/sandboxing.md) (Security)
- [Linux](https://swe.quest/tags/linux.md) (Infrastructure)
- [Build systems](https://swe.quest/tags/build-systems.md) (Engineering practices)

## Prerequisites

- Nix and NixOS basics
- QEMU/KVM virtualization ([easy posts on Virtualization](https://swe.quest/tags/virtualization.md?difficulty=easy))
- Linux namespaces and cgroups ([easy posts on Linux](https://swe.quest/tags/linux.md?difficulty=easy))
- CI pipelines ([easy posts on CI/CD](https://swe.quest/tags/ci-cd.md?difficulty=easy))

## Keywords

Tangled, spindle, QEMU, microvm.nix, NixOS, vsock, slirp4netns, Firecracker

## Related posts

- [Comparing Different Approaches to Sandboxing](https://swe.quest/articles/comparing-different-approaches-to-sandboxing-650a4a9c7bb4484a.md): Docker · 2026-05-07 · Easy · 7 min read · Sandboxing & isolation, AI agents, Virtualization, Containers, Linux
  AI agents need strong isolation because hallucinations and prompt injection can lead to destructive commands, and the common sandboxing options trade isolation against cost. chroot isolates only the filesystem and can be escaped by root processes. systemd-nspawn adds process and network isolation but is Linux-only.
- [Why MicroVMs: The Architecture Behind Docker Sandboxes](https://swe.quest/articles/why-microvms-the-architecture-behind-docker-sandboxes-cc9095ea938dafa9.md): Docker · 2026-04-16 · Easy · 5 min read · Sandboxing & isolation, Virtualization, AI agents, Containers
  Docker Sandboxes run each AI coding agent session in a dedicated microVM with its own kernel and a private Docker daemon, giving VM-grade isolation while still allowing docker build, run and compose without socket mounting or host privileges.
- [The Untrusted Autonomous Workload: How AI Coding Agents Reshape What Isolation Has to Do](https://swe.quest/articles/the-untrusted-autonomous-workload-how-ai-coding-agents-reshape-what-isolation-af433bee97ff8809.md): Docker · 2026-05-26 · Medium · 16 min read · Sandboxing & isolation, Virtualization, AI agents, Containers, Supply chain security
  AI coding agents are untrusted, autonomous workloads that containers were never designed to isolate, so Docker Sandboxes runs each agent in a microVM (custom VMM on Hypervisor.framework, WHP or KVM) with its own kernel and private Docker Engine.
- [Introducing Deno Sandbox](https://swe.quest/articles/introducing-deno-sandbox-ffb8d1f44b3562f3.md): Deno · 2026-02-03 · Medium · 3 min read · Sandboxing & isolation, AI agents, Serverless, Virtualization, Security
  Deno Sandbox runs untrusted, often LLM-generated code in lightweight Linux microVMs on Deno Deploy that boot in under a second and are created via JavaScript or Python SDKs.
- [Run CI in your Namespace workspace](https://swe.quest/articles/run-ci-in-your-namespace-workspace-67e5d024205e22e3.md): Tangled · 2026-11-22 · Easy · 3 min read · CI/CD, Version control, Identity & auth
  Tangled's spindle CI gains a \`namespace\` engine that runs workflows on a user's own Namespace workspace with multiarch machines and cache volumes, authenticating via short-lived OIDC tokens exchanged for workspace access instead of stored credentials.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
