Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <domain type='kvm'>
- <name>gamingvm</name>
- <uuid>3806c04e-63da-11e6-9065-2b1223fbaddf</uuid>
- <memory>16777216</memory>
- <currentMemory>16777216</currentMemory>
- <memoryBacking>
- <hugepages/>
- <nosharepages/>
- </memoryBacking>
- <vcpu placement="static">6</vcpu>
- <cpu mode="host-passthrough">
- <topology sockets="1" cores="3" threads="2" />
- </cpu>
- <os>
- <type arch="x86_64" machine="q35">hvm</type>
- <loader>/usr/share/qemu/OVMF.fd</loader>
- </os>
- <features>
- <hyperv>
- <relaxed state="off" />
- <vapic state="off" />
- <spinlocks state="off" retries="8191" />
- </hyperv>
- <kvm>
- <hidden state='on'/>
- </kvm>
- <acpi/>
- </features>
- <clock offset="localtime">
- <timer name="hypervclock" present="no" />
- </clock>
- <on_poweroff>destroy</on_poweroff>
- <on_reboot>restart</on_reboot>
- <on_crash>destroy</on_crash>
- <devices>
- <emulator>/usr/bin/kvm</emulator>
- <controller type="usb" index="0" model='nec-xhci' /><!-- Specify model='nec-xhci' to speedup usb3? Sound is choppy anyway -->
- <controller type="usb" index="1" />
- <controller type="usb" index="2" />
- <controller type="usb" index="3" />
- <controller type="sata" index="0" />
- <controller type="pci" index="0" model="pcie-root" />
- <controller type="pci" index="1" model="dmi-to-pci-bridge" />
- <controller type="pci" index="2" model="pci-bridge" />
- <memballoon model="none" />
- <playback compression='off'/>
- <disk type="file" device="disk">
- <driver name="qemu" type="qcow2"/>
- <source file="/home/paul/vm/images/gamingvm.qcow2"/>
- <target dev="vda" bus="virtio"/>
- <address type="pci" domain="0x0000" bus="0x00" slot="0x04" function="0x0"/>
- </disk>
- <disk type="file" device="cdrom">
- <driver name="qemu" type="raw"/>
- <!--<source file="/home/paul/vm/iso/windows10-x64/Windows10.iso"/>-->
- <target dev="hdc" bus="sata"/>
- <readonly/>
- <address type="drive" controller="0" bus="0" target="0" unit="0"/>
- </disk>
- <disk type="file" device="cdrom">
- <driver name="qemu" type="raw"/>
- <!--<source file="/home/paul/vm/iso/virtio/virtio-win-0.1.118.iso"/>-->
- <target dev="hdd" bus="sata"/>
- <readonly/>
- <address type="drive" controller="0" bus="0" target="0" unit="1"/>
- </disk>
- <interface type='bridge'>
- <source bridge='virbr0' mode='virtio'/>
- <mac address="00:11:22:33:44:55"/>
- </interface>
- <hostdev mode='subsystem' type='pci' managed='yes'>
- <source>
- <address domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
- </source>
- <address type='pci' domain='0x0000' bus='0x00' slot='0x0a' function='0x0'/>
- </hostdev>
- <hostdev mode='subsystem' type='usb'><!-- Headset Plantronics Rig 500 HD -->
- <source>
- <vendor id='0x047f'/>
- <product id='0xc03b'/>
- </source>
- </hostdev>
- <hostdev mode='subsystem' type='usb'><!-- Logitech Gaming Mouse-->
- <source>
- <vendor id='0x046d'/>
- <product id='0xc041'/>
- </source>
- </hostdev>
- </devices>
- <qemu:commandline>
- <qemu:arg value="-device" />
- <qemu:arg value="ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1" />
- <qemu:arg value="-device" />
- <qemu:arg value="vfio-pci,host=01:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on" />
- <qemu:arg value="-device" />
- <qemu:arg value="vfio-pci,host=01:00.1,bus=root.1,addr=00.1" />
- <qemu:arg value="-cpu" />
- <qemu:arg value="host" />
- <!--<qemu:env name='QEMU_PA_SAMPLES' value='1024'/>
- <qemu:env name='QEMU_AUDIO_DRV' value='pa'/>
- <qemu:env name='QEMU_PA_SERVER' value='/run/user/1000/pulse/native'/>-->
- </qemu:commandline>
- </domain>
Advertisement
Add Comment
Please, Sign In to add comment