Skip to content

VMs: declarative guest definitions (nixvirt / microvm.nix) + mutable carve-out list #5772

Open

Description

@dezren39

VM track of the deployment-architecture epic (design: PR #5764 §6).

Current state (2026-11-04 inventory): virtualisation.libvirtd.enable = true in the laptop profile and zero guest definitions anywhere — no libvirt XML, no nixvirt, no virsh-managed domains in any repo. Seeds present: microvm.nix is a flake input with one defined VM (prometheus, qemu, 2 vCPU/1 GB, virtiofs /nix/store share) whose profile is commented out on amd (nixos/hosts/default.nix:30); the flake has lib.make-vm-configurations machinery (per-host vm_<host> NixOS variants).

Work:

  • Evaluate nixvirt (declarative libvirt domains/networks/pools as Nix) vs flake-generated libvirt XML as the renderer for libvirt guests; record the pick and why in this issue. microvm.nix is the presumptive answer for ephemeral/agent-class guests — confirm or refute.
  • Define the guest generation shape: {domain definition, disk image (flake-built), NixOS source rev}; data volumes attach to generations, never live inside them.
  • Land the first declarative guests: bring prometheus under generation discipline (enable the microvm profile deliberately or supersede it), plus one libvirt guest end-to-end if a real need exists — otherwise the renderer + a throwaway test guest that is defined, started, rolled back, and destroyed as the acceptance proof.
  • Write the mutable carve-out list (starts empty): guests that may drift in data but not OS definition (DB hosts, lab stateful nodes), and the rule that full drift requires a named waiver with owner + reason.

Acceptance: at least one guest of each class (microVM, libvirt) can be defined/started/rolled back from flake state alone on a clean checkout; the carve-out list exists in the flake (even if empty) with the waiver rule stated; deploy vm:<name> integration is specced (implementation may ride the deploy tool's later target classes).

Activity

  1. developing-today commented on Nov 5, 2026

    @developing-today
    Contributor
  2. added
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 5, 2026
  3. developing-today commented on Nov 5, 2026

    @developing-today
    Contributor

    agent-note:v1
    task: 10178
    lane: code-u
    state: handed-off
    summary: Task 10178 claimed by lane code-u; execution-lane assignment returned opencode, so this task is handed off to the opencode claimant per the worker runbook §1b. Issue #5772 is OPEN with no hard-stop labels on fresh check; claim labels synced (queue/claimed + work/assigned + status/in-progress).
    next: opencode-claimant launches the bound opencode session for task 10178.

  4. added
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    and removed on Nov 5, 2026
  5. developing-today commented on Nov 5, 2026

    @developing-today
    Contributor

    agent-note:v1
    task: 10178
    lane: code-u
    state: handed-off
    summary: Task 10178 re-claimed by lane code-u after the first opencode handoff's lease expired without a claimant launch; execution-lane assignment again returned opencode, so the task is handed off to the opencode claimant again per the worker runbook §1b. Issue #5772 remains OPEN, claim labels already in place from the first handoff.
    next: opencode-claimant launches the bound opencode session for task 10178.

  6. dezren39 commented on Nov 5, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  7. added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    queue/claimedQueue worker lifecycle state
    on Nov 5, 2026
  8. 136 remaining items

  9. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: parked
    task: 14378
    lane: code-b
    summary: State verification for the replacement task (lane code-b, 2026-11-14). Most of this issue's desk work has already LANDED on main in commit ae26328 ("vm-guests: renderer decision, guest registry + carve-out list, deploy vm: spec (#5772)"): nixos/vm-guests/default.nix records the renderer decision (libvirt class: nixvirt, fallback flake-generated XML where nixvirt cannot express a domain; ephemeral/agent class: microvm.nix — the issue's presumptive answer, confirmed), the generation shape triple (domainDefinition, diskImage, nixosSourceRev; data volumes attach to generations, never live inside them), the guest registry (prometheus, microvm/qemu on amd, status defined-not-enabled), the mutable carve-out list (empty, as specified) with the full-drift waiver rule (named waiver with owner + reason + expiry). The deploy vm: integration is specced in doc/2026-11-12_vm-guests-generation-discipline.md. What REMAINS is exactly the acceptance proof, and it is a host/lab visit, not desk work: (1) enable the microvm profile for amd deliberately (nixos/hosts/default.nix) so prometheus comes under generation discipline, build and start it from flake state alone, roll it back; (2) define one libvirt guest end-to-end via nixvirt — or the throwaway test guest the issue allows — defined, started, rolled back, and destroyed from a clean checkout; (3) record both proofs on this issue. This lane's shift has under an hour left, so the task is parked with this state rather than half-starting host changes.
    next: a session with lab time takes the lifecycle-proof visit above; the registry/doc groundwork is done and referenced inline in nixos/vm-guests/default.nix.

  10. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    Agent note — task 14378 parked for the dedicated amd host visit (lane any-c)

  11. dezren39 commented on Nov 15, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: blocked
    task: 14378
    lane: any-a
    worker: repo-worker-code

    Task 14378 claimed again by lane any-a (2026-11-15T04:47Z) and revalidated fresh:

    Change of disposition: instead of a fourth park-and-recheck cycle, task 14378 is now DEP-BLOCKED on issue #10083 per runbook section 5b — the broker rechecks the gate itself and returns the task to the pool automatically when #10083 closes. Resume condition unchanged: #10083 closed AND a session dedicated to the amd host visit runs the section 5 proofs in doc/2026-11-12_vm-guests-generation-discipline.md and records them here. Do not mark this issue done on the strength of steps 1/4/5 — the acceptance requires the live guest proof.

  12. added
    queue/blockedQueue or user escalation state
    status/blockedQueue or user escalation state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 15, 2026
  13. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: triaged
    task: 18368
    lane: any-m
    worker: repo-worker-code

    Task 18368 (bulk-intake duplicate triage for issue #5772) revalidated fresh 2026-11-17:

    Outcome: task 18368 completes as triaged, naming the existing triage and task 14378 as the follow-on.

  14. removed their assignment
    on Nov 20, 2026
  15. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Agent note — picked up (task 14378, lane oc-code-04)

    Fresh verification: #5772 is OPEN with no hard-stop labels. PR #9186 is MERGED (878f082); its steps 1/4/5 remain landed. There are no matching open PRs. #10083 is still OPEN, but its latest note says the reported build failure did not reproduce on clean main; that is not evidence the issue is closed.

    The only remaining acceptance is the two lifecycle proofs on the shared AMD laptop (microVM profile switch/build/start/rollback and a nixvirt guest define/start/rollback/destroy). I will not run a system switch or guest lifecycle operation during this general scheduled lane because it can disrupt other workers. No host state changed.

    Next: preserve this fresh state and park for a dedicated, safe host window; do not mark #5772 complete based on the merged desk-work slice.

  16. added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    status/blockedQueue or user escalation state
    queue/blockedQueue or user escalation state
    on Nov 22, 2026
  17. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    epic/lab-clusterEpic: lab-cluster - all issues of this effort carry itpriority/normalOrdinary priority (the default)queue/parkedQueue task is parked (waiting on CI, time, or an event)status/parkedDeliberately paused with a recorded resume conditiontask/triageQueue packet kind: verify, reproduce, and route this itemwork/assignedQueue worker lifecycle state

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions