XNU Linux runs macOS inside Arm64 Linux — no hypervisor required
A new open-source project builds Apple's XNU kernel as a Linux module, letting macOS 27 run side-by-side with Linux on the same Arm64 hardware — no virtual machine needed.
A project called xnulinux runs Apple's XNU kernel inside Linux on Arm64, bringing the macOS desktop along for the ride. It takes the existing open-source code for XNU and builds it to run as a Linux kernel module, xnu.ko — loading it runs the macOS kernel inside the Linux kernel, so macOS, up to and including the Apple desktop, can load and run on a Linux system. A second module, fki.ko, bridges the hardware resources macOS needs from Linux; as the project's README puts it: "Linux lends XNU its memory, timers, files, network and GPU."
The result is macOS 27 running side-by-side with Linux on the same hardware at the same time. The organisation behind the project is called AFK AI, and it reports testing macOS applications including Safari, Notes, Calculator, TextEdit, System Settings and Spotlight, alongside the login window and desktop. The team has it running on Nvidia DGX Spark hardware, showing it is not tied to Apple hardware — although Apple's macOS licence agreement remains a constraint.
This is not a ready-to-use runtime for Mac apps on Arm Linux yet — macOS takes over the whole display and there is no hardware acceleration, so all software falls back to software rendering on the CPU. An x86_64 port exists but is at an even earlier stage, and earlier attempts include Darling, the macOS equivalent of Wine, and Limbo, whose development shut down in 2022. (Source: The Register)