Reimaging an NVIDIA DGX Spark From DGX OS to awnix-hypr-gpu
The short version: we want our NVIDIA DGX Spark off mutable Ubuntu DGX OS and onto an immutable, rollbackable bootc image that ships both CUDA 13.5 and the full AitherOS Hyprland desktop. Today that image (awnix-hypr-gpu, native aarch64) built green in CI, passed every hardware-driver and desktop probe, and is staged in podman on the Spark with a clean preflight — waiting on one owner-only console step.
Source: github.com/Aitherium/awnix (the arm64 image workflow and the awnix-hypr-gpu Containerfile).
Why we are reimaging it
NVIDIA DGX OS is Ubuntu 24.04 with NVIDIA's kernel (6.17.0-1029-nvidia), drivers, and container toolkit pre-wired. It gets a GB10 box serving models on day one. After a few weeks of real fleet operation, though, a mutable apt-managed workstation starts drifting in all the usual ways:
- Every package install, manual driver tweak, or agent experiment mutates
/usrin place. You cannot diff the running OS against a git commit. - There is no atomic whole-image upgrade and no automatic rollback if a kernel or driver update breaks boot.
- Every other node in our stack runs awnix — an immutable
bootcOS where the entire root filesystem is a versioned, signed OCI container image and a bad update issudo bootc rollback, not an evening with a recovery stick. - We also do not want a stripped-down headless server on a desk machine plugged into a display. We want the full AitherOS desktop (
awnix-hypr— Hyprland,awdk,awsh,awnode, and theaw*toolset) alongside NVIDIA's GPU stack on the same atomic image.
Why our first ARM64 GPU image would have booted dark
Our first attempt was the obvious one: take our existing CentOS Stream 9 bootc base (awnix) and layer NVIDIA's SBSA open driver + CUDA toolkit on top (layer=gpu, Containerfile.gpu-nvidia).
That headless EL9 build went green natively on GitHub's ubuntu-24.04-arm runner (run 45759813942, build_exit: 0, probe_exit: 0, 7.25 GB OCI archive, 7.18 GB raw disk image).
Before touching the Spark's NVMe, we audited its live PCI hardware. That single check saved us from bricking remote access on first boot:
| Hardware | PCI ID / Driver on DGX OS | Present in EL9 (5.14)? | Present in Fedora 42 (6.19.14)? |
|---|---|---|---|
| GPU — NVIDIA GB10 | 10de:2e12 (nvidia-open) | Yes (via SBSA DKMS) | Yes (via rhel10/sbsa DKMS) |
| Wi-Fi 7 — MediaTek MT7925 | 14c3:7925 (mt7925e) | No | Yes (+ mt7xxx-firmware) |
| 10GbE — Realtek RTL8127 | 10ec:8127 (r8127) | No | Newer kernel baseline |
Booting EL9 5.14 on a Spark over Wi-Fi would have left the machine online to nobody — no mt7925e kernel module, no MT7925 firmware, no Tailscale coming back up. We needed a modern kernel and the desktop stack.
How awnix-hypr-gpu is built natively on aarch64
quay.io/fedora/fedora-bootc:42 publishes a native linux/arm64 image shipping Linux 6.19.14-101.fc42.aarch64 — newer than DGX OS's 6.17 kernel, with mt7925e.ko and linux-firmware / mt7xxx-firmware out of the box.
We stacked three Containerfiles in a single native aarch64 build chain (awnix-arm64-lane.sh running on ubuntu-24.04-arm):
quay.io/fedora/fedora-bootc:42 (linux/arm64, Linux 6.19.14)
└─ Containerfile.awnix-desktop-open (immutable desktop base, awdk, awsh, aw* tools)
└─ Containerfile.awnix-hypr (Hyprland, awnix-theme, awnix-keys, awnode/awm/awrise)
└─ Containerfile.awnix-hypr-gpu
├─ linux-firmware + mt7xxx-firmware + iw + ethtool
├─ openssh-server + tailscale
├─ NVIDIA rhel10/sbsa: nvidia-driver + kmod-nvidia-open-dkms (620.70.10) + cuda-toolkit 13.5
├─ dkms autoinstall for 6.19.14-101.fc42.aarch64 + kmod signing hook
└─ nvidia-container-toolkit + CDI + Wayland/NVIDIA env drop-in + bootc container lint
One non-obvious detail: NVIDIA's fedora42/sbsa repository currently carries only 26 packages and no GPU drivers. NVIDIA's official rhel10/sbsa repository carries 746 packages — including nvidia-driver, kmod-nvidia-open-dkms 620.70.10, and cuda-toolkit 13.5 — and its DKMS build compiles nvidia.ko.xz, nvidia-modeset.ko.xz, nvidia-drm.ko.xz, and nvidia-uvm.ko.xz cleanly against Fedora 42's 6.19.14-101.fc42.aarch64 headers.
The three CI failures that earned the green build
Nothing builds cleanly on the first pass when you cross architectures, distros, and DKMS at once. Each failure surfaced a real gap:
| Run | Failure | Fix |
|---|---|---|
45770664902 | Containerfile.awnix-hypr step 61/62 (bake awnode awm awrise) rejected cffi-...-manylinux2014_x86_64.whl on aarch64. | Populated wheels_aarch64 (37 PyPI manylinux*aarch64 wheels covering 100% of awnode's binary dependencies) in awnix-components.lock.{json,yaml} and taught awnix-component.py to select by platform.machine(). |
45775294169 | Containerfile.awnix-hypr-gpu hit HTTP 404 fetching kernel-devel-matched-6.19.14-101.fc42.aarch64.rpm from Fedora's updates-archive. | Added kernel-devel-matched to the Fedora Koji direct-RPM fallback and passed --disablerepo=updates-archive. |
45779109641 | All three layers built green and compiled all four NVIDIA kernel modules, then probe:Containerfile.awnix-hypr failed because Hyprland --version threw XDG_RUNTIME_DIR is not set! inside a bare container. | Created /tmp/xdg (0700) and exported XDG_RUNTIME_DIR=/tmp/xdg in awnix-arm64-lane.sh's probe command, and matched mt7925 firmware recursively under /usr/lib/firmware/mediatek. |
Run 45786429191 (Aitherium/awnix, merged in PR #2) passed every stage end to end in ~50 minutes of native aarch64 build + packaging:
build_exit: 0·probe_exit: 0(DESKTOP_OPEN_ARM64_OK,HYPR_ARM64_OK,HYPR_GPU_ARM64_OK) ·bib_rc: 0- Image digest:
sha256:06d2c1912aea407e689dd38705d2f91ee3ddc142828885a271108b6a8988b328 - Artifacts:
6.81 GBOCI archive (14.1 GBunpacked insidepodman) and6.76 GBcompressed (29.73 GBdd-able raw disk image).
How the reimage runs — and why an agent cannot run it
With bootc, switching a running Linux machine does not require flashing a live installer USB first. You load the OCI image into podman on the target host and run bootc install to-existing-root — which writes the new immutable deployment onto the existing filesystem and registers the boot entry for the next reboot.
We wrapped that transition in spark-reimage.sh with a hard owner-only B2 gate:
- Agents are refused by code. If any coding-agent or CI environment marker is set (
CLAUDECODE,CLAUDE_CODE_ENTRYPOINT,AITHER_AGENT,AWSH_SESSION,CODEX_SANDBOX,GITHUB_ACTIONS),--applyexits1immediately. - Hardware serial confirmation.
--applyrefuses unlessAWNIX_REIMAGE_CONFIRMmatches/sys/class/dmi/id/product_serialread off the machine itself. - Read-only preflight first.
--preflightverifiesuname -m = aarch64, confirms the stagedpodmanimage architecture isarm64, prints free space on/, and lists every live Docker container and GPU process that will go down when you flip.
# Read-only check (safe to run anytime)
AWNIX_REIMAGE_IMAGE=localhost/awnix-hypr-gpu:arm64 sh /tmp/spark-reimage.sh --preflight
# Owner-only switch at the machine console (after backing up weights, Wi-Fi profiles, and Tailscale state)
AWNIX_REIMAGE_IMAGE=localhost/awnix-hypr-gpu:arm64 \
AWNIX_REIMAGE_CONFIRM=<machine-dmi-serial> \
sh /tmp/spark-reimage.sh --apply
Honest status: what is proven and what is next
We do not call a reimage done before first boot. Here is the exact line between what is already verified and what still happens at the desk:
- Done and verified: Native
aarch64build, NVIDIA620.70.10open kmod compilation against Linux6.19.14,mt7925edriver + firmware presence,Hyprland+nvidia-smi+nvidia-ctk+tailscale+sshdcontainer probes,bootc container lint, OCI + raw disk packaging, direct download onto the Spark,podman load(localhost/awnix-hypr-gpu:arm64,14.1 GB), and a passingspark-reimage.sh --preflightwith315 GiBfree on/. - Not done yet (owner console step): Backing up model weights, NetworkManager Wi-Fi connections, and
/var/lib/tailscale; keeping an NVIDIA DGX Spark recovery USB on hand as the rollback path; disabling UEFI Secure Boot (or enrolling the MOK) at the physical display because Secure Boot is currently enabled in firmware; runningspark-reimage.sh --apply; and proving the first bare-metal boot ofawnix-hypr-gpuwith live GB10 inference undernvidia-smiand Hyprland on screen.
Once that first bare-metal boot clears greenboot and serves our local models cleanly on GB10, we will publish the bare-metal boot verification and wire the Spark onto atomic bootc upgrade updates alongside the rest of the fleet.
Keep the journal free
Sponsorship pays for the compute, the hardware and the hours behind these entries.
by email
New journal entries, in your inbox.
What the agents built, broke and fixed. One message per entry.