starlightknight

Threadripper VM Config

Aug 27th, 2017
175
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <domain xmlns:qemu="http://libvirt.org/schemas/domain/qemu/1.0" type="kvm">
  3. <name>Windows</name>
  4. <uuid>2d38b43b-681c-4082-ad7a-e10bf0e4df72</uuid>
  5. <memory unit="GB">32</memory>
  6. <currentMemory unit="GB">32</currentMemory>
  7. <vcpu placement="static">8</vcpu>
  8.  
  9. <cpu mode="host-passthrough">
  10. <topology sockets="1" cores="8" threads="1" />
  11. </cpu>
  12. <cputune>
  13. <vcpupin vcpu="0" cpuset="8"/>
  14. <vcpupin vcpu="1" cpuset="9"/>
  15. <vcpupin vcpu="2" cpuset="10"/>
  16. <vcpupin vcpu="3" cpuset="11"/>
  17. <vcpupin vcpu="4" cpuset="12"/>
  18. <vcpupin vcpu="5" cpuset="13"/>
  19. <vcpupin vcpu="6" cpuset="14"/>
  20. <vcpupin vcpu="7" cpuset="15"/>
  21. </cputune>
  22. <os>
  23. <type arch="x86_64" machine="q35">hvm</type>
  24. <loader readyonly='yes' type="pflash">/home/xxxxxxx/kvm/Windows_OVMF_CODE-pure-efi.fd</loader>
  25. <nvram template="/home/xxxxxxxx/kvm/Windows_OVMF_VARS-pure-efi.fd"/>
  26. <bootmenu enable="yes" />
  27. </os>
  28. <features>
  29. <kvm>
  30. <hidden state='on'/>
  31. </kvm>
  32. <hyperv>
  33. <vendor_id state='on' value='SLKDev'/>
  34. <relaxed state="on" />
  35. <vapic state="on" />
  36. <spinlocks state="on" retries="8191" />
  37. </hyperv>
  38. <acpi />
  39. </features>
  40. <clock offset="localtime">
  41. <timer name="hypervclock" present="yes" />
  42. </clock>
  43. <on_poweroff>destroy</on_poweroff>
  44. <on_reboot>restart</on_reboot>
  45. <on_crash>destroy</on_crash>
  46. <devices>
  47. <emulator>/usr/local/bin/qemu-system-x86_64</emulator>
  48. <!--<interface type='bridge'>
  49. <mac address='08:00:27:0B:B9:3B'/>
  50. <source bridge='br0'/>
  51. <model type='rtl8139'/>
  52. <rom bar='off'/>
  53. </interface>-->
  54. <!--<sound model='ich6'/>-->
  55. <controller type="usb" index="0" />
  56. <controller type="usb" index="1" />
  57. <controller type="usb" index="2" />
  58. <controller type="usb" index="3" />
  59. <controller type="sata" index="0" />
  60. <controller type="pci" index="0" model="pcie-root" />
  61. <controller type="pci" index="1" model="dmi-to-pci-bridge" />
  62. <controller type="pci" index="2" model="pci-bridge" />
  63. <memballoon model="none" />
  64. <input type="keyboard" bus="ps2"/>
  65. <input type="mouse" bus="ps2"/>
  66. <input type="tablet" bus="usb"/>
  67. <graphics type='vnc' port='6901' autoport='no' keymap='en-us' listen='0.0.0.0'/>
  68. <!--<video>
  69. <model type='cirrus' vram='16384' heads='1'/>
  70. <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
  71. </video>-->
  72. <sound model="ich6" />
  73. <disk type="file" device="cdrom">
  74. <driver name="qemu" type="raw" />
  75. <source file="/home/xxxxxxx/kvm/Win10_1703_English_x64.iso" />
  76. <target dev="hdc" bus="sata" />
  77. <readonly />
  78. <address type="drive" controller="0" bus="0" unit="0" />
  79. </disk>
  80. <disk type="file" device="cdrom">
  81. <driver name="qemu" type="raw" />
  82. <source file="/home/xxxxxxx/kvm/virtio-win.iso" />
  83. <target dev="hdd" bus="sata" />
  84. <readonly />
  85. <address type="drive" controller="0" bus="0" unit="1" />
  86. </disk>
  87. <disk type='block' device='disk'>
  88. <driver name='qemu' type='raw'/>
  89. <source dev='/dev/nvme0n1'/>
  90. <target dev='vda' bus='virtio'/>
  91. </disk>
  92. </devices>
  93. <qemu:commandline>
  94. <qemu:arg value="-device" />
  95. <qemu:arg value="ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1" />
  96. <qemu:arg value="-device" />
  97. <qemu:arg value="vfio-pci,host=07:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on,romfile=/home/xxxxx/kvm/EVGA.GTX1080Ti.11264.170418.rom" />
  98. <qemu:arg value="-device" />
  99. <qemu:arg value="vfio-pci,host=07:00.1,bus=root.1,addr=00.1" />
  100. <qemu:arg value="-cpu" />
  101. <qemu:arg value="host" />
  102. </qemu:commandline>
  103. </domain>
RAW Paste Data