firepol

My gamingvm definition

Sep 3rd, 2016
379
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.74 KB | None | 0 0
  1. <domain type='kvm'>
  2.   <name>gamingvm</name>
  3.   <uuid>3806c04e-63da-11e6-9065-2b1223fbaddf</uuid>
  4.   <memory>16777216</memory>
  5.   <currentMemory>16777216</currentMemory>
  6.   <memoryBacking>
  7.     <hugepages/>
  8.     <nosharepages/>
  9.   </memoryBacking>
  10.   <vcpu placement="static">6</vcpu>
  11.   <cpu mode="host-passthrough">
  12.     <topology sockets="1" cores="3" threads="2" />
  13.   </cpu>
  14.   <os>
  15.     <type arch="x86_64" machine="q35">hvm</type>
  16.     <loader>/usr/share/qemu/OVMF.fd</loader>
  17.   </os>
  18.   <features>
  19.     <hyperv>
  20.       <relaxed state="off" />
  21.       <vapic state="off" />
  22.       <spinlocks state="off" retries="8191" />
  23.     </hyperv>
  24.     <kvm>
  25.       <hidden state='on'/>
  26.     </kvm>
  27.     <acpi/>
  28.   </features>
  29.   <clock offset="localtime">
  30.     <timer name="hypervclock" present="no" />
  31.   </clock>
  32.   <on_poweroff>destroy</on_poweroff>
  33.   <on_reboot>restart</on_reboot>
  34.   <on_crash>destroy</on_crash>
  35.   <devices>
  36.     <emulator>/usr/bin/kvm</emulator>
  37.     <controller type="usb" index="0" model='nec-xhci' /><!-- Specify model='nec-xhci' to speedup usb3? Sound is choppy anyway -->
  38.     <controller type="usb" index="1" />
  39.     <controller type="usb" index="2" />
  40.     <controller type="usb" index="3" />
  41.     <controller type="sata" index="0" />
  42.     <controller type="pci" index="0" model="pcie-root" />
  43.     <controller type="pci" index="1" model="dmi-to-pci-bridge" />
  44.     <controller type="pci" index="2" model="pci-bridge" />
  45.     <memballoon model="none" />
  46.     <playback compression='off'/>
  47.     <disk type="file" device="disk">
  48.       <driver name="qemu" type="qcow2"/>
  49.       <source file="/home/paul/vm/images/gamingvm.qcow2"/>
  50.       <target dev="vda" bus="virtio"/>
  51.       <address type="pci" domain="0x0000" bus="0x00" slot="0x04" function="0x0"/>
  52.     </disk>
  53.     <disk type="file" device="cdrom">
  54.       <driver name="qemu" type="raw"/>
  55.       <!--<source file="/home/paul/vm/iso/windows10-x64/Windows10.iso"/>-->
  56.       <target dev="hdc" bus="sata"/>
  57.       <readonly/>
  58.       <address type="drive" controller="0" bus="0" target="0" unit="0"/>
  59.     </disk>
  60.     <disk type="file" device="cdrom">
  61.       <driver name="qemu" type="raw"/>
  62.       <!--<source file="/home/paul/vm/iso/virtio/virtio-win-0.1.118.iso"/>-->
  63.       <target dev="hdd" bus="sata"/>
  64.       <readonly/>
  65.       <address type="drive" controller="0" bus="0" target="0" unit="1"/>
  66.     </disk>
  67.     <interface type='bridge'>
  68.       <source bridge='virbr0' mode='virtio'/>
  69.       <mac address="00:11:22:33:44:55"/>
  70.     </interface>
  71.     <hostdev mode='subsystem' type='pci' managed='yes'>
  72.       <source>
  73.         <address domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
  74.       </source>
  75.       <address type='pci' domain='0x0000' bus='0x00' slot='0x0a' function='0x0'/>
  76.     </hostdev>
  77.     <hostdev mode='subsystem' type='usb'><!-- Headset Plantronics Rig 500 HD -->
  78.       <source>
  79.         <vendor id='0x047f'/>
  80.         <product id='0xc03b'/>
  81.       </source>
  82.     </hostdev>
  83.     <hostdev mode='subsystem' type='usb'><!-- Logitech Gaming Mouse-->
  84.       <source>
  85.         <vendor id='0x046d'/>
  86.         <product id='0xc041'/>
  87.       </source>
  88.     </hostdev>
  89.   </devices>
  90.   <qemu:commandline>
  91.   <qemu:arg value="-device" />
  92.   <qemu:arg value="ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1" />
  93.   <qemu:arg value="-device" />
  94.   <qemu:arg value="vfio-pci,host=01:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on" />
  95.   <qemu:arg value="-device" />
  96.   <qemu:arg value="vfio-pci,host=01:00.1,bus=root.1,addr=00.1" />
  97.   <qemu:arg value="-cpu" />
  98.   <qemu:arg value="host" />
  99.   <!--<qemu:env name='QEMU_PA_SAMPLES' value='1024'/>
  100.  <qemu:env name='QEMU_AUDIO_DRV' value='pa'/>
  101.  <qemu:env name='QEMU_PA_SERVER' value='/run/user/1000/pulse/native'/>-->
  102.   </qemu:commandline>
  103. </domain>
Advertisement
Add Comment
Please, Sign In to add comment