XNU Linux: Full OS X GUI Userspace on Linux(github.com)
621 points by mmastrac 7 days ago | 265 comments
tl;dr: XNU Linux builds Apple's open-source XNU kernel as a loadable module (xnu.ko) for an unmodified arm64 Linux kernel, letting macOS userspace (WindowServer, Finder, Safari) run natively alongside Linux processes on the same CPUs without a hypervisor. Linux provides memory, I/O, networking, and optional GPU access via a separate GPL interface module (fki.ko), with Metal routed through Vulkan/Venus to the host GPU. It currently boots macOS 27 to the desktop on Apple Silicon Linux VMs and bare-metal NVIDIA DGX Spark, though SIP is relaxed and bare-metal GPU passthrough isn't yet supported.
HN Discussion:
  • ~Impressed by the technical achievement but suggests alternative approaches like improving GNUstep would be preferable
  • ~Suggests running macOS userspace directly on Linux without the XNU kernel would be more interesting
  • ↑Expresses awe at how normalized such ambitious projects have become
  • •Questions how this approach compares to alternatives like KVM, noting it feels VM-like
  • •Asks clarifying questions or raises tangential concerns about Apple's hardware lock-in and Darwin open-sourcing