Here’s a wild one from Phoronix. XNU Linux is a new open source project that builds XNU, the open-source kernel of macOS, from Apple’s published sources and loads it as a kernel module (xnu.ko) inside an unmodified arm64 Linux kernel. A small interface module (fki.ko) lends XNU Linux’s memory, timers, files, network and GPU.
No hypervisor sits in between. The hosted XNU drives the CPU and MMU directly, so macOS processes run natively next to Linux processes. According to the project, on a stock Ubuntu kernel, insmod xnu.ko boots a macOS 27 system disk made by Apple’s own installer all the way to the desktop: loginwindow, WindowServer, Dock, Finder, Safari and Chrome.
The limits: it’s ARM64 only, not x86_64, testing has been on macOS 27, and you have to bring your own macOS binaries from your own install.
My take
As someone who runs Linux and Apple gear side by side, this is the kind of hack that makes me grin. It’s also a lot of trust to hand a kernel module, so I’d only try it in a throwaway ARM64 box or VM, not on anything I care about.
God Bless, and May the Source Be with You!