Guest User

VFIO VM

a guest
Jul 6th, 2017
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.11 KB | None | 0 0
  1. <domain type='kvm'>
  2. <name>win10</name>
  3. <uuid>c573c1fa-2fcc-4355-90d8-826dedf709d4</uuid>
  4. <memory unit='KiB'>8388608</memory>
  5. <currentMemory unit='KiB'>8388608</currentMemory>
  6. <vcpu placement='static' current='1'>16</vcpu>
  7. <os>
  8. <type arch='x86_64' machine='pc-q35-2.9'>hvm</type>
  9. <loader readonly='yes' type='pflash'>usr/share/ovmf/ovmf_code_x64.bin</loader>
  10. <nvram>/var/lib/libvirt/qemu/nvram/win10_VARS.fd</nvram>
  11. <bootmenu enable='yes'/>
  12. </os>
  13. <features>
  14. <acpi/>
  15. <apic/>
  16. <hyperv>
  17. <relaxed state='on'/>
  18. <vapic state='on'/>
  19. <spinlocks state='on' retries='8191'/>
  20. <vendor_id state='on' value='ohnoimonfire'/>
  21. </hyperv>
  22. <kvm>
  23. <hidden state='on'/>
  24. </kvm>
  25. <vmport state='off'/>
  26. </features>
  27. <cpu mode='host-passthrough' check='none'>
  28. <topology sockets='1' cores='8' threads='2'/>
  29. <feature policy='disable' name='hypervisor'/>
  30. </cpu>
  31. <clock offset='localtime'>
  32. <timer name='rtc' tickpolicy='catchup'/>
  33. <timer name='pit' tickpolicy='delay'/>
  34. <timer name='hpet' present='no'/>
  35. </clock>
  36. <on_poweroff>destroy</on_poweroff>
  37. <on_reboot>restart</on_reboot>
  38. <on_crash>destroy</on_crash>
  39. <pm>
  40. <suspend-to-mem enabled='no'/>
  41. <suspend-to-disk enabled='no'/>
  42. </pm>
  43. <devices>
  44. <emulator>/usr/sbin/qemu-system-x86_64</emulator>
  45. <disk type='file' device='disk'>
  46. <driver name='qemu' type='qcow2'/>
  47. <source file='/var/lib/libvirt/images/win10.qcow2'/>
  48. <target dev='sda' bus='sata'/>
  49. <boot order='1'/>
  50. <address type='drive' controller='0' bus='0' target='0' unit='0'/>
  51. </disk>
  52. <disk type='file' device='cdrom'>
  53. <driver name='qemu' type='raw'/>
  54. <source file='/home/matoking/Downloads/Win10_1703_EnglishInternational_x64.iso'/>
  55. <target dev='sdb' bus='sata'/>
  56. <readonly/>
  57. <address type='drive' controller='0' bus='0' target='0' unit='1'/>
  58. </disk>
  59. <controller type='usb' index='0' model='ich9-ehci1'>
  60. <address type='pci' domain='0x0000' bus='0x00' slot='0x1d' function='0x7'/>
  61. </controller>
  62. <controller type='usb' index='0' model='ich9-uhci1'>
  63. <master startport='0'/>
  64. <address type='pci' domain='0x0000' bus='0x00' slot='0x1d' function='0x0' multifunction='on'/>
  65. </controller>
  66. <controller type='usb' index='0' model='ich9-uhci2'>
  67. <master startport='2'/>
  68. <address type='pci' domain='0x0000' bus='0x00' slot='0x1d' function='0x1'/>
  69. </controller>
  70. <controller type='usb' index='0' model='ich9-uhci3'>
  71. <master startport='4'/>
  72. <address type='pci' domain='0x0000' bus='0x00' slot='0x1d' function='0x2'/>
  73. </controller>
  74. <controller type='sata' index='0'>
  75. <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
  76. </controller>
  77. <controller type='pci' index='0' model='pcie-root'/>
  78. <controller type='pci' index='1' model='dmi-to-pci-bridge'>
  79. <model name='i82801b11-bridge'/>
  80. <address type='pci' domain='0x0000' bus='0x00' slot='0x1e' function='0x0'/>
  81. </controller>
  82. <controller type='pci' index='2' model='pci-bridge'>
  83. <model name='pci-bridge'/>
  84. <target chassisNr='2'/>
  85. <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
  86. </controller>
  87. <controller type='pci' index='3' model='pcie-root-port'>
  88. <model name='pcie-root-port'/>
  89. <target chassis='3' port='0x10'/>
  90. <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0' multifunction='on'/>
  91. </controller>
  92. <controller type='pci' index='4' model='pcie-root-port'>
  93. <model name='pcie-root-port'/>
  94. <target chassis='4' port='0x11'/>
  95. <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x1'/>
  96. </controller>
  97. <controller type='pci' index='5' model='pcie-root-port'>
  98. <model name='pcie-root-port'/>
  99. <target chassis='5' port='0x12'/>
  100. <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x2'/>
  101. </controller>
  102. <controller type='pci' index='6' model='pcie-root-port'>
  103. <model name='pcie-root-port'/>
  104. <target chassis='6' port='0x13'/>
  105. <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x3'/>
  106. </controller>
  107. <controller type='pci' index='7' model='pcie-root-port'>
  108. <model name='pcie-root-port'/>
  109. <target chassis='7' port='0x14'/>
  110. <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x4'/>
  111. </controller>
  112. <controller type='virtio-serial' index='0'>
  113. <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
  114. </controller>
  115. <input type='mouse' bus='ps2'/>
  116. <input type='keyboard' bus='ps2'/>
  117. <graphics type='spice' autoport='yes'>
  118. <listen type='address'/>
  119. <gl enable='no'/>
  120. </graphics>
  121. <video>
  122. <model type='cirrus' vram='16384' heads='1' primary='yes'/>
  123. <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
  124. </video>
  125. <hostdev mode='subsystem' type='pci' managed='yes'>
  126. <source>
  127. <address domain='0x0000' bus='0x29' slot='0x00' function='0x0'/>
  128. </source>
  129. <address type='pci' domain='0x0000' bus='0x07' slot='0x00' function='0x0'/>
  130. </hostdev>
  131. <hostdev mode='subsystem' type='pci' managed='yes'>
  132. <source>
  133. <address domain='0x0000' bus='0x29' slot='0x00' function='0x1'/>
  134. </source>
  135. <address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0'/>
  136. </hostdev>
  137. <hostdev mode='subsystem' type='usb' managed='yes'>
  138. <source>
  139. <vendor id='0x046d'/>
  140. <product id='0xc07d'/>
  141. </source>
  142. <address type='usb' bus='0' port='1'/>
  143. </hostdev>
  144. <hostdev mode='subsystem' type='usb' managed='yes'>
  145. <source>
  146. <vendor id='0x24f0'/>
  147. <product id='0x0140'/>
  148. </source>
  149. <address type='usb' bus='0' port='2'/>
  150. </hostdev>
  151. <memballoon model='virtio'>
  152. <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
  153. </memballoon>
  154. </devices>
  155. </domain>
Advertisement
Add Comment
Please, Sign In to add comment