mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 14:45:24 +00:00
31710a5389
So that devices can be attached to hubs. Example, to attach to first port of a usb-hub on port 1. <hub type='usb'> <address type='usb' bus='0' port='1'/> </hub> <input type='mouse' type='usb'> <address type='usb' bus='0' port='1.1'/> </hub> also add a test entry
32 lines
855 B
XML
32 lines
855 B
XML
<domain type='qemu'>
|
|
<name>QEMUGuest1</name>
|
|
<uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
|
|
<memory>219136</memory>
|
|
<currentMemory>219200</currentMemory>
|
|
<vcpu>1</vcpu>
|
|
<os>
|
|
<type arch='i686' machine='pc'>hvm</type>
|
|
<boot dev='hd'/>
|
|
</os>
|
|
<devices>
|
|
<emulator>/usr/bin/qemu</emulator>
|
|
<controller type='usb' index='0'/>
|
|
<memballoon model='virtio'/>
|
|
<hub type='usb'>
|
|
<address type='usb' bus='0' port='1'/>
|
|
</hub>
|
|
<input type='mouse' bus='usb'>
|
|
<address type='usb' bus='0' port='1.1'/>
|
|
</input>
|
|
<hub type='usb'>
|
|
<address type='usb' bus='0' port='1.2'/>
|
|
</hub>
|
|
<input type='mouse' bus='usb'>
|
|
<address type='usb' bus='0' port='1.2.1'/>
|
|
</input>
|
|
<input type='mouse' bus='usb'>
|
|
<address type='usb' bus='0' port='1.2.2'/>
|
|
</input>
|
|
</devices>
|
|
</domain>
|