0

I have three identical USB devices on my VM host that I would like to pass-through to a VM: enter image description here

I can pass-through only one device as they all have the same vendor- and device-ID, the element in the VM libvirt XML file look like this:

...
<hostdev mode='subsystem' type='usb' managed='yes'>
    <source>
        <vendor id='0x064f'/>
        <product id='0x03e9'/>
    </source>
    <address type='usb' bus='0' port='2'/>
</hostdev>
...

Any tricks?

Perhaps one way could be if it was possible to change the device-id of a device?

MrCalvin
  • 354
  • 1
  • 6
  • 18

1 Answers1

0

It seem you can do it in the native qemu cmd using either -device usb-host,hostbus=bus,hostaddr=addr or -device usb-host,hostbus=bus,hostport=port
(sources: StackExchange, linux-kvm.org)

And to specify native qemu cmd parameters in libvirt xml you use something like this

 ..
 </devices>
 <qemu:commandline>
    xxxx
 </qemu:commandline>
 ..

(I update the finals details when/if I succeed, but this is just to get started)

MrCalvin
  • 354
  • 1
  • 6
  • 18