drive id=MacDVD,if=none,snapshot=on,file=./Yosemite.10.10.2.iso device ide-drive,bus=ide.0,drive=MacDVD \
#Linux mac os mavricks install
When running the OS X guest for the first time, you'll need to install the operating system to the HDD image, so you'll need to add (and boot from) an install DVD image on the command line. Optionally, to start an SMP guest, one could use something like: drive id=MacHDD,if=none,file=./mac_hdd.img \ device ide-drive,bus=ide.2,drive=MacHDD \ device isa-applesmc,osk="insert-real-64-char-OSK-string-here" \
#Linux mac os mavricks mac os x
To start your Mac OS X guest in QEMU, use the following command line:īin/qemu-system-x86_64 -enable-kvm -m 2048 \
Once the above components are in place, you'll need a HDD image for your Mac OS X guest:Īs of Yosemite (OS X 10.10), on kernels older than 4.7, we need to tell KVM to ignore unhandled MSR accesses (During boot, Yosemite attempts to read from MSR 0x199, which is related to CPU frequency scaling, and is clearly not applicable to a VM guest):Įcho 1 > /sys/module/kvm/parameters/ignore_msrs Source is available from the project's SVN repo, but since it requires Mac OS X and Xcode to build, I've uploaded a binary image which you may use until you're ready to build your own.
Chameleon: an additional bootloader is currently needed to bridge the gap between SeaBIOS and the Apple EFI BIOS expected by Mac OS X.configure -prefix=/home/$(whoami)/OSXGUEST -target-list=x86_64-softmmu Configure and build QEMU using something like: This contains and installs an appropriately patched SeaBIOS binary as well, so there's no longer a need to download, build, and install a separate instance of SeaBIOS. Then, as root, while still in the kvm-kmod directory (substitute kvm_amd for kvm_intel, depending on your CPU):Ĭp. Right now, I have 3.15.86_64 on my Fedora 20 machine, and everything works out of the box.įor older kernels, it may be possible to build KVM kernel modules using the kvm-kmod "wrapper", by following these instructions. KVM: As of kernel version 3.15, all necessary functionality is already integrated upstream.But, if following the rest of the directions below, you get weird build failures and other unexplained errors, consider the possibility that you're missing something in this category, possibly something I didn't think of listing explicitly above. Development Tools: git, gcc, make, iasl, kernel-devel, etc.OK, here's what you'll need (or skip to the technical details instead): Somloįeedback to: somlo at cmu dot edu 0. Running Mac OS X as a QEMU/KVM Guest Gabriel L.