Guest User

kvm conf

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