Advertisement
Guest User

My Windows 10m xml for virt-manager and qemu/kvm

a guest
Feb 10th, 2024
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.59 KB | None | 0 0
  1. <domain type="kvm">
  2. <name>win10a</name>
  3. <uuid>(felt the need to omit, not like this in actual xml)</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">30720000</memory>
  10. <currentMemory unit="KiB">30720000</currentMemory>
  11. <vcpu placement="static">14</vcpu>
  12. <sysinfo type="smbios">
  13. <bios>
  14. <entry name="vendor">American Megatrends International, LLC.</entry>
  15. <entry name="version">F38f</entry>
  16. <entry name="date">08/09/2023</entry>
  17. </bios>
  18. <system>
  19. <entry name="manufacturer">Gigabyte Technology Co., Ltd.</entry>
  20. <entry name="product">X570 AORUS ELITE</entry>
  21. <entry name="version">x.x</entry>
  22. <entry name="serial">Default string</entry>
  23. <entry name="uuid">(felt the need to omit, not like this in actual xml)</entry>
  24. <entry name="sku">Default string</entry>
  25. <entry name="family">X570 MB</entry>
  26. </system>
  27. </sysinfo>
  28. <os firmware="efi">
  29. <type arch="x86_64" machine="pc-q35-6.2">hvm</type>
  30. <firmware>
  31. <feature enabled="no" name="enrolled-keys"/>
  32. <feature enabled="no" name="secure-boot"/>
  33. </firmware>
  34. <loader readonly="yes" type="pflash">/usr/share/edk2/x64/OVMF_CODE.fd</loader>
  35. <nvram template="/usr/share/edk2/x64/OVMF_VARS.fd">/var/lib/libvirt/qemu/nvram/win10a_VARS.fd</nvram>
  36. <boot dev="hd"/>
  37. <smbios mode="sysinfo"/>
  38. </os>
  39. <features>
  40. <acpi/>
  41. <apic/>
  42. <vmport state="off"/>
  43. <smm state="on"/>
  44. </features>
  45. <cpu mode="host-passthrough" check="none" migratable="on">
  46. <topology sockets="1" dies="1" cores="7" threads="2"/>
  47. <feature policy="require" name="topoext"/>
  48. <feature policy="disable" name="hypervisor"/>
  49. </cpu>
  50. <clock offset="localtime">
  51. <timer name="rtc" tickpolicy="catchup"/>
  52. <timer name="pit" tickpolicy="delay"/>
  53. <timer name="hpet" present="no"/>
  54. <timer name="hypervclock" present="yes"/>
  55. </clock>
  56. <on_poweroff>destroy</on_poweroff>
  57. <on_reboot>restart</on_reboot>
  58. <on_crash>destroy</on_crash>
  59. <pm>
  60. <suspend-to-mem enabled="no"/>
  61. <suspend-to-disk enabled="no"/>
  62. </pm>
  63. <devices>
  64. <emulator>/usr/bin/qemu-system-x86_64</emulator>
  65. <disk type="file" device="disk">
  66. <driver name="qemu" type="qcow2"/>
  67. <source file="/var/lib/libvirt/images/win10.qcow2"/>
  68. <target dev="vda" bus="virtio"/>
  69. <address type="pci" domain="0x0000" bus="0x05" slot="0x00" function="0x0"/>
  70. </disk>
  71. <controller type="usb" index="0" model="qemu-xhci" ports="15">
  72. <address type="pci" domain="0x0000" bus="0x02" slot="0x00" function="0x0"/>
  73. </controller>
  74. <controller type="pci" index="0" model="pcie-root"/>
  75. <controller type="pci" index="1" model="pcie-root-port">
  76. <model name="pcie-root-port"/>
  77. <target chassis="1" port="0x10"/>
  78. <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x0" multifunction="on"/>
  79. </controller>
  80. <controller type="pci" index="2" model="pcie-root-port">
  81. <model name="pcie-root-port"/>
  82. <target chassis="2" port="0x11"/>
  83. <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x1"/>
  84. </controller>
  85. <controller type="pci" index="3" model="pcie-root-port">
  86. <model name="pcie-root-port"/>
  87. <target chassis="3" port="0x12"/>
  88. <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x2"/>
  89. </controller>
  90. <controller type="pci" index="4" model="pcie-root-port">
  91. <model name="pcie-root-port"/>
  92. <target chassis="4" port="0x13"/>
  93. <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x3"/>
  94. </controller>
  95. <controller type="pci" index="5" model="pcie-root-port">
  96. <model name="pcie-root-port"/>
  97. <target chassis="5" port="0x14"/>
  98. <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x4"/>
  99. </controller>
  100. <controller type="pci" index="6" model="pcie-root-port">
  101. <model name="pcie-root-port"/>
  102. <target chassis="6" port="0x15"/>
  103. <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x5"/>
  104. </controller>
  105. <controller type="pci" index="7" model="pcie-root-port">
  106. <model name="pcie-root-port"/>
  107. <target chassis="7" port="0x16"/>
  108. <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x6"/>
  109. </controller>
  110. <controller type="pci" index="8" model="pcie-root-port">
  111. <model name="pcie-root-port"/>
  112. <target chassis="8" port="0x17"/>
  113. <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x7"/>
  114. </controller>
  115. <controller type="pci" index="9" model="pcie-root-port">
  116. <model name="pcie-root-port"/>
  117. <target chassis="9" port="0x18"/>
  118. <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x0" multifunction="on"/>
  119. </controller>
  120. <controller type="pci" index="10" model="pcie-root-port">
  121. <model name="pcie-root-port"/>
  122. <target chassis="10" port="0x19"/>
  123. <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x1"/>
  124. </controller>
  125. <controller type="pci" index="11" model="pcie-root-port">
  126. <model name="pcie-root-port"/>
  127. <target chassis="11" port="0x1a"/>
  128. <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x2"/>
  129. </controller>
  130. <controller type="pci" index="12" model="pcie-root-port">
  131. <model name="pcie-root-port"/>
  132. <target chassis="12" port="0x1b"/>
  133. <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x3"/>
  134. </controller>
  135. <controller type="pci" index="13" model="pcie-root-port">
  136. <model name="pcie-root-port"/>
  137. <target chassis="13" port="0x1c"/>
  138. <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x4"/>
  139. </controller>
  140. <controller type="pci" index="14" model="pcie-root-port">
  141. <model name="pcie-root-port"/>
  142. <target chassis="14" port="0x1d"/>
  143. <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x5"/>
  144. </controller>
  145. <controller type="sata" index="0">
  146. <address type="pci" domain="0x0000" bus="0x00" slot="0x1f" function="0x2"/>
  147. </controller>
  148. <controller type="virtio-serial" index="0">
  149. <address type="pci" domain="0x0000" bus="0x03" slot="0x00" function="0x0"/>
  150. </controller>
  151. <interface type="network">
  152. <mac address="52:54:00:2d:62:c2"/>
  153. <source network="default"/>
  154. <model type="e1000e"/>
  155. <address type="pci" domain="0x0000" bus="0x01" slot="0x00" function="0x0"/>
  156. </interface>
  157. <serial type="pty">
  158. <target type="isa-serial" port="0">
  159. <model name="isa-serial"/>
  160. </target>
  161. </serial>
  162. <console type="pty">
  163. <target type="serial" port="0"/>
  164. </console>
  165. <channel type="spicevmc">
  166. <target type="virtio" name="com.redhat.spice.0"/>
  167. <address type="virtio-serial" controller="0" bus="0" port="1"/>
  168. </channel>
  169. <input type="tablet" bus="usb">
  170. <address type="usb" bus="0" port="3"/>
  171. </input>
  172. <input type="mouse" bus="ps2"/>
  173. <input type="keyboard" bus="ps2"/>
  174. <graphics type="spice" autoport="yes">
  175. <listen type="address"/>
  176. <image compression="off"/>
  177. </graphics>
  178. <sound model="ich9">
  179. <address type="pci" domain="0x0000" bus="0x00" slot="0x1b" function="0x0"/>
  180. </sound>
  181. <audio id="1" type="spice"/>
  182. <video>
  183. <model type="qxl" ram="65536" vram="65536" vgamem="16384" heads="1" primary="yes"/>
  184. <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x0"/>
  185. </video>
  186. <hostdev mode="subsystem" type="usb" managed="yes">
  187. <source>
  188. <vendor id="0x04f2"/>
  189. <product id="0x0833"/>
  190. </source>
  191. <address type="usb" bus="0" port="1"/>
  192. </hostdev>
  193. <hostdev mode="subsystem" type="usb" managed="yes">
  194. <source>
  195. <vendor id="0x1b1c"/>
  196. <product id="0x1b74"/>
  197. </source>
  198. <address type="usb" bus="0" port="2"/>
  199. </hostdev>
  200. <hostdev mode="subsystem" type="pci" managed="yes">
  201. <source>
  202. <address domain="0x0000" bus="0x0b" slot="0x00" function="0x0"/>
  203. </source>
  204. <address type="pci" domain="0x0000" bus="0x06" slot="0x00" function="0x0"/>
  205. </hostdev>
  206. <hostdev mode="subsystem" type="pci" managed="yes">
  207. <source>
  208. <address domain="0x0000" bus="0x0b" slot="0x00" function="0x1"/>
  209. </source>
  210. <address type="pci" domain="0x0000" bus="0x07" slot="0x00" function="0x0"/>
  211. </hostdev>
  212. <hostdev mode="subsystem" type="pci" managed="yes">
  213. <source>
  214. <address domain="0x0000" bus="0x0b" slot="0x00" function="0x2"/>
  215. </source>
  216. <address type="pci" domain="0x0000" bus="0x08" slot="0x00" function="0x0"/>
  217. </hostdev>
  218. <hostdev mode="subsystem" type="pci" managed="yes">
  219. <source>
  220. <address domain="0x0000" bus="0x0b" slot="0x00" function="0x3"/>
  221. </source>
  222. <address type="pci" domain="0x0000" bus="0x09" slot="0x00" function="0x0"/>
  223. </hostdev>
  224. <redirdev bus="usb" type="spicevmc">
  225. <address type="usb" bus="0" port="4"/>
  226. </redirdev>
  227. <redirdev bus="usb" type="spicevmc">
  228. <address type="usb" bus="0" port="5"/>
  229. </redirdev>
  230. <watchdog model="itco" action="reset"/>
  231. <memballoon model="virtio">
  232. <address type="pci" domain="0x0000" bus="0x04" slot="0x00" function="0x0"/>
  233. </memballoon>
  234. </devices>
  235. </domain>
  236.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement