USB Filter must also use physical location.

This is for discussing general topics about how to use VirtualBox.
Post Reply
EneosStardust
Posts: 4
Joined: 13. Jul 2012, 10:17

USB Filter must also use physical location.

Post 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
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: USB Filter must also use physical location.

Post 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?
EneosStardust
Posts: 4
Joined: 13. Jul 2012, 10:17

Re: USB Filter must also use physical location.

Post 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.. :?
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: USB Filter must also use physical location.

Post 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?
EneosStardust
Posts: 4
Joined: 13. Jul 2012, 10:17

Re: USB Filter must also use physical location.

Post 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.. :oops:

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.
Martin
Volunteer
Posts: 2562
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP, Win7, Win10, Linux, OS/2

Re: USB Filter must also use physical location.

Post by Martin »

This has been asked some time before.
Unfortunately there is currently no known solution.
EneosStardust
Posts: 4
Joined: 13. Jul 2012, 10:17

Re: USB Filter must also use physical location.

Post 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?
Martin
Volunteer
Posts: 2562
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP, Win7, Win10, Linux, OS/2

Re: USB Filter must also use physical location.

Post 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'
Post Reply