founding: guest base image — reproducible x86_64 NixOS qcow2 the VM manager boots (split from #196) #216
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Reference
Matou/idss#216
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
Split out of #196 (Ben confirmed 2026-07-30) — the same not-a-single-slice logic as the #191 split: the guest image is buildable today and gates #183's Phase A rehearsal, while #196's carriage ADR is a human decision the image doesn't need.
What's true today
vm.Config.BaseImage, resolved fromOURCLOUD_GUEST_IMAGEelse<StateDir>/nixos-guest.qcow2), and fails loud legibly when it is absent — but nothing in the repo produces that image. Phase A of #183 cannot boot a VM at all.clan machines update— the #191 investigation's finding), so the image must boot to a reachable NixOS the established trust can drive.What to build
A reproducible recipe (a flake output beside the dev shell, ADR 0040) that builds the x86_64 NixOS guest base image as a qcow2:
OURCLOUD_GUEST_IMAGE/ the state-dir default (the packaged-app carriage is #196's).Acceptance criteria
nixos-guest.qcow2vm.Manager.Createruns on a KVM-capable host, Then the guest boots, is reachable, and a clan-driven converge can proceed against itTask manifest
Blocks
#183 — Phase A leg A·1 (nothing boots without it).
Done in
11e4a72(onorigin/main).The repo now produces the qcow2
vm.Config.BaseImageresolves to (#192/#195) — a reproducible flake output (.#guest-imageovernix/guest/configuration.nix, ADR 0040) that bakes a minimal blank-slate x86_64 NixOS into a legacy-BIOS qcow2.qemu-guestvirtio initrd, virtio disk/net, KVM, serialttyS0(-nographic), DHCP over the user-mode virtio NIC. Legacy BIOS (grub→MBR of/dev/vda) matches the manager's default SeaBIOS (ADR 0056).ourcloud-enroll-trustoneshot installs root's authorized key at first boot from QEMU fw_cfg (opt/ourcloud/authorized_key) — what the enroll/converge shape hands in. Absent → honestly unreachable, the blank slate the clanmachines updatealready-reachable precondition (#191) mints onto.scripts/build-guest-image.shbuilds on the pinned toolchain and installsnixos.qcow2toOURCLOUD_GUEST_IMAGEelse/var/lib/ourcloud/vm/nixos-guest.qcow2.internal/vm/manager.gountouched.nixosConfigurations.ourcloud-guest-{x86_64,aarch64}), only x86_64 built/proven.The build + boot + reachability proof is driver-gated (needs a Nix builder +
/dev/kvm, no swarm substrate carries either — same posture asscripts/smoke-vm.sh, #192):scripts/smoke-guest-image.shboots the built image under the virtio/KVM shape twice — reachable with a per-run trust key minted through fw_cfg (printsnixos-version), SSH-refused with none (blank slate). Docs:docs/founding/guest-base-image.md.Unblocks #183 Phase A leg A·1.