qemu-vm.nix module + migrate openclaw + dev VM shell (ADR-0018, PR1) #160
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.
Dependencies
No dependencies set.
Reference
Cloonar/nixos#160
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
First slice of the dev → self-managed QEMU VM migration (ADR-0018). Pure Nix, dry-build-gated, worktree→PR — no runtime cutover. Safe to land: it only adds a module, refactors openclaw, and boots an idle temp VM; the running dev microvm is untouched.
utils/modules/qemu-vm.nixexposingcloonar.vms.<name>: state-dir tmpfiles, a<name>-initoneshot (download Ubuntu cloud image → qcow2 + resize → regenerate cloud-init seed ISO), and a<name>.service(tap-up on theserverbridge → qemu → tap-down). Options:mac/ip/mem/vcpu/diskSizeG/autostart/cpuWeight/cloudInit(sshKeys / packages / runcmd / writeFiles). Model onhosts/fw/vms/openclaw/default.nix.openclawontocloonar.vms.openclaw— the two-consumer proof. Behaviour unchanged: same.97.61, MAC, 2 G / 2 vcpu, opt-in start, the setup-openclaw runcmd.cloonar.vms.devon a temp.97.16+ temp MAC, autostart, 100 G,cpuWeight. The old microvm keeps.97.15.Split from #159.