Windows 10 VM not recognizing USB wireless NIC on host server

Discussions about using Windows guests in VirtualBox.

Windows 10 VM not recognizing USB wireless NIC on host server

Postby TheScriptGuy » 30. Nov 2022, 02:16

Hi!

I recently got a USB wireless NIC that I want to allow one of my Windows 10 virtual machines to have access to and ultimately connect to wifi for testing.

Code: Select all   Expand viewCollapse view
$ vboxmanage list usbhost
Host USB Devices:

UUID:               b55d86ba-4814-488b-bd43-c453391c6864
VendorId:           0x0bda (0BDA)
ProductId:          0x8179 (8179)
Revision:           0.0 (0000)
Port:               9
USB version/speed:  2/High
Manufacturer:       Realtek
Product:            802.11n NIC
SerialNumber:       00E04C0001
Address:            sysfs:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-10//device:/dev/vboxusb/001/008
Current State:      Captured



I ran the following commands on my virtual machine (named Win10Client2):
Code: Select all   Expand viewCollapse view
$ vboxmanage modifyvm Win10Client2 --usb-ehci=on  --usb-xhci=on --usb-ohci=on
$ vboxmanage usbfilter add 0 --target Win10Client2 --name "802.11n NIC" --vendorid 0BDA --productid 8179 --revision 0000 --remote no --serialnumber 00E04C0001 --manufacturer "Realtek"
$ vboxheadless -startvm Win10Client2 &
$ vboxmanage controlvm Win10Client2 usbattach b55d86ba-4814-488b-bd43-c453391c6864



But it seems like I'm struggling to get Windows 10 to recognize the attached USB. In Device Manager, it keeps showing Unknown USB Device (Device Descriptor Request Failed).

I'm not 100% sure if I need the USB filter?

Any guidance is most welcome!

TIA
TheScriptGuy
 
Posts: 5
Joined: 15. May 2021, 05:39

Re: Windows 10 VM not recognizing USB wireless NIC on host server

Postby scottgus1 » 30. Nov 2022, 15:34

Carefully go through USB basics and troubleshooting. If you finish all the steps 1-7 and cannot get your USB device into the guest OS, carefully post the outputs of the commands in step 8 as text, not screenshots. Zip and post the logs step 8 call for, using the forum's Upload Attachment tab.
scottgus1
Site Moderator
 
Posts: 17603
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Windows 10 VM not recognizing USB wireless NIC on host server

Postby TheScriptGuy » 1. Dec 2022, 00:01

Hi!

Thank you for sharing the USB troubleshooting steps. I appreciate the level of detail it goes into, but it looks like I'm not lucky in getting this resolved.

I followed the individual steps in step 8 - specifically around plugging in the USB once the virtual machine was on and logged in and waited until Windows presented the "unrecognized device" error I mentioned earlier, unplugged the USB and powered it off.

Looking at VBox.log, I searched for all lines containing usb, but couldn't see anything that would indicate a problem (to be fair though - I'm not sure what to look for :) )

Thanks for assistance!
Attachments
virtualbox-commands-logs.zip
(39.73 KiB) Downloaded 4 times
TheScriptGuy
 
Posts: 5
Joined: 15. May 2021, 05:39

Re: Windows 10 VM not recognizing USB wireless NIC on host server

Postby scottgus1 » 2. Dec 2022, 17:58

Thanks for the info. The device:
USB Device Filters:
Index: 0
Active: yes
Name: 802.11n NIC
VendorId: 0bda
ProductId: 8179
Revision: 0000
Manufacturer: Realtek
Product:
Remote: no
Serial Number: 00E04C0001

did get attached at VM start and detached at VM shutdown:
00:01:02.079584 VUSB: Attached '00007f7000191670[proxy 0bda:8179]' to port 1 on RootHub#0 (HighSpeed)
00:01:52.208598 VUSB: Detached '00007f7000191670[proxy 0bda:8179]' from port 1 on RootHub#0

So Virtualbox does seem to be working here. Try troubleshooting within the VM OS, as if this problem was happening on the physical PC.

*************************************

USB Basics and Troubleshooting wrote:#4: USB Filters
.....
Under VM Settings » Port » USB, create a USB filter ... Delete all values except Name, VendorID and ProductID.

USB Device Filters:
Index: 0
Active: yes
Name: 802.11n NIC
VendorId: 0bda
ProductId: 8179
Revision: 0000
Manufacturer: Realtek
Product:
Remote: no
Serial Number: 00E04C0001

Red items were to be deleted. ?

The filter still seems to be working. However, I wonder if the period in the name might have an underlying issue. (A NAT Network issue was recently found when a slash was put in the NAT Network name, so it's possible here.)

Try removing the items that USB Basics says to remove, and change the filter name to alphanumeric only, then try the device again.
scottgus1
Site Moderator
 
Posts: 17603
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux


Return to Windows Guests

Who is online

Users browsing this forum: No registered users and 24 guests