Guest User

Untitled

a guest
Feb 22nd, 2025
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.75 KB | None | 0 0
  1. <domain xmlns:qemu="http://libvirt.org/schemas/domain/qemu/1.0" type="kvm">
  2. <name>win11</name>
  3. <uuid>d61305ed-c050-4d57-ad9c-3e449470ab27</uuid>
  4. <metadata>
  5. <libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
  6. <libosinfo:os id="http://microsoft.com/win/11"/>
  7. </libosinfo:libosinfo>
  8. </metadata>
  9. <memory unit="KiB">50331648</memory>
  10. <currentMemory unit="KiB">50331648</currentMemory>
  11. <memoryBacking>
  12. <nosharepages/>
  13. <locked/>
  14. <source type="memfd"/>
  15. <access mode="shared"/>
  16. </memoryBacking>
  17. <vcpu placement="static">10</vcpu>
  18. <cputune>
  19. <vcpupin vcpu="0" cpuset="4"/>
  20. <vcpupin vcpu="1" cpuset="5"/>
  21. <vcpupin vcpu="2" cpuset="6"/>
  22. <vcpupin vcpu="3" cpuset="7"/>
  23. <vcpupin vcpu="4" cpuset="8"/>
  24. <vcpupin vcpu="5" cpuset="9"/>
  25. <vcpupin vcpu="6" cpuset="16"/>
  26. <vcpupin vcpu="7" cpuset="17"/>
  27. <vcpupin vcpu="8" cpuset="18"/>
  28. <vcpupin vcpu="9" cpuset="19"/>
  29. <emulatorpin cpuset="2"/>
  30. </cputune>
  31. <os>
  32. <type arch="x86_64" machine="pc-q35-9.1">hvm</type>
  33. <loader readonly="yes" secure="no" type="pflash" format="raw">/run/libvirt/nix-ovmf/OVMF_CODE.fd</loader>
  34. <nvram template="/run/libvirt/nix-ovmf/OVMF_VARS.fd" format="raw">/var/lib/libvirt/qemu/nvram/win11_VARS.fd</nvram>
  35. <boot dev="hd"/>
  36. <smbios mode="host"/>
  37. </os>
  38. <features>
  39. <acpi/>
  40. <apic/>
  41. <hyperv mode="passthrough">
  42. </hyperv>
  43. <pmu state="off"/>
  44. <vmport state="off"/>
  45. <ioapic driver="kvm"/>
  46. </features>
  47. <cpu mode="host-passthrough" check="none" migratable="on">
  48. <topology sockets="1" dies="1" clusters="1" cores="10" threads="1"/>
  49. <cache mode="passthrough"/>
  50. <maxphysaddr mode="passthrough"/>
  51. <feature policy="require" name="tsc-deadline"/>
  52. </cpu>
  53. <clock offset="localtime">
  54. <timer name="rtc" tickpolicy="catchup"/>
  55. <timer name="pit" tickpolicy="discard"/>
  56. <timer name="hpet" present="no"/>
  57. <timer name="kvmclock" present="yes"/>
  58. <timer name="hypervclock" present="yes"/>
  59. <timer name="tsc" present="yes" mode="native"/>
  60. </clock>
  61. <on_poweroff>destroy</on_poweroff>
  62. <on_reboot>restart</on_reboot>
  63. <on_crash>destroy</on_crash>
  64. <pm>
  65. <suspend-to-mem enabled="no"/>
  66. <suspend-to-disk enabled="no"/>
  67. </pm>
  68. <devices>
  69. <emulator>/run/libvirt/nix-emulators/qemu-system-x86_64</emulator>
  70. <controller type="usb" index="0" model="qemu-xhci">
  71. <address type="pci" domain="0x0000" bus="0x03" slot="0x00" function="0x0"/>
  72. </controller>
  73. <controller type="pci" index="0" model="pcie-root"/>
  74. <controller type="pci" index="1" model="pcie-root-port">
  75. <model name="pcie-root-port"/>
  76. <target chassis="1" port="0x8"/>
  77. <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x0" multifunction="on"/>
  78. </controller>
  79. <controller type="pci" index="2" model="pcie-root-port">
  80. <model name="pcie-root-port"/>
  81. <target chassis="2" port="0x9"/>
  82. <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x1"/>
  83. </controller>
  84. <controller type="pci" index="3" model="pcie-root-port">
  85. <model name="pcie-root-port"/>
  86. <target chassis="3" port="0xa"/>
  87. <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x2"/>
  88. </controller>
  89. <controller type="pci" index="4" model="pcie-root-port">
  90. <model name="pcie-root-port"/>
  91. <target chassis="4" port="0xb"/>
  92. <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x3"/>
  93. </controller>
  94. <controller type="pci" index="5" model="pcie-root-port">
  95. <model name="pcie-root-port"/>
  96. <target chassis="5" port="0xc"/>
  97. <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x4"/>
  98. </controller>
  99. <controller type="pci" index="6" model="pcie-root-port">
  100. <model name="pcie-root-port"/>
  101. <target chassis="6" port="0xd"/>
  102. <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x5"/>
  103. </controller>
  104. <controller type="pci" index="7" model="pcie-root-port">
  105. <model name="pcie-root-port"/>
  106. <target chassis="7" port="0xe"/>
  107. <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x6"/>
  108. </controller>
  109. <controller type="pci" index="8" model="pcie-root-port">
  110. <model name="pcie-root-port"/>
  111. <target chassis="8" port="0xf"/>
  112. <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x7"/>
  113. </controller>
  114. <controller type="pci" index="9" model="pcie-root-port">
  115. <model name="pcie-root-port"/>
  116. <target chassis="9" port="0x10"/>
  117. <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x0" multifunction="on"/>
  118. </controller>
  119. <controller type="pci" index="10" model="pcie-root-port">
  120. <model name="pcie-root-port"/>
  121. <target chassis="10" port="0x11"/>
  122. <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x1"/>
  123. </controller>
  124. <controller type="pci" index="11" model="pcie-to-pci-bridge">
  125. <model name="pcie-pci-bridge"/>
  126. <address type="pci" domain="0x0000" bus="0x02" slot="0x00" function="0x0"/>
  127. </controller>
  128. <controller type="pci" index="12" model="pci-bridge">
  129. <model name="pci-bridge"/>
  130. <target chassisNr="12"/>
  131. <address type="pci" domain="0x0000" bus="0x0b" slot="0x01" function="0x0"/>
  132. </controller>
  133. <controller type="pci" index="13" model="pci-bridge">
  134. <model name="pci-bridge"/>
  135. <target chassisNr="13"/>
  136. <address type="pci" domain="0x0000" bus="0x0b" slot="0x02" function="0x0"/>
  137. </controller>
  138. <controller type="pci" index="14" model="pci-bridge">
  139. <model name="pci-bridge"/>
  140. <target chassisNr="14"/>
  141. <address type="pci" domain="0x0000" bus="0x0b" slot="0x03" function="0x0"/>
  142. </controller>
  143. <controller type="pci" index="15" model="pci-bridge">
  144. <model name="pci-bridge"/>
  145. <target chassisNr="15"/>
  146. <address type="pci" domain="0x0000" bus="0x0b" slot="0x04" function="0x0"/>
  147. </controller>
  148. <controller type="pci" index="16" model="pci-bridge">
  149. <model name="pci-bridge"/>
  150. <target chassisNr="16"/>
  151. <address type="pci" domain="0x0000" bus="0x0b" slot="0x05" function="0x0"/>
  152. </controller>
  153. <controller type="sata" index="0">
  154. <address type="pci" domain="0x0000" bus="0x00" slot="0x1f" function="0x2"/>
  155. </controller>
  156. <filesystem type="mount" accessmode="passthrough">
  157. <driver type="virtiofs"/>
  158. <binary path="/run/current-system/sw/bin/virtiofsd" xattr="on"/>
  159. <source dir="/home/user/virtiofs/win11"/>
  160. <target dir="shared"/>
  161. <address type="pci" domain="0x0000" bus="0x08" slot="0x00" function="0x0"/>
  162. </filesystem>
  163. <interface type="network">
  164. <mac address="52:54:00:d8:ee:3d"/>
  165. <source network="default"/>
  166. <model type="virtio"/>
  167. <address type="pci" domain="0x0000" bus="0x09" slot="0x00" function="0x0"/>
  168. </interface>
  169. <serial type="pty">
  170. <target type="isa-serial" port="0">
  171. <model name="isa-serial"/>
  172. </target>
  173. </serial>
  174. <console type="pty">
  175. <target type="serial" port="0"/>
  176. </console>
  177. <input type="evdev">
  178. <source dev="/dev/input/by-id/usb-Nordic_Semiconductor_NuPhy_Air75_V2_Dongle-event-kbd" grab="all" repeat="on"/>
  179. </input>
  180. <input type="evdev">
  181. <source dev="/dev/input/by-id/usb-Logitech_USB_Receiver_344F345D3232-event-mouse"/>
  182. </input>
  183. <input type="mouse" bus="ps2"/>
  184. <input type="keyboard" bus="ps2"/>
  185. <tpm model="tpm-crb">
  186. <backend type="passthrough">
  187. <device path="/dev/tpm0"/>
  188. </backend>
  189. </tpm>
  190. <sound model="ich9">
  191. <audio id="1"/>
  192. <address type="pci" domain="0x0000" bus="0x00" slot="0x1b" function="0x0"/>
  193. </sound>
  194. <audio id="1" type="pipewire" runtimeDir="/run/user/1000"/>
  195. <hostdev mode="subsystem" type="pci" managed="yes">
  196. <source>
  197. <address domain="0x0000" bus="0x03" slot="0x00" function="0x0"/>
  198. </source>
  199. <rom bar="on"/>
  200. <address type="pci" domain="0x0000" bus="0x01" slot="0x00" function="0x0"/>
  201. </hostdev>
  202. <hostdev mode="subsystem" type="pci" managed="yes">
  203. <source>
  204. <address domain="0x0000" bus="0x01" slot="0x00" function="0x0"/>
  205. </source>
  206. <rom bar="on"/>
  207. <address type="pci" domain="0x0000" bus="0x04" slot="0x00" function="0x0" multifunction="on"/>
  208. </hostdev>
  209. <hostdev mode="subsystem" type="pci" managed="yes">
  210. <source>
  211. <address domain="0x0000" bus="0x01" slot="0x00" function="0x1"/>
  212. </source>
  213. <rom bar="on"/>
  214. <address type="pci" domain="0x0000" bus="0x04" slot="0x00" function="0x1"/>
  215. </hostdev>
  216. <hostdev mode="subsystem" type="pci" managed="yes">
  217. <source>
  218. <address domain="0x0000" bus="0x00" slot="0x14" function="0x3"/>
  219. </source>
  220. <rom bar="on"/>
  221. <address type="pci" domain="0x0000" bus="0x06" slot="0x00" function="0x0"/>
  222. </hostdev>
  223. <hostdev mode="subsystem" type="usb" managed="yes">
  224. <source>
  225. <vendor id="0x8087"/>
  226. <product id="0x0033"/>
  227. </source>
  228. <address type="usb" bus="0" port="1"/>
  229. </hostdev>
  230. <watchdog model="itco" action="reset"/>
  231. <memballoon model="none"/>
  232. </devices>
  233. <qemu:commandline>
  234. <qemu:arg value="-fw_cfg"/>
  235. <qemu:arg value="opt/ovmf/X-PciMmio64Mb,string=65536"/>
  236. <qemu:arg value="--overcommit"/>
  237. <qemu:arg value="cpu-pm=on"/>
  238. <qemu:arg value="--overcommit"/>
  239. <qemu:arg value="mem-lock=on"/>
  240. </qemu:commandline>
  241. <qemu:capabilities>
  242. <qemu:del capability="usb-host.hostdevice"/>
  243. </qemu:capabilities>
  244. </domain>
Advertisement
Add Comment
Please, Sign In to add comment