Files
vagrant-libvirt/spec/unit/templates/domain_all_settings.xml
David Scaife 60e93d4925 USB controller configuration (#861)
* Add USB controller configuration

* Update README with USB controller configuration info

* Rename USB controller parameter to usb_controller

* Code style fixup
2018-03-18 09:25:01 +01:00

139 lines
3.6 KiB
XML

<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
<name></name>
<uuid></uuid>
<memory></memory>
<vcpu>1</vcpu>
<cpu mode='custom'>
<model fallback='allow'>qemu64</model>
<feature name='AAA' policy='required'/>
<topology sockets='1' cores='3' threads='2'/>
</cpu>
<os>
<type arch='x86_64' machine='pc-compatible'>hvm</type>
<loader readonly='yes' type='rom'>/efi/loader</loader>
<bootmenu enable='yes'/>
<kernel></kernel>
<initrd></initrd>
<cmdline></cmdline>
</os>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<clock offset='utc'/>
<devices>
<emulator>/usr/bin/kvm-spice</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2' cache='unsafe'/>
<source file='/var/lib/libvirt/images/test.qcow2'/>
<target dev='vda' bus='ide'/>
</disk>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2' cache='default'/>
<source file='/var/lib/libvirt/images/test-disk1.qcow2'/>
<target dev='vdb' bus='virtio'/>
</disk>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2' cache='default'/>
<source file='/var/lib/libvirt/images/test-disk2.qcow2'/>
<target dev='vdc' bus='virtio'/>
</disk>
<disk type='file' device='cdrom'>
<source file=''/>
<target dev='hda' bus='ide'/>
<readonly/>
</disk>
<disk type='file' device='cdrom'>
<source file=''/>
<target dev='hdb' bus='ide'/>
<readonly/>
</disk>
<serial type='pty'>
<target port='0'/>
</serial>
<console type='pty'>
<target port='0'/>
</console>
<channel type='unix' >
<target type='virtio'
name="org.qemu.guest_agent.0"
/>
</channel>
<channel type='spicevmc' >
<target type='virtio'
name="com.redhat.spice.0"
/>
</channel>
<channel type='unix' >
<source
path="/tmp/foo"
/>
<target type='guestfwd'
address="192.0.2.42"
port="4242"
/>
</channel>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1' keymap='en-us' />
<video>
<model type='cirrus' vram='9216' heads='1'/>
</video>
<rng model='virtio'>
<backend model='random'>/dev/random</backend>
</rng>
<hostdev mode='subsystem' type='pci' managed='yes'>
<source>
<address domain='0x0000'
bus='0x06'
slot='0x12'
function='0x5'/>
</source>
</hostdev>
<hostdev mode='subsystem' type='pci' managed='yes'>
<source>
<address domain='0x0000'
bus='0x03'
slot='0x00'
function='0x0'/>
</source>
</hostdev>
<hostdev mode='subsystem' type='usb'>
<source startupPolicy='mandatory'>
<vendor id='0x1234'/>
<product id='0xabcd'/>
<address bus='1' device='2'/>
</source>
</hostdev>
<redirdev bus='usb' type='tcp'>
</redirdev>
<redirfilter>
<usbdev class='0x0b' vendor='0x0b' product='0x0b' version='0x0b' allow='yes'/>
</redirfilter>
<watchdog model='i6300esb' action='reset'/>
<smartcard mode='passthrough' type='spicevmc'/>
<tpm model='tpm-tis'>
<backend type='passthrough'>
<device path='/dev/tpm0'/>
</backend>
</tpm>
<controller type='usb' model='nec-xhci' ports="4" />
</devices>
<qemu:commandline>
<qemu:arg value='-device'/>
<qemu:arg value='dummy-device'/>
</qemu:commandline>
</domain>