Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save hpcdisrespecter/50e5169ecc8dda2206bf6a9edaaaa6bd to your computer and use it in GitHub Desktop.
Save hpcdisrespecter/50e5169ecc8dda2206bf6a9edaaaa6bd to your computer and use it in GitHub Desktop.
## NOTES
#
# - You will need to change your drive settings to make this work for you
# - You will need OVMF somewhere (https://github.com/tianocore/tianocore.github.io/wiki/OVMF)
# - You will need a OSK key from TIM APPLE so it boots (see https://sive.host/index.php/knowledgebase/388/Installing-macOS-12-Monterey-on-Proxmox-7.html)
qemu-system-x86_64 \
-enable-kvm \
-machine q35 \
-bios ~/OVMF.fd \
-m 4096 \
-cpu Penryn,vendor=GenuineIntel,+ssse3,+sse4.1,+sse4.2 \
-smp 8,cores=4,threads=2 \
-global ICH9-LPC.disable_s3=0 \
-usb \
-device usb-kbd \
-device usb-tablet \
-device isa-applesmc,osk="insert-real-64-char-OSK-here" \
-netdev user,id=usr0 \
-device e1000-82545em,netdev=usr0,id=vnet0 \
-device virtio-gpu-pci \
-display gtk,gl=on \
-vga virtio \
-device virtio-keyboard \
-drive id=MacDVD,if=none,snapshot=on,file=~/path/to/osx-10.6-xcode-compressed-efi.qcow2 \
-device ide-drive,bus=ide.0,drive=MacDVD,bootindex=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment