Advertisement
crabbypup

pcie-passthrough-vm.xml

Oct 12th, 2018
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 5.62 KB | None | 0 0
  1. <domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
  2.   <name>Orion</name>
  3.   <uuid>b4f8d7d4-85a6-2073-d0fb-300e6edcd0ed</uuid>
  4.   <title>Orion (desktop)</title>
  5.   <memory unit='KiB'>10971520</memory>
  6.   <currentMemory unit='KiB'>10971520</currentMemory>
  7.   <vcpu placement='static'>32</vcpu>
  8.   <cputune>
  9.     <vcpupin vcpu='0' cpuset='0'/>
  10.     <vcpupin vcpu='1' cpuset='1'/>
  11.     <vcpupin vcpu='2' cpuset='2'/>
  12.     <vcpupin vcpu='3' cpuset='3'/>
  13.     <vcpupin vcpu='4' cpuset='4'/>
  14.     <vcpupin vcpu='5' cpuset='5'/>
  15.     <vcpupin vcpu='6' cpuset='6'/>
  16.     <vcpupin vcpu='7' cpuset='7'/>
  17.     <vcpupin vcpu='8' cpuset='8'/>
  18.     <vcpupin vcpu='9' cpuset='9'/>
  19.     <vcpupin vcpu='10' cpuset='10'/>
  20.     <vcpupin vcpu='11' cpuset='11'/>
  21.     <vcpupin vcpu='12' cpuset='12'/>
  22.     <vcpupin vcpu='13' cpuset='13'/>
  23.     <vcpupin vcpu='14' cpuset='14'/>
  24.     <vcpupin vcpu='15' cpuset='15'/>
  25.     <vcpupin vcpu='16' cpuset='16'/>
  26.     <vcpupin vcpu='17' cpuset='17'/>
  27.     <vcpupin vcpu='18' cpuset='18'/>
  28.     <vcpupin vcpu='19' cpuset='19'/>
  29.     <vcpupin vcpu='20' cpuset='20'/>
  30.     <vcpupin vcpu='21' cpuset='21'/>
  31.     <vcpupin vcpu='22' cpuset='22'/>
  32.     <vcpupin vcpu='23' cpuset='23'/>
  33.     <vcpupin vcpu='24' cpuset='24'/>
  34.     <vcpupin vcpu='25' cpuset='25'/>
  35.     <vcpupin vcpu='26' cpuset='26'/>
  36.     <vcpupin vcpu='27' cpuset='27'/>
  37.     <vcpupin vcpu='28' cpuset='28'/>
  38.     <vcpupin vcpu='29' cpuset='29'/>
  39.     <vcpupin vcpu='30' cpuset='30'/>
  40.     <vcpupin vcpu='31' cpuset='31'/>
  41.   </cputune>
  42.   <resource>
  43.     <partition>/machine</partition>
  44.   </resource>
  45.   <os>
  46.     <type arch='x86_64' machine='pc-q35-2.5'>hvm</type>
  47.     <loader readonly='yes' type='rom'>/usr/share/qemu/bios.bin</loader>
  48.     <boot dev='hd'/>
  49.     <boot dev='cdrom'/>
  50.     <bootmenu enable='yes'/>
  51.     <bios rebootTimeout='0'/>
  52.   </os>
  53.   <features>
  54.     <acpi/>
  55.     <apic/>
  56.     <pae/>
  57.   </features>
  58.   <cpu mode='custom' match='exact'>
  59.     <model fallback='allow'>Opteron_G4</model>
  60.     <topology sockets='2' cores='16' threads='1'/>
  61.   </cpu>
  62.   <clock offset='utc'/>
  63.   <on_poweroff>destroy</on_poweroff>
  64.   <on_reboot>restart</on_reboot>
  65.   <on_crash>restart</on_crash>
  66.   <devices>
  67.     <emulator>/usr/bin/kvm-spice</emulator>
  68.     <disk type='file' device='disk'>
  69.       <driver name='qemu' type='raw' io='threads'/>
  70.       <source file='/var/lib/libvirt/images/orion-root.img'/>
  71.       <target dev='vda' bus='virtio'/>
  72.       <address type='pci' domain='0x0000' bus='0x02' slot='0x04' function='0x0'/>
  73.     </disk>
  74.     <disk type='block' device='disk'>
  75.       <driver name='qemu' type='raw' io='threads'/>
  76.       <source dev='/dev/disk/by-id/wwn-0x50014ee2b55be86f'/>
  77.       <target dev='vdb' bus='virtio'/>
  78.       <address type='pci' domain='0x0000' bus='0x02' slot='0x05' function='0x0'/>
  79.     </disk>
  80.     <disk type='file' device='cdrom'>
  81.       <driver name='qemu' type='raw'/>
  82.       <target dev='sda' bus='scsi'/>
  83.       <readonly/>
  84.       <address type='drive' controller='0' bus='0' target='0' unit='0'/>
  85.     </disk>
  86.     <controller type='virtio-serial' index='0'>
  87.       <address type='pci' domain='0x0000' bus='0x02' slot='0x02' function='0x0'/>
  88.     </controller>
  89.     <controller type='usb' index='0' model='ich9-ehci1'>
  90.       <address type='pci' domain='0x0000' bus='0x00' slot='0x1d' function='0x7'/>
  91.     </controller>
  92.     <controller type='usb' index='0' model='ich9-uhci1'>
  93.       <master startport='0'/>
  94.       <address type='pci' domain='0x0000' bus='0x00' slot='0x1d' function='0x0' multifunction='on'/>
  95.     </controller>
  96.     <controller type='usb' index='0' model='ich9-uhci2'>
  97.       <master startport='2'/>
  98.       <address type='pci' domain='0x0000' bus='0x00' slot='0x1d' function='0x1'/>
  99.     </controller>
  100.     <controller type='usb' index='0' model='ich9-uhci3'>
  101.       <master startport='4'/>
  102.       <address type='pci' domain='0x0000' bus='0x00' slot='0x1d' function='0x2'/>
  103.     </controller>
  104.     <controller type='scsi' index='0'>
  105.       <address type='pci' domain='0x0000' bus='0x02' slot='0x03' function='0x0'/>
  106.     </controller>
  107.     <controller type='pci' index='0' model='pcie-root'/>
  108.     <controller type='pci' index='1' model='dmi-to-pci-bridge'>
  109.       <model name='i82801b11-bridge'/>
  110.       <address type='pci' domain='0x0000' bus='0x00' slot='0x1e' function='0x0'/>
  111.     </controller>
  112.     <controller type='pci' index='2' model='pci-bridge'>
  113.       <model name='pci-bridge'/>
  114.       <target chassisNr='2'/>
  115.       <address type='pci' domain='0x0000' bus='0x01' slot='0x01' function='0x0'/>
  116.     </controller>
  117.     <controller type='sata' index='0'>
  118.       <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
  119.     </controller>
  120.     <interface type='bridge'>
  121.       <mac address='52:54:00:59:b6:1b'/>
  122.       <source bridge='br0'/>
  123.       <model type='virtio'/>
  124.       <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x0'/>
  125.     </interface>
  126.     <hostdev mode='subsystem' type='usb' managed='yes'>
  127.       <source>
  128.         <vendor id='0x0d3d'/>
  129.         <product id='0x0001'/>
  130.       </source>
  131.     </hostdev>
  132.     <memballoon model='virtio'>
  133.       <address type='pci' domain='0x0000' bus='0x02' slot='0x06' function='0x0'/>
  134.     </memballoon>
  135.   </devices>
  136.   <qemu:commandline>
  137.     <qemu:arg value='-device'/>
  138.     <qemu:arg value='ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1'/>
  139.     <qemu:arg value='-device'/>
  140.     <qemu:arg value='vfio-pci,host=02:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on,rombar=0,romfile=/usr/share/qemu/7870.bin'/>
  141.     <qemu:arg value='-device'/>
  142.     <qemu:arg value='vfio-pci,host=02:00.1,bus=root.1,addr=00.1'/>
  143.   </qemu:commandline>
  144. </domain>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement