# Increase the sparse bundle capacity for packages, kernel, etc.: Hdiutil convert /Volumes/install_app/BaseSystem.dmg -format UDSP -o /tmp/Yosemite # Convert the boot image to a sparse bundle: Hdiutil attach /Applications/Install\ OS\ X\ Yosemite.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app # As of Yosemite, this really only works if executed as root,
EFI MAC OS X EMULATOR INSTALL
Starting with Lion (10.7), an install DVD (.iso) image may be generated on an OS X machine by following the steps below (Thanks Dick Marinus for pointing out the Yosemite-specific updates!): SnowLeopard (10.6) was the last OS X version released in DVD format. drive id=MacDVD,if=none,snapshot=on,file=./Yosemite.10.10.2.iso device ide-drive,bus=ide.0,drive=MacDVD \
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" \ 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.
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.