Score:0

How to pass-through multiple USB devices with the same Vendor- and Device-ID in QEMu/Libvirt?

cn flag

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?

Score:0
cn flag

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)

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.