[Question]: USB Passthrough Multiple Devices with the same Vendor & Product ID
Is your question not already answered in the FAQ?
- [X] I made sure the question is not listed in the FAQ.
Is this a general question and not a technical issue?
- [X] I am sure my question is not about a technical issue.
Question
I have been able to pass through multiple USB devices using
-device usb-host,hostdevice=/dev/bus/usb/004/006 -device usb-host,hostdevice=/dev/bus/usb/004/005
But this is obviously not ideal as the values will change. The problem is that the two USB's share the same vendor & product ID.
Bus 004 Device 004: ID 11b0:a012 ATECH FLASH TECHNOLOGY SD PG08
Bus 004 Device 003: ID 11b0:a012 ATECH FLASH TECHNOLOGY SD PG08
If I try -device usb-host,vendorid=0x11b0,productid=0xa012 -device usb-host,vendorid=0x11b0,productid=0xa012 then only one shows up. Is there anyway for me to add something like a serial number or some other unique and perpetual value to distinguish the two devices?
If I run lsusb -v then the only difference between the two that I can see is the iSerial number.
It is explained here:
https://qemu-project.gitlab.io/qemu/system/devices/usb.html#usb-host-properties-for-specifying-the-host-device
in the section "usb-host properties for specifying the host device" it lists many different options for filtering the correct USB device.