diff --git a/README.md b/README.md index f0c26c6..310e0c9 100644 --- a/README.md +++ b/README.md @@ -11,8 +11,9 @@ D-075 selects GNOME first and approves the native/Flatpak application split in The proposal is still build-disabled until integration and acceptance are complete. Purpose [`proposals/container-runner.md`](proposals/container-runner.md) — server -edition for Podman, Cockpit and Tailscale — is accepted by D-100 (2026-11-10) and is -consumed explicitly by `--purpose container-runner`. Its package list was checked +edition for Podman, Toolbx, QEMU/KVM, Cockpit and Tailscale — is accepted by D-100 +(2026-11-10), with the libvirt stack added by D-117 and the shared Toolbx default by +D-118 (2026-11-17), and is consumed explicitly by `--purpose container-runner`. Its package list was checked against the 2026-11-10 snapshot; Cockpit network/PCP plugins are not packaged there, so the promised plugin set is the shipped one (podman, machines, storaged, files). Automatic acceptance scenarios are explicitly not required for this edition; the diff --git a/common/desktop/README.md b/common/desktop/README.md index 8417347..b3da77f 100644 --- a/common/desktop/README.md +++ b/common/desktop/README.md @@ -4,6 +4,11 @@ D-076 applies to GNOME, KDE and any later Desktop Purpose. Host package requirem are `toolbox` and `podman`, with their native dependency closures. `toolbox.conf` selects the upstream Arch Toolbx image at its `latest` tag. +D-118 extends the same packages and this exact default to Core, so Core-only images +and Container Runner inherit it. `builder/adapters/build-iso.sh` embeds these two +files into the Core image; Desktop finalizers install the same content from the +Purpose payload. Change the default here once, not per Purpose. + **Change of 2026-11-10 (user direction):** the previous D-076 binding to an immutable OCI digest through the synthetic `archipelago-pinned` tag was withdrawn. Stock Toolbx rejected that alias on the user's hardware, while diff --git a/proposals/container-runner.md b/proposals/container-runner.md index a05d326..b43f233 100644 --- a/proposals/container-runner.md +++ b/proposals/container-runner.md @@ -11,10 +11,12 @@ cadence and publication principles as the other editions. ## Goal -Turn an ordinary x86_64 server or spare PC into a managed container host: +Turn an ordinary x86_64 server or spare PC into a managed container and virtual-machine host: - a stock container runtime with rootless use; -- a browser management surface (Cockpit) for containers, storage and logs; +- a mutable Arch Toolbx development environment, as on Desktop Purposes; +- QEMU/KVM with libvirt so the stock Cockpit Machines page can run local guests; +- a browser management surface (Cockpit) for containers, virtual machines, storage and logs; - a Mesh-network entry point (Tailscale) without shipping credentials; - the normal Archipelago guarantees: immutable `/usr`, persistent `/var`, OSTree update/rollback, the same Core checks and the same image identities. @@ -131,7 +133,9 @@ snapshot/lock mechanism (D-042, D-043). | Tooling | `podman-compose 1.6.0`, `podman-docker 6.1.4`, `buildah`, `skopeo` | `podman-docker` conflicts with a real Docker install by design | | Multi-arch | `qemu-user-static`, `qemu-user-static-binfmt` | Optional at build; enables foreign-arch images | | Rootless IDs | `shadow 4.20` (`newuidmap`, `newgidmap`) | Requires subuid/subgid allocation at account creation (D-028) | +| Development | `toolbox 0.3`, `podman 6.x` | Same upstream Arch Toolbx default as Desktop Purposes (D-118); containers persist in the user's home | | Management | `cockpit 371`, `cockpit-podman 133`, `cockpit-machines 360`, `cockpit-storaged 371`, `cockpit-files 47` | All present in the snapshot | +| Virtualisation | `qemu-system-x86`, `qemu-img`, `qemu-hw-display-virtio-gpu`, `qemu-hw-display-virtio-vga`, `qemu-hw-uefi-vars`, `libvirt`, `libvirt-dbus`, `dnsmasq`, `dmidecode`, `edk2-ovmf`, `swtpm`, `virt-install` | Cockpit Machines dependency is `libvirt-dbus`; UEFI, TPM 2.0 and NAT networking included (D-117) | | Network UI | `networkmanager 1.58` | Needed by Cockpit's network page; Core currently uses networkd | | Firewall | `nftables`, `firewalld` (or `ufw`) | Policy decision below | | Mesh | `tailscale 1.104.5` | Stock package; needs `tun`, state directory and onboarding | @@ -156,6 +160,11 @@ Not shippable as-is: - `cockpit.socket` enabled, reached over HTTPS on 9090 from the LAN and from the tailnet. No unauthenticated access, no `AllowUnencrypted`. TLS details are still open (see below). +- `libvirtd.service` enabled; Cockpit Machines talks to libvirt through + `libvirt-dbus`. The default NAT network uses `dnsmasq`. Guest disks and machine + definitions live under `/var/lib/libvirt`, which is workload state: OS updates and + rollback must not remove them. `/dev/kvm` and membership in the `kvm` group are + operator prerequisites; without KVM, libvirt can still run emulated guests slowly. - `tailscaled.service` is **installed but disabled by default**; state lives in `/var/lib/tailscale` and the socket under `/run/tailscale`. **No auth key, node key or account identity is baked into the image.** The operator enables and connects it @@ -168,6 +177,10 @@ Not shippable as-is: deliberate operator action. - Rootful `podman.socket`/Docker API is **off by default**; it is root-equivalent. Rootless Podman plus Quadlet user units are the normal path. +- Toolbx uses the upstream `quay.io/toolbx/arch-toolbox:latest` image from Core's + shared default, so `toolbox create` provides a mutable Arch environment without + changing the host. Containers and their home data persist across updates and + rollback; the image does not delete or recreate them. - Container data lives in `/var/lib/containers` (root) and the user's home (rootless). It is workload state, not OS payload: updates and rollback must not delete it. - No automatic `podman system prune`, image GC, or restart of user containers without @@ -186,11 +199,15 @@ Core checks run first on the full Core + Container Runner image; then: 5. Cockpit loads over HTTPS, authenticates through PAM/polkit, and the available pages render (containers, storage, logs). The updates page is either functional through the Archipelago D-Bus plugin or explicitly absent. -6. `tailscale up` completes, `tailscale status` reports the node, and a ping/SSH over +6. Cockpit Machines starts a KVM guest from an ISO or an existing disk image, the + guest reaches the libvirt NAT network, and its definition/disk survives a reboot + and an OSTree update. UEFI (OVMF) and TPM 2.0 (swtpm) guests can be created when + the host exposes `/dev/kvm`. +7. `tailscale up` completes, `tailscale status` reports the node, and a ping/SSH over the tailnet succeeds; a reboot keeps the node identity. -7. An OSTree update to a new deployment preserves images, volumes and containers; +8. An OSTree update to a new deployment preserves images, volumes and containers; a rollback does the same. -8. Optional: a foreign-architecture image runs through binfmt. +9. Optional: a foreign-architecture image runs through binfmt. Each of these is a manual or automated check with recorded identities; none of them is claimed by this proposal. @@ -232,5 +249,7 @@ is claimed by this proposal. - No desktop environment, no Flatpak, no Toolbx requirement (D-076 is scoped to Desktop Purposes), no PackageKit. +- No virt-manager/GTK desktop application and no SPICE/remote-viewer stack: Cockpit + Machines is the management surface, and VNC is enough for a server console. - No second package manager, no mutable `/usr`, no Docker daemon by default. - No cloud-init or remote provisioning contract in this proposal. diff --git a/proposals/container-runner.yaml b/proposals/container-runner.yaml index 8b93923..c85a73e 100644 --- a/proposals/container-runner.yaml +++ b/proposals/container-runner.yaml @@ -26,8 +26,13 @@ spec: - name: conmon - name: containers-common - name: crun + - name: dmidecode + - name: dnsmasq + - name: edk2-ovmf - name: firewalld - name: fuse-overlayfs + - name: libvirt + - name: libvirt-dbus - name: netavark - name: networkmanager - name: nftables @@ -37,10 +42,18 @@ spec: - name: podman-compose - name: podman-docker - name: polkit + - name: qemu-hw-display-virtio-gpu + - name: qemu-hw-display-virtio-vga + - name: qemu-hw-uefi-vars + - name: qemu-img + - name: qemu-system-x86 - name: qemu-user-static - name: qemu-user-static-binfmt - name: shadow - name: skopeo - name: slirp4netns - name: sudo + - name: swtpm - name: tailscale + - name: toolbox + - name: virt-install