Last active
December 27, 2019 17:46
-
-
Save yvesh/8c0837a8ebfa0322614d4b74f501dba0 to your computer and use it in GitHub Desktop.
MacOS 10.14 Mojave Hackintosh - libvirt / Qemu / KVM AMD ThreadRipper with GPU pass-through
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
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'> | |
<name>mac-os-mojave-gpu-pci-pass-through</name> | |
<uuid>b1899693-3cc4-4aa1-a891-5c4fe1f72cca</uuid> | |
<memory unit='KiB'>32817152</memory> | |
<currentMemory unit='KiB'>32817152</currentMemory> | |
<vcpu placement='static'>32</vcpu> | |
<os> | |
<type arch='x86_64' machine='pc-q35-4.0.1'>hvm</type> | |
<loader readonly='yes' type='pflash'>/mnt/qemu/macos/firmware/OVMF_CODE.fd</loader> | |
<nvram>/mnt/qemu/macos/firmware/OVMF_VARS-1024x768.fd</nvram> | |
<boot dev='hd'/> | |
</os> | |
<features> | |
<acpi/> | |
<apic/> | |
<vmport state='off'/> | |
</features> | |
<cpu> | |
<topology sockets='1' cores='16' threads='2'/> | |
</cpu> | |
<clock offset='utc'> | |
<timer name='rtc' tickpolicy='catchup'/> | |
<timer name='pit' tickpolicy='delay'/> | |
<timer name='hpet' present='no'/> | |
</clock> | |
<on_poweroff>destroy</on_poweroff> | |
<on_reboot>restart</on_reboot> | |
<on_crash>destroy</on_crash> | |
<pm> | |
<suspend-to-mem enabled='no'/> | |
<suspend-to-disk enabled='no'/> | |
</pm> | |
<devices> | |
<emulator>/usr/bin/qemu-system-x86_64</emulator> | |
<disk type='file' device='disk'> | |
<driver name='qemu' type='qcow2'/> | |
<source file='/mnt/qemu/macos/ESP.qcow2'/> | |
<target dev='sda' bus='sata'/> | |
<address type='drive' controller='0' bus='0' target='0' unit='0'/> | |
</disk> | |
<disk type='file' device='disk'> | |
<driver name='qemu' type='raw'/> | |
<source file='/mnt/qemu/macos/BaseSystem.img'/> | |
<target dev='sdb' bus='sata'/> | |
<address type='drive' controller='0' bus='0' target='0' unit='1'/> | |
</disk> | |
<disk type='file' device='disk'> | |
<driver name='qemu' type='qcow2'/> | |
<source file='/mnt/qemu/macos/mojave.qcow2'/> | |
<target dev='sdc' bus='sata'/> | |
<address type='drive' controller='0' bus='0' target='0' unit='2'/> | |
</disk> | |
<controller type='sata' index='0'> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/> | |
</controller> | |
<controller type='pci' index='0' model='pcie-root'/> | |
<controller type='pci' index='1' model='pcie-root-port'> | |
<model name='pcie-root-port'/> | |
<target chassis='1' port='0x18'/> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0' multifunction='on'/> | |
</controller> | |
<controller type='pci' index='2' model='pcie-root-port'> | |
<model name='pcie-root-port'/> | |
<target chassis='2' port='0x19'/> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x1'/> | |
</controller> | |
<controller type='pci' index='3' model='pcie-root-port'> | |
<model name='pcie-root-port'/> | |
<target chassis='3' port='0x1a'/> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x2'/> | |
</controller> | |
<controller type='usb' index='0' model='ich9-ehci1'> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x1d' function='0x7'/> | |
</controller> | |
<controller type='usb' index='0' model='ich9-uhci1'> | |
<master startport='0'/> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x1d' function='0x0' multifunction='on'/> | |
</controller> | |
<controller type='usb' index='0' model='ich9-uhci2'> | |
<master startport='2'/> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x1d' function='0x1'/> | |
</controller> | |
<controller type='usb' index='0' model='ich9-uhci3'> | |
<master startport='4'/> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x1d' function='0x2'/> | |
</controller> | |
<interface type='network'> | |
<mac address='52:54:00:92:d4:7b'/> | |
<source network='default'/> | |
<model type='e1000-82545em'/> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> | |
</interface> | |
<interface type='direct'> | |
<mac address='52:54:00:57:2b:e0'/> | |
<source dev='enp65s0f1' mode='bridge'/> | |
<model type='e1000-82545em'/> | |
<address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/> | |
</interface> | |
<serial type='pty'> | |
<target type='isa-serial' port='0'> | |
<model name='isa-serial'/> | |
</target> | |
</serial> | |
<console type='pty'> | |
<target type='serial' port='0'/> | |
</console> | |
<input type='mouse' bus='ps2'/> | |
<input type='keyboard' bus='ps2'/> | |
<sound model='ich9'> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x1b' function='0x0'/> | |
</sound> | |
<hostdev mode='subsystem' type='pci' managed='yes'> | |
<source> | |
<address domain='0x0000' bus='0x0c' slot='0x00' function='0x0'/> | |
</source> | |
<address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/> | |
</hostdev> | |
<hostdev mode='subsystem' type='pci' managed='yes'> | |
<source> | |
<address domain='0x0000' bus='0x0c' slot='0x00' function='0x1'/> | |
</source> | |
<rom bar='off'/> | |
<address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/> | |
</hostdev> | |
<hostdev mode='subsystem' type='usb' managed='yes'> | |
<source> | |
<vendor id='0x046d'/> | |
<product id='0xc53d'/> | |
</source> | |
<address type='usb' bus='0' port='2'/> | |
</hostdev> | |
<hostdev mode='subsystem' type='usb' managed='yes'> | |
<source> | |
<vendor id='0x1532'/> | |
<product id='0x005c'/> | |
</source> | |
<address type='usb' bus='0' port='1'/> | |
</hostdev> | |
<redirdev bus='usb' type='spicevmc'> | |
<address type='usb' bus='0' port='3'/> | |
</redirdev> | |
<redirdev bus='usb' type='spicevmc'> | |
<address type='usb' bus='0' port='4'/> | |
</redirdev> | |
<memballoon model='none'/> | |
</devices> | |
<qemu:commandline> | |
<qemu:arg value='-cpu'/> | |
<qemu:arg value='Penryn,kvm=on,vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,+pcid,+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check'/> | |
<qemu:arg value='-device'/> | |
<qemu:arg value='isa-applesmc,osk=INSERT_OSK_HERE'/> | |
<qemu:arg value='-smbios'/> | |
<qemu:arg value='type=2'/> | |
<qemu:env name='QEMU_AUDIO_DRV' value='pa'/> | |
<qemu:env name='QEMU_PA_SERVER' value='/run/user/1000/pulse/native'/> | |
</qemu:commandline> | |
</domain> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment