XNU Linux Lets macOS Userspace Processes Run On Linux
phoronix.comwww.phoronix.com/news/XNU-LinuxXNU 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.
9 comments
I wonder how usable music media tools are. I know a lot of folks who use linux, but also use macOS because of the audio apps.
What could an audio application cause to use an entire operating system because of that? I can understand if your productivity tool like video or graphics editor is not available, or if a videogame cannot be played on Linux. But I never heard anyone using a macos because of audio applications.
stuff like garageband? not much different from video and graphics
Historically, macOS (well, OSX at the time) has been better at real time audio
I think pipewire has improved the situation, but I’m not sure if it’s good enough for audio professionals
You could look into JACK vs ALSA for some of their issues
I see, it’s more of a driver issue rather than the application itself. Well that makes more sense. I also had casuals in mind; so professionals, yeah I can see that being a problem in the past. And now after reading your comment, I actually do remember Macs being used for audio and visual editing in professional grade. But that’s a loong ass time ago.
iTerm2 on Linux would be heaven. Also, I love how many things are lining up for ARM Linux.
Does that mean actual MS Office and the Adobe suite will be runnable as their Mac versions? If so, that is MASSIVE!
These are the two big pieces of software that Linux is missing, and that serve as a sort of vendor lock-in to proprietary OS-es. We get those on Linux, and the biggest of software availability excuses disappear, leaving only some more niche software like AutoHotKey to serve as those blocking applications.
this is big…
Yeah! Now we can play all the Apple exclusive. Like Breakout. And… Super Breakout.