Guest User

VM.xl

a guest
Jul 23rd, 2022
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.12 KB | None | 0 0
  1. <domain type="kvm">
  2. <name>VFIO-Windows10</name>
  3. <uuid>b384baf8-1fd5-4925-976e-7d4c1e766cc5</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">12386304</memory>
  10. <currentMemory unit="KiB">12386304</currentMemory>
  11. <vcpu placement="static">14</vcpu>
  12. <os>
  13. <type arch="x86_64" machine="pc-q35-7.0">hvm</type>
  14. <loader readonly="yes" type="pflash">/usr/share/edk2-ovmf/x64/OVMF_CODE.fd</loader>
  15. <nvram>/var/lib/libvirt/qemu/nvram/VFIO-Windows10_VARS.fd</nvram>
  16. <boot dev="hd"/>
  17. <bootmenu enable="yes"/>
  18. </os>
  19. <features>
  20. <acpi/>
  21. <apic/>
  22. <hyperv mode="custom">
  23. <relaxed state="on"/>
  24. <vapic state="on"/>
  25. <spinlocks state="on" retries="8191"/>
  26. <vendor_id state="on" value="123456789123"/>
  27. </hyperv>
  28. <kvm>
  29. <hidden state="on"/>
  30. </kvm>
  31. <vmport state="off"/>
  32. <ioapic driver="kvm"/>
  33. </features>
  34. <cpu mode="host-passthrough" check="none" migratable="on"/>
  35. <clock offset="localtime">
  36. <timer name="rtc" tickpolicy="catchup"/>
  37. <timer name="pit" tickpolicy="delay"/>
  38. <timer name="hpet" present="no"/>
  39. <timer name="hypervclock" present="yes"/>
  40. </clock>
  41. <on_poweroff>destroy</on_poweroff>
  42. <on_reboot>restart</on_reboot>
  43. <on_crash>destroy</on_crash>
  44. <pm>
  45. <suspend-to-mem enabled="no"/>
  46. <suspend-to-disk enabled="no"/>
  47. </pm>
  48. <devices>
  49. <emulator>/usr/bin/qemu-system-x86_64</emulator>
  50. <disk type="file" device="disk">
  51. <driver name="qemu" type="qcow2"/>
  52. <source file="/home/arnaud/Documents/VM/VFIO/Windows10.qcow2"/>
  53. <target dev="sda" bus="sata"/>
  54. <address type="drive" controller="0" bus="0" target="0" unit="0"/>
  55. </disk>
  56. <controller type="usb" index="0" model="qemu-xhci" ports="15">
  57. <address type="pci" domain="0x0000" bus="0x02" slot="0x00" function="0x0"/>
  58. </controller>
  59. <controller type="pci" index="0" model="pcie-root"/>
  60. <controller type="pci" index="1" model="pcie-root-port">
  61. <model name="pcie-root-port"/>
  62. <target chassis="1" port="0x10"/>
  63. <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x0" multifunction="on"/>
  64. </controller>
  65. <controller type="pci" index="2" model="pcie-root-port">
  66. <model name="pcie-root-port"/>
  67. <target chassis="2" port="0x11"/>
  68. <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x1"/>
  69. </controller>
  70. <controller type="pci" index="3" model="pcie-root-port">
  71. <model name="pcie-root-port"/>
  72. <target chassis="3" port="0x12"/>
  73. <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x2"/>
  74. </controller>
  75. <controller type="pci" index="4" model="pcie-root-port">
  76. <model name="pcie-root-port"/>
  77. <target chassis="4" port="0x13"/>
  78. <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x3"/>
  79. </controller>
  80. <controller type="pci" index="5" model="pcie-root-port">
  81. <model name="pcie-root-port"/>
  82. <target chassis="5" port="0x14"/>
  83. <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x4"/>
  84. </controller>
  85. <controller type="pci" index="6" model="pcie-root-port">
  86. <model name="pcie-root-port"/>
  87. <target chassis="6" port="0x15"/>
  88. <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x5"/>
  89. </controller>
  90. <controller type="pci" index="7" model="pcie-root-port">
  91. <model name="pcie-root-port"/>
  92. <target chassis="7" port="0x16"/>
  93. <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x6"/>
  94. </controller>
  95. <controller type="pci" index="8" model="pcie-root-port">
  96. <model name="pcie-root-port"/>
  97. <target chassis="8" port="0x17"/>
  98. <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x7"/>
  99. </controller>
  100. <controller type="pci" index="9" model="pcie-root-port">
  101. <model name="pcie-root-port"/>
  102. <target chassis="9" port="0x18"/>
  103. <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x0" multifunction="on"/>
  104. </controller>
  105. <controller type="pci" index="10" model="pcie-root-port">
  106. <model name="pcie-root-port"/>
  107. <target chassis="10" port="0x19"/>
  108. <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x1"/>
  109. </controller>
  110. <controller type="pci" index="11" model="pcie-root-port">
  111. <model name="pcie-root-port"/>
  112. <target chassis="11" port="0x1a"/>
  113. <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x2"/>
  114. </controller>
  115. <controller type="pci" index="12" model="pcie-root-port">
  116. <model name="pcie-root-port"/>
  117. <target chassis="12" port="0x1b"/>
  118. <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x3"/>
  119. </controller>
  120. <controller type="pci" index="13" model="pcie-root-port">
  121. <model name="pcie-root-port"/>
  122. <target chassis="13" port="0x1c"/>
  123. <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x4"/>
  124. </controller>
  125. <controller type="pci" index="14" model="pcie-root-port">
  126. <model name="pcie-root-port"/>
  127. <target chassis="14" port="0x1d"/>
  128. <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x5"/>
  129. </controller>
  130. <controller type="sata" index="0">
  131. <address type="pci" domain="0x0000" bus="0x00" slot="0x1f" function="0x2"/>
  132. </controller>
  133. <controller type="virtio-serial" index="0">
  134. <address type="pci" domain="0x0000" bus="0x03" slot="0x00" function="0x0"/>
  135. </controller>
  136. <interface type="network">
  137. <mac address="52:54:00:03:f9:d8"/>
  138. <source network="NATwlan0"/>
  139. <model type="virtio"/>
  140. <address type="pci" domain="0x0000" bus="0x01" slot="0x00" function="0x0"/>
  141. </interface>
  142. <input type="mouse" bus="ps2"/>
  143. <input type="keyboard" bus="ps2"/>
  144. <audio id="1" type="none"/>
  145. <hostdev mode="subsystem" type="pci" managed="yes">
  146. <source>
  147. <address domain="0x0000" bus="0x2b" slot="0x00" function="0x0"/>
  148. </source>
  149. <rom file="/var/lib/libvirt/vbios/patched.rom"/>
  150. <address type="pci" domain="0x0000" bus="0x05" slot="0x00" function="0x0"/>
  151. </hostdev>
  152. <hostdev mode="subsystem" type="pci" managed="yes">
  153. <source>
  154. <address domain="0x0000" bus="0x2b" slot="0x00" function="0x1"/>
  155. </source>
  156. <rom file="/var/lib/libvirt/vbios/patched.rom"/>
  157. <address type="pci" domain="0x0000" bus="0x06" slot="0x00" function="0x0"/>
  158. </hostdev>
  159. <hostdev mode="subsystem" type="pci" managed="yes">
  160. <source>
  161. <address domain="0x0000" bus="0x2d" slot="0x00" function="0x3"/>
  162. </source>
  163. <address type="pci" domain="0x0000" bus="0x07" slot="0x00" function="0x0"/>
  164. </hostdev>
  165. <memballoon model="virtio">
  166. <address type="pci" domain="0x0000" bus="0x04" slot="0x00" function="0x0"/>
  167. </memballoon>
  168. </devices>
  169. </domain>
  170.  
Advertisement
Add Comment
Please, Sign In to add comment