Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
83 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
|
||
# qemu-img create -f qcow2 mac_hdd_ng.img 128G | ||
# | ||
# echo 1 > /sys/module/kvm/parameters/ignore_msrs (this is required) | ||
|
||
############################################################################ | ||
# NOTE: Tweak the "MY_OPTIONS" line in case you are having booting problems! | ||
############################################################################ | ||
|
||
# This works for High Sierra as well as Mojave. Tested with macOS 10.13.6 and macOS 10.14.4. | ||
|
||
MY_OPTIONS="+pcid,+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check" | ||
|
||
# OVMF=./firmware | ||
OVMF="./" | ||
|
||
qemu-system-x86_64 -enable-kvm -m 3072 -cpu Penryn,kvm=on,vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,$MY_OPTIONS\ | ||
-machine q35 \ | ||
-smp 4,cores=2 \ | ||
-usb -device usb-kbd -device usb-mouse \ | ||
-device isa-applesmc,osk="ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc" \ | ||
-drive if=pflash,format=raw,readonly,file=$OVMF/OVMF_CODE.fd \ | ||
-drive if=pflash,format=raw,file=$OVMF/OVMF_VARS-1024x768.fd \ | ||
-smbios type=2 \ | ||
-device ich9-intel-hda -device hda-duplex \ | ||
-device ich9-ahci,id=sata \ | ||
-drive id=Clover,if=none,snapshot=on,format=qcow2,file=./'Mojave/CloverNG.qcow2' \ | ||
-device ide-hd,bus=sata.2,drive=Clover \ | ||
-device ide-hd,bus=sata.3,drive=InstallMedia \ | ||
-drive id=InstallMedia,if=none,file=BaseSystem.img,format=raw \ | ||
-drive id=MacHDD,if=none,file=./mac_hdd_ng.img,format=qcow2 \ | ||
-device ide-hd,bus=sata.4,drive=MacHDD \ | ||
-netdev tap,id=net0,ifname=tap0,script=no,downscript=no -device vmxnet3,netdev=net0,id=net0,mac=52:54:00:c9:18:27 \ | ||
-monitor stdio \ | ||
-vga vmware |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters