Advertisement
Guest User

libvirt.xml

a guest
Mar 25th, 2020
1,530
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.18 KB | None | 0 0
  1. <domain xmlns:qemu="http://libvirt.org/schemas/domain/qemu/1.0" type="kvm">
  2. <name>win10</name>
  3. <uuid></uuid>
  4. <title>Gaming-VM</title>
  5. <metadata>
  6. <libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
  7. <libosinfo:os id="http://microsoft.com/win/10"/>
  8. </libosinfo:libosinfo>
  9. </metadata>
  10. <memory unit="KiB">16001024</memory>
  11. <currentMemory unit="KiB">16001024</currentMemory>
  12. <memoryBacking>
  13. <hugepages/>
  14. <nosharepages/>
  15. <locked/>
  16. </memoryBacking>
  17. <vcpu placement="static">10</vcpu>
  18. <iothreads>1</iothreads>
  19. <cputune>
  20. <vcpupin vcpu="0" cpuset="4"/>
  21. <vcpupin vcpu="1" cpuset="12"/>
  22. <vcpupin vcpu="2" cpuset="5"/>
  23. <vcpupin vcpu="3" cpuset="13"/>
  24. <vcpupin vcpu="4" cpuset="6"/>
  25. <vcpupin vcpu="5" cpuset="14"/>
  26. <vcpupin vcpu="6" cpuset="7"/>
  27. <vcpupin vcpu="7" cpuset="15"/>
  28. <vcpupin vcpu="8" cpuset="3"/>
  29. <vcpupin vcpu="9" cpuset="11"/>
  30. <emulatorpin cpuset="0"/>
  31. <iothreadpin iothread="1" cpuset="1-2"/>
  32. </cputune>
  33. <os>
  34. <type arch="x86_64" machine="pc-q35-4.2">hvm</type>
  35. <loader readonly="yes" secure="no" type="pflash">/usr/share/ovmf/x64/OVMF_CODE.fd</loader>
  36. <nvram template="/usr/share/ovmf/x64/OVMF_VARS.fd">/var/lib/libvirt/qemu/nvram/win10_VARS.fd</nvram>
  37. <bootmenu enable="no"/>
  38. </os>
  39. <features>
  40. <acpi/>
  41. <apic eoi="on"/>
  42. <hap state="on"/>
  43. <hyperv>
  44. <relaxed state="on"/>
  45. <vapic state="on"/>
  46. <vpindex state="on"/>
  47. <vendor_id state="on" value="ASUSTeK"/>
  48. </hyperv>
  49. <kvm>
  50. <hidden state="on"/>
  51. <hint-dedicated state="on"/>
  52. </kvm>
  53. <ioapic driver="kvm"/>
  54. </features>
  55. <cpu mode="host-passthrough" check="none">
  56. <topology sockets="1" cores="5" threads="2"/>
  57. <cache mode="passthrough"/>
  58. <feature policy="require" name="invtsc"/>
  59. <feature policy="require" name="topoext"/>
  60. <feature policy="disable" name="monitor"/>
  61. </cpu>
  62. <clock offset="utc">
  63. <timer name="rtc" present="no" tickpolicy="catchup"/>
  64. <timer name="pit" present="no" tickpolicy="discard"/>
  65. <timer name="hpet" present="no"/>
  66. <timer name="tsc" present="yes" mode="native"/>
  67. <timer name="hypervclock" present="yes"/>
  68. </clock>
  69. <on_poweroff>destroy</on_poweroff>
  70. <on_reboot>restart</on_reboot>
  71. <on_crash>destroy</on_crash>
  72. <pm>
  73. <suspend-to-mem enabled="yes"/>
  74. <suspend-to-disk enabled="yes"/>
  75. </pm>
  76. <devices>
  77. <emulator>/usr/bin/qemu-system-x86_64</emulator>
  78. <disk type="block" device="lun">
  79. <driver name="qemu" type="raw" cache="none" io="native" discard="unmap" detect_zeroes="unmap"/>
  80. <source dev="/dev/disk/by-id/ata-Samsung_SSD_860_EVO_500GB_S3Z2NB0K866480A"/>
  81. <target dev="sda" bus="scsi"/>
  82. <address type="drive" controller="1" bus="0" target="0" unit="0"/>
  83. </disk>
  84. <disk type="block" device="lun">
  85. <driver name="qemu" type="raw" cache="none" io="native" discard="unmap" detect_zeroes="unmap"/>
  86. <source dev="/dev/disk/by-id/ata-CT500MX500SSD1_1937E21F7ED5"/>
  87. <target dev="sdb" bus="scsi"/>
  88. <address type="drive" controller="0" bus="0" target="0" unit="0"/>
  89. </disk>
  90. <controller type="usb" index="0" model="qemu-xhci" ports="15">
  91. <address type="pci" domain="0x0000" bus="0x02" slot="0x00" function="0x0"/>
  92. </controller>
  93. <controller type="pci" index="0" model="pcie-root"/>
  94. <controller type="pci" index="1" model="pcie-root-port">
  95. <model name="pcie-root-port"/>
  96. <target chassis="1" port="0x1"/>
  97. <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x0" multifunction="on"/>
  98. </controller>
  99. <controller type="pci" index="2" model="pcie-root-port">
  100. <model name="pcie-root-port"/>
  101. <target chassis="2" port="0x2"/>
  102. <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x0"/>
  103. </controller>
  104. <controller type="pci" index="3" model="pcie-root-port">
  105. <model name="pcie-root-port"/>
  106. <target chassis="3" port="0x3"/>
  107. <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x0"/>
  108. </controller>
  109. <controller type="pci" index="4" model="pcie-root-port">
  110. <model name="pcie-root-port"/>
  111. <target chassis="4" port="0x4"/>
  112. <address type="pci" domain="0x0000" bus="0x00" slot="0x04" function="0x0"/>
  113. </controller>
  114. <controller type="pci" index="5" model="pcie-root-port">
  115. <model name="pcie-root-port"/>
  116. <target chassis="5" port="0x5"/>
  117. <address type="pci" domain="0x0000" bus="0x00" slot="0x05" function="0x0"/>
  118. </controller>
  119. <controller type="pci" index="6" model="pcie-root-port">
  120. <model name="pcie-root-port"/>
  121. <target chassis="6" port="0x6"/>
  122. <address type="pci" domain="0x0000" bus="0x00" slot="0x06" function="0x0"/>
  123. </controller>
  124. <controller type="pci" index="7" model="pcie-root-port">
  125. <model name="pcie-root-port"/>
  126. <target chassis="7" port="0x7"/>
  127. <address type="pci" domain="0x0000" bus="0x00" slot="0x07" function="0x0"/>
  128. </controller>
  129. <controller type="pci" index="8" model="pcie-root-port">
  130. <model name="pcie-root-port"/>
  131. <target chassis="8" port="0x8"/>
  132. <address type="pci" domain="0x0000" bus="0x00" slot="0x08" function="0x0"/>
  133. </controller>
  134. <controller type="pci" index="9" model="pcie-root-port">
  135. <model name="pcie-root-port"/>
  136. <target chassis="9" port="0x9"/>
  137. <address type="pci" domain="0x0000" bus="0x00" slot="0x09" function="0x0"/>
  138. </controller>
  139. <controller type="pci" index="10" model="pcie-root-port">
  140. <model name="pcie-root-port"/>
  141. <target chassis="10" port="0xa"/>
  142. <address type="pci" domain="0x0000" bus="0x00" slot="0x0a" function="0x0"/>
  143. </controller>
  144. <controller type="pci" index="11" model="pcie-root-port">
  145. <model name="pcie-root-port"/>
  146. <target chassis="11" port="0xb"/>
  147. <address type="pci" domain="0x0000" bus="0x00" slot="0x0b" function="0x0"/>
  148. </controller>
  149. <controller type="pci" index="12" model="pcie-to-pci-bridge">
  150. <model name="pcie-pci-bridge"/>
  151. <address type="pci" domain="0x0000" bus="0x01" slot="0x00" function="0x0"/>
  152. </controller>
  153. <controller type="pci" index="13" model="pcie-root-port">
  154. <model name="pcie-root-port"/>
  155. <target chassis="13" port="0x9"/>
  156. <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x1"/>
  157. </controller>
  158. <controller type="sata" index="0">
  159. <address type="pci" domain="0x0000" bus="0x00" slot="0x1f" function="0x2"/>
  160. </controller>
  161. <controller type="scsi" index="0" model="virtio-scsi">
  162. <driver queues="10" iothread="1"/>
  163. <address type="pci" domain="0x0000" bus="0x03" slot="0x00" function="0x0"/>
  164. </controller>
  165. <controller type="scsi" index="1" model="virtio-scsi">
  166. <driver queues="10" iothread="1"/>
  167. <address type="pci" domain="0x0000" bus="0x08" slot="0x00" function="0x0"/>
  168. </controller>
  169. <input type="mouse" bus="ps2"/>
  170. <input type="keyboard" bus="ps2"/>
  171. <hostdev mode="subsystem" type="pci" managed="yes">
  172. <source>
  173. <address domain="0x0000" bus="0x0b" slot="0x00" function="0x0"/>
  174. </source>
  175. <rom bar="on" file="/home/kayant/KVM/Windows-setup/Zotac_patched.rom"/>
  176. <address type="pci" domain="0x0000" bus="0x06" slot="0x00" function="0x0"/>
  177. </hostdev>
  178. <hostdev mode="subsystem" type="pci" managed="yes">
  179. <source>
  180. <address domain="0x0000" bus="0x0c" slot="0x00" function="0x0"/>
  181. </source>
  182. <address type="pci" domain="0x0000" bus="0x0a" slot="0x00" function="0x0"/>
  183. </hostdev>
  184. <hostdev mode="subsystem" type="pci" managed="yes">
  185. <source>
  186. <address domain="0x0000" bus="0x01" slot="0x00" function="0x0"/>
  187. </source>
  188. <boot order="1"/>
  189. <address type="pci" domain="0x0000" bus="0x04" slot="0x00" function="0x0"/>
  190. </hostdev>
  191. <hostdev mode="subsystem" type="pci" managed="yes">
  192. <source>
  193. <address domain="0x0000" bus="0x0d" slot="0x00" function="0x3"/>
  194. </source>
  195. <address type="pci" domain="0x0000" bus="0x07" slot="0x00" function="0x0"/>
  196. </hostdev>
  197. <hostdev mode="subsystem" type="pci" managed="yes">
  198. <source>
  199. <address domain="0x0000" bus="0x0e" slot="0x00" function="0x3"/>
  200. </source>
  201. <address type="pci" domain="0x0000" bus="0x05" slot="0x00" function="0x0"/>
  202. </hostdev>
  203. <hostdev mode="subsystem" type="pci" managed="yes">
  204. <source>
  205. <address domain="0x0000" bus="0x09" slot="0x00" function="0x0"/>
  206. </source>
  207. <address type="pci" domain="0x0000" bus="0x09" slot="0x00" function="0x0"/>
  208. </hostdev>
  209. <hostdev mode="subsystem" type="pci" managed="yes">
  210. <source>
  211. <address domain="0x0000" bus="0x07" slot="0x00" function="0x0"/>
  212. </source>
  213. <address type="pci" domain="0x0000" bus="0x0b" slot="0x00" function="0x0"/>
  214. </hostdev>
  215. <memballoon model="none"/>
  216. <panic model="hyperv"/>
  217. </devices>
  218. <qemu:commandline>
  219. <qemu:arg value="-overcommit"/>
  220. <qemu:arg value="cpu-pm=on"/>
  221. </qemu:commandline>
  222. </domain>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement