XNU Linux: macOS running under Arm64 Linux
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.
- Although The Reg FOSS desk doesn't own any Arm64 kit powerful enough to try this on, we have built a few Hackintoshes in the past, and we know from direct personal experience that macOS without GPU assistance has been unusable since about OS X 10.3.
- (The NextBSD project we were talking about there now publishes daily snapshot images, but we couldn't test it: it freezes on boot in VirtualBox.) There was also Limbo, an attempt to run macOS on Linux in userspace, but development shut down in 2022.
- The team has got it running on Nvidia DGX Spark hardware, which shows it's not tied to Apple hardware – although Apple's macOS license agreement [PDF] is.
Xnulinux runs Apple's XNU kernel inside Linux on Arm64, bringing the macOS desktop along for the ride.
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.
- It takes the existing FOSS source code for XNU, and builds it to run as a Linux kernel module, xnu.ko.
- This means that you can load and run macOS, up to and including the Apple desktop, on a Linux system.
- There's also an effort called XNULINUX x86_64 to bring the same technology over to the x86-64 editions of macOS, but so far, it's at an even earlier stage.
- The organization behind this remarkable hack is called AFK AI, and it reports testing a bunch of macOS applications on the resulting hybrid OS.
- It's not the first time the FOSS world has tried to come up with ways to run macOS on non-Apple kit, or run macOS apps on top of other OSes.
How this summary was made: extractive summary — built from the sources' own reporting. It is drawn only from the reporting of the sources listed below — read the originals for full detail. How we summarize →