VirtualBox

Opened 8 years ago

Last modified 5 years ago

#16707 new defect

Add port #'s to USB Filters

Reported by: scottgus1bug Owned by:
Component: USB Version:
Keywords: USB filter same similar port number Cc:
Guest type: all Host type: all

Description

The "port" space of the USB filter is not showing anything, making usage of USB devices with same vendorid, productid, and revision numbers, etc. difficult to sort and use.

If multiple USB devices containing different data but having identical Virtualbox USB filter information need to be reliably distributed to specific guests, the VB USB filter can't distinguish which USB device to use and sends all of them into the first guest available. Inserting another dongle into the host immediately sends the new dongle into the first guest, requiring further finagling to get the dongle into the next desired guest. Or if by chance the second guest was started first, it would not be known which of the dongles was in the guest, if not all of them at once. In either case further manual manipulation is needed after the guests are started to figure out which donlge to put in which guest.

If the port space showed which USB port the desired device was plugged into, and was filterable, then as long as the device is continually used in the same port, the VB USB filter will be able to distinguish them and filter them into the desired guests automatically.

A company called KernelPro (http://www.kernelpro.com/usb-over-ethernet.html) has a USB-over-ethernet server program that casn differentiate USB devices with the same vendorid, productid, revision, etc. by the port number the USB device is plugged into. Please see the attached screenshot. I have five license dongles attached to this USBoE server. Notice that four of the five have the same vendorid, productid, and revision numbers, even though they contain different license data in each dongle, so they are not swappable. The server can distinguish them and send them reliably, because it keeps track by port number.

Attachments (1)

USBoE ID similar by port numbers notated.PNG (71.6 KB ) - added by scottgus1bug 8 years ago.
screenshot showing USBoE distinguishing 4 same USB dognles by port number

Download all attachments as: .zip

Change History (4)

by scottgus1bug, 8 years ago

screenshot showing USBoE distinguishing 4 same USB dognles by port number

comment:1 by scottgus1bug, 8 years ago

PS I do not work for and am not affiliated with KernelPro :)

comment:2 by Helge Deller, 5 years ago

It seems starting with 5.2.20 and 6.0.0 the "USB port" filter seems to work as you describe.
See: https://forums.virtualbox.org/viewtopic.php?f=1&t=91651

comment:3 by Helge Deller, 5 years ago

My previous comment isn't fully correct.
The "USB port" filter may return same "port numbers" to different physical USB ports.
On my linux box I see: (I shortened the list)

[root@p100 ~]# VBoxManage list usbhost
Port:               0
Address:            sysfs:/sys/devices/pci0000:00/0000:00:1d.2/usb4/4-1//device:/dev/vboxusb/004/002

Port:               1
Address:            sysfs:/sys/devices/pci0000:00/0000:00:1d.1/usb3/3-2//device:/dev/vboxusb/003/002

Port:               0
Address:            sysfs:/sys/devices/pci0000:00/0000:00:1d.3/usb5/5-1//device:/dev/vboxusb/005/002

Port:               1
Address:            sysfs:/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-2//device:/dev/vboxusb/002/002

Note: See TracTickets for help on using tickets.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette