1
0
Fork 0
mirror of https://github.com/foxlet/macOS-Simple-KVM.git synced 2024-11-30 06:59:42 +01:00
macOS-Simple-KVM/basic.sh

29 lines
1 KiB
Bash
Raw Normal View History

2019-04-23 05:20:12 +02:00
#!/bin/bash
2019-04-25 22:59:22 +02:00
OSK="ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
2019-04-23 05:20:12 +02:00
VMDIR=$PWD
OVMF=$VMDIR/firmware
#export QEMU_AUDIO_DRV=pa
#QEMU_AUDIO_DRV=pa
qemu-system-x86_64 \
-enable-kvm \
-m 2G \
-machine q35,accel=kvm \
-smp 4,cores=2 \
-cpu Penryn,vendor=GenuineIntel,kvm=on,+sse3,+sse4.2,+aes,+xsave,+avx,+xsaveopt,+xsavec,+xgetbv1,+avx2,+bmi2,+smep,+bmi1,+fma,+movbe,+invtsc \
2019-04-25 22:59:22 +02:00
-device isa-applesmc,osk="$OSK" \
2019-04-23 05:20:12 +02:00
-smbios type=2 \
2019-07-19 21:44:21 +02:00
-drive if=pflash,format=raw,readonly,file="$OVMF/OVMF_CODE.fd" \
-drive if=pflash,format=raw,file="$OVMF/OVMF_VARS-1024x768.fd" \
2019-04-23 05:20:12 +02:00
-vga qxl \
-device ich9-intel-hda -device hda-output \
-usb -device usb-kbd -device usb-mouse \
2019-04-23 05:20:12 +02:00
-netdev user,id=net0 \
-device e1000-82545em,netdev=net0,id=net0,mac=52:54:00:c9:18:27 \
-device ich9-ahci,id=sata \
-drive id=ESP,if=none,format=qcow2,file=ESP.qcow2 \
-device ide-hd,bus=sata.2,drive=ESP \
-drive id=InstallMedia,format=raw,if=none,file=BaseSystem.img \
2019-04-23 05:20:12 +02:00
-device ide-hd,bus=sata.3,drive=InstallMedia \