XNU Linux: Full OS X GUI Userspace on Linux
First reported by Github ·
You can now run macOS applications like Safari and Finder natively on Linux hardware, without needing a separate Mac or a virtual machine.
A GitHub project named XNU Linux enables users to run the macOS graphical user interface (GUI) and its associated applications on an arm64 Linux system. The project achieves this by compiling Apple's open-source XNU kernel, the core of macOS, as a loadable kernel module (xnu.ko) within an unmodified Linux kernel. This allows macOS processes to execute natively alongside Linux processes without a hypervisor. Linux provides XNU with essential resources like memory, timers, file system access, networking, and GPU capabilities through a small interface module (fki.ko). With this setup, a standard Ubuntu kernel can boot a macOS system disk, bringing up the macOS desktop environment, including applications like Safari and Finder, directly on the Linux host. The system supports features like SSH into the underlying Linux system and even GPU acceleration via a Metal-to-Vulkan bridge.
This project, XNU Linux, fundamentally alters how users might interact with operating systems by creating a symbiotic relationship between macOS and Linux. It bypasses traditional virtualization, offering a path to near-native performance for macOS applications on non-Apple hardware. This could have significant implications for developers, researchers, and users who need to leverage specific macOS software or environments but prefer or are limited to Linux systems, potentially reducing hardware costs and complexity.
The success of XNU Linux highlights a growing trend of blurring OS boundaries, driven by the open-sourcing of key components and innovative kernel integration techniques. While it currently requires specific hardware (arm64) and a macOS installation disk, its ability to leverage Linux resources for core macOS functionalities, including GPU acceleration, points towards future possibilities for cross-platform application compatibility and even new forms of hybrid operating systems.
AI-written summary. May contain errors.