Created
July 14, 2018 17:05
-
-
Save spacepluk/8d747268821afcb46b697b94ff017264 to your computer and use it in GitHub Desktop.
This file contains hidden or 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>win10</name> | |
<uuid>574f4f21-e78c-412c-b303-b187760be3f1</uuid> | |
<memory unit='KiB'>4194304</memory> | |
<currentMemory unit='KiB'>4194304</currentMemory> | |
<vcpu placement='static'>8</vcpu> | |
<os> | |
<type arch='x86_64' machine='pc-q35-2.12'>hvm</type> | |
<loader readonly='yes' type='pflash'>/usr/share/ovmf/x64/OVMF_CODE.fd</loader> | |
<nvram>/var/lib/libvirt/qemu/nvram/win10_VARS.fd</nvram> | |
</os> | |
<features> | |
<acpi/> | |
<apic/> | |
<kvm> | |
<hidden state='on'/> | |
</kvm> | |
<vmport state='on'/> | |
</features> | |
<cpu mode='host-passthrough' check='none'> | |
<topology sockets='1' cores='4' threads='2'/> | |
<cache mode='passthrough'/> | |
<feature policy='require' name='vme'/> | |
<feature policy='require' name='arat'/> | |
<feature policy='require' name='xsaveopt'/> | |
<feature policy='disable' name='hypervisor'/> | |
</cpu> | |
<clock offset='localtime'> | |
<timer name='rtc' tickpolicy='catchup'/> | |
<timer name='pit' tickpolicy='delay'/> | |
<timer name='hpet' present='no'/> | |
<timer name='hypervclock' present='no'/> | |
</clock> | |
<on_poweroff>destroy</on_poweroff> | |
<on_reboot>restart</on_reboot> | |
<on_crash>destroy</on_crash> | |
<pm> | |
<suspend-to-mem enabled='no'/> | |
<suspend-to-disk enabled='no'/> | |
</pm> | |
<devices> | |
<emulator>/usr/bin/qemu-system-x86_64</emulator> | |
<disk type='file' device='disk'> | |
<driver name='qemu' type='qcow2' discard='unmap'/> | |
<source file='/mnt/qemu-kvm/windows.qcow2'/> | |
<target dev='sda' bus='sata'/> | |
<boot order='2'/> | |
<address type='drive' controller='0' bus='0' target='0' unit='0'/> | |
</disk> | |
<controller type='usb' index='0' model='ich9-ehci1'> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x7'/> | |
</controller> | |
<controller type='usb' index='0' model='ich9-uhci1'> | |
<master startport='0'/> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0' multifunction='on'/> | |
</controller> | |
<controller type='usb' index='0' model='ich9-uhci2'> | |
<master startport='2'/> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x1'/> | |
</controller> | |
<controller type='usb' index='0' model='ich9-uhci3'> | |
<master startport='4'/> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x2'/> | |
</controller> | |
<controller type='sata' index='0'> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/> | |
</controller> | |
<controller type='pci' index='0' model='pcie-root'/> | |
<controller type='pci' index='1' model='pcie-root-port'> | |
<model name='pcie-root-port'/> | |
<target chassis='1' port='0x10'/> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0' multifunction='on'/> | |
</controller> | |
<controller type='pci' index='2' model='pcie-to-pci-bridge'> | |
<model name='pcie-pci-bridge'/> | |
<address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/> | |
</controller> | |
<controller type='pci' index='3' model='pcie-root-port'> | |
<model name='pcie-root-port'/> | |
<target chassis='3' port='0x11'/> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x1'/> | |
</controller> | |
<interface type='network'> | |
<mac address='52:54:00:3d:23:3d'/> | |
<source network='default'/> | |
<model type='rtl8139'/> | |
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> | |
</interface> | |
<input type='mouse' bus='ps2'/> | |
<input type='keyboard' bus='ps2'/> | |
<sound model='ich6'> | |
<address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x0'/> | |
</sound> | |
<hostdev mode='subsystem' type='pci' managed='yes'> | |
<source> | |
<address domain='0x0000' bus='0x01' slot='0x00' function='0x0'/> | |
</source> | |
<rom file='/var/lib/libvirt/qemu/dump/nvidia-gtx1060.dump'/> | |
<address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/> | |
</hostdev> | |
<hostdev mode='subsystem' type='usb' managed='yes'> | |
<source> | |
<vendor id='0x1532'/> | |
<product id='0x0043'/> | |
</source> | |
<address type='usb' bus='0' port='5'/> | |
</hostdev> | |
<hostdev mode='subsystem' type='usb' managed='yes'> | |
<source> | |
<vendor id='0x1532'/> | |
<product id='0x011c'/> | |
</source> | |
<address type='usb' bus='0' port='2'/> | |
</hostdev> | |
<memballoon model='none'/> | |
</devices> | |
<qemu:commandline> | |
<qemu:arg value='-set'/> | |
<qemu:arg value='device.hostdev0.x-pci-sub-vendor-id=6744'/> | |
<qemu:arg value='-set'/> | |
<qemu:arg value='device.hostdev0.x-pci-sub-device-id=26447'/> | |
</qemu:commandline> | |
</domain> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment