Live data from Hacker News

OS X-KVM: Run macOS on QEMU/KVM

github.com

71–73 of 73 posts

Re: OS X-KVM: Run macOS on QEMU/KVM

#71
post #40
post #12

Earlier quoted context omitted.

Im running this on Windows though WSL 2. There's definitely a performance hit but other than that it works surprisingly well.

Can you post the steps you had to go through to get it working?

Sorry for the late response, just saw this. When I did it last I just used the Docker-OSX project [1]. It should pretty much just work, the readme has a section about on running it on WSL.

If you don't want to use Docker it should still be possible with the OSX-KVM, I've done it before, but I can't remember the exact steps I took to get it running, sorry.

Should also note that I've run into issues with AMD CPUs, Intel seems to work better, but I also haven't tried it since they first added nested virtualization support with AMD CPUs to Hyper-V, so those problems might be fixed now.

[1] https://github.com/sickcodes/Docker-OSX

Re: OS X-KVM: Run macOS on QEMU/KVM

#72

Earlier quoted context omitted.

> without having to care about trying to do complicated things ([...] pci-passthrough of a second GPU) Actually, GPU passthrough is quite simple: configure host Linux to assign a virtual driver to a secondary GPU on boot and configure QEMU to use that driver on guest boot[1]. If you buy a GPU that is natively supported by macOS (e.g., Sapphire Radeon RX 580 Pulse 4GB), you get 99% performance and 100% stability of a…

"you get 99% performance and 100% stability of a native Mac (not a single macOS/QEMU crash in years for me)" I am curious how this is so stable for you. Are you running this on Intel? Just last week I installed this on my AMD Linux workstation to test some stuff with Xcode and qemu would crash randomly while compiling LLVM/Clang.

Yes, I run this on Intel i7, under Ubuntu 20.04, with QEMU 4.x, as "-machine q35".

Re: OS X-KVM: Run macOS on QEMU/KVM

#73
post #71
post #40

Earlier quoted context omitted.

Can you post the steps you had to go through to get it working?

Sorry for the late response, just saw this. When I did it last I just used the Docker-OSX project [1]. It should pretty much just work, the readme has a section about on running it on WSL. If you don't want to use Docker it should still be possible with the OSX-KVM, I've done it before, but I can't remember the exact steps I took to get it running, sorry. Should also note that I've run into issues with AMD CPUs, Inte…

Thank you! I'll give it a go right now.
Post reply on HN