XNU Runs as Linux Kernel Module on arm64
Original: XNU Linux: Full OS X GUI Userspace on Linux
Why This Matters
Demonstrates native kernel-level macOS/Linux coexistence without virtualization overhead.
AFK-surf's xnulinux project loads Apple's open-source XNU kernel as a Linux kernel module (xnu.ko), running full macOS 27 GUI userspace—including Finder, Safari, and Chrome—on unmodified arm64 Linux.
A GitHub project called xnulinux has demonstrated something previously theoretical: Apple's XNU kernel, the open-source core of macOS, running as a loadable kernel module inside an unmodified arm64 Linux kernel. No hypervisor is involved. XNU drives the CPU and MMU directly, meaning macOS processes run natively alongside Linux processes on the same hardware.
A companion module, fki.ko, acts as a thin interface layer, lending XNU access to Linux's memory, timers, file system, networking, and GPU. With a stock Ubuntu kernel, loading xnu.ko boots a macOS 27 system disk—prepared by Apple's own installer—all the way to the desktop: loginwindow, WindowServer, Dock, Finder, Safari, and Chrome.
The project's README includes a screenshot showing a macOS 27.2.1 Terminal (running sw_vers, Darwin, launchd, WindowServer, Dock, and Finder) alongside an SSH session from that hosted macOS back into the Linux host—Ubuntu with Linux 7.0 and the xnu/fki modules loaded. The repo has 881 stars and 30 forks since going public. The project describes the result as "one system, two userspaces."