-
-
Save JohnPeel/7f2d9e82adf38ad11792fd54f7826e00 to your computer and use it in GitHub Desktop.
The libvirt config of my vga passthrough vm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<domain type='kvm' | |
xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'> | |
<name>Windows10</name> | |
<uuid>d3d9d84e-3ce4-d77e-9bcc-d1fb5ba85813</uuid> | |
<memory unit='GiB'>8</memory> | |
<memtune> | |
<hard_limit unit="G">10</hard_limit> | |
</memtune> | |
<cpu mode='custom' match='exact'> | |
<topology sockets='1' cores='4' threads='2'/> | |
</cpu> | |
<vcpu placement='static'>8</vcpu> | |
<cputune> | |
<vcpupin vcpu='0' cpuset='15'/> | |
<vcpupin vcpu='1' cpuset='14'/> | |
<vcpupin vcpu='2' cpuset='13'/> | |
<vcpupin vcpu='3' cpuset='12'/> | |
<vcpupin vcpu='4' cpuset='11'/> | |
<vcpupin vcpu='5' cpuset='10'/> | |
<vcpupin vcpu='6' cpuset='9'/> | |
<vcpupin vcpu='7' cpuset='8'/> | |
</cputune> | |
<os> | |
<type arch='x86_64' machine='pc'>hvm</type> | |
<loader readonly='yes' type='pflash'>/usr/share/ovmf/x64/OVMF_CODE.fd</loader> | |
<nvram template='/usr/share/ovmf/x64/OVMF_VARS.fd'/> | |
<bootmenu enable='yes' timeout='3000'/> | |
</os> | |
<features> | |
<hyperv> | |
<vendor_id state='on' value='1234567890ab'/> | |
</hyperv> | |
<kvm> | |
<hidden state='on'/> | |
</kvm> | |
</features> | |
<clock offset='localtime'> | |
<timer name='rtc' tickpolicy='catchup'/> | |
<timer name='pit' tickpolicy='delay'/> | |
<timer name='hpet' present='no'/> | |
<timer name='hypervclock' present='yes'/> | |
</clock> | |
<on_poweroff>destroy</on_poweroff> | |
<on_reboot>restart</on_reboot> | |
<on_crash>restart</on_crash> | |
<pm> | |
<suspend-to-mem enabled='no'/> | |
<suspend-to-disk enabled='no'/> | |
</pm> | |
<devices> | |
<emulator>/usr/bin/qemu-system-x86_64</emulator> | |
</devices> | |
</domain> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment