Retrieved article excerpt
Open article · Retrieved 2026-11-02T07:22:18.508700+00:00
# Ginux
**A Rust-first x86-64 operating system built around native domains and Linux
userspace compatibility.**
[DOI](https://doi.org/10.5281/zenodo.23682548)
Ginux is an independent kernel and operating-system prototype. It boots directly
through UEFI without a Linux host kernel, provides its own memory management,
scheduler, process model, VFS, networking, device support, and Linux ABI, and
runs an embedded administration controller in ring 3. Its primary workload is
an unmodified Linux userspace running inside a kernel-native **domain**.
The repository contains the complete bootable system, controller, native
services, Linux compatibility implementation, hardware paths, build tools,
architecture specifications, and QEMU test harnesses. The current development
target is an x86-64 Q35 virtual machine with OVMF, Intel IOMMU, and virtio
devices. It runs through KVM on an x86-64 Linux host and QEMU TCG on Apple
Silicon.
Today, Ginux can:
- build as one bootable `GINUX.EFI` image;
- start its embedded controller as an ordinary ring-3 process;
- configure devices, networking, storage, and persistent domain definitions;
- pull, verify, cache, and assemble OCI images into domain-local roots;
- create and run multiple domains with separate process, address-space,
filesystem, mount, capability, and lifecycle state;
- execute selected unmodified Alpine musl/BusyBox and Rocky Linux glibc
programs; and
- boot Rocky Linux 10 systemd through `multi-user.target`.
Ginux is experimental. Linux ABI coverage, device support, filesystems,
networking, resource enforcement, security validation, and real-hardware
coverage are incomplete. It is useful for research, architecture experiments,
and testing—not production workloads or as a replacement for Linux.
The name is a joke in the same family as Linux: **Ginux** combines Linux, GPT,
and Greg. To keep the author's ego within its configured resource limit, the
`G` officially stands for GPT.
## Design goals
- **Linux userspace without Linux underneath.** Linux is a personality exposed
by Ginux, not the host kernel.
- **Domains as the native system boundary.** Domains own processes, address
spaces, filesystems, devices, resources, authority, and lifecycle.
- **A self-contained boot image.** The kernel, controller, and core boot
requirements ship in one EFI release unit.
- **A small userspace control plane.** The embedded controller configures and
observes the kernel without executing in ring 0.
- **Explicit, revocable authority.** Kernel capabilities grant access to named
objects and are tied to domain generations for cleanup after failure.
- **OCI as transport, not runtime.** OCI delivers and assembles filesystems;
Ginux domains provide execution and isolation.
- **Compatibility as an observable contract.** Real Alpine and Rocky Linux
workloads supplement synthetic ABI tests.
## System description
```
+-----------------------------------------------------------------------+
| Embedded ring-3 controller: configuration, devices, domains, lifecycle |
+-----------------------------------------------------------------------+
| Linux-personality domains: Alpine, Rocky, and other Linux userspaces |
+-----------------------------------------------------------------------+
| Native domains: ownership | capabilities | resources | failure policy |
+-----------------------------------------------------------------------+
| Ginux kernel: processes | VFS | networking | scheduling | memory | IPC |
+-----------------------------------------------------------------------+
| UEFI firmware and the validated x86-64 QEMU hardware profile |
+-----------------------------------------------------------------------+
```
### Boot architecture and controller
UEFI loads one `GINUX.EFI` image containing the kernel, boot catalog, and
authenticated controller payload. Small assembly boundaries enter and leave
UEFI, install exception, interrupt, and syscall entries, and switch privilege
and address-space state; policy and most mechanisms are implemented in Rust.
The controller is part of the single EFI release unit rather than a service
installed in a host distribution. At boot, the kernel maps the statically
linked controller into ring 3. It configures the kernel and devices, discovers
host state, manages networking and persistent storage, maintains the OCI cache,
defines domains, and controls their resources, attachments, autostart, and
lifecycle. Ordinary process behavior uses the Linux ABI; protected management
operations use a versioned device/`ioctl` interface checked by the kernel.
This arrangement keeps the bootable system self-contained without running the
controller in ring 0. The controller can delegate or revoke authority granted
by the sealed boot envelope, but it cannot create new kernel authority.
### Domains and personalities
A **domain** is a native Ginux kernel object and the outer unit of isolation,
ownership, accounting, scheduling, lifecycle, and failure containment. A
domain owns or is granted:
- processes, threads, and address spaces;
- a generation-tagged capability table;
- CPU and memory policy;
- IPC objects and shared-memory grants;
- filesystem roots and mount views;
- network endpoints and device grants; and
- lifecycle and failure policy.
Domains are stronger boundaries than OCI containers or Linux namespaces. OCI
supplies an initial filesystem; Ginux supplies isolation and execution. A
single Linux-personality domain can look like a conventional computer, with
systemd as PID 1 and a distribution userspace above it. Multiple domains share
one Ginux kernel while retaining separate kernel-owned state.
A **personality** is the userspace contract visible inside a domain: executable
format, syscalls, processes, signals, VFS behavior, devices, terminals, clocks,
networking, and namespace expectations. Linux x86-64 is the only implemented
personality. Other personalities, such as BSD, remain architectural
possibilities rather than tested features.
### Filesystems, devices, and persistence
The kernel VFS presents domain-local roots assembled from verified OCI layers,
a writable overlay, and selected `tmpfs`, `procfs`, and `devfs` behavior. A
persistent host-owned volume stores controller configuration and a
content-addressed OCI cache across reboots.
The validated QEMU profile includes virtio block and network paths, MSI-X, and
VT-d DMA confinement. Measured Rust driver and protocol services can run in
separate ring-3 domains with bounded MMIO, DMA, queue, and packet authority.
General driver support, production storage guarantees, broad filesystem
coverage, and a physical-hardware matrix remain future work.
## Current demonstrated state
| Area | Demonstrated | Important boundary |
| --- | --- | --- |
| Boot | Unified x86-64 UEFI image under Q35/OVMF | No production signing, recovery, or physical-hardware profile |
| Controller | Embedded static ring-3 administration process | No production remote management plane |
| Domains | Multiple domain objects with distinct process, address-space, root, mount, capability, and lifecycle state | Resource and device isolation remain incomplete in several paths |
| Linux userspace | Selected Alpine and Rocky programs; Rocky systemd reaches `multi-user.target` | No distribution-wide compatibility claim |
| Storage | Persistent configuration and verified OCI layer cache | Writable domain persistence and production recovery remain incomplete |
| Networking | Host DHCP/DNS, virtual-link configuration, loopback, and tested lifecycle | Independent per-domain packet paths and leases remain unfinished |
| Devices | QEMU virtio block/network, MSI-X, and VT-d paths | No GPU, NVMe, broad hardware, or stable third-party driver ABI |
| Performance | Matched 1/2/4-vCPU QEMU comparison using the same Rocky userspace and sysbench binary | Not a native-hardware or general kernel benchmark; four-thread scheduling remains weak |
| Security | Capability and generation mechanisms exercised by tests | No independent audit or production security claim |
The validated development target is QEMU's x86-64 Q35 machine with OVMF,
Intel IOMMU, and virtio devices. QEMU uses KVM on a suitable x86-64 Linux host
and TCG on Apple Silicon Macs.
### Linux compatibility status
The Linux 6.12 x86-64 ledger classifies all 375 syscall numbers: 82 complete,
245 partial, and 48 policy-denied. Classification means every syscall number has
an explicit disposition; it does not mean complete Linux conformance. Loader,
process, VFS, terminal, socket, IPC, namespace, cgroup, pseudo-filesystem, and
device behavior is implemented only to the extent recorded in the
[compatibility matrix](https://github.com/gmkurtzer/ginux/blob/main/docs/LINUX-COMPATIBILITY.md).
The project uses real workloads as compound integration tests. Alpine exercises
the musl/BusyBox path. Rocky exercises glibc, dynamic linking, fork/exec, systemd,
services, procfs, terminals, and related kernel interfaces. A successful tested
workflow is evidence for that workflow only; it is not a guarantee that an
arbitrary Linux binary or distribution will run.
## Build and run
Requirements:
- Rust 1.99.0 through `rustup`;
- Clang with the `x86_64-none-elf` target;
- QEMU with x86-64 and OVMF support; and
- GNU Make.
Check the host, build Ginux, and boot it:
```
make doctor
make run
```
`make run` creates a sparse development volume at `build/qemu/volume.raw`.
`make reset-storage` deletes it; the next boot recreates a clean volume.
At the `ginux>` prompt, a minimal Alpine workflow is:
```
domain new alpine
domain set alpine image=alpine:latest init=/bin/sh
domain start alpine --attach
```
Press Control-] to detach. Reattach or execute another process with:
```
domain attach alpine
domain exec alpine /bin/echo hello
domain exec alpine --interactive /bin/sh
```
To exercise the tested Rocky systemd path:
```
domain new rocky
domain set rocky image=rockylinux/rockylinux:10-ubi-init init=/sbin/init memory-mib=2048
domain start rocky --attach
```
The base `rockylinux/rockylinux:10` image does not contain systemd; the tested
init-bearing image is `rockylinux/rockylinux:10-ubi-init`.
`domain start NAME` queues startup and returns to the controller. Use
`domain list` for transitional state and `domain status NAME` for detailed
root, execution, console, resource, image, and network state. OCI is only the
transport and filesystem assembly format; it is not the runtime or security
boundary.
## Verification
Useful gates include:
```
make build # build the unified EFI image
make test-linux-runtime # ELF, loader, PIE, TLS, heap, and VM behavior
make test-alpine # registry pull and Alpine shell
make test-rocky-shell # Rocky glibc shell and process/file behavior
make test-multi-domain # concurrent domain lifecycle
make test-rocky-systemd # cold and cached Rocky systemd boot
make test-storage # volume initialization, recovery, and reset
make check # architecture, ABI, format, lint, and unit checks
```
The evaluated checkpoint does **not** have a fully passing aggregate `make test`: a post-`execve()` system-supervisor lifecycle probe remains a recorded
failure. This limitation is preserved in the paper rather than hidden behind
the narrower passing gates.
The EFI image is written to `build/esp/EFI/BOOT/BOOTX64.EFI`. Run `make help`
for the full target and environment-variable list.
## Repository guide
- [`boot/efi`](https://github.com/gmkurtzer/ginux/blob/main/boot/efi) builds the UEFI entry and unified image.
- [`kernel`](https://github.com/gmkurtzer/ginux/blob/main/kernel) contains the kernel, Linux personality, executable
loaders, and QEMU hardware paths.
- [`control-plane/runtime`](https://github.com/gmkurtzer/ginux/blob/main/control-plane/runtime) contains the embedded
ring-3 controller.
- [`services`](https://github.com/gmkurtzer/ginux/blob/main/services) contains isol