A machine without spin
Download, verify and boot the VM Spinbox uses for workspaces, with passt for networking and an optional TPM.

spin picks a machine release, boots it on a runner and hands you a shell. You can take that same release, check who built it and boot it on your laptop. All the binaries are in the tarball.
What you download
The machine has its own repository, spin-stack/machine, and
its main tarball is about 367 MB for the release below. It carries a QEMU built
for KVM alone, the firmware, the kernel, the base image, and the small programs that sit beside
QEMU. swtpm gives a machine a TPM, passt gives it a network, and spin-machine boots one by hand.
spin boots workspaces from that same tree.
A second tarball, about 126 MB, carries Shirudo’s operator tools. They make the key, the signed images and the initrd for a Shirudo boot.
Check who built it
Every file of a release is signed by the workflow that built it, through Sigstore, with its build provenance beside it. Use curl and Cosign to fetch the tarball and verify both bundles before you unpack it:
v=v20261126.04
f=spin-machine-$v-linux-x86_64.tar.gz
for x in '' .sigstore.json .provenance.sigstore.json; do
curl -fsSLO https://github.com/spin-stack/machine/releases/download/$v/$f$x
done
id=https://github.com/spin-stack/machine/.github/workflows/release.yml@refs/heads/main
cosign verify-blob --bundle $f.sigstore.json --certificate-identity "$id" \
--certificate-oidc-issuer https://token.actions.githubusercontent.com $f
cosign verify-blob-attestation --type slsaprovenance1 --bundle $f.provenance.sigstore.json \
--digest "$(sha256sum $f | cut -d' ' -f1)" --digestAlg sha256 \
--certificate-identity "$id" --certificate-oidc-issuer https://token.actions.githubusercontent.com
Both should say Verified OK. The second one takes the tarball’s digest instead of the tarball,
because given the file, cosign reads it whole and refuses anything over 128 MiB.
Boot it
tar -xzf $f
cd spin-machine-$v-linux-x86_64/usr/share/spin-stack
bin/spin-machine boot --release . --net --append systemd.set_credential=agetty.autologin:root
On an x86_64 Linux host, your user needs read-write access to /dev/kvm. The base image sits
under a throwaway overlay. The console is your terminal, and the kernel command-line credential
logs you in as root inside the guest:
Ubuntu 26.04.1 LTS localhost ttyS0
localhost login: root (automatic login)
root@localhost:~# ip -4 addr show eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
inet 10.0.2.15/24 brd 10.0.2.255 scope global eth0
root@localhost:~# ip route
default via 10.0.2.2 dev eth0 proto static
10.0.2.0/24 dev eth0 proto kernel scope link src 10.0.2.15
root@localhost:~# curl -sSI https://github.com | head -1
HTTP/2 200
root@localhost:~# systemctl poweroff
[ 17.040649] reboot: Power downsystemctl poweroff in the guest, and spin-machine exits with it.
A network without root
A workspace gets its network from spin: a TAP device the runner makes as root, and rules around
it. None of that exists on your laptop, so --net takes a different road. It starts passt, the
program Podman uses for the same job, and hands QEMU one end of a socket. passt turns the guest’s
traffic into ordinary sockets of your user, so the guest reaches what you reach, and nothing needs
root, a TAP or a bridge. QEMU itself is still built without a network stack inside it.
The addresses are always the same: the guest is 10.0.2.15 behind 10.0.2.2, IPv4 only, with DNS through your host’s resolver. It’s slower than a workspace’s TAP, and it’s a network for running a machine by hand, not spin’s: no egress proxy, no firewall rules, no policy per workspace.
passt sandboxes itself in a user namespace. Some Ubuntu installations refuse those to an unprivileged program, and then passt exits before the guest gets a NIC. That’s the one place root comes in, once, to install passt’s own AppArmor profile for this release’s passt and nothing else:
bin/spin-machine apparmor --release "$PWD" | sudo tee /etc/apparmor.d/spin-machine-passt > /dev/null
sudo apparmor_parser -r /etc/apparmor.d/spin-machine-passt
A Shirudo machine
Two more flags make the machine Shirudo needs. --lockdown shirudo boots the kernel at lockdown
integrity, with the two keyrings Shirudo’s init enrolls its key in left open for it. --tpm DIR
gives it a TPM whose state lives in that directory, and the firmware measures the kernel, the
initrd and the command line into it before the kernel starts. What’s missing is the rest of what
Shirudo boots with: its initrd, a key, and the signed images. The operator tarball makes those, in
a guest of the same release.
shirudo-demo puts those pieces together. Changing a light bulb shows what the machine needed to run Shirudo, and what happened when it loaded a signed upatch.
What you get at the console
You get a shell in the same VM spin boots for a workspace. Workspace management, the egress proxy and the dashboard live in spin. The machine release gives you the VM on its own.
Found something wrong, or out of date? Tell me, with this post already named, and I'll fix it here. New posts come by RSS.