Page 1 of 1
USB Filter must also use physical location.
Posted: 13. Jul 2012, 10:33
by EneosStardust
Long story short:
Have multiple of some HAMA boxes with this ITE chip, and their ID's is:
Vendor-ID: 048d
Product-ID: 1345
Serial number is: 000000000000100
So when I have mutible Card readers connected to host, i cannot filter card reader A to virtual box A and card reader B to virtual box B, because they have same ID's..
How ever, when CardReader is linked into a virtual box, I can in device manager for host see the "Location information", which is unique, could that somehow be used in the filter?
If I open USB filter on virtual box there is a entry called "Port", but i cannot fill data i that box..
Any ideas for at solution how alwasy get cardreader A into virtual box A, when booting virtual box A?
THANKS
Re: USB Filter must also use physical location.
Posted: 13. Jul 2012, 11:43
by mpack
The USB port number doesn't identify the device. You could swap the devices over and the VM wouldn't know the difference.
This is something I've never tried (and I don't have anything here to experiment with), so perhaps you should say: what exactly happens when you plug in two devices at once which satisfy a single VBox USB filter? If that test shows that only one device per filter is allowed, what happens if you have two identical filters?
Re: USB Filter must also use physical location.
Posted: 13. Jul 2012, 13:24
by EneosStardust
The USB port number doesn't identify the device. You could swap the devices over and the VM wouldn't know the difference.
Yes, i know, but i want somehow to link physical address on host to virtual box usb capture filter..
It must of cause be optional..
what exactly happens when you plug in two devices at once which satisfy a single VBox USB filter?
if i boot VB1(Virtual Box 1) with one filter, and 2 maching free device, both will be captured..
if i boot VB1 and with one filter, and 2 maching free device and 1 already captured device, the 2 first will be captured..
So it dosent matter if there are 1 or 2 identical filter(s).. :-s
and it would not help me anyway, because if i reboot VB1 and VB2 at same time, i would not know which USB device would be captured to which device..

Re: USB Filter must also use physical location.
Posted: 13. Jul 2012, 14:23
by mpack
In that case I don't understand your problem. You can mount both devices in the VM - what exactly is your problem after that?
Re: USB Filter must also use physical location.
Posted: 16. Jul 2012, 08:21
by EneosStardust
and it would not help me anyway, because if i reboot VB1 and VB2 at same time, i would not know which USB device would be captured to which device..
should have been:
and it would not help me anyway, because if i reboot VB1 and VB2 at same time, i would not know which USB device would be captured to which virtual box..
Sorry for that typo..
I have multiple virtual boxes running TinyCore Linux.
I want USB device #1
ALWAYS to be captured by VB1 and USB device #2
ALWAYS to be captured by VB2.
If i restart VB1 and VB2 at the same time, the first booting virtual box will then capture both USB devices, as they both have same ID's and are free.
VB1 and VB2 is both running some random power cycle, so capture must be done automatically.
Re: USB Filter must also use physical location.
Posted: 16. Jul 2012, 11:15
by Martin
This has been asked some time before.
Unfortunately there is currently no known solution.
Re: USB Filter must also use physical location.
Posted: 16. Jul 2012, 11:27
by EneosStardust
Yes of cause, I did not think either, that I was the only one with this kind of problem.
This has been asked some time before
Do you have a link for it? I a noob at searching in forums..
But how can we/I get Oracle/VirtualBox makers to implement a better/more advanced USB filter?
The USB Filter for the virtual box has a line/box called "Port:" but I am not able to add anything i that box.
Does anyone know any software that "pipe" or split usb inputs into a new USB port with a unique ID? Is that even possible?
Or is there a way to use a script for capturing USB devices in Vbox, either from host or from the VB itself?
Re: USB Filter must also use physical location.
Posted: 16. Jul 2012, 12:52
by Martin
You can find some earlier discussions searching Google with "usb filter port site:forums.virtualbox.org"
Improvements in the USB filter code will be done by Oracle if a paying customer requests that feature.
Otherwise we would need to find some programmer in the community who knows how to do it and has the time to implement it.
For a scripted approach you could try the usbattach/usbdetach function of 'VBoxManage controlvm'