Skip to content

LBA REQ 049

github-actions[bot] edited this page Nov 19, 2026 · 2 revisions

LBA-REQ-049: Golden-VM provisioner headless-LabVIEW readiness

Status

Proven

Area

Deployment / provisioning (ADR-0023 Phase 1 -- the one-command golden VM)

Statement

The system shall verify the golden-VM provisioner installs every headless-LabVIEW prerequisite -- Xvfb, VI Server (TCP 3363) configuration for both LabVIEW executable basenames, quoted access lists, and the post-install reboot -- so a fail-closed gate proves a fresh one-command provision yields a headless-benchmark-ready VM.

Rationale

The near-term First Win is a one-command from-scratch golden VM, but a fresh provision was NOT headless-ready until three fixes were applied by hand during bring-up: Xvfb was missing, the VI Server config had to be written for BOTH labview.conf and labviewcommunity.conf (LabVIEW picks its config file by the launched exe basename), and the install needed a reboot before VI Server would bind :3363. Folding those into the provisioner and gating its completeness keeps that knowledge from silently regressing.

Acceptance Criteria

  • provision-guest.sh apt-installs xvfb (headless display for LabVIEWCLI over SSH).
  • It writes the VI Server config (server.tcp.enabled, port 3363, quoted access lists) into both labview.conf and labviewcommunity.conf under the primary user's home.
  • It addresses the post-install reboot (documented, with an opt-in PROVISION_REBOOT=1).
  • validateReadinessReceipt re-derives the checks from the ACTUAL script text and fails closed if any prerequisite is absent, the ready verdict is forged, or the digest is tampered.

Verification

Historical statement (no longer implemented)

Supersession

Change Guidance

The verifier experiments/provisioner-readiness/provisionerReadiness.mjs plus its self-test are gated by provisioner-headless-readiness in verify-local-gates and mapped in the RTM. The committed receipt is bound to the real provision-guest.sh, so editing the provisioner requires regenerating the fixture. Authored under the singular-requirement directive (one shall).

TestID

T-049

CodeRef

cleanroom/ubuntu-labview/provision-guest.sh; experiments/provisioner-readiness/provisionerReadiness.mjs; experiments/provisioner-readiness/verify-provisioner-readiness.selftest.mjs; experiments/provisioner-readiness/fixtures/provisioner-headless-readiness-receipt.json; experiments/verify-local-gates.mjs

RTM Status

Proven

Clone this wiki locally