xnulinux: Running macOS user space on Linux
11/23/2026
XNU can run as a kernel module inside arm64 Linux and boot a macOS desktop.
Key points
•xnulinux builds XNU as xnu.ko and loads it into arm64 Linux.
•macOS 27.2.1 reaches the desktop in 31–48 seconds on an arm64 Linux VM on an Apple Silicon Mac.
•No hypervisor; macOS and Linux processes run natively on the same CPU.
Impact
•macOS applications can be opened and quit in the hosted system.
•You must supply your own macOS 27 installation (Apple Virtualization VM disk); the repository contains no Apple binaries.
Recommendations
1.Prepare arm64 Linux: PAC, 4K pages, 16 GB RAM, with 8 GB for XNU.
2.First run scripts/vm-xnu-build.sh to build XNU.
3.Use scripts/xnulinux-boot.sh to boot the hosted system.
#Tools