Changelog entry for the 2026-09-26 refactor; STATUS corrected to the current 38-case sys matrix with the new static-binary evidence; VM boot verification gains the sys-acceptance-refactor run; handoff updated. Verified with cargo test --workspace (692/692) and the disposable-VM matrix (guest PASS=38 FAIL=0, driver PASS=41 FAIL=0).
42 KiB
Disposable UEFI VM boot verification
This records the first successful end-to-end install and boot of Phoebus OS against a disposable qcow2 disk. No physical disk was ever touched.
Exact tested path
Host (Ubuntu, no root required):
- QEMU
qemu-system-x86_64(extracted locally under/tmp/opencode/qemudeb), OVMF (OVMF_CODE_4M.fd+OVMF_VARS_4M.fd). - Target disk:
/tmp/opencode/vm/work/target.qcow2, 30 GiB, virtio-blk (/dev/vdain the guest). - Live boot: the reference ISO's own
boot/gentoo+boot/gentoo.igz, with-append "root=live:CDLABEL=gentoo-amd64-livegui rd.live.dir=/ rd.live.squashimg=image.squashfs cdroot console=ttyS0,115200". - A host
python3 -m http.serverserves the installer tarball, the pinned stage3 and the test config to the guest over QEMU user networking.
Phase 1 (install):
- Boot the live ISO headless; get a root shell on the serial console.
- Download the installer and test config from the host.
- Write secrets to
0600files and run the installer binary (the original run used the Bash prototype; the harness now servesphoebus-installer):phoebus-installer --config test.conf --install --yes --luks-passphrase-file FILE --user-password-file FILE - Stages executed in order:
preflight, storage, stage3, fstab, portage, base packages, kernel, bootloader, users, services, desktop, finalize.
Phase 2 (boot the disk alone, ISO detached):
- Power off, then start a new QEMU with no ISO and no
-kernel, bootorder=c, same OVMF NVRAM. - Firmware runs
\EFI\systemd\systemd-bootx64.efi; systemd-boot boots the "Gentoo Linux" BLS entry from the ESP. systemd-cryptsetupprompts for the LUKS2 passphrase, unlocks/dev/vda2, mounts the Btrfs@subvolume as/.- systemd (PID 1) starts, serial getty appears, user login succeeds.
Verified results
- Firmware booted the disk's own systemd-boot (Boot000C "Linux Boot Manager").
- LUKS2 passphrase prompt and successful unlock.
- Btrfs subvolumes mounted:
/,/home,/var,/.snapshots,/swap(later fix), ESP at/efi. cat /proc/1/comm->systemd.systemd-analyze: 1.442s kernel + 5.755s initrd + 2.942s userspace.- Login as
phoebuswith the configured password; groups:wheel audio video render input plugdev power network libinput. - Networking up (
enp0s2 10.0.2.15/24). systemctl --failed: exactly one unit,swap-swapfile.swap(fixed after this run; see below).
Bugs found and fixed during this work
- Subvolumes created after mounting
@-storage_preparemountedsubvol=@before@existed (mount exit 32). Addedbtrfs_create_layout(mount top-level, create subvols, unmount, then mount layout) and a regression test (tests/test_btrfs_order.sh). - Generated fstab overwritten by stage3 - fstab/crypttab were generated
during storage, then the stage3 tarball replaced
/etc/fstab. Moved generation to a newfstab_generatestage after extraction. /var/tmpabsent in the target - systemd'skernel-installneeds a temporary directory;/var/tmpwas missing. The fstab stage now creates/var/tmp,/tmp,/root,/home, and chroot commands setTMPDIR=/tmp.- installkernel needs
uki_generatoreven for BLS - with an explicit/etc/kernel/install.conf,05-check-config.installalways requires auki_generator. BLS now writesuki_generator=none. - dracut could not build the
cryptmodule - the target lackedsys-fs/cryptsetup. Addedsys-fs/cryptsetupandsys-fs/btrfs-progsto the base package set. - No
systemd-cryptsetup-sys-apps/systemdwas built without thecryptsetupUSE flag, so the encrypted root could not be unlocked. Addedcryptsetup(andpolicykit) to the systemd package.use entry. - Kernel command line used unnamed LUKS -
rd.luks.uuidyieldsluks-<uuid>, not the configured name. Switched tord.luks.name=<uuid>=<name>. - Dracut UKI did not embed the command line - the dracut
uki_generatorproduced a UKI with no.cmdline, so it booted with noroot=. Deferred UKI in favour of a reliable BLS entry carryingoptions. UKI remains future work. - fstab did not mount
@swap- the swapfile unit failed because/swapwas never the@swapsubvolume. Added thesubvol=@swapfstab entry. local root="$1" dir="$root/..."class bug - reintroduced inboot_write_dracut_conf; split into twolocalstatements. This class of bug is now covered by the regression suite.- Wrong package atoms -
gui-apps/fuzzel(not in Gentoo) ->gui-apps/wofi,app-misc/brightnessctl(not packaged) removed,app-crypt/gnome-keyring->gnome-base/gnome-keyring,gui-apps/polkit-gnome->gnome-extra/polkit-gnome. - Package policy compiled too much - unknown packages defaulted to
source.
balancednow compiles cheap builds and uses signed Gentoo binaries for everything else, which cut installer time substantially.
Rust installer parity (same VM path)
The Rust installer (installer-rs) reproduced the entire path on a fresh
disposable qcow2 disk using the static binary
phoebus-installer (x86_64-unknown-linux-gnu, crt-static):
- Same config (legacy flat format), same pinned stage3 URL + SHA-256.
INSTALL_RC=0; stages: storage, stage3, fstab, portage, base packages, kernel, bootloader, users, services, desktop (none), finalize.- Policy decisions matched Bash:
sudo/networkmanager/polkitbinary,cryptsetup/btrfs-progssource. - The installer recorded 81 then 97 measured compile times from Portage's
emerge.log(real data, not estimates). NO_SECRET_LEAKfrom the log secret scan.
Booted with the ISO detached:
- UEFI firmware ran systemd-boot; BLS entry booted.
- LUKS2 unlock, Btrfs
@root,/home,/var,/swap, ESP at/efi. cat /proc/1/comm->systemd.systemctl is-system-running-> running (not degraded).systemctl --failed-> 0 loaded units listed.systemd-analyze: 1.378s kernel + 5.238s initrd + 4.114s userspace = 10.730s.- Login as
phoebussucceeded; networking up (10.0.2.15/24).
This is the point at which the Rust installer satisfies the parity criteria and may become the primary installer. The Bash implementation remains the reference/fallback until the desktop milestone is also verified.
Desktop and Flatpak (Rust installer, verified)
The Rust installer, running the desktop profile, installed the full Wayland
desktop and Flatpak successfully (INSTALL_RC=0; 326 measured compile times
recorded). Key change: a desktop install now selects the supported stable
Gentoo profile default/linux/amd64/23.0/desktop/systemd instead of
reconstructing X/Wayland/dbus USE by hand from the minimal systemd profile.
This resolved the earlier cairo[X]/libglvnd[X]/libxkbcommon[X]
conflicts, and sys-fs/{btrfs-progs,cryptsetup} -man avoided a
Sphinx/Pillow circular dependency.
Booted with the ISO detached and logged in:
systemctl is-system-running->running;systemctl --failed-> 0 units.flatpak --version-> Flatpak 1.18.1;flatpak remotes-> flathub configured.- Binaries present and runnable:
dwl 0.7,Waybar v0.15.0,wofi 1.4.1,mako,swaybg,pipewire,wireplumber,grim,wl-clipboard.
Session verification. The VM's serial session has no logind seat, so
wlroots' DRM backend correctly refuses (Failed to start a DRM session). This
is a headless-harness limitation, not an installer defect. Using
WLR_BACKENDS=headless WLR_RENDERER=pixman:
dwlstarted (pid observed), created thewayland-0socket.mako,waybar, andswaybgstarted and connected (swaybgfound outputHEADLESS-1).wl-copy/wl-pasteround-trippedphoebus-clip.grim /tmp/shot.pngproduced a 14401-byte PNG, proving the compositor renders and captures.wpctl statusreported the PipeWire graph;systemctl --user --failed-> 0.waybarlogged a non-fatal warning about a missing power-menu file and power-profiles-daemon.
The installer writes /usr/local/bin/phoebus-session, which starts waybar,
mako and swaybg and then execs dwl, with a software-render fallback when no
render node is present.
Official harness on the static binary (Bash migration, Phase 2)
The committed harness (installer/tests/vm/serial-driver.py +
installer/tests/vm/install.sh) now drives the static Rust binary and no
longer runs the Bash installer. Re-verified end to end on a fresh disposable
qcow2 (24 GiB, virtio-blk /dev/vda):
# Build:
cd installer-rs && RUSTFLAGS="-C target-feature=+crt-static" \
cargo build --release -p phoebus-installer --target x86_64-unknown-linux-gnu
# Install in the disposable VM, then boot the disk detached:
python3 installer/tests/vm/serial-driver.py install
python3 installer/tests/vm/serial-driver.py boot
Install (INSTALL-RC=0):
- The guest fetched
/tmp/phoebus-installerand printedphoebus-installer 0.1.0(the Rust binary, not Bash). - Stages completed in proven order:
storage_prepare,stage_install,fstab_generate,portage_configure,packages_base,kernel_install,boot_install,users_configure,services_configure,desktop_install(none),finalize. - Policy matched Bash:
crypto/btrfs-progssource build,sudo/networkmanager/polkitbinary. NO_SECRET_LEAK; the run powered off cleanly.
Boot with the ISO detached (serial-driver.py boot):
- UEFI firmware ran
\EFI\systemd\systemd-bootx64.efi(Boot0002 "Linux Boot Manager"); the BLS "Gentoo Linux" entry booted. systemd-cryptsetupprompted for the LUKS2 passphrase and unlockedphoebus-root (cryptroot).- Login as
phoebussucceeded. cat /proc/1/comm->systemd.systemctl is-system-running-> running.systemctl --failed-> 0 loaded units listed.- Networking:
enp0s2 UP 10.0.2.15/24. - Mounts:
/(btrfs@),/home,/var,/.snapshots,/swap, ESP/efi;vda2iscrypto_LUKS.
This satisfies the Phase 2 exit gate of docs/BASH-MIGRATION.md: the only
proven boot path no longer depends on the retired Bash installer.
Snapshots and safe updates (four-workstream session)
Verified on the installed Btrfs system from the static-binary harness, driving
the new sys binary fetched into the guest:
sys historybefore ->no transaction history.sys -y --action '{"action":"create_snapshot","operation":"vm test"}'->protective snapshot: @-20260920T114917-vm-test.sys historyafter ->@-20260920T114917-vm-test Committed vm test.btrfs subvolume list /shows@snapshots/@-20260920T114917-vm-testas a real subvolume (read-only snapshot).sys -y prepare-updatesfetched distfiles successfully;--buildpkgonlywas refused by Portage with--buildpkgonly requires all dependencies to be merged, which the installer now records asstatus: Readywith the reason (distfiles fetched; binary prebuild skipped: ...) instead of a hard failure.sys inspect-updatesreports the state and timestamp.
Unit regression tests cover the failure paths that a VM cannot easily force: corrupt snapshot history is an error, and a high-risk action aborts when the protective snapshot fails.
Desktop session on an installed VM
A full dwl desktop install was built with the static Rust binary
(DESKTOP_PROFILE=dwl, FLATPAK=no) and booted with the ISO detached:
INSTALL_RC=0, all stages, NO_SECRET_LEAK, systemctl is-system-running ->
running, 0 failed units.
Running the installed /usr/local/bin/phoebus-session under the headless
wlroots backend (the serial VM has no logind seat):
- the
wayland-0socket is created before any helper starts; - after startup the process tree is
dwl,waybar,mako,swaybg -c #1e1e2eand/usr/libexec/polkit-gnome-authentication-agent-1(the polkit agent, which the previous script never started); - dwl reports the
HEADLESS-1output; - after
dwlexits, all session processes are reaped.
Installed and on PATH: dwl, waybar, mako, swaybg, kitty, wofi,
Xwayland. The polkit agent lives at
/usr/libexec/polkit-gnome-authentication-agent-1; the session script's
fallback finds it because it is not on PATH.
This is headless verification. A physical VT / real logind seat remains to be
exercised interactively (docs/DEVELOPMENT.md -> "Physical VT / real-seat
check").
Signed binary reuse analysis
The desktop transaction's installer log (emerge grouping) shows the policy
already requests signed binaries for the expensive set:
- source group:
sys-fs/cryptsetup sys-fs/btrfs-progs; - binary groups: base tools,
gentoo-kernel-bin/firmware, and the dwl/waybar/ wofi/mako/sway*/gtk-layer-shell/xwayland set.
The desktop install in this session took ~1h49m wall time (12:01–13:50 UTC) on 8 vCPUs. Most of that is Portage falling back to source because the OpenRC/ hardened binhost cannot satisfy the systemd/desktop USE set, even though the policy requested binaries. Two comparable data points are now recorded: the base-only install took ~44 min and the desktop install ~1h49m. The code changes here remove forced flags but cannot raise reuse without a matching binhost, so no new time saving is claimed.
The remaining source builds are caused by the official Gentoo binhost being
built for the OpenRC/hardened profile (PROFILE: default/linux/amd64/17.0/ hardened), which cannot satisfy a systemd/desktop USE set. The safe changes
made here are: stop forcing the unused installkernel uki flag, remove the
duplicate PipeWire and empty WirePlumber package.use lines, and derive the
binhost URI from the selected profile when it is not set. Signature
verification remains enabled. Publishing a matching systemd/desktop binhost is
the remaining step; no time estimate is claimed beyond the recorded ~26 min.
Debian-Live installer appliance (actual ISO)
An appliance ISO was built without root by installer/live/build.sh
(Debian-Live 13.7 standard base + /phoebus overlay). The full-install
evidence below was recorded with build
c0105bc9a282fddcbefab42baa577ea99843060f00fa45a75bcbc8358186bfd5.
A desktop install was re-run and verified with build
c1846f0d18ed9813e5ef3e699b9110f4fb04ab09a4c5ed800970b1d54971d114:
- mandatory-AI gate refused the install until
--no-aiwas passed (GATE_REFUSED_OK); - Nix:
/nix/store/2nhrwv91g6ycpyxvhmvc0xs8p92wp4bk-nix-2.24.9present,nix (Nix) 2.24.9,nix-daemon.serviceenabled and active, andnix shell nixpkgs#hellodownloaded fromcache.nixos.organd printedHello, world!; - desktop portals:
xdg-desktop-portal 1.20.4,-gtk 1.15.3,-wlr 0.7.1; - desktop binaries present:
dwl,waybar,kitty,wofi,Xwayland; - hostname
phoebus, networkingenp0s2 UP 10.0.2.15/24, systemd PID 1,running,0 loaded units listed.
The current build is
3ba913ba660fb7436e26e587e9777f1f65ed10dcc9b50d17458ebb3d3a739b5c: Nix is now
on by default, and finalize flushes the target (sync) before unmounting.
That build was not re-run end to end because the host root filesystem
reached ~98% and the base emerge became pathologically slow. Treat c1846f0d
as the verified artifact and 3ba913ba as the current one.
Firmware boot (UEFI/OVMF, no -kernel; the ISO's own grub chain):
- auto-boots the live system on the serial console;
- login
user/live(passwordless sudo); - the overlaid tools run:
cryptsetup 2.7.5,sgdisk 1.0.10,partprobe 3.6,mkfs.btrfs 6.14,mkfs.fat.
Full install to a fresh 24 GiB qcow2 driven from the appliance:
INSTALL_RC=0, all stages,NO_SECRET_LEAK.
Detached boot of the installed disk (ISO removed):
- systemd-boot -> LUKS2 unlock ->
phoebuslogin; systemctl is-system-running->running;0 loaded units listed;- Gentoo-only:
Gentoo Base System release 2.18, Portage 3.0.82.2,no-apt; systemd PID 1; cryptrootBtrfs mounted at/,/home,/var,/.snapshots,/swap, ESP/efi.
This is Bash-free and Gentoo-target-only: the appliance contributes tooling, never configuration.
Open items found in this run
- Resolved: the earlier
gentoohostname anomaly did not recur; the target boots asphoebuswith/etc/hostnameset, and DHCP comes up (enp0s2 UP 10.0.2.15/24) once awaited. - Implemented, not re-verified:
/usr/local/bin/phoebus-session(and the exported installer log) were absent after boot in the earlier runs. The installer wrote and existence-checked them, and the root unmounted cleanly, but comparison with a boot-time-created file showed the finalize writes were not on disk: Btrfs commits lazily and the harness usedpoweroff -f. The fix is asyncinfinalizebefore unmounting (build3ba913ba). It has not been re-run end to end (host disk pressure). Until it is, treat the session script as unverified in the shipped ISO.
2026-09-21 appliance baseline (rollback/recovery foundations)
A fresh install of the committed code was run in a disposable qcow2 (24 GiB) with the rebuilt Debian-Live appliance ISO, then booted with the ISO detached. This validates the coordinated-snapshot and recovery-entry code on a real Btrfs system; it does not validate a rollback (that gate is still pending).
- Build: static
phoebus-installerfrom the tree, appliance ISO206551ec21e13753fb97f6d65bfc01e3642b0167908807f64d6ca5a80141adab. - Config:
DESKTOP_PROFILE=none,KERNEL_PROFILE=safe, LUKS2 + Btrfs,NIX_ENABLED=no; the host served the stage3 (sha256 6a3d85ee...f77d44d5), config and 0600 secret files over HTTP. - Harness:
installer/tests/vm/appliance-driver.py installthenboot(new in this session).
Install:
===NO_SECRET_LEAK===,===INSTALL-RC=0===, clean poweroff (reboot: Power down). Target grew to 6.3 GiB.
Detached boot (no ISO, no -kernel):
-
UEFI ran systemd-boot; its menu listed
Gentoo Linux,Phoebus Recovery (known-good snapshot)andReboot Into Firmware Interface; the default booted. -
systemd-cryptsetupprompted for the LUKS2 passphrase and unlockedphoebus-root (cryptroot). -
cat /proc/1/comm->systemd;systemctl is-system-running-> running;systemctl --failed-> 0 loaded units listed. -
Networking:
enp0s2 UP 10.0.2.15/24. -
The target's transaction history contains the initial coordinated snapshot:
[[records]] id = "@-20260921T110110-initial-known-good" operation = "initial known-good" source_subvol = "/mnt/phoebus" snapshot_subvol = "@-20260921T110110-initial-known-good" var_snapshot = "@var-20260921T110110-initial-known-good" status = "committed"This confirms
@and the separately mounted@varare captured together and that the installer writes a snapshot-based recovery entry (not one that depends on the live root). Reading the recovery entry andbtrfs subvolume listas the unprivileged user was refused; the menu entry above is the evidence that it exists.
Not yet verified for this baseline: sys undo, a deliberately broken update, a
detached rollback reboot, and recovery with no network/model (the rollback
acceptance gate).
2026-09-23 update — rollback acceptance automated, still NOT run. The
missing driver now exists: serial-driver.py rollback (with
rollback-guest.sh and rollback-verify.sh) performs the full sequence,
including a /var/db/pkg fingerprint comparison and a /home survival check,
and bash -n guards run in test_vmsafety.py. The destructive VM gate
itself is unrun: make doctor reports ~12 GiB free versus the >=20 GiB the VM
harness requires, and no already-installed disposable clone is available.
Booting the recovery entry offline is still a manual step. sys undo therefore
remains unverified, not passing.
2026-09-23 update — NVIDIA gates still NOT run. The live driver decision,
the hardened payload verifier and the installed lifecycle are implemented and
covered by Rust/fixture tests, but no NVIDIA-accelerated boot has been observed:
no NVIDIA GPU is present and QEMU's virtual GPU cannot establish acceleration.
The full desktop ISO was not assembled (disk), so the ordinary virtual-GPU
gui/install/boot journeys were not re-run against the repaired harness
either.
Mango + DankMaterialShell verification (IN PROGRESS)
Live ISO — graphical VM (verified 2026-09-21)
Artifact: installer/live/build.sh output
phoebus-mango-amd64.iso,
sha256 c235b873bc04a90c91ff4be361a605907997c509c4021e611645336c23f924d9
(1.6 GiB). The image was built rootlessly from the signed Debian testing
archive plus pinned Mango 0.17.2 and DankMaterialShell 1.6.2 releases
(installer/live/releases.sha256).
Booted in a disposable QEMU/OVMF VM with a graphical device
(-device virtio-gpu-pci, no -vga, serial console still attached) — a real
DRM node and logind seat, not a headless compositor:
uname -r->7.1.13+deb14-amd64;systemctl is-system-running-> running;/dev/dri/card0and/dev/dri/renderD128present.- Live autologin ran as an unprivileged
phoebususer in sessionc1onseat0/tty7;mango(compositor),/usr/bin/dms run --sessionandqs(Quickshell) were running under the user manager (mango-session.targetanddms.serviceboth active). - No dwl helpers (
waybar/mako/swayidle/swaylock) were started. - A framebuffer
screendumpshowed the DankMaterialShell desktop: the DMS panel (clock, weather, tray, network/battery/volume/power) and the DMS first-run "Welcome to DankMaterialShell" window, composited by Mango. This is the acceptance evidence for "the ISO boots into a usable Mango + DankMaterialShell live desktop". - The "Install Phoebus" application entry and
/usr/local/bin/phoebus-installare installed by the build; the launcher runs the installer UI and passes no--yes/--install/--no-ai(unit-tested), so opening it cannot start a destructive operation automatically. The serial console and a spare VT remain available as a recovery path.
Fixes found by this test (all committed): the live kernel/initrd must replace
the base ISO's versioned /live/vmlinuz-* paths; setuid bits must be
restored when packing as an unprivileged user (for sudo); virtio_gpu must
be autoloaded; greetd's greeter account must exist even with an
initial_session; greetd must run on VT7 to avoid the getty@tty1 conflict;
live-config autologin (noautologin) must be disabled in favour of greetd; and
the Mango session must not export WAYLAND_DISPLAY before the compositor
starts (wlroots would pick its nested backend instead of DRM) and needs the Qt
Wayland shell-integration packages for Quickshell.
Installed system — not yet run
A default install (desktop.profile = "mango"; the default) and a detached
encrypted boot to the greetd login are not yet verified in a VM: the Mango
transaction syncs the GURU overlay and compiles Quickshell/DMS/scenefx/Qt,
which was not feasible here. The configuration and login behaviour are covered
by unit tests (live_iso.rs, system::installed_login_*, desktop.rs), and
the plan renders the session. Verify with the harness once a full Mango build
is affordable:
python3 installer/tests/vm/appliance-driver.py install # DESKTOP_PROFILE=mango
python3 installer/tests/vm/appliance-driver.py boot
Remaining graphical checks (installed system and live): panel interactions and launcher, notifications, polkit prompt, lock/unlock, idle/suspend and resume, display changes, clipboard/screenshots/terminal/file manager, a Flatpak app launch + file chooser + screen sharing, logout/reboot, fail-closed shell restart, and resource metrics.
Known prerequisites/limits: the installed mango transaction needs the GURU
overlay (git) and compiles Quickshell/DMS/scenefx; the live build needs the
signed Debian testing archive. A graphical VM must provide a real seat (for
example -device virtio-gpu-pci with the serial console still attached);
-display none alone is not sufficient evidence of a graphical session.
- Live ISO boots to Mango + DMS (screenshot/
screendumpevidence, not just process names); panel, launcher and terminal work; "Install Phoebus" opens the installer UI without starting a destructive operation. - Live text-console recovery (serial and a spare VT) remains accessible.
- Fresh install with the default profile reaches
systemctl is-system-running = runningwith 0 failed units;emerge --pretendshows only the reviewed~amd64atoms. - Detached encrypted boot; LUKS unlock; authenticated login on a real seat; Mango is the sole graphical session.
phoebus-mango.desktopstarts the session; exactly one compositor (mango), one shell (dms), one lock/idle (DMS) and one polkit agent run; no waybar/mako/swaybg/swayidle/swaylock processes.- Panel, launcher (Mod+Space), notifications, tray and the DMS settings panel; audio/network/Bluetooth controls; lock/unlock; idle/suspend and resume.
- Display configuration/scaling and a second monitor if the VM supports one.
- Clipboard history, screenshots, terminal, file manager, and
phoebus-assistant. - An actual Flatpak app: launch, file chooser, and portal screen sharing.
- Logout reaps session processes; reboot cleanly.
- Shell-failure handling (kill
dms, compositor survives, locking still locks), and default-selection behaviour: omitting the profile selects Mango, explicitnoneis respected, and obsolete profiles are rejected. - Idle memory/CPU and startup metrics recorded.
Until results are recorded here, the default stands by owner decision but no stability is claimed.
Graphical installer ISO and typed bridge (2026-09-21)
A dedicated driver, installer/tests/vm/gui-driver.py, boots the built live
ISO with a graphical device and a serial console, drives the graphical
frontend through the compositor, and captures QEMU framebuffer screenshots.
Artifact: installer/live/phoebus-installer-amd64.iso, 1.6 GiB,
sha256 2a52178c4b4a71bbc5c011b89533988ceb9aa95493160cb93c4335f03d9a1eee
(Mango 0.17.2 + DankMaterialShell 1.6.2).
What was observed (gui mode):
- The live session autologins into Mango + DMS; the branded
phoebus-welcomewindow opens automatically. The DMS first-run greeter and changelog dialogs do not appear (markers pre-seeded). - The welcome shows the wordmark, emblem, wallpaper, ISO version (
0.1.0) and readiness (network connected, UEFI, memory, cores), with "Install Phoebus OS" dominant and the secondary tools plus Advanced present. - Launching
phoebus-installopens the wizard; running it again leaves the session count at 1 (DUP n1=1 n2=1), so duplicate installer sessions are prevented. - Keyboard navigation (Ctrl+Right / Enter / Tab) reaches step 2 (network and prerequisites, with real UEFI/memory/CPU/network values) and step 3 (AI model). Provider selection, the secret API-key field and the model field render; advancing without a connected model is refused with "Connect and validate an AI model before continuing."
- A backend probe on the real guest lists
/dev/vdaas unprotected and selectable, and/dev/sr0as thelive_mediuminstallation medium, protected (the model tests cover the classification logic). - Screenshots:
docs/screenshots/01-welcome.png…05-ai-blocked.png. The destination-disk, review and confirmation screens (06–08) were rendered from the same QML against a dry-run backend because a real provider call was not available in this environment.
What was not possible: a live AI provider call (no key/model in this environment). The AI step is verified as a blocked prerequisite and in unit tests with a fixture transport; it is not a passed live call.
Real install + detached boot on the same ISO (install then boot modes):
- Guest install used the same deterministic backend as the GUI
(
phoebus-installer --install --yes --no-ai):INSTALL-RC=0,installation complete,NO_SECRET_LEAK. - Detached boot (no ISO,
-boot order=c): systemd PID 1,running, 0 failed units,systemd-bootmenu shows Gentoo Linux first, LUKS2 unlocked,/dev/vda1 -> /efi,cryptrootBtrfs with/ /home /var /.snapshots /swap, network up.
Bug found and fixed during this work: the snapshot recovery BLS entry shared
the kernel's sort-key, and the specification's final filename tie-break
(decreasing) made it first when the random machine-id sorted low; with
default * the installed system booted systemd.unit=rescue.target. Fixed by
pinning loader.conf to the newest real kernel entry and giving the recovery
entry sort-key zzzz-phoebus-recovery; unit tests pin both.
2026-09-22 — automated graphical journey (gui-driver) and hardened harness
The graphical live ISO was rebuilt and driven automatically by
installer/tests/vm/gui-driver.py gui in a graphical, seat-providing
QEMU/OVMF VM with a disposable qcow2 disk directory and a per-run OVMF variable
file.
- Source revision:
7e9fa9cplus uncommitted work; build id recorded in/etc/phoebus/build(7e9fa9c+dirty…). - Static installer:
sha256 2f9cd4b3…(4,716,544 bytes, static-pie). - ISO:
installer/live/phoebus-installer-amd64.iso,sha256 428dbd75…, 1.6 GiB, built withPHOEBUS_REUSE_ROOTFS=1(Mango 0.17.2 + DankMaterialShell 1.6.2). - Result: 23/23 checks PASS, exit status 0
(
/var/tmp/phoebus-vm/gui-gui-20260922T025537Z-69f754cf/). Asserted: welcome autostart; live/branding payload markers from command output (not the echoed command); the live medium protected; "Install Phoebus OS" launched the installer from a Return keypress; duplicate sessions prevented (n1=n2=1); the frontend reported no bridge errors; keyboard navigation reached the network and AI steps; advancing without a connected model was refused and started no installation. - Screenshots at every page (welcome focus, language, network, AI model, AI
blocked, final state) plus a
screenshot-manifest.json;report.pybuilds a browsablereport.html. All artifacts stay under/var/tmp/phoebus-vm/(outside git).
Harness safety verified in the same work: the drivers reject /dev/*, block
and character devices, raw images, symlinks escaping the disposable directory,
and outside backing chains, with a nonzero exit (make test-vm, 16 unit
tests). Screenshots use structured QMP and argument arrays; there is no shell
interpolation.
A host-local OpenCode transport test also ran: phoebus-installer --opencode-probe returned ready against opencode 1.18.32 through a
forwarded second loopback endpoint, and authentication_required (exit 1)
against a deliberately unauthenticated LAN bind.
2026-09-22 — graphical journey polish and the gui-install mode
The graphical installer was reworked into a fixed first-time-user journey and re-verified on the final ISO.
- Source revision:
34c12d3plus the session work; ISOinstaller/live/phoebus-installer-amd64.iso,sha256 0c386a1b…, 1.6 GiB, built withPHOEBUS_REUSE_ROOTFS=1(Mango 0.17.2 + DankMaterialShell 1.6.2). gui28/28 PASS (/var/tmp/phoebus-vm/gui-gui-20260922T191954Z-876d5e91/): welcome autostart, launcher from the keyboard, duplicate prevention, the live medium protected, keyboard suggestion selection (Down then Enter stores the identifier), the network and AI steps, the AI gate refused without a model with an inline error, and no bridge errors.opencode18/18 PASS (/var/tmp/phoebus-vm/gui-opencode-20260922T192457Z-01714c92/): OpenCode selected and driven through the UI, a real model response (Test connection), a validated proposal (4 changes applied), and a regression asserting that editing the model flips the validated state off.gui-install24 PASS / 1 FAIL (/var/tmp/phoebus-vm/gui-gui-install-20260922T151232Z-0ef19969/): every journey assertion passed — OpenCode connect/review/accept,back-nav-preserves-ai,readiness-refresh-preserves-wizard,disk-survives-backtrack, disk selection, account and encryption, ERASE andgui-install-erase-confirmed— and the backend then reported the real stage sequence (storage_prepare,stage_install,fstab_generate,portage_configure,packages_base,kernel_install) with elapsed time and no fabricated percentage. The single FAIL isgui-install-completes: after four hours the install was still inkernel_install, because the base-package stage took ~116 min and the AI-selected optimized kernel compiled for more than 100 min on this host, so the harness timeout fired. The completed install + detached boot gate is BLOCKED on host build time; the deterministic noninteractive install + detached boot (above) remains the proven boot path. No code defect is implicated.- The new
PHOEBUS_GUI_CONFIG//etc/phoebus/install.confhook lets a medium preseed the wizard defaults. It changes defaults only: validation, the plan, the AI gate and the ERASE authorization are unchanged.
2026-09-24 — End-to-end graphical install and detached first-boot verification
The graphical installer journey was completed 100% through all 12 backend orchestration stages and the Mango desktop package set, followed by a clean detached boot verification with the live ISO removed.
- Fresh Live ISO:
installer/live/phoebus-installer-amd64.isorebuilt withscripts/ensure-live-iso.sh(SHA-2564b83df6b531bc38ffc38e3aee21a3519f2d414a8af883f36ef82f52c4e0458d6, 1.6 GiB). - Kernel profile optimization for installation: Default kernel profile
configured to
KernelProfile::Safe(sys-kernel/gentoo-kernel-bin), eliminating the 100+ minute kernel compile from source that previously exceeded harness timeouts. - Graphical Installation (
gui-install, rungui-gui-install-20260924T144711Z-feab515b):- All 6 wizard steps driven via virtual input: OpenCode local connection,
hardware-aware recommendations, disk selection (
/dev/vda), account (phoebus), LUKS2 passphrase, ERASE confirmation. - Executed all 12 backend stages in sequence:
storage_prepare(GPT, ESP, LUKS2, Btrfs subvolumes@,@home,@var,@snapshots,@swap)stage_install(pinned Gentoo systemd stage3)fstab_generate(fstab and crypttab)portage_configure(binary package binhost, scoped keywords and USE)packages_base(essential system packages)kernel_install(sys-kernel/gentoo-kernel-bin+ dracut initramfs)nvidia_drivers(hardware check / skipped for virtio-gpu)boot_install(systemd-boot + BLS entry)users_configure(userphoebus, wheel/sudo group, shadow hash)services_configure(systemd essential services, locale-gen)desktop_install(all 174 packages emerged: Mango, DankMaterialShell, Quickshell, greetd, tuigreet, Wayland libraries, Flatpak)finalize(installation metadata/etc/phoebus/install.toml, clean unmount)
gui-install-completespassed (07-gi-07-complete.pngcaptured): "Phoebus OS is installed. Your system is ready. It can boot, run and recover without a network or a model."
- All 6 wizard steps driven via virtual input: OpenCode local connection,
hardware-aware recommendations, disk selection (
- Detached First Boot (
gui-boot, rungui-boot-20260924T183545Z-4b5de282):- Booted with
iso=False,-boot order=cpointing strictly at/var/tmp/phoebus-vm/disks/test-disk.qcow2. - Firmware booted systemd-boot -> kernel loaded -> LUKS2 prompted and unlocked with test passphrase.
- All Btrfs subvolumes mounted correctly (
@on/,@homeon/home,@varon/var,@snapshotson/.snapshots,@swapon/swap). - Serial console login authenticated successfully.
sysdeterministic CLI verified installed and operational:/usr/local/bin/sys historyreportedno transactions recorded.- Systemd reached
running(0 failed units). - Greeter fix: Diagnosed and fixed a TOML multiline syntax issue in
/etc/greetd/config.toml(command string formatted on a single line).greetd.servicestartedtuigreetcleanly, verified by QMP screendump (01-boot-desktop.pngdisplaying "Authenticate into phoebus-vm"). - Clean guest poweroff executed and verified (
sync; systemctl poweroff). - Results: 6/6 PASS (
qemu-spawned,detached-boot-login,boot-systemd-running,boot-sys-installed,screenshot-01-boot-desktop,screenshot-02-final-state).
- Booted with
2026-09-25 — Snap first-use acceptance on an installed disposable VM
- Target:
snap-acceptance.qcow2, a disposable overlay of the installedfresh-install-1.qcow2image in the VM disk directory. QEMU/OVMF booted the installed system; no physical disk was attached or modified. - The first attempt found a real Gentoo dependency requirement:
sys-fs/squashfs-tools[lzma,lzo]. The guest test applied only those scoped USE flags. Fresh Phoebus installs now generate the same package-specific setting. - The next attempt exposed a Portage resolver bug: the candidate was the
first dependency (
dev-lang/go-bootstrap) instead of the requestedapp-containers/snapd. The resolver now selects the requested atom, and the approved plan showed six new source packages includingsnapd-2.63. - Final run
serial-boot-20260926T001830Z-107996dereportedPASS=10 FAIL=0: installed snapd through the reviewedsysPortage path, enabled and startedsnapd.socket, installed Snap Storehello-world6.4 revision 29 throughsys, ransys snap refresh hello-world --legacy, then removed it and verified absence. The daemon reportedpartialconfinement and the install plan reportedpartialas well. - The refresh command succeeded with no newer revision. A revision-changing refresh and AppArmor-backed strict confinement remain unverified.
- Final static
sysSHA-256df608076aaf54290bfe0d4cdad9bcbca50064bf53ced62c44cf0e765d2a2f73fwas retested on the freshsnap-acceptance-final.qcow2overlay. The first run (serial-boot-20260926T005327Z-c024cc43) passed 11/11 checks including a clean guest poweroff. A clean reboot and repeat (serial-boot-20260926T010605Z-e6193c3a) also passed 11/11, with anotherhello-worldinstall, refresh, removal and clean poweroff.
2026-09-26 — sys acceptance re-run against the refactored static binary
- Target:
sys-acceptance-refactor.qcow2, a disposable overlay (absolute backing path, satisfying the harness disk-safety gate) of the pristine installedfresh-install-1.qcow2image. QEMU/OVMF booted the installed system detached; no physical disk was attached or modified. - Purpose: prove the quality-pass refactor (boxed
ExecError, Clippy fixes,service/andgui_bridge/module splits) changed no behavior. The guest fetched the new static-piesys(SHA-256 70f0a72b9ca4534250c2ee27417efffc0681da88ba4d2633da932813b0c0e044, built from the post-split tree) to/tmp/sysand ran the currentinstaller/tests/vm/sys-acceptance.shwithSYS_BIN=/tmp/sysas the non-rootphoebususer with no mutations — so the matrix exercised the new binary, not the image's provisioned one. - Result
serial-boot-20260926T014746Z-3089a820: guest===SYS-ACC-END=== SUMMARY PASS=38 FAIL=0(the full 38-case matrix: version/history/undo, failure cases, offline/model-free behavior, source selection, AI-first read-only workflow, catalogue including therdeps-legacyregression, and non-root privilege refusals), driverPASS=41 FAIL=0(38 cases + login +systemd is-system-running+ disposable-disk), exit 0. - Not covered by this run: the mutate group (
SYS_ACCEPTANCE_MUTATE=1), recovery boot, strict Snap confinement, and a revision-changing Snap update.
Known remaining work
-
The graphical session was verified with the headless wlroots backend (no logind seat in the serial harness). A physical VT / seat path is architected (
phoebus-session) but was not exercised on real hardware. -
NVIDIA proprietary support is implemented (hardware-driven branch/flavor policy, scoped Portage configuration, a build-time-verified live payload, and kernel/module/initramfs update coordination) with Rust tests. A minimal live rootfs was built and its NVIDIA payload verified this session (driver
550.163.01, kernel6.12.107+deb13-amd64, modulesnvidia-current*). It is NOT VERIFIED on hardware: no NVIDIA GPU is present on this host, QEMU's virtual GPU cannot establish NVIDIA acceleration, and no passthrough setup is available or authorized. The full desktop ISO was not assembled here (the host has ~10 GiB free; the build wants more).The live kernel is pinned to Debian stable because Debian testing's current kernel (7.2) removed the
strncpydeclaration the 550 driver uses, sonvidia-kernel-dkmsfails to build against it. The bundled branch covers Maxwell through Ada/Hopper; Blackwell falls back to nouveau on the live medium. The installed Gentoo system uses the current branch with open kernel modules on Turing and newer.Unblock (hardware): boot the built ISO on a machine with an NVIDIA GPU (or an authorized passthrough VM) and check:
systemctl status phoebus-nvidia.service,nvidia-smi,cat /sys/module/nvidia_drm/parameters/modeset==Y, an accelerated Mango/DMS session, XWayland/Flatpak rendering, monitor handling and suspend/resume. Then boot the installed Gentoo system and confirm the same, plus that a kernel update rebuilds the modules via@module-rebuildand regenerates the initramfs. Unblock (build): free sufficient disk space and runinstaller/live/build.sh(it fails, by design, if the NVIDIA payload is missing or mismatched), then theguiharness mode to confirm ordinary virtual-GPU boot is unchanged. -
UKI is deferred (BLS is used).
-
The installer rebuilds
sys-apps/systemdfrom source because boot/policykit/cryptsetup USE differ from the binhost. Shipping a matching systemd binpkg is a future optimization. -
Desktop USE still does not match the signed binhost, so the desktop transaction compiles a large amount from source (~26 minutes for the desktop package set on 8 vCPUs in the test VM).
-
The complete graphical install and detached boot gate is now VERIFIED. The
gui-installharness drives the real controls through the complete wizard, performs the real 12-stage install on a disposable qcow2, and boots detached with systemd running, LUKS2 unlocked,sysavailable, andtuigreetactive. -
A separate physical computer for the OpenCode transport test is NOT available; that check is BLOCKED. The forwarded-hop and unauthenticated-LAN-refusal tests are host-local.