XNU Linux is a new opens-source project allowing macOS user-space software to run on Linux by loading the macOS kernel into it. XNU Linux builds off Apple's open-source XNU kernel components of macOS while adapted to serve as a loadable Linux kernel module. Besides this XNU kernel module, this works on an otherwise unmodified ARM64 Linux system. This XNU Linux effort allows for macOS processes to run natively alongside Linux processes without relying on any hypervisor: "xnulinux builds XNU, the open-source kernel of macOS, from Apple's published sources and runs it as a loadable kernel module (xnu.ko) inside an unmodified arm64 Linux kernel. The hosted XNU drives the CPU and MMU directly, so macOS processes run natively next to Linux processes on the same CPUs, with no hypervisor between them. Linux lends XNU its memory, timers, files, network and GPU through a small interface module (fki.ko). With a stock Ubuntu kernel, insmod xnu.ko boots a macOS 27 system disk made by Apple's own installer to the desktop: loginwindow, WindowServer, Dock, Finder, Safari and Chrome." XNU Linux relies on the open-source Apple kernel code of XNU. Getting any macOS binaries is left up to the user from their own macOS installations or otherwise. This XNU Linux also only is working on ARM64 Linux and not x86_64 Linux. The macOS 27 release is where all the user-space testing has been occurring. Those curious about XNU Linux can learn more via the project's GitHub.
XNU Linux Lets macOS Userspace Processes Run On Linux
Full Article
Original Source
Read the full article at Phoronix →KhanList aggregates and links to publicly available news content. We do not host full articles from third-party sources. Always verify important information with original sources.