-
-
Save NeroBurner/c28c4f81a8b806e6f8743797d292a71b to your computer and use it in GitHub Desktop.
virsh GPU passthrough config
This file contains 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'> | |
<name>kubuntu-uefi</name> | |
<uuid>random uuid</uuid> | |
<metadata> | |
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0"> | |
<libosinfo:os id="http://ubuntu.com/ubuntu/18.04"/> | |
</libosinfo:libosinfo> | |
</metadata> | |
<memory unit='KiB'>11264000</memory> | |
<currentMemory unit='KiB'>11264000</currentMemory> | |
<vcpu placement='static'>6</vcpu> | |
<cputune> | |
<vcpupin vcpu='0' cpuset='0'/> | |
<vcpupin vcpu='1' cpuset='1'/> | |
<vcpupin vcpu='2' cpuset='2'/> | |
<vcpupin vcpu='3' cpuset='3'/> | |
<vcpupin vcpu='4' cpuset='4'/> | |
<vcpupin vcpu='5' cpuset='5'/> | |
</cputune> | |
<os> | |
<type arch='x86_64' machine='pc-i440fx-2.12'>hvm</type> | |
<loader readonly='yes' type='pflash'>/usr/share/edk2-ovmf/x64/OVMF_CODE.fd</loader> | |
<nvram>/var/lib/libvirt/qemu/nvram/kubuntu-uefi_VARS.fd</nvram> | |
<bootmenu enable='no'/> | |
</os> | |
<features> | |
<acpi/> | |
<apic/> | |
<hyperv mode='custom'> | |
<relaxed state='on'/> | |
<vapic state='on'/> | |
<spinlocks state='on' retries='8191'/> | |
<vendor_id state='on' value='whatever'/> | |
</hyperv> | |
<kvm> | |
<hidden state='on'/> | |
</kvm> | |
<vmport state='off'/> | |
</features> | |
<cpu mode='custom' match='exact' check='partial'> | |
<model fallback='allow'>EPYC</model> | |
<topology sockets='1' dies='1' cores='3' threads='2'/> | |
</cpu> | |
<clock offset='localtime'> | |
<timer name='rtc' tickpolicy='catchup'/> | |
<timer name='pit' tickpolicy='delay'/> | |
<timer name='hpet' present='no'/> | |
<timer name='hypervclock' present='yes'/> | |
</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='block' device='disk'> | |
<driver name='qemu' type='raw' cache='none'/> | |
<source dev='/dev/disk/by-id/ata-Hitachi_id'/> | |
<target dev='vdc' bus='virtio'/> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/> | |
</disk> | |
<disk type='block' device='disk'> | |
<driver name='qemu' type='raw' cache='none'/> | |
<source dev='/dev/disk/by-id/ata-Samsung_SSD_860_QVO_id'/> | |
<target dev='vdd' bus='virtio'/> | |
<boot order='1'/> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x0a' function='0x0'/> | |
</disk> | |
<controller type='usb' index='0' model='ich9-ehci1'> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x7'/> | |
</controller> | |
<controller type='usb' index='0' model='ich9-uhci1'> | |
<master startport='0'/> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0' multifunction='on'/> | |
</controller> | |
<controller type='usb' index='0' model='ich9-uhci2'> | |
<master startport='2'/> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x1'/> | |
</controller> | |
<controller type='usb' index='0' model='ich9-uhci3'> | |
<master startport='4'/> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x2'/> | |
</controller> | |
<controller type='pci' index='0' model='pci-root'/> | |
<controller type='ide' index='0'> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/> | |
</controller> | |
<controller type='virtio-serial' index='0'> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/> | |
</controller> | |
<controller type='sata' index='0'> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/> | |
</controller> | |
<controller type='scsi' index='0' model='virtio-scsi'> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> | |
</controller> | |
<interface type='bridge'> | |
<mac address='52:54:00:bb:7a:59'/> | |
<source bridge='br0'/> | |
<model type='virtio'/> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x0b' 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> | |
<channel type='spicevmc'> | |
<target type='virtio' name='com.redhat.spice.0'/> | |
<address type='virtio-serial' controller='0' bus='0' port='1'/> | |
</channel> | |
<input type='mouse' bus='ps2'/> | |
<input type='keyboard' bus='ps2'/> | |
<audio id='1' type='none'/> | |
<hostdev mode='subsystem' type='pci' managed='yes'> | |
<source> | |
<address domain='0x0000' bus='0x08' slot='0x00' function='0x0'/> | |
</source> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> | |
</hostdev> | |
<hostdev mode='subsystem' type='pci' managed='yes'> | |
<source> | |
<address domain='0x0000' bus='0x08' slot='0x00' function='0x1'/> | |
</source> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> | |
</hostdev> | |
<hostdev mode='subsystem' type='usb' managed='yes'> | |
<source> | |
<vendor id='0x046d'/> | |
<product id='0xc31c'/> | |
</source> | |
<address type='usb' bus='0' port='1'/> | |
</hostdev> | |
<hostdev mode='subsystem' type='usb' managed='yes'> | |
<source> | |
<vendor id='0x0d8c'/> | |
<product id='0x000c'/> | |
</source> | |
<address type='usb' bus='0' port='5'/> | |
</hostdev> | |
<hostdev mode='subsystem' type='usb' managed='yes'> | |
<source> | |
<vendor id='0x17ef'/> | |
<product id='0x6019'/> | |
</source> | |
<address type='usb' bus='0' port='4'/> | |
</hostdev> | |
<redirdev bus='usb' type='spicevmc'> | |
<address type='usb' bus='0' port='2'/> | |
</redirdev> | |
<redirdev bus='usb' type='spicevmc'> | |
<address type='usb' bus='0' port='3'/> | |
</redirdev> | |
<redirdev bus='usb' type='spicevmc'> | |
<address type='usb' bus='0' port='6'/> | |
</redirdev> | |
<memballoon model='virtio'> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/> | |
</memballoon> | |
</devices> | |
</domain> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment