Advertisement
demon012

gaming vm libvirt xml

Dec 11th, 2015
384
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.31 KB | None | 0 0
  1. <domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
  2. <name>gaming</name>
  3. <uuid>07478ac0-6a99-11e3-8266-00259086c7e9</uuid>
  4. <memory unit='KiB'>4194304</memory>
  5. <currentMemory unit='KiB'>4194304</currentMemory>
  6. <memoryBacking>
  7. <hugepages/>
  8. <locked/>
  9. </memoryBacking>
  10. <vcpu placement='static'>12</vcpu>
  11. <resource>
  12. <partition>/machine</partition>
  13. </resource>
  14. <os>
  15. <type arch='x86_64' machine='pc-q35-2.4'>hvm</type>
  16. <loader readonly='yes' type='pflash'>/usr/share/edk2.git/ovmf-x64/OVMF_CODE-pure-efi.fd</loader>
  17. <nvram>/var/lib/libvirt/qemu/nvram/gaming_VARS.fd</nvram>
  18. <boot dev='hd'/>
  19. <bootmenu enable='yes'/>
  20. </os>
  21. <features>
  22. <acpi/>
  23. <apic/>
  24. <kvm>
  25. <hidden state='on'/>
  26. </kvm>
  27. </features>
  28. <hyperv>
  29. <relaxed state='off'/>
  30. <vapic state='off'/>
  31. <spinlocks state='off'/>
  32. </hyperv>
  33. <cpu mode='host-passthrough'>
  34. <topology sockets='1' cores='6' threads='2'/>
  35. </cpu>
  36. <clock offset='localtime'>
  37. <timer name='hypervclock' present='no'/>
  38. </clock>
  39. <on_poweroff>destroy</on_poweroff>
  40. <on_reboot>restart</on_reboot>
  41. <on_crash>destroy</on_crash>
  42. <devices>
  43. <emulator>/usr/bin/qemu-system-x86_64</emulator>
  44. <disk type='file' device='cdrom'>
  45. <driver name='qemu' type='raw'/>
  46. <source file='/home/alan/Downloads/Microsoft Windows 10 Home and Pro x64 Clean ISO/en_windows_10_multiple_editions_x64_dvd_6846432.iso'/>
  47. <target dev='sda' bus='sata'/>
  48. <readonly/>
  49. <address type='drive' controller='0' bus='0' target='0' unit='0'/>
  50. </disk>
  51. <disk type='file' device='cdrom'>
  52. <driver name='qemu' type='raw'/>
  53. <source file='/home/alan/Downloads/virtio-win-0.1.110.iso'/>
  54. <target dev='sdb' bus='sata'/>
  55. <readonly/>
  56. <address type='drive' controller='0' bus='0' target='0' unit='1'/>
  57. </disk>
  58. <disk type='block' device='disk'>
  59. <driver name='qemu' type='raw' cache='none' io='native'/>
  60. <source dev='/dev/VolGroup00/test'/>
  61. <target dev='vda' bus='virtio'/>
  62. <address type='pci' domain='0x0000' bus='0x02' slot='0x03' function='0x0'/>
  63. </disk>
  64. <controller type='sata' index='0'>
  65. <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
  66. </controller>
  67. <controller type='pci' index='0' model='pcie-root'/>
  68. <controller type='pci' index='1' model='dmi-to-pci-bridge'>
  69. <model name='i82801b11-bridge'/>
  70. <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
  71. </controller>
  72. <controller type='pci' index='2' model='pci-bridge'>
  73. <model name='pci-bridge'/>
  74. <target chassisNr='2'/>
  75. <address type='pci' domain='0x0000' bus='0x01' slot='0x01' function='0x0'/>
  76. </controller>
  77. <controller type='usb' index='0' model='ich9-ehci1'>
  78. <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x7'/>
  79. </controller>
  80. <controller type='usb' index='0' model='ich9-uhci1'>
  81. <master startport='0'/>
  82. <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x0' multifunction='on'/>
  83. </controller>
  84. <controller type='usb' index='0' model='ich9-uhci2'>
  85. <master startport='2'/>
  86. <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x1'/>
  87. </controller>
  88. <controller type='usb' index='0' model='ich9-uhci3'>
  89. <master startport='4'/>
  90. <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x2'/>
  91. </controller>
  92. <interface type='network'>
  93. <mac address='52:54:00:63:f7:34'/>
  94. <source network='default'/>
  95. <model type='virtio'/>
  96. <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
  97. </interface>
  98. <input type='mouse' bus='ps2'/>
  99. <input type='keyboard' bus='ps2'/>
  100. <graphics type='spice' autoport='yes' listen='127.0.0.1'>
  101. <listen type='address' address='127.0.0.1'/>
  102. </graphics>
  103. <video>
  104. <model type='cirrus' vram='16384' heads='1'/>
  105. <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
  106. </video>
  107. <!-- <hostdev mode='subsystem' type='pci' managed='yes'> -->
  108. <!-- <source> -->
  109. <!-- <address domain='0x0000' bus='0x0c' slot='0x00' function='0x0'/> -->
  110. <!-- </source> -->
  111. <!-- <address type='pci' domain='0x0000' bus='0x02' slot='0x02' function='0x0'/> -->
  112. <!-- </hostdev> -->
  113. <memballoon model='none'/>
  114. </devices>
  115. <seclabel type='none' model='none'/>
  116. <qemu:commandline>
  117. <qemu:arg value='-device'/>
  118. <qemu:arg value='ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1'/>
  119. <qemu:arg value='-device'/>
  120. <qemu:arg value='vfio-pci,host=0000:06:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on'/>
  121. <qemu:arg value='-device'/>
  122. <qemu:arg value='vfio-pci,host=0000:06:00.1,bus=pcie.0'/>
  123. <qemu:arg value='-device'/>
  124. <qemu:arg value='vfio-pci,host=0000:07:00.0,bus=root.1,addr=01.0,multifunction=on'/>
  125. <qemu:arg value='-device'/>
  126. <qemu:arg value='vfio-pci,host=0000:07:00.1,bus=pcie.0'/>
  127. <!-- <qemu:arg value='-device'/> -->
  128. <!-- <qemu:arg value='vfio-pci,host=0000:0c:00.0,bus=pcie.0'/> -->
  129. <!-- <qemu:arg value='-bios'/> -->
  130. <!-- <qemu:arg value='/usr/share/qemu/bios.bin'/> -->
  131. </qemu:commandline>
  132. </domain>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement