Is it possible to attach a specific usb port to a VM instead of a specific device? The reason why I'm asking is that I have 3 devices with the same vendor and product id plugged in and to attach them to the VM I had to edit the xml like so:
<hostdev mode='subsystem' type='usb' managed='yes'>
<source>
<address bus='3' device='31'/>
</source>
<alias name='hostdev0'/>
<address type='usb' bus='0' port='2'/>
</hostdev>
<hostdev mode='subsystem' type='usb' managed='yes'>
<source>
<address bus='3' device='34'/>
</source>
<alias name='hostdev1'/>
<address type='usb' bus='0' port='3'/>
</hostdev>
<hostdev mode='subsystem' type='usb' managed='yes'>
<source>
<address bus='5' device='23'/>
</source>
<alias name='hostdev2'/>
<address type='usb' bus='0' port='4'/>
</hostdev>
The problem with that is that the bus and device change whenever I unplug something and plug it back in so every time I do that I have to reboot the vm which is seriously starting to get annoying.