Skip to content

LBA REQ 044

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

LBA-REQ-044: Remotely automatable Ubuntu golden base and provisioner

Status

Proven

Area

Deployment / onboarding (ADR-0023 Phase 1 -- the from-scratch golden-VM provisioner)

Statement

The system shall provision the from-scratch Ubuntu golden VM with a remotely automatable base before human login, preserve that proof in every production golden clone, then install both LabVIEW 2026 Community and VIPM, so fail-closed gates block the build when OpenSSH, Git, supported guest utilities, LabVIEW, or VIPM are omitted.

Rationale

ADR-0023's golden VM is "Ubuntu + LabVIEW + VIPM", but a clean Ubuntu base previously required graphical login before OpenSSH and Git were available. The unattended hook establishes that boundary before login. The production definition and package receipt must retain it so a later golden clone cannot lose remote automation while continuing to appear valid.

Acceptance Criteria

  • build-virtualbox.sh invokes the supported unattended post-install template, accepts the disposable credential only by private file, and binds SSH only to an operator-selected host-loopback NAT port.
  • base-bootstrap.sh installs and enables OpenSSH, Git, and supported VirtualBox guest utilities, then emits a machine-readable first-boot PASS receipt.
  • production-golden-box.Vagrantfile fails closed when that receipt is missing or stale, and its governed metadata binds the exact definition digest.
  • golden-activation-cycle.ps1 -Mode Package validates and binds the base receipt before any existing box deletion, VM halt, or Vagrant packaging, in addition to the console, activation, and identity-freshness guards.
  • cleanroom/ubuntu-labview/provision-guest.sh installs ni-labview-2026-community from the NI apt repo signed by the committed keyring.
  • It installs VIPM from the JKI package server (https://packages.jki.net/vipm/preview/vipm_latest_preview_amd64.deb) via dpkg -i + apt-get install -f, idempotent via a dpkg -s vipm guard.
  • The deterministic base, golden-box, and provisioner tests fail closed unless all early and later boundaries remain present.
  • Live evidence: VIPM 26.3.1-4000 was installed on the real scratch VM (lba-ubuntu2404-labview2026-scratch) from the JKI source; the receipt records it.

Verification

Historical statement (no longer implemented)

Supersession

Change Guidance

The base and golden-box tests plus experiments/provisioner/checkProvisioner.mjs are gated by ubuntu-base-bootstrap-prerequisites, ubuntu-production-golden-box, and provisioner-installs-labview-and-vipm in verify-local-gates and mapped in the RTM. Authored under the singular-requirement directive (one shall).

TestID

T-044

CodeRef

cleanroom/ubuntu-labview/build-virtualbox.sh; cleanroom/ubuntu-labview/base-bootstrap.sh; cleanroom/ubuntu-labview/production-golden-box.Vagrantfile; cleanroom/ubuntu-labview/production-golden-box.metadata.json; cleanroom/ubuntu-labview/production-golden-base-proof.json; cleanroom/ubuntu-labview/golden-activation-cycle.ps1; scripts/verify-ubuntu-base-bootstrap.mjs; scripts/verify-ubuntu-golden-box.mjs; test/ubuntu-base-bootstrap.mjs; test/ubuntu-golden-box.mjs; experiments/provisioner/checkProvisioner.mjs; experiments/provisioner/verify-provisioner-labview-vipm.selftest.mjs; experiments/provisioner/fixtures/provisioner-vipm-receipt.json; cleanroom/ubuntu-labview/provision-guest.sh; experiments/verify-local-gates.mjs

RTM Status

Proven

Clone this wiki locally