Guest User

win10 gpu passthrough XML

a guest
Jul 1st, 2025
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.65 KB | None | 0 0
  1. <domain type="kvm">
  2. <name>win10</name>
  3. <uuid>6e358daa-4169-4b20-80d2-ecb033f791b0</uuid>
  4. <metadata>
  5. <libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
  6. <libosinfo:os id="http://microsoft.com/win/10"/>
  7. </libosinfo:libosinfo>
  8. </metadata>
  9. <memory unit="KiB">25176064</memory>
  10. <currentMemory unit="KiB">25176064</currentMemory>
  11. <vcpu placement="static">12</vcpu>
  12. <os>
  13. <type arch="x86_64" machine="pc-q35-7.2">hvm</type>
  14. <loader readonly="yes" secure="yes" type="pflash">/usr/share/OVMF/OVMF_CODE_4M.secboot.fd</loader>
  15. <nvram>/var/lib/libvirt/qemu/nvram/win10_VARS.fd</nvram>
  16. <smbios mode="host"/>
  17. </os>
  18. <features>
  19. <acpi/>
  20. <apic/>
  21. <kvm>
  22. <hidden state="on"/>
  23. </kvm>
  24. <vmport state="off"/>
  25. <smm state="on"/>
  26. </features>
  27. <cpu mode="host-passthrough" check="none" migratable="on">
  28. <topology sockets="1" dies="1" cores="6" 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. <timer name="hypervclock" present="yes"/>
  36. </clock>
  37. <on_poweroff>destroy</on_poweroff>
  38. <on_reboot>restart</on_reboot>
  39. <on_crash>destroy</on_crash>
  40. <pm>
  41. <suspend-to-mem enabled="no"/>
  42. <suspend-to-disk enabled="no"/>
  43. </pm>
  44. <devices>
  45. <emulator>/usr/bin/qemu-system-x86_64</emulator>
  46. <disk type="file" device="disk">
  47. <driver name="qemu" type="qcow2" discard="unmap"/>
  48. <source file="/var/lib/libvirt/images/win10.qcow2"/>
  49. <target dev="sda" bus="virtio"/>
  50. <boot order="1"/>
  51. <address type="pci" domain="0x0000" bus="0x06" slot="0x00" function="0x0"/>
  52. </disk>
  53. <controller type="usb" index="0" model="qemu-xhci" ports="15">
  54. <address type="pci" domain="0x0000" bus="0x02" slot="0x00" function="0x0"/>
  55. </controller>
  56. <controller type="pci" index="0" model="pcie-root"/>
  57. <controller type="pci" index="1" model="pcie-root-port">
  58. <model name="pcie-root-port"/>
  59. <target chassis="1" port="0x10"/>
  60. <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x0" multifunction="on"/>
  61. </controller>
  62. <controller type="pci" index="2" model="pcie-root-port">
  63. <model name="pcie-root-port"/>
  64. <target chassis="2" port="0x11"/>
  65. <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x1"/>
  66. </controller>
  67. <controller type="pci" index="3" model="pcie-root-port">
  68. <model name="pcie-root-port"/>
  69. <target chassis="3" port="0x12"/>
  70. <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x2"/>
  71. </controller>
  72. <controller type="pci" index="4" model="pcie-root-port">
  73. <model name="pcie-root-port"/>
  74. <target chassis="4" port="0x13"/>
  75. <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x3"/>
  76. </controller>
  77. <controller type="pci" index="5" model="pcie-root-port">
  78. <model name="pcie-root-port"/>
  79. <target chassis="5" port="0x14"/>
  80. <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x4"/>
  81. </controller>
  82. <controller type="pci" index="6" model="pcie-root-port">
  83. <model name="pcie-root-port"/>
  84. <target chassis="6" port="0x15"/>
  85. <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x5"/>
  86. </controller>
  87. <controller type="pci" index="7" model="pcie-root-port">
  88. <model name="pcie-root-port"/>
  89. <target chassis="7" port="0x16"/>
  90. <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x6"/>
  91. </controller>
  92. <controller type="pci" index="8" model="pcie-root-port">
  93. <model name="pcie-root-port"/>
  94. <target chassis="8" port="0x17"/>
  95. <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x7"/>
  96. </controller>
  97. <controller type="pci" index="9" model="pcie-root-port">
  98. <model name="pcie-root-port"/>
  99. <target chassis="9" port="0x18"/>
  100. <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x0" multifunction="on"/>
  101. </controller>
  102. <controller type="pci" index="10" model="pcie-root-port">
  103. <model name="pcie-root-port"/>
  104. <target chassis="10" port="0x19"/>
  105. <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x1"/>
  106. </controller>
  107. <controller type="pci" index="11" model="pcie-root-port">
  108. <model name="pcie-root-port"/>
  109. <target chassis="11" port="0x1a"/>
  110. <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x2"/>
  111. </controller>
  112. <controller type="pci" index="12" model="pcie-root-port">
  113. <model name="pcie-root-port"/>
  114. <target chassis="12" port="0x1b"/>
  115. <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x3"/>
  116. </controller>
  117. <controller type="pci" index="13" model="pcie-root-port">
  118. <model name="pcie-root-port"/>
  119. <target chassis="13" port="0x1c"/>
  120. <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x4"/>
  121. </controller>
  122. <controller type="pci" index="14" model="pcie-root-port">
  123. <model name="pcie-root-port"/>
  124. <target chassis="14" port="0x1d"/>
  125. <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x5"/>
  126. </controller>
  127. <controller type="pci" index="15" model="pcie-root-port">
  128. <model name="pcie-root-port"/>
  129. <target chassis="15" port="0x8"/>
  130. <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x0"/>
  131. </controller>
  132. <controller type="pci" index="16" model="pcie-to-pci-bridge">
  133. <model name="pcie-pci-bridge"/>
  134. <address type="pci" domain="0x0000" bus="0x08" slot="0x00" function="0x0"/>
  135. </controller>
  136. <controller type="sata" index="0">
  137. <address type="pci" domain="0x0000" bus="0x00" slot="0x1f" function="0x2"/>
  138. </controller>
  139. <controller type="virtio-serial" index="0">
  140. <address type="pci" domain="0x0000" bus="0x03" slot="0x00" function="0x0"/>
  141. </controller>
  142. <interface type="network">
  143. <mac address="52:54:00:70:2f:8b"/>
  144. <source network="default"/>
  145. <model type="virtio"/>
  146. <address type="pci" domain="0x0000" bus="0x01" slot="0x00" function="0x0"/>
  147. </interface>
  148. <input type="mouse" bus="ps2"/>
  149. <input type="keyboard" bus="ps2"/>
  150. <tpm model="tpm-crb">
  151. <backend type="emulator" version="2.0"/>
  152. </tpm>
  153. <audio id="1" type="none"/>
  154. <hostdev mode="subsystem" type="pci" managed="yes">
  155. <source>
  156. <address domain="0x0000" bus="0x03" slot="0x00" function="0x0"/>
  157. </source>
  158. <rom file="/usr/share/vgabios/XFX.RX6600XT.8192.210329.rom"/>
  159. <address type="pci" domain="0x0000" bus="0x05" slot="0x00" function="0x0"/>
  160. </hostdev>
  161. <hostdev mode="subsystem" type="pci" managed="yes">
  162. <source>
  163. <address domain="0x0000" bus="0x03" slot="0x00" function="0x1"/>
  164. </source>
  165. <rom file="/usr/share/vgabios/XFX.RX6600XT.8192.210329.rom"/>
  166. <address type="pci" domain="0x0000" bus="0x07" slot="0x00" function="0x0"/>
  167. </hostdev>
  168. <hostdev mode="subsystem" type="usb" managed="yes">
  169. <source>
  170. <vendor id="0x046d"/>
  171. <product id="0xc08b"/>
  172. </source>
  173. <address type="usb" bus="0" port="1"/>
  174. </hostdev>
  175. <hostdev mode="subsystem" type="usb" managed="yes">
  176. <source>
  177. <vendor id="0x1038"/>
  178. <product id="0x161c"/>
  179. </source>
  180. <address type="usb" bus="0" port="2"/>
  181. </hostdev>
  182. <hostdev mode="subsystem" type="usb" managed="yes">
  183. <source>
  184. <vendor id="0x328f"/>
  185. <product id="0x003f"/>
  186. </source>
  187. <address type="usb" bus="0" port="3"/>
  188. </hostdev>
  189. <hostdev mode="subsystem" type="usb" managed="yes">
  190. <source>
  191. <vendor id="0x1058"/>
  192. <product id="0x260d"/>
  193. </source>
  194. <address type="usb" bus="0" port="5"/>
  195. </hostdev>
  196. <hostdev mode="subsystem" type="usb" managed="yes">
  197. <source>
  198. <vendor id="0x3142"/>
  199. <product id="0xa010"/>
  200. </source>
  201. <address type="usb" bus="0" port="4"/>
  202. </hostdev>
  203. <hostdev mode="subsystem" type="pci" managed="yes">
  204. <source>
  205. <address domain="0x0000" bus="0x06" slot="0x00" function="0x0"/>
  206. </source>
  207. <address type="pci" domain="0x0000" bus="0x09" slot="0x00" function="0x0"/>
  208. </hostdev>
  209. <memballoon model="virtio">
  210. <address type="pci" domain="0x0000" bus="0x04" slot="0x00" function="0x0"/>
  211. </memballoon>
  212. </devices>
  213. </domain>
Advertisement
Add Comment
Please, Sign In to add comment