Post

HN
Hacker News

Linux 0.11 rewritten in idiomatic Rust, boots in QEMU

A modern Rust rewrite of the Linux 0.11 kernel — boots on i386 in QEMU, runs a self-hosted Unix-style userland.

linux-0.11-rs rebuilds the 1991 Linux 0.11 kernel from scratch in modern Rust. It keeps the original system's semantics — what it does — while rethinking how it's expressed: stronger types, clearer module boundaries, idiomatic abstractions everywhere. The kernel boots on emulated i386 hardware, runs a full init → shell → coreutils stack, and ships with the tooling to build your own bootable image in one command.

You'll land at a shell prompt in /root . Try:

Outside a devcontainer you'll also need a recent Rust nightly (pinned in rust-toolchain.toml ), qemu-system-i386 , the x86_64-linux-gnu-* cross-binutils, and the local image/test tools:

End-to-end tests boot the kernel under QEMU and drive the serial console from short .ktest scripts under ktest/suites/ .