Guest User

Windows 10 KVM config

a guest
Dec 29th, 2019
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.99 KB | None | 0 0
  1. <domain type='kvm'>
  2. <name>Windows10</name>
  3. <uuid>41f2244d-e328-4354-9dcd-54245e1c0695</uuid>
  4. <title>Windows 10</title>
  5. <memory unit='KiB'>16777216</memory>
  6. <currentMemory unit='KiB'>16777216</currentMemory>
  7. <vcpu placement='static'>10</vcpu>
  8. <os>
  9. <type arch='x86_64' machine='pc-q35-rhel7.6.0'>hvm</type>
  10. <loader readonly='yes' type='pflash'>/usr/share/OVMF/OVMF_CODE.secboot.fd</loader>
  11. <nvram>/var/lib/libvirt/qemu/nvram/Windows10_VARS.fd</nvram>
  12. <bootmenu enable='no'/>
  13. </os>
  14. <features>
  15. <acpi/>
  16. <apic/>
  17. <hyperv>
  18. <relaxed state='on'/>
  19. <vapic state='on'/>
  20. <spinlocks state='on' retries='8191'/>
  21. <vendor_id state='on' value='123456789ab'/>
  22. </hyperv>
  23. <kvm>
  24. <hidden state='on'/>
  25. </kvm>
  26. </features>
  27. <cpu mode='host-passthrough' check='none'>
  28. <topology sockets='1' cores='5' threads='2'/>
  29. </cpu>
  30. <clock offset='localtime'>
  31. <timer name='rtc' tickpolicy='catchup'/>
  32. <timer name='pit' tickpolicy='delay'/>
  33. <timer name='hpet' present='no'/>
  34. <timer name='hypervclock' present='yes'/>
  35. </clock>
  36. <on_poweroff>destroy</on_poweroff>
  37. <on_reboot>restart</on_reboot>
  38. <on_crash>restart</on_crash>
  39. <pm>
  40. <suspend-to-mem enabled='no'/>
  41. <suspend-to-disk enabled='no'/>
  42. </pm>
  43. <devices>
  44. <emulator>/usr/libexec/qemu-kvm</emulator>
  45. <disk type='block' device='disk'>
  46. <driver name='qemu' type='raw' cache='none' io='native' discard='unmap'/>
  47. <source dev='/dev/Machines/Windows10'/>
  48. <target dev='sdb' bus='scsi'/>
  49. <boot order='2'/>
  50. <address type='drive' controller='0' bus='0' target='0' unit='1'/>
  51. </disk>
  52. <disk type='file' device='cdrom'>
  53. <driver name='qemu' type='raw'/>
  54. <source file='/usr/share/virtio-win/virtio-win.iso'/>
  55. <target dev='sda' bus='sata'/>
  56. <readonly/>
  57. <boot order='1'/>
  58. <address type='drive' controller='0' bus='0' target='0' unit='0'/>
  59. </disk>
  60. <disk type='file' device='cdrom'>
  61. <driver name='qemu' type='raw'/>
  62. <target dev='sdc' bus='sata'/>
  63. <readonly/>
  64. <address type='drive' controller='0' bus='0' target='0' unit='2'/>
  65. </disk>
  66. <disk type='file' device='disk'>
  67. <driver name='qemu' type='raw'/>
  68. <source file='/dev/disk/by-id/ata-WDC_WD10EZEX-08WN4A0_WD-WCC6Y7RTL0SZ'/>
  69. <target dev='vda' bus='virtio'/>
  70. <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
  71. </disk>
  72. <controller type='usb' index='0' model='nec-xhci'>
  73. <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
  74. </controller>
  75. <controller type='pci' index='0' model='pcie-root'/>
  76. <controller type='pci' index='1' model='pcie-root-port'>
  77. <model name='pcie-root-port'/>
  78. <target chassis='1' port='0x10'/>
  79. <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0' multifunction='on'/>
  80. </controller>
  81. <controller type='pci' index='2' model='pcie-root-port'>
  82. <model name='pcie-root-port'/>
  83. <target chassis='2' port='0x11'/>
  84. <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x1'/>
  85. </controller>
  86. <controller type='pci' index='3' model='pcie-root-port'>
  87. <model name='pcie-root-port'/>
  88. <target chassis='3' port='0x12'/>
  89. <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x2'/>
  90. </controller>
  91. <controller type='pci' index='4' model='pcie-root-port'>
  92. <model name='pcie-root-port'/>
  93. <target chassis='4' port='0x13'/>
  94. <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x3'/>
  95. </controller>
  96. <controller type='pci' index='5' model='pcie-root-port'>
  97. <model name='pcie-root-port'/>
  98. <target chassis='5' port='0x14'/>
  99. <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x4'/>
  100. </controller>
  101. <controller type='pci' index='6' model='pcie-root-port'>
  102. <model name='pcie-root-port'/>
  103. <target chassis='6' port='0x15'/>
  104. <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x5'/>
  105. </controller>
  106. <controller type='pci' index='7' model='pcie-root-port'>
  107. <model name='pcie-root-port'/>
  108. <target chassis='7' port='0x16'/>
  109. <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x6'/>
  110. </controller>
  111. <controller type='pci' index='8' model='pcie-root-port'>
  112. <model name='pcie-root-port'/>
  113. <target chassis='8' port='0x17'/>
  114. <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x7'/>
  115. </controller>
  116. <controller type='pci' index='9' model='pcie-root-port'>
  117. <model name='pcie-root-port'/>
  118. <target chassis='9' port='0x18'/>
  119. <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0' multifunction='on'/>
  120. </controller>
  121. <controller type='pci' index='10' model='pcie-root-port'>
  122. <model name='pcie-root-port'/>
  123. <target chassis='10' port='0x19'/>
  124. <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x1'/>
  125. </controller>
  126. <controller type='pci' index='11' model='pcie-root-port'>
  127. <model name='pcie-root-port'/>
  128. <target chassis='11' port='0x1a'/>
  129. <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x2'/>
  130. </controller>
  131. <controller type='pci' index='12' model='pcie-to-pci-bridge'>
  132. <model name='pcie-pci-bridge'/>
  133. <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
  134. </controller>
  135. <controller type='pci' index='13' model='pcie-root-port'>
  136. <model name='pcie-root-port'/>
  137. <target chassis='13' port='0x1b'/>
  138. <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x3'/>
  139. </controller>
  140. <controller type='pci' index='14' model='pcie-root-port'>
  141. <model name='pcie-root-port'/>
  142. <target chassis='14' port='0x1c'/>
  143. <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x4'/>
  144. </controller>
  145. <controller type='virtio-serial' index='0'>
  146. <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
  147. </controller>
  148. <controller type='sata' index='0'>
  149. <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
  150. </controller>
  151. <controller type='scsi' index='0' model='virtio-scsi'>
  152. <address type='pci' domain='0x0000' bus='0x0e' slot='0x00' function='0x0'/>
  153. </controller>
  154. <interface type='bridge'>
  155. <mac address='52:54:00:96:94:99'/>
  156. <source bridge='lan'/>
  157. <model type='virtio'/>
  158. <boot order='3'/>
  159. <address type='pci' domain='0x0000' bus='0x06' slot='0x00' function='0x0'/>
  160. </interface>
  161. <serial type='pty'>
  162. <target type='isa-serial' port='0'>
  163. <model name='isa-serial'/>
  164. </target>
  165. </serial>
  166. <console type='pty'>
  167. <target type='serial' port='0'/>
  168. </console>
  169. <channel type='spicevmc'>
  170. <target type='virtio' name='com.redhat.spice.0'/>
  171. <address type='virtio-serial' controller='0' bus='0' port='1'/>
  172. </channel>
  173. <input type='tablet' bus='usb'>
  174. <address type='usb' bus='0' port='1'/>
  175. </input>
  176. <input type='mouse' bus='ps2'/>
  177. <input type='keyboard' bus='ps2'/>
  178. <hostdev mode='subsystem' type='pci' managed='yes'>
  179. <source>
  180. <address domain='0x0000' bus='0x0a' slot='0x00' function='0x3'/>
  181. </source>
  182. <address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0'/>
  183. </hostdev>
  184. <hostdev mode='subsystem' type='pci' managed='yes'>
  185. <source>
  186. <address domain='0x0000' bus='0x08' slot='0x00' function='0x0'/>
  187. </source>
  188. <address type='pci' domain='0x0000' bus='0x0c' slot='0x01' function='0x0'/>
  189. </hostdev>
  190. <hostdev mode='subsystem' type='pci' managed='yes'>
  191. <source>
  192. <address domain='0x0000' bus='0x08' slot='0x00' function='0x1'/>
  193. </source>
  194. <address type='pci' domain='0x0000' bus='0x0c' slot='0x02' function='0x0'/>
  195. </hostdev>
  196. <hostdev mode='subsystem' type='pci' managed='yes'>
  197. <source>
  198. <address domain='0x0000' bus='0x09' slot='0x00' function='0x0'/>
  199. </source>
  200. <address type='pci' domain='0x0000' bus='0x0c' slot='0x03' function='0x0'/>
  201. </hostdev>
  202. <hostdev mode='subsystem' type='pci' managed='yes'>
  203. <source>
  204. <address domain='0x0000' bus='0x09' slot='0x00' function='0x1'/>
  205. </source>
  206. <address type='pci' domain='0x0000' bus='0x0c' slot='0x04' function='0x0'/>
  207. </hostdev>
  208. <redirdev bus='usb' type='spicevmc'>
  209. <address type='usb' bus='0' port='2'/>
  210. </redirdev>
  211. <redirdev bus='usb' type='spicevmc'>
  212. <address type='usb' bus='0' port='3'/>
  213. </redirdev>
  214. <hub type='usb'>
  215. <address type='usb' bus='0' port='4'/>
  216. </hub>
  217. <memballoon model='virtio'>
  218. <address type='pci' domain='0x0000' bus='0x07' slot='0x00' function='0x0'/>
  219. </memballoon>
  220. </devices>
  221. </domain>
Advertisement
Add Comment
Please, Sign In to add comment