Guest User

My VM XML

a guest
May 25th, 2020
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.78 KB | None | 0 0
  1. <?xml version='1.0' encoding='UTF-8'?>
  2. <domain type='kvm' id='6'>
  3. <name>Windows 10 VM</name>
  4. <uuid>0c181077-732b-0aa2-eacd-ff8b0f8daad3</uuid>
  5. <description>My Windows 10 VM</description>
  6. <metadata>
  7. <vmtemplate xmlns="unraid" name="Windows 10" icon="windows.png" os="windows10"/>
  8. </metadata>
  9. <memory unit='KiB'>8388608</memory>
  10. <currentMemory unit='KiB'>8388608</currentMemory>
  11. <memoryBacking>
  12. <nosharepages/>
  13. </memoryBacking>
  14. <vcpu placement='static'>8</vcpu>
  15. <cputune>
  16. <vcpupin vcpu='0' cpuset='4'/>
  17. <vcpupin vcpu='1' cpuset='12'/>
  18. <vcpupin vcpu='2' cpuset='5'/>
  19. <vcpupin vcpu='3' cpuset='13'/>
  20. <vcpupin vcpu='4' cpuset='6'/>
  21. <vcpupin vcpu='5' cpuset='14'/>
  22. <vcpupin vcpu='6' cpuset='7'/>
  23. <vcpupin vcpu='7' cpuset='15'/>
  24. <emulatorpin cpuset='3'/>
  25. </cputune>
  26. <resource>
  27. <partition>/machine</partition>
  28. </resource>
  29. <os>
  30. <type arch='x86_64' machine='pc-i440fx-4.2'>hvm</type>
  31. <loader readonly='yes' type='pflash'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd</loader>
  32. <nvram>/etc/libvirt/qemu/nvram/0c181077-732b-0aa2-eacd-ff8b0f8daad3_VARS-pure-efi.fd</nvram>
  33. </os>
  34. <features>
  35. <acpi/>
  36. <apic/>
  37. <hyperv>
  38. <relaxed state='on'/>
  39. <vapic state='on'/>
  40. <spinlocks state='on' retries='8191'/>
  41. <vpindex state='on'/>
  42. <synic state='on'/>
  43. <stimer state='on'/>
  44. <reset state='on'/>
  45. <vendor_id state='on' value='1234567890ab'/>
  46. <frequencies state='on'/>
  47. </hyperv>
  48. <kvm>
  49. <hidden state='on'/>
  50. </kvm>
  51. <vmport state='off'/>
  52. <ioapic driver='kvm'/>
  53. </features>
  54. <cpu mode='host-passthrough' check='none'>
  55. <topology sockets='1' cores='4' threads='2'/>
  56. <cache mode='passthrough'/>
  57. <feature policy='require' name='topoext'/>
  58. </cpu>
  59. <clock offset='localtime'>
  60. <timer name='rtc' present='no' tickpolicy='catchup'/>
  61. <timer name='pit' present='no' tickpolicy='delay'/>
  62. <timer name='hpet' present='no'/>
  63. <timer name='hypervclock' present='yes'/>
  64. <timer name='tsc' present='yes' mode='native'/>
  65. </clock>
  66. <on_poweroff>destroy</on_poweroff>
  67. <on_reboot>restart</on_reboot>
  68. <on_crash>restart</on_crash>
  69. <devices>
  70. <emulator>/usr/local/sbin/qemu</emulator>
  71. <disk type='file' device='cdrom'>
  72. <driver name='qemu' type='raw'/>
  73. <source file='/mnt/user/isos/virtio-win-0.1.173-2.iso' index='2'/>
  74. <backingStore/>
  75. <target dev='hdb' bus='sata'/>
  76. <readonly/>
  77. <alias name='sata0-0-1'/>
  78. <address type='drive' controller='0' bus='0' target='0' unit='1'/>
  79. </disk>
  80. <disk type='block' device='disk'>
  81. <driver name='qemu' type='raw' cache='writeback'/>
  82. <source dev='/dev/disk/by-id/ata-Samsung_SSD_850_EVO_250GB_S3R0NF1J818242B' index='1'/>
  83. <backingStore/>
  84. <target dev='hdc' bus='sata'/>
  85. <boot order='1'/>
  86. <alias name='sata0-0-2'/>
  87. <address type='drive' controller='0' bus='0' target='0' unit='2'/>
  88. </disk>
  89. <controller type='usb' index='0' model='qemu-xhci' ports='15'>
  90. <alias name='usb'/>
  91. <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
  92. </controller>
  93. <controller type='virtio-serial' index='0'>
  94. <alias name='virtio-serial0'/>
  95. <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
  96. </controller>
  97. <controller type='pci' index='0' model='pci-root'>
  98. <alias name='pci.0'/>
  99. </controller>
  100. <controller type='sata' index='0'>
  101. <alias name='sata0'/>
  102. <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
  103. </controller>
  104. <interface type='bridge'>
  105. <mac address='52:54:00:5f:72:c7'/>
  106. <source bridge='br0'/>
  107. <target dev='vnet0'/>
  108. <model type='virtio'/>
  109. <alias name='net0'/>
  110. <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
  111. </interface>
  112. <serial type='pty'>
  113. <source path='/dev/pts/0'/>
  114. <target type='isa-serial' port='0'>
  115. <model name='isa-serial'/>
  116. </target>
  117. <alias name='serial0'/>
  118. </serial>
  119. <console type='pty' tty='/dev/pts/0'>
  120. <source path='/dev/pts/0'/>
  121. <target type='serial' port='0'/>
  122. <alias name='serial0'/>
  123. </console>
  124. <channel type='unix'>
  125. <source mode='bind' path='/var/lib/libvirt/qemu/channel/target/domain-6-Windows 10 VM/org.qemu.guest_agent.0'/>
  126. <target type='virtio' name='org.qemu.guest_agent.0' state='disconnected'/>
  127. <alias name='channel0'/>
  128. <address type='virtio-serial' controller='0' bus='0' port='1'/>
  129. </channel>
  130. <input type='tablet' bus='usb'>
  131. <alias name='input0'/>
  132. <address type='usb' bus='0' port='1'/>
  133. </input>
  134. <input type='mouse' bus='ps2'>
  135. <alias name='input1'/>
  136. </input>
  137. <input type='keyboard' bus='ps2'>
  138. <alias name='input2'/>
  139. </input>
  140. <hostdev mode='subsystem' type='pci' managed='yes'>
  141. <driver name='vfio'/>
  142. <source>
  143. <address domain='0x0000' bus='0x0a' slot='0x00' function='0x0'/>
  144. </source>
  145. <alias name='hostdev0'/>
  146. <rom file='/mnt/user/isos/GP107.rom'/>
  147. <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
  148. </hostdev>
  149. <hostdev mode='subsystem' type='pci' managed='yes'>
  150. <driver name='vfio'/>
  151. <source>
  152. <address domain='0x0000' bus='0x0a' slot='0x00' function='0x1'/>
  153. </source>
  154. <alias name='hostdev1'/>
  155. <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
  156. </hostdev>
  157. <memballoon model='none'/>
  158. </devices>
  159. <seclabel type='dynamic' model='dac' relabel='yes'>
  160. <label>+0:+100</label>
  161. <imagelabel>+0:+100</imagelabel>
  162. </seclabel>
  163. </domain>
Add Comment
Please, Sign In to add comment