Summary
- XNU Linux embeds Apple’s XNU kernel into ARM64 Linux to run macOS apps natively, no hypervisor needed.
- It booted macOS 27.2.1 on Ubuntu and runs macOS and Linux processes side-by-side on compatible ARM64 hardware.
- It’s experimental and requires ARM64 with PAC and 4K pages, specific hardware, and your own macOS copy.
The Linux community has made massive strides in getting Windows apps working on Linux, to the point where we can just run anything we want through Proton and see what happens.
But what if you wanted to use macOS apps instead? Well, instead of using virtual machines or reverse engineering, one project believes it has the solution: stick the entire macOS kernel into Linux and let it handle it all.
XNU Linux aims to bring macOS compatibility by using Apple’s kernel
It’s certainly an interesting way to solve the problem
As spotted by Linuxiac, XNU Linux aims to make it easier to run macOS apps on your Linux machine. The best part is, it doesn’t need to use any translation or hypervisor tech to achieve that goal; instead, it takes XNU, an open-source kernel for macOS from Apple, and stuffs it into an arm64 Linux kernel. This allows the macOS and Linux processes to run natively next to one another on the same CPU.
It seems to be making pretty big strides already; in fact, its creator, Heyang Zhou, claims they booted macOS 27.2.1 to the desktop using a stock Ubuntu install. You can check it out in the screenshot above.
The system requirements are pretty tight; it’s only for ARM64 devices with Pointer Authentication (PAC) and 4K pages. It has only been tested on bare-metal Nvidia DGX Spark hardware and Apple Silicon Macs that are M1 or newer (running Linux inside a VM via krunkit or tart, though XNU still runs directly inside Linux without a second hypervisor), and you need your own copy of macOS.
If you’d still like to give it a try, head over to the XNU Linux GitHub page and download it from there. Just remember it’s still an experiment, so be ready for any and all weirdness that arises when using new tech.