Monorepo for Tangled forked from tangled.org/core
core blog posts spindle-microvm.md

--- atroot: true template: slug: spindle-microvm title: Tangled CI runs on microVMs subtitle: How we built spindle's new QEMU-based microVM engine date: 2026-06-16 image: https://assets.tangled.network/blog/microvm.png authors: - name: dawn email: dawn@tangled.org handle: ptr.pet --- Spindles are the self-hostable CI runners. It now supports a new mode of execution using QEMU MicroVMs. With the new microVM engine, each workflow gets its own little virtual machine, a whole real environment you can do anything inside. The interesting part is NixOS images: you configure the machine directly from the workflow file. A few things you can do: You can bring services up: ```yaml services: postgresql: enable: true ensureDatabases: ["spindle-workflow"] ensureUsers: - name: spindle-workflow ensureDBOwnership: true ``` You can build Docker containers: ```yaml virtualisation: docker: true steps: - name: "do the thing!" command: docker build ... ``` And you can use non-NixOS images: ```yaml image: alpine steps: - name: install golang command: apk add go ``` It's an upgrade from the existing Nixery engine while staying fully compatible with it, so if you already have a working Nixery workflow, just change `nixery` to `microvm` and it will work! It's quick on the second run, too, because it caches aggressively: your dependencies, your services, and any other Nix derivation built inside the microVM get pushed to spindle's Nix cache, so the next workflow that needs them doesn't rebuild those. More on that [below](#the-nix-cache-both-ways). And like everything else in Tangled, the whole thing is self-hostable, so you can run your own spindle with the microVM engine on your own hardware (see the [self-hosting guide](https://docs.tangled.org/spindles.html#self-hosting-guide)). If you want fuller examples, there are [recipes in the docs](https://docs.tangled.org/spindles.html#recipes) too. ## What's in a microVM A microVM is just a VM with most of the boring parts removed…