hn.today

XNU Linux: Full OS X GUI Userspace on Linux

github.com372 points170 comments
Screenshot of XNU Linux: Full OS X GUI Userspace on Linux

XNU Linux runs Apple’s open-source XNU kernel as a loadable module inside an otherwise unmodified arm64 Linux kernel, allowing macOS and Linux processes to run side by side on the same CPUs without a hypervisor between them. Linux supplies memory, timers, files, networking and device access through a separate interface module. Device components provide macOS with a disk, display, input, network and keystore; an optional graphics bridge routes Metal through Vulkan to the Linux host GPU, with CPU rendering as a fallback. The project reports that macOS 27.2.1 boots to its desktop in 31-48 seconds on an Apple Silicon Mac running an arm64 Linux VM, and that apps, Spotlight and the filesystem work. A 30-minute app-and-disk stress test completed without a panic or crash.

Running it requires an arm64 Linux host with pointer authentication and 4K memory pages, roughly 24 GB of RAM, a Mac with Xcode to build the system disk and optional graphics components, and a macOS 27 installation supplied by the user. The repository provides scripts to build XNU and its modules, convert a macOS VM disk, boot the hosted system and install it as a service. It does not distribute Apple’s binaries, system disk or trust cache. The setup remains experimental: it merges the OS cryptex into the system volume, patches AMFI and relaxes SIP, and accesses memory more slowly than a native VM because it uses 4K rather than 16K pages. Linux-side and XNU-side code are separated at the interface and carry different licenses.

Read on github.com170 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.