Skip to content

Tier-4 boot: migrate VM creation to the lifecycle backend #3749

Closed

Description

@pithead-developer

What's the problem

tests/os/phases/boot.sh invokes virt-install directly for ordinary boot, the Secure Boot leg and the shared _vm_boot_disk helper.

What it impacts

The optional plain-QEMU appliance battery migration specified by #2089. The current Linux/libvirt battery remains supported.

How I found it

Direct virt-install calls remain in phase_boot, _secure_boot_guest_leg and _vm_boot_disk; #2089 explicitly leaves phase call-site migration out of its seam PR.

How important is it

Low-priority maintenance and gates work. This is contributor convenience, not a release prerequisite; release work takes priority. No runtime defect or measured speedup is claimed.

Acceptance criteria

After the backend foundation, route all three creation paths through lifecycle helpers, preserving firmware settings, disk handling, diagnostics and existing boot assertions. Add regression tests that fail for a bypassed helper and require a successful current-head tier4-kvm boot job. Keep Linux as the authoritative battery; document any supported software-emulation smoke limit.

Possible solutions

Migrate boot creation together with the shared disk-boot helper, using the backend contract rather than per-phase process management.

Activity

  1. added
    enhancement
    testing
    appliance
    operator-action
    on Oct 27, 2026
  2. pithead-developer commented on Nov 2, 2026

    @pithead-developer
    ContributorAuthor

    Operator: claimed for an operator-run implementation session (owner request, 2026-11-01). operator-action keeps the automated runner off it until the session's draft PR is reviewed.

  3. pithead-developer commented on Nov 2, 2026

    @pithead-developer
    ContributorAuthor

    Operator: draft PR #3882 from the implementation session, held with operator-action for operator review.

  4. removed
    operator-action
    on Nov 6, 2026
  5. pithead-developer commented on Nov 6, 2026

    @pithead-developer
    ContributorAuthor

    Operator: released to the runner (owner 2026-11-06). New work goes to the local Flash-Next model first; Claude only after three local rounds or for sensitive work.

  6. pithead-developer commented on Nov 7, 2026

    @pithead-developer
    ContributorAuthor

    Blocked on #3923. PR #3882 is blocked on #3923. The five red Build image checks (dashboard, monero, p2pool, tor, xmrig-proxy) are the Trivy gate failing on a HIGH apt CVE in the base images (CVE-2026-109518, fixed upstream in 2.8.4ubuntu0.1). Tor also shows one HIGH finding, tracked in #3929. The p2pool and monero job logs in run 42345693818 show the apt CVE; I did not read the log lines for dashboard, tor or xmrig-proxy. This PR changes only tests/os and docs and no image input, so the failure doesn't come from it. The apt fix, PR #3926, is still open, and develop-v2.1.0 has no fix, so merging the base would not clear the checks. Finished: the code, the selftest, and the required KVM boot proof. Job 446@bc1498347c8e9fc351e07105936432040096bc98 (bench-local id; submitted as 3452) succeeded with 292 rows passing and 0 failing, and the Secure Boot leg ran. The PR body holds that evidence. To unblock: land #3926 (closing #3923) and the tor fix (#3929) on develop-v2.1.0, then merge the base into this branch and re-run the checks. I commented the same explanation on the PR. The head is unchanged, so the reviewer needs no new bench evidence.

    The runner resumes this issue when that one closes.

  7. added
    blocked
    on Nov 7, 2026
  8. removed
    blocked
    on Nov 8, 2026
  9. pithead-developer commented on Nov 8, 2026

    @pithead-developer
    ContributorAuthor

    Blocked on #3929. PR #3882 is still blocked on the Trivy gate, now on head a2fc049. That head is the earlier reviewed head plus a merge of develop-v2.1.0, with no other change. In run 42433267087, tor, p2pool, monero and xmrig-proxy fail on HIGH CVEs. P2pool, monero and xmrig-proxy show apt CVE-2026-109518 (fix 2.8.4ubuntu0.1). Tor shows musl-utils CVE-2026-107891 (fix 1.2.6-r3). The dashboard build is also red and I did not read its log. #3923 is closed, but its fix, PR #3926, merged into develop-v2.0.3, not develop-v2.1.0. This PR's base therefore still lacks the apt fix, and no forward-merge issue or PR exists. The tor musl fix is #3929, still open. This PR changes only tests/os and docs, so it cannot cause these failures. Finished: the code, the selftest and the KVM boot proof. That proof ran on the previous head: job 446@bc1498347c8e9fc351e07105936432040096bc98 (bench-local id; submitted as 3452) succeeded, and the Secure Boot leg ran. I will submit a fresh boot job on the final head once GitHub checks are green. To unblock: close #3929 and forward-merge develop-v2.0.3 into develop-v2.1.0 (release owner). Then merge the base here and re-run. I posted the same explanation on the PR.

    The runner resumes this issue when that one closes.

  10. added
    blocked
    on Nov 8, 2026
  11. removed
    blocked
    on Nov 8, 2026
  12. pithead-developer commented on Nov 8, 2026

    @pithead-developer
    ContributorAuthor

    Merged in #3882.

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

    applianceenhancementtesting

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions