xnulinux
macOS userspace running natively inside an unmodified arm64 Linux kernel — no hypervisor.
Visit websiteOverview
Your Linux machine already runs the kernel. What if it could also run macOS — not in a virtual machine, but as a guest inside the Linux kernel itself?
xnulinux builds XNU, the open-source kernel of macOS, from Apple's published sources and loads it as a module (xnu.ko) into an unmodified arm64 Linux kernel. A companion module, fki.ko, lends the hosted kernel Linux's CPUs, memory, timers, files, network, and GPU, so macOS processes run natively beside Linux processes on the same CPUs, with no hypervisor between them.
What it does
- Boots a real macOS desktop — with a stock Ubuntu kernel, one insmod brings up a macOS 27 system disk made by Apple's own installer: loginwindow, WindowServer, Dock, Finder, Safari, and Chrome
- Runs macOS and Linux side by side — macOS userspace and Linux processes share the same CPUs natively
- Proven on real hardware — demonstrated on a bare-metal NVIDIA DGX Spark running Ubuntu 24.04.5
How it runs
On arm64 Linux with a stock distribution kernel, built from Apple's published XNU sources. Open source, with the XNU side under APSL and the Linux interface module under GPL.
Who it is for
Kernel hackers and Apple-silicon tinkerers who want to see macOS userspace run on Linux — and are comfortable building a kernel module to get there.