Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- OSK="ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
- OPENCORE=/.vm_firmware_macos/OpenCore.qcow2
- OS=/.vm_disks/macboot.img
- VMDIR=.vm_firmware
- INSTALL=/home/bot/VM/BaseSystem.iso
- SMP=16
- CORES=16
- DIES=2
- SOCKETS=2
- CPU=Penryn
- MEM=16G
- GPU_VID=vfio-pci,host=42:00.0,bus=pcie.0,multifunction=on
- GPU_AUD=vfio-pci,host=42:00.1,bus=pcie.0
- options_original=+sse3,+sse4.2,+aes,+xsave,+avx,+xsaveopt,+xsavec,+xgetbv1,+avx2,+bmi2,+smep,+bmi1,+fma,+movbe,+invtsc
- options=+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check
- sudo qemu-system-x86_64 -nographic \
- -enable-kvm \
- -m $MEM \
- -machine q35,accel=kvm,kernel_irqchip=on \
- -smp $SMP,cores=$CORES,dies=$DIES \
- -cpu $CPU,vendor=GenuineIntel,kvm=on,$options \
- -usb -device usb-kbd -device usb-mouse \
- -device isa-applesmc,osk="$OSK" \
- -smbios type=2 \
- -device ich9-intel-hda \
- -device hda-duplex \
- -device ich9-ahci,id=sata \
- -drive if=pflash,format=raw,readonly,file="$VMDIR/OVMF_CODE.mac.fd" \
- -drive if=pflash,format=raw,file="$VMDIR/OVMF_VARS.mac.fd" \
- -vga qxl \
- -usb -device usb-kbd -device usb-mouse \
- -netdev user,id=net0 \
- -device e1000-82545em,netdev=net0,id=net0,mac=52:54:00:c9:18:27 \
- -drive id=OpenCoreBoot,if=none,snapshot=on,format=qcow2,file=$OPENCORE \
- -device ide-hd,bus=sata.2,drive=OpenCoreBoot \
- -hda /dev/sda \
- -device usb-host,vendorid=0x0a12,productid=0x0001 \
- -device usb-host,vendorid=0x248a,productid=0x8367 \
- # -hdc /dev/sdc \
- # -device $GPU_VID \
- # -device $GPU_AUD \
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement