You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.4 KiB
Bash
36 lines
1.4 KiB
Bash
8 years ago
|
#!/bin/bash
|
||
|
|
||
|
# qemu-img create -f qcow2 mac_hdd.img 64G
|
||
|
# echo 1 > /sys/module/kvm/parameters/ignore_msrs
|
||
|
#
|
||
|
# Type the following after boot,
|
||
|
# -v "KernelBooter_kexts"="Yes" "CsrActiveConfig"="103"
|
||
|
#
|
||
|
# printf 'DE:AD:BE:EF:%02X:%02X\n' $((RANDOM%256)) $((RANDOM%256))
|
||
|
#
|
||
|
# no_floppy = 1 is required for OS X guests!
|
||
|
#
|
||
|
# Commit 473a49460db0a90bfda046b8f3662b49f94098eb (qemu) makes "no_floppy = 0"
|
||
|
# for pc-q35-2.3 hardware, and OS X doesn't like this (it hangs at "Waiting for
|
||
|
# DSMOS" message). Hence, we switch to pc-q35-2.4 hardware.
|
||
|
#
|
||
|
# Network device "-device e1000-82545em" can be replaced with "-device vmxnet3"
|
||
|
# for possibly better performance.
|
||
|
|
||
|
qemu-system-x86_64 -enable-kvm -m 8192 -cpu core2duo,kvm=off \
|
||
|
-machine pc-q35-2.4 \
|
||
|
-smp 4,cores=2 \
|
||
|
-usb -device usb-kbd -device usb-mouse \
|
||
|
-device isa-applesmc,osk="ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc" \
|
||
|
-kernel ./enoch_rev2839_boot \
|
||
|
-smbios type=2 \
|
||
|
-device ide-drive,bus=ide.2,drive=MacHDD \
|
||
|
-drive id=MacHDD,if=none,file=./mac_hdd.img \
|
||
|
-netdev tap,id=net0,ifname=tap0,script=no,downscript=no -device e1000-82545em,netdev=net0,id=net0,mac=52:54:00:c9:18:27 \
|
||
|
-monitor stdio \
|
||
|
-device ide-drive,bus=ide.0,drive=MacDVD \
|
||
|
-drive id=MacDVD,if=none,snapshot=on,file=./Install_OS_X_10.11.6_El_Capitan.iso
|
||
|
# -vnc 0.0.0.0:0 -k en-us \
|
||
|
# -redir tcp:5901::5900 \
|
||
|
# -netdev user,id=hub0port0 -device e1000-82545em,netdev=hub0port0,id=mac_vnet0 \
|