Ubuntu 15.10 running on i5-6500 CPU.
Fedora 24 running on i5-6500 + i7-6600U CPU.
Tested with QEMU 2.4.1 and QEMU 2.5.
-
Download OS X El Capitan or macOS Sierra installer from Apple App Store.
-
Run the ISO creation script
create_install_iso.sh
, making sure to use 'sudo'. -
Copy the ISO from your Mac to your QEMU/KVM machine.
See boot.sh
file for an alternate to the following virsh method.
virsh --connect qemu:///system define macOS-libvirt.xml
-
Redefine HDD/DVD sources in virt-manager.
-
Start the VM in virt-manager and hit return in the console window.
-
After booting, the initial language selection should show up.
-
After disk initialization, open a terminal window (in the Utilities menu) and recursively copy the /Extra folder to the newly initialized target volume using
cp -av /Extra "/Volumes/NewVolumeName"
-
When finished, the VM will reboot automatically and the first time setup continues as usual.
-
For macOS Sierra change the CPU model from
core2duo
toPenryn
. Theboot-macOS.sh
script already has this change. -
While booting from the macOS Sierra ISO installer, you might get stuck on the "Language Chooser" menu bar (with no option to launch Disk Utility). The solution is to wait for a few seconds on the "Language Chooser" screen itself without pressing the forward button.
-
Host machine may need the following tweak for this to work,
echo 1 > /sys/module/kvm/parameters/ignore_msrs
-
Type the following in the bootloader if the guest VM fails to boot (some older ISO images may require this),
"KernelBooter_kexts"="Yes" "CsrActiveConfig"="103"
-
Robert DeRose (RobertDeRose) and Dirk Bajohr(isolution-de) - macOS support
-
Fritz Elfert (felfert) - cleanups, better documentation, and nicer ISO creation script
-
Ian McDowell (IMcD23) - more documentation, and better ISO creation script
-
voobscout - libvirt XML file
-
Evgeny Grin (Karlson2k) - for the original ISO creation script
-
Gabriel L. Somlo - for getting things started
-
http://www.insanelymac.com/ - Enoch bootloader