Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <domain type='kvm' id='1' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
- <name>Windows_Gaming</name>
- <uuid>00000000-0000-0000-0000-000000000000</uuid>
- <memory unit='KiB'>12582912</memory>
- <currentMemory unit='KiB'>12582912</currentMemory>
- <memoryBacking>
- <hugepages/>
- </memoryBacking>
- <vcpu placement='static'>2</vcpu>
- <cputune>
- <vcpupin vcpu='0' cpuset='4'/>
- <vcpupin vcpu='1' cpuset='5'/>
- </cputune>
- <resource>
- <partition>/machine</partition>
- </resource>
- <os>
- <type arch='x86_64' machine='pc-i440fx-3.0'>hvm</type>
- <loader readonly='yes' type='pflash'>/usr/share/edk2-ovmf/x64/OVMF_CODE.fd</loader>
- <nvram template='/usr/share/ovmf/x64/OVMF_VARS.fd'>/var/lib/libvirt/qemu/nvram/Windows_Gaming_VARS.fd</nvram>
- </os>
- <features>
- <acpi/>
- <apic/>
- <hyperv>
- <relaxed state='on'/>
- <vapic state='on'/>
- <spinlocks state='on' retries='8191'/>
- <vendor_id state='on' value='GenuineLinux'/>
- </hyperv>
- <kvm>
- <hidden state='on'/>
- </kvm>
- <vmport state='off'/>
- </features>
- <cpu mode='host-passthrough' check='partial' migratable='on'>
- <topology sockets='1' dies='1' cores='2' threads='1'/>
- </cpu>
- <clock offset='localtime'>
- <timer name='rtc' tickpolicy='catchup'/>
- <timer name='pit' tickpolicy='delay'/>
- <timer name='hpet' present='yes'/>
- <timer name='hypervclock' present='yes'/>
- </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='cdrom'>
- <driver name='qemu' type='raw'/>
- <source file='/usr/share/virtio/virtio-win.iso' index='2'/>
- <backingStore/>
- <target dev='sda' bus='scsi'/>
- <readonly/>
- <alias name='scsi0-0-0-0'/>
- <address type='drive' controller='0' bus='0' target='0' unit='0'/>
- </disk>
- <disk type='block' device='disk'>
- <driver name='qemu' type='raw' cache='none' discard='unmap'/>
- <source dev='/dev/mapper/winvmdisk' index='1'/>
- <backingStore/>
- <target dev='sdb' bus='scsi'/>
- <boot order='1'/>
- <alias name='scsi0-0-0-1'/>
- <address type='drive' controller='0' bus='0' target='0' unit='1'/>
- </disk>
- <controller type='pci' index='0' model='pci-root'>
- <alias name='pci.0'/>
- </controller>
- <controller type='pci' index='1' model='pci-bridge'>
- <model name='pci-bridge'/>
- <target chassisNr='1'/>
- <alias name='pci.1'/>
- <address type='pci' domain='0x0000' bus='0x00' slot='0x0a' function='0x0'/>
- </controller>
- <controller type='virtio-serial' index='0'>
- <alias name='virtio-serial0'/>
- <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
- </controller>
- <controller type='usb' index='0' model='nec-xhci'>
- <alias name='usb'/>
- <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
- </controller>
- <controller type='scsi' index='0' model='virtio-scsi'>
- <alias name='scsi0'/>
- <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
- </controller>
- <interface type='bridge'>
- <mac address='11:11:11:11:11:11'/>
- <source bridge='br0'/>
- <target dev='vnet0'/>
- <model type='virtio'/>
- <link state='up'/>
- <alias name='net0'/>
- <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
- </interface>
- <interface type='network'>
- <mac address='22:22:22:22:22:22'/>
- <source network='winvm_direct_connect' portid='33333333-3333-3333-3333-333333333333' bridge='virbrDirectWin'/>
- <target dev='vnet1'/>
- <model type='virtio'/>
- <alias name='net1'/>
- <address type='pci' domain='0x0000' bus='0x00' slot='0x0b' function='0x0'/>
- </interface>
- <serial type='pty'>
- <source path='/dev/pts/0'/>
- <target type='isa-serial' port='0'>
- <model name='isa-serial'/>
- </target>
- <alias name='serial0'/>
- </serial>
- <console type='pty' tty='/dev/pts/0'>
- <source path='/dev/pts/0'/>
- <target type='serial' port='0'/>
- <alias name='serial0'/>
- </console>
- <channel type='unix'>
- <source mode='bind' path='/var/lib/libvirt/qemu/channel/target/domain-1-Windows_Gaming/org.qemu.guest_agent.0'/>
- <target type='virtio' name='org.qemu.guest_agent.0' state='connected'/>
- <alias name='channel0'/>
- <address type='virtio-serial' controller='0' bus='0' port='1'/>
- </channel>
- <input type='mouse' bus='ps2'>
- <alias name='input0'/>
- </input>
- <input type='keyboard' bus='ps2'>
- <alias name='input1'/>
- </input>
- <sound model='ac97'>
- <alias name='sound0'/>
- <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
- </sound>
- <hostdev mode='subsystem' type='pci' managed='yes'>
- <driver name='vfio'/>
- <source>
- <address domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
- </source>
- <alias name='hostdev2'/>
- <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
- </hostdev>
- <hostdev mode='subsystem' type='pci' managed='yes'>
- <driver name='vfio'/>
- <source>
- <address domain='0x0000' bus='0x01' slot='0x00' function='0x1'/>
- </source>
- <alias name='hostdev3'/>
- <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/>
- </hostdev>
- <hostdev mode='subsystem' type='usb' managed='yes'>
- <source>
- <vendor id='0x4444'/>
- <product id='0x5555'/>
- <address bus='1' device='3'/>
- </source>
- <alias name='hostdev4'/>
- <address type='usb' bus='0' port='1'/>
- </hostdev>
- <hostdev mode='subsystem' type='usb' managed='yes'>
- <source>
- <vendor id='0x6666'/>
- <product id='0x7777'/>
- <address bus='1' device='4'/>
- </source>
- <alias name='hostdev5'/>
- <address type='usb' bus='0' port='2'/>
- </hostdev>
- <memballoon model='virtio'>
- <alias name='balloon0'/>
- <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
- </memballoon>
- </devices>
- <seclabel type='dynamic' model='dac' relabel='yes'>
- <label>+65534:+991</label>
- <imagelabel>+65534:+991</imagelabel>
- </seclabel>
- <qemu:commandline>
- <qemu:arg value='-enable-kvm'/>
- <qemu:env name='QEMU_AUDIO_DRV' value='pa'/>
- <qemu:env name='QEMU_PA_SERVER' value='127.0.0.1'/>
- </qemu:commandline>
- </domain>
Add Comment
Please, Sign In to add comment