

# necessary files (/System/Library/Kernels/*) from the # the installer being prepared, one may copy the # NOTE: If the running OS X version is not identical to that of # a version EXACTLY matching that of the installer we're preparing:Ĭp -rp /System/Library/Kernels /Volumes/install_build/System/Library/

# Assuming we're executing these steps on a Yosemite machine with # NEW: As of Yosemite, we also need a kernel image! # NEW: As of Yosemite, there are additional installer dependencies:Ĭp -rp /Volumes/install_app/BaseSystem* /Volumes/install_build/ # Remove Package link and replace with actual files: Hdiutil attach /tmp/Yosemite.sparseimage -noverify -nobrowse -mountpoint /Volumes/install_build # Mount the sparse bundle target for further processing: Hdiutil resize -size 8g /tmp/Yosemite.sparseimage # 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,
VMWARE BUNDLE FILES MAC OS X YOSEMITE 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.
