USB Hub/Ethernet adapter not managed at startup

Discussions related to using VirtualBox on Windows hosts.
Post Reply
virtualsaver
Posts: 15
Joined: 24. Feb 2019, 10:41

USB Hub/Ethernet adapter not managed at startup

Post by virtualsaver »

Hi,

I am using Vbox on Win 10 HOST and Win 7 GUEST

Using an USB Hub/Ethernet adapter I have seen the following issue:

1 USB Hub/Ethernet adapter connected to the HOST (working fine)
2 starting Vbox & VM
3 no Ethernet adapter in VM (usb filter on)
4 unlug and replug Ethernet adapter present in VM and working fine (usb filter on)

To prove I have attached VM logs and also

1 usbhost_Pre.txt (before starting Vbox & VM)
2 usbhost_StartVM.txt (after starting Vbox & VM)
3 usbhost_PostUnplug.txt (after unplug and replug)

Thank you
Attachments
Logs.zip
(66.64 KiB) Downloaded 7 times
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: USB Hub/Ethernet adapter not managed at startup

Post by scottgus1 »

Thanks for the usbhost outputs. Here's what I see regarding the USB Ethernet adapter:
Pre:
UUID:               ff700573-0646-4fc2-a00c-9a499b5ff27b
VendorId:           0x0bda (0BDA)
ProductId:          0x8153 (8153)
Revision:           48.0 (4800)
Port:               3
USB version/speed:  3/Super
Manufacturer:       Realtek Semiconductor Corp.
Product:            RTL8153 Gigabit Ethernet Adapter
Address:            {4d36e972-e325-11ce-bfc1-08002be10318}\0018
Current State:      Busy
StartVM:
UUID:               21e80c3d-c120-44c5-b7be-9e24baf9248a
VendorId:           0x0bda (0BDA)
ProductId:          0x8153 (8153)
Revision:           48.0 (4800)
Port:               3
USB version/speed:  3/Super
Manufacturer:       Realtek Semiconductor Corp.
Product:            RTL8153 Gigabit Ethernet Adapter
Address:            {4d36e972-e325-11ce-bfc1-08002be10318}\0018
Current State:      Busy
Post-unplug:
UUID:               fcdee2a6-0ed6-42b3-bf1f-3ab398b8cc7b
VendorId:           0x0bda (0BDA)
ProductId:          0x8153 (8153)
Revision:           48.0 (4800)
Port:               3
USB version/speed:  3/Super
Manufacturer:       Realtek
Product:            USB 10/100/1000 LAN
SerialNumber:       00E04C68018B
Address:            \\?\usb#vid_80ee&pid_cafe#00e04c68018b#{00873fdf-cafe-80ee-aa5e-00c04fb1720b}
Current State:      Captured
I don't know the significance of the UUIDs changing between runs of the 'list usbhosts' command, but the "Current State" only shows Captured after the unplug & replug. This is consistent with previous behavior of Virtualbox USB as stated in USB basics and troubleshooting: Some devices need to be physically unplugged/replugged to work right.

Hubs are not usable for filtering in Virtualbox, though the devices on the hub can be used. If your device works without un/replugging when connected directly to the host PC, but requires an un/replug when connected to the hub, then you might have hit a limitation of Virtualbox, USB, or both. You can post suitable evidence on the Bugtracker if you wish.
virtualsaver
Posts: 15
Joined: 24. Feb 2019, 10:41

Re: USB Hub/Ethernet adapter not managed at startup

Post by virtualsaver »

Hi ,

my device in an HUB (3 ports) with an Ethernet port. Total 4 ports.
http://www.tecknet.co.uk/support/hu043.html

I reported the issue because I guess the Vbox Usb drive doesn't work properly with this kind of "combo" device

Yes, works properly on the HOST.

About your sentence "Hubs are not usable for filtering in Virtualbox, though the devices on the hub can be used."
I can confirm it works fine, I normally use USB filter connected or not to the HUB

Thank you
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: USB Hub/Ethernet adapter not managed at startup

Post by scottgus1 »

scottgus1 wrote:Hubs are not usable for filtering in Virtualbox, though the devices on the hub can be used.
What this means is that a hub is invisible to Virtualbox (actually hubs aren't not invisible, but the developers, at the behest of the Oracle paying customers, made them invisible) for the purpose of making USB filters. So you can't attach several USB devices to a hub, then set a Virtualbox filter to the hub, and have any & all devices on that hub go into a guest just because they're attached to that hub. Would be cool if it were possible, but Virtualbox is not programmed for it.

Your Ethernet & hub device is probably a four port hub with a USB-Ethernet adapter hardwired to one of the hub ports. So the Ethernet part is the part that gets registered as a USB device and the hub is passed through invisibly. Add another device to that hub and that device will require its own USB filter.
Post Reply