Advertisement
eadword

working virtio-fs libvirt domain for linux guest

Jul 31st, 2020
3,908
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.11 KB | None | 0 0
  1. <domain type='kvm'>
  2. <name>manjaro</name>
  3. <uuid>0ade8e36-e449-4f37-9f6f-d210c17d8bc6</uuid>
  4. <metadata>
  5. <libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
  6. <libosinfo:os id="http://manjaro.org/manjaro/rolling"/>
  7. </libosinfo:libosinfo>
  8. </metadata>
  9. <memory unit='KiB'>18874368</memory>
  10. <currentMemory unit='KiB'>18874368</currentMemory>
  11. <memoryBacking>
  12. <hugepages>
  13. <page size='2048' unit='KiB'/>
  14. </hugepages>
  15. <access mode='shared'/>
  16. </memoryBacking>
  17. <vcpu placement='static'>6</vcpu>
  18. <cputune>
  19. <vcpupin vcpu='0' cpuset='1'/>
  20. <vcpupin vcpu='1' cpuset='5'/>
  21. <vcpupin vcpu='2' cpuset='2'/>
  22. <vcpupin vcpu='3' cpuset='6'/>
  23. <vcpupin vcpu='4' cpuset='3'/>
  24. <vcpupin vcpu='5' cpuset='7'/>
  25. </cputune>
  26. <os>
  27. <type arch='x86_64' machine='pc-q35-5.0'>hvm</type>
  28. <loader readonly='yes' type='pflash'>/usr/share/edk2-ovmf/x64/OVMF_CODE.fd</loader>
  29. <nvram>/var/lib/libvirt/qemu/nvram/manjaro_VARS.fd</nvram>
  30. </os>
  31. <features>
  32. <acpi/>
  33. <apic/>
  34. <hyperv>
  35. <relaxed state='on'/>
  36. <vapic state='on'/>
  37. <spinlocks state='on' retries='8191'/>
  38. <vendor_id state='on' value='1234567890ab'/>
  39. </hyperv>
  40. <kvm>
  41. <hidden state='on'/>
  42. </kvm>
  43. <ioapic driver='kvm'/>
  44. </features>
  45. <cpu mode='host-passthrough' check='none'>
  46. <topology sockets='1' dies='1' cores='3' threads='2'/>
  47. <numa>
  48. <cell id='0' cpus='0-5' memory='18874368' unit='KiB' memAccess='shared'/>
  49. </numa>
  50. </cpu>
  51. <clock offset='utc'>
  52. <timer name='rtc' tickpolicy='catchup'/>
  53. <timer name='pit' tickpolicy='delay'/>
  54. <timer name='hpet' present='no'/>
  55. </clock>
  56. <on_poweroff>destroy</on_poweroff>
  57. <on_reboot>restart</on_reboot>
  58. <on_crash>destroy</on_crash>
  59. <devices>
  60. <emulator>/usr/bin/qemu-system-x86_64</emulator>
  61. <disk type='file' device='disk'>
  62. <driver name='qemu' type='raw' cache='none'/>
  63. <source file='/neo/domains/manjaro-desktop.img'/>
  64. <target dev='hdc' bus='virtio'/>
  65. <boot order='1'/>
  66. <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
  67. </disk>
  68. <disk type='file' device='disk'>
  69. <driver name='qemu' type='raw' cache='none'/>
  70. <source file='/neo/domains/manjaro-desktop-8gb.swap'/>
  71. <target dev='hdd' bus='virtio'/>
  72. <address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0'/>
  73. </disk>
  74. <controller type='pci' index='0' model='pcie-root'/>
  75. <controller type='pci' index='1' model='pcie-root-port'>
  76. <model name='pcie-root-port'/>
  77. <target chassis='1' port='0x10'/>
  78. <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0' multifunction='on'/>
  79. </controller>
  80. <controller type='pci' index='2' model='pcie-root-port'>
  81. <model name='pcie-root-port'/>
  82. <target chassis='2' port='0x11'/>
  83. <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x1'/>
  84. </controller>
  85. <controller type='pci' index='3' model='pcie-root-port'>
  86. <model name='pcie-root-port'/>
  87. <target chassis='3' port='0x12'/>
  88. <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x2'/>
  89. </controller>
  90. <controller type='pci' index='4' model='pcie-root-port'>
  91. <model name='pcie-root-port'/>
  92. <target chassis='4' port='0x13'/>
  93. <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x3'/>
  94. </controller>
  95. <controller type='pci' index='5' model='pcie-root-port'>
  96. <model name='pcie-root-port'/>
  97. <target chassis='5' port='0x14'/>
  98. <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x4'/>
  99. </controller>
  100. <controller type='pci' index='6' model='pcie-root-port'>
  101. <model name='pcie-root-port'/>
  102. <target chassis='6' port='0x15'/>
  103. <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x5'/>
  104. </controller>
  105. <controller type='pci' index='7' model='pcie-root-port'>
  106. <model name='pcie-root-port'/>
  107. <target chassis='7' port='0x8'/>
  108. <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0' multifunction='on'/>
  109. </controller>
  110. <controller type='pci' index='8' model='pcie-root-port'>
  111. <model name='pcie-root-port'/>
  112. <target chassis='8' port='0x9'/>
  113. <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
  114. </controller>
  115. <controller type='pci' index='9' model='pcie-root-port'>
  116. <model name='pcie-root-port'/>
  117. <target chassis='9' port='0xa'/>
  118. <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
  119. </controller>
  120. <controller type='pci' index='10' model='pcie-root-port'>
  121. <model name='pcie-root-port'/>
  122. <target chassis='10' port='0xb'/>
  123. <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x3'/>
  124. </controller>
  125. <controller type='pci' index='11' model='pcie-root-port'>
  126. <model name='pcie-root-port'/>
  127. <target chassis='11' port='0xc'/>
  128. <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x4'/>
  129. </controller>
  130. <controller type='pci' index='12' model='pcie-root-port'>
  131. <model name='pcie-root-port'/>
  132. <target chassis='12' port='0xd'/>
  133. <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x5'/>
  134. </controller>
  135. <controller type='pci' index='13' model='pcie-root-port'>
  136. <model name='pcie-root-port'/>
  137. <target chassis='13' port='0xe'/>
  138. <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x6'/>
  139. </controller>
  140. <controller type='pci' index='14' model='pcie-root-port'>
  141. <model name='pcie-root-port'/>
  142. <target chassis='14' port='0xf'/>
  143. <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x7'/>
  144. </controller>
  145. <controller type='pci' index='15' model='pcie-to-pci-bridge'>
  146. <model name='pcie-pci-bridge'/>
  147. <address type='pci' domain='0x0000' bus='0x0d' slot='0x00' function='0x0'/>
  148. </controller>
  149. <controller type='virtio-serial' index='0'>
  150. <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
  151. </controller>
  152. <controller type='sata' index='0'>
  153. <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
  154. </controller>
  155. <controller type='usb' index='0' model='qemu-xhci' ports='15'>
  156. <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
  157. </controller>
  158. <filesystem type='mount' accessmode='passthrough'>
  159. <driver type='virtiofs' queue='1024'/>
  160. <binary path='/usr/bin/virtiofsd' xattr='on'>
  161. <cache mode='always'/>
  162. <lock posix='on' flock='on'/>
  163. </binary>
  164. <source dir='/neo/user'/>
  165. <target dir='user'/>
  166. <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
  167. </filesystem>
  168. <interface type='bridge'>
  169. <mac address='52:54:00:db:40:9a'/>
  170. <source bridge='br0'/>
  171. <model type='virtio'/>
  172. <driver queues='8'/>
  173. <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
  174. </interface>
  175. <serial type='pty'>
  176. <target type='isa-serial' port='0'>
  177. <model name='isa-serial'/>
  178. </target>
  179. </serial>
  180. <console type='pty'>
  181. <target type='serial' port='0'/>
  182. </console>
  183. <channel type='unix'>
  184. <target type='virtio' name='org.qemu.guest_agent.0'/>
  185. <address type='virtio-serial' controller='0' bus='0' port='1'/>
  186. </channel>
  187. <input type='tablet' bus='usb'>
  188. <address type='usb' bus='0' port='1'/>
  189. </input>
  190. <input type='mouse' bus='ps2'/>
  191. <input type='keyboard' bus='ps2'/>
  192. <hostdev mode='subsystem' type='pci' managed='yes'>
  193. <driver name='vfio'/>
  194. <source>
  195. <address domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
  196. </source>
  197. <address type='pci' domain='0x0000' bus='0x06' slot='0x00' function='0x0'/>
  198. </hostdev>
  199. <hostdev mode='subsystem' type='pci' managed='yes'>
  200. <driver name='vfio'/>
  201. <source>
  202. <address domain='0x0000' bus='0x01' slot='0x00' function='0x1'/>
  203. </source>
  204. <address type='pci' domain='0x0000' bus='0x07' slot='0x00' function='0x0'/>
  205. </hostdev>
  206. <hostdev mode='subsystem' type='pci' managed='yes'>
  207. <driver name='vfio'/>
  208. <source>
  209. <address domain='0x0000' bus='0x00' slot='0x14' function='0x0'/>
  210. </source>
  211. <address type='pci' domain='0x0000' bus='0x0f' slot='0x01' function='0x0'/>
  212. </hostdev>
  213. <hostdev mode='subsystem' type='pci' managed='yes'>
  214. <driver name='vfio'/>
  215. <source>
  216. <address domain='0x0000' bus='0x00' slot='0x14' function='0x2'/>
  217. </source>
  218. <address type='pci' domain='0x0000' bus='0x0f' slot='0x02' function='0x0'/>
  219. </hostdev>
  220. <memballoon model='none'/>
  221. <rng model='virtio'>
  222. <backend model='random'>/dev/urandom</backend>
  223. <address type='pci' domain='0x0000' bus='0x08' slot='0x00' function='0x0'/>
  224. </rng>
  225. </devices>
  226. </domain>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement