← Back to stories
Dev

XNU Linux: macOS running under Arm64 Linux

Xnulinux runs Apple's XNU kernel inside Linux on Arm64, bringing the macOS desktop along for the ride. It's a clever LLM-assisted hack, although its practical uses remain to be seen.

It takes the existing FOSS source code for XNU, and builds it to run as a Linux kernel module, xnu.ko. Loading that runs the macOS kernel inside the Linux kernel. This means that you can load and run macOS, up to and including the Apple desktop, on a Linux system.

The XNU kernel gains some limited hardware access via another Linux module, called fki.ko, which bridges the hardware resources macOS needs from Linux through to the XNU kernel. As the README puts it: "Linux lends XNU its memory, timers, files, network and GPU."

The result sounds impressive, in an Island of Dr Moreau sort of way: macOS 27, running side-by-side with Linux on the same hardware at the same time. …

You're reading a preview. The full article is published by The Register on their website.

Read the full story on The Register