Guest User

vm xml

a guest
Jul 10th, 2023
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.72 KB | None | 0 0
  1. <domain type="kvm">
  2. <name>win10</name>
  3. <uuid>39c8419c-f924-47e0-b681-7222e16b1b75</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">4194304</memory>
  10. <currentMemory unit="KiB">4194304</currentMemory>
  11. <vcpu placement="static">2</vcpu>
  12. <os firmware="efi">
  13. <type arch="x86_64" machine="pc-q35-8.0">hvm</type>
  14. <firmware>
  15. <feature enabled="no" name="enrolled-keys"/>
  16. <feature enabled="no" name="secure-boot"/>
  17. </firmware>
  18. <loader readonly="yes" type="pflash">/usr/share/edk2/x64/OVMF_CODE.fd</loader>
  19. <nvram template="/usr/share/edk2/x64/OVMF_VARS.fd">/var/lib/libvirt/qemu/nvram/win10_VARS.fd</nvram>
  20. <bootmenu enable="yes"/>
  21. </os>
  22. <features>
  23. <acpi/>
  24. <apic/>
  25. <hyperv mode="custom">
  26. <relaxed state="on"/>
  27. <vapic state="on"/>
  28. <spinlocks state="on" retries="8191"/>
  29. </hyperv>
  30. <vmport state="off"/>
  31. </features>
  32. <cpu mode="host-passthrough" check="none" migratable="on"/>
  33. <clock offset="localtime">
  34. <timer name="rtc" tickpolicy="catchup"/>
  35. <timer name="pit" tickpolicy="delay"/>
  36. <timer name="hpet" present="no"/>
  37. <timer name="hypervclock" present="yes"/>
  38. </clock>
  39. <on_poweroff>destroy</on_poweroff>
  40. <on_reboot>restart</on_reboot>
  41. <on_crash>destroy</on_crash>
  42. <pm>
  43. <suspend-to-mem enabled="no"/>
  44. <suspend-to-disk enabled="no"/>
  45. </pm>
  46. <devices>
  47. <emulator>/usr/bin/qemu-system-x86_64</emulator>
  48. <disk type="file" device="cdrom">
  49. <driver name="qemu" type="raw"/>
  50. <source file="/mnt/archlinux/temp_stuff/archlinux-2023.07.01-x86_64.iso"/>
  51. <target dev="sda" bus="sata"/>
  52. <readonly/>
  53. <boot order="1"/>
  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. <input type="mouse" bus="ps2"/>
  134. <input type="keyboard" bus="ps2"/>
  135. <audio id="1" type="none"/>
  136. <hostdev mode="subsystem" type="pci" managed="yes">
  137. <source>
  138. <address domain="0x0000" bus="0x01" slot="0x00" function="0x0"/>
  139. </source>
  140. <rom file="/vbios.rom"/>
  141. <address type="pci" domain="0x0000" bus="0x05" slot="0x00" function="0x0"/>
  142. </hostdev>
  143. <hostdev mode="subsystem" type="pci" managed="yes">
  144. <source>
  145. <address domain="0x0000" bus="0x01" slot="0x00" function="0x1"/>
  146. </source>
  147. <address type="pci" domain="0x0000" bus="0x06" slot="0x00" function="0x0"/>
  148. </hostdev>
  149. <hostdev mode="subsystem" type="usb" managed="yes">
  150. <source>
  151. <vendor id="0x045e"/>
  152. <product id="0x0750"/>
  153. </source>
  154. <address type="usb" bus="0" port="2"/>
  155. </hostdev>
  156. <watchdog model="itco" action="reset"/>
  157. <memballoon model="virtio">
  158. <address type="pci" domain="0x0000" bus="0x04" slot="0x00" function="0x0"/>
  159. </memballoon>
  160. </devices>
  161. </domain>
  162.  
Advertisement
Add Comment
Please, Sign In to add comment