Provision + onboard the dev QEMU VM (ADR-0018, PR2) #161
Labels
No labels
bug
enhancement
in-progress
needs-info
needs-triage
p0
ready-for-agent
ready-for-human
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Reference
Cloonar/nixos#161
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?
ADR: https://git.cloonar.com/Cloonar/nixos/src/branch/main/docs/adr/0018-dev-self-managed-qemu-vm.md
Depends on #160 (the dev VM shell from PR1 must exist first).
Operational + cross-machine provisioning of the new dev VM (ADR-0018). Not a worktree→PR change: it runs nixos-infect on a console, onboards a fresh host identity across machines, and validates runtime behaviour.
.97.16Ubuntu VM, run the READMEnixos-infectflow (local VM, not Hetzner — bring up static net; serial console is the safety net).hosts/dev/(port fromhosts/fw/vms/dev/): development module,labwithKillMode=process, forgejo-mcp, users, sops, GC, bento, no borg,hardware-configuration.nixfrom infect..sops.yaml &dev, new pubkey →fleet.nix,./scripts/update-secrets-keys(secrets →hosts/dev/secrets.yaml).devfromscripts/pre-commit's skip rule sohosts/dev/dry-builds as its own host..97.5→:8090); aswitchdoesn't drop the session; a reboot boots a guest-built kernel.Split from #159.
Follow-up surfaced while landing #163 (PR1): the new
utils/modules/qemu-vm.nix<name>-vmservice has norestartIfChanged = false, so anfwnixos-rebuild switchthat touches the unit power-cycles the guest. The livedevmicroVM sets this flag precisely to keep Claude sessions alive across fw rebuilds (ADR-0018). Harmless for the idle temp VM PR1 shipped, but it must land before the dev VM carries sessions:restartIfChanged = falseto theqemu-vm.nix<name>-vmservice (default for allcloonar.vms) so an fw rebuild never power-cycles a guest — config changes then apply on the next manual restart, matching the microVM's behaviour.PR2 complete: dev QEMU VM provisioned (clean NixOS image, #167) + onboarded (
c61d453); lab verified. Cutover to .97.15 + microVM retirement landed in #168 (PR3).