I originally posted this to r/virtualization but figured someone here might have done this.




I've been using a Hackintosh for my desktop for the past couple of years and it's worked great, but the machine is under-utilised most of the time.


So what i want to do is convert it to a Linux host and run OS X as a KVM guest with graphics card passed through. People have successfully done this for Windows and i see no reason it shouldn't work for Mac OS X with a supported card (i'm thinking Radeon 7750 for it's OOB support), but i've not seen any reports of anyone actually doing this with KVM (although people have had success with ESXi and Xen).


Anyone here done this?


On a side note i upgraded my AMD Kabini headless Ubuntu server box today to Kernel 3.16 and QEMU 2.1rc1 and was able to install a completely unmodified Mac OS X Mavericks guest. It ran pretty well too considering the low end CPU and only 1GiB of RAM assigned to the VM. Gives me hope that my plan might be achievable.




With the Mac guest improvements in Kernel 3.15 and QEMU 2.1 i think virtualising OS X with VGA passthrough could be a viable solution (especially for those people who want to run OS X on AMD processors considering AMD don't tend to cripple their virtualisation support) but i don't yet have a VT-d capable processor or discrete graphics card to test and was hoping someone had done this before i spend the money.


If anyone wants to replicate my OS X guest i used information from here. You need the Chameleon binary from there and can use the script to generate a Mavericks ISO from the Mavericks installer you downloaded from the App Store.


Here's the command i used to install:



qemu-system-x86_64 -enable-kvm -m 2048 -cpu core2duo,vendor=GenuineIntel \ -machine q35 \ -usb -device usb-kbd -device usb-mouse \ -device isa-applesmc,osk="ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc" \ -kernel ./chameleon_svn2360_boot \ -smbios type=2 \ -device ide-drive,bus=ide.2,drive=MacHDD \ -drive id=MacHDD,if=none,file=./mac-hdd.img \ -netdev user,id=hub0port0 \ -device e1000-82545em,netdev=hub0port0,id=eth0,mac=52:54:00:8e:3a:fc \ -monitor stdio \ -device ide-drive,bus=ide.0,drive=MacDVD \ -drive id=MacDVD,if=none,snapshot=on,file=./10.9.4.iso \ -vga std \ -vnc 0.0.0.0:0 -k en-gb \ -smp 4 \ -redir tcp:5901::5900

The ",vendor=GenuineIntel" is not required if running on an Intel host (but it also won't harm anything) but is if you're running on AMD else the vendor will be passed through as "AuthenticAMD" and OS X will refuse to run.



submitted by pickled_monkey

[link] [comment]

What is missing? Please comment to help! ...[source] For more info try www.iatkos.net

Post a Comment