Created
September 4, 2017 13:00
-
-
Save seanlinmt/c09a540c94236396b0584401fb50c4cf to your computer and use it in GitHub Desktop.
mac OS QEMU with VGA passthrough, Clover EFI boot
This file contains hidden or 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
QEMU_AUDIO_DRV=alsa QEMU_ALSA_ADC_BUFFER_SIZE=1024 QEMU_ALSA_ADC_PERIOD_SIZE=256 QEMU_ALSA_DAC_BUFFER_SIZE=1024 QEMU_ALSA_DAC_PERIOD_SIZE=256 QEMU_AUDIO_DAC_FIXED_SETTINGS=1 QEMU_AUDIO_DAC_FIXED_FREQ=44100 QEMU_A | |
UDIO_DAC_FIXED_FMT=S16 QEMU_AUDIO_ADC_FIXED_FREQ=44100 QEMU_AUDIO_ADC_FIXED_FMT=S16 QEMU_AUDIO_DAC_TRY_POLL=1 QEMU_AUDIO_ADC_TRY_POLL=1 QEMU_AUDIO_TIMER_PERIOD=50 | |
/usr/local/bin/qemu-2.9.0 -machine q35,accel=kvm \ | |
-cpu Penryn,kvm=on,vendor=GenuineIntel,+invtsc,+vmx,vmware-cpuid-freq=on \ | |
-mem-prealloc \ | |
-drive file=/hackintosh/OVMF_CODE.fd,if=pflash,format=raw,unit=0,readonly=on \ | |
-drive file=/hackintosh/OVMF_VARS.fd,if=pflash,format=raw,unit=1 \ | |
-m 4096 \ | |
-smp 4,sockets=1,cores=2,threads=2 \ | |
-device ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1 \ | |
-device i82801b11-bridge,id=pci.1,bus=pcie.0,addr=0x1e \ | |
-device pci-bridge,chassis_nr=2,id=pci.2,bus=pci.1,addr=0x0 \ | |
-device ahci \ | |
-drive file=/hackintosh/clover.img,format=raw,if=none,id=drive0 \ | |
-device ide-hd,bus=ide.0,drive=drive0,id=sata0-0-0,bootindex=1 \ | |
-drive file=/mnt/mac_hdd.img,format=raw,if=none,id=drive-sata0-0-1 \ | |
-device ide-hd,bus=ide.1,drive=drive-sata0-0-1,id=sata0-0-1,bootindex=2 \ | |
-netdev tap,id=hostnet0,vhost=on \ | |
-device e1000-82545em,netdev=hostnet0,id=net0,mac=52:54:00:92:33:51,bus=pci.2,addr=0x1 \ | |
-netdev tap,id=hostnet1,vhost=on \ | |
-device e1000-82545em,netdev=hostnet1,id=net1,mac=52:54:00:cf:fa:66,bus=pci.2,addr=0x2 \ | |
-usb -device usb-kbd -device usb-mouse \ | |
-device vfio-pci,host=03:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on \ | |
-device vfio-pci,host=03:00.1,bus=root.1,addr=00.1 \ | |
-balloon none \ | |
-soundhw hda \ | |
-vga none |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment