r/linux • u/Sweet-Transition-787 • 1d ago
Development XNU Linux: Run a full macOS GUI userspace inside an unmodified arm64 Linux kernel via xnu.ko
Repo: https://github.com/AFK-surf/xnulinux
xnulinux builds Apple's open source XNU kernel and loads it as a kernel module (xnu.ko) inside an unmodified arm64 Linux kernel. There is no hypervisor in between. The hosted XNU drives the CPU and MMU directly alongside Linux processes, borrowing memory, files, networking, and GPU access through a small interface module (fki.ko).
On a stock Ubuntu kernel, running insmod xnu.ko boots a macOS 27 system disk straight to the desktop with WindowServer, Dock,Finder, and Safari running.
88
Upvotes
12
u/3rdUncleMeatSandwich 1d ago
if only i had an arm64 computer!
11
u/iBoMbY 1d ago
Death by Xnu Xnu.
6
u/sCeege 1d ago
I'm slightly amused at the thought that if someone buys one of those Surface spark laptops, they can now mix Microsoft, Apple, and Linux, on the same computer.
1
u/This_Music682 1d ago
Basically Means that Hackintosh is Back? (And even more Accessible?)
4
u/UNF0RM4TT3D 1d ago
Your
ScientistsVibecoders Were So Preoccupied With Whether Or Not They Could, They Didn’t Stop To Think If They Should2
u/brick-pop 1d ago
Sounds like a very interesting approach, props for the vision 👏
Just so I understand it, what's the use case that justifies using xnulinux?
Running mac apps on non Apple hardware, by leveraging Linux hardware support, while giving Darwin a wrapper to the logic devices available?
2
u/sheeproomer 11h ago
Oh god who even is so masochistic and wants the macos user space voluntarily? Everyone I know just installs there homebrew and pretends that user space doesn't exist?
1
u/Few-Flamingo-6678 17h ago
porting to x64 is ongoing
1
u/adamkex 10h ago
Is it possible to just run individual Mac apps in a Linux DE or do you need the entire Mac GUI?
1
u/mohsin0112 4h ago
Will my MacBook Pro 2015 support this?
1
u/Bulky-Hair8606 3h ago
Does a raspberry pi work
1
u/Electrical_Puffin 1h ago edited 1h ago
could i in theory get an M Series Mac, install asahi linux with xnu? and have best of both worlds?
mac on a mac running side by side with linux without needing to dualboot?
•
u/FaultWinter3377 55m ago
This might have been one of the most cursed things I’ve seen lately. Next we’ll get the Windows kernel embedded into Linux and the whole Windows user space running natively inside Linux..