Can't access USB devices on Win7 guest

Discussions about using Windows guests in VirtualBox.
Post Reply
themarty
Posts: 4
Joined: 4. Feb 2019, 22:36

Can't access USB devices on Win7 guest

Post by themarty »

VirtualBox : Version 5.2.26 r128414 (Qt5.6.2)
ExtensionPack: 5.2.26
Host OS : Win10
Guest OS : Win7

When i plug in a USB device, it shows up under Devices > USB. When i click on it, the status changes to 'claimed', but it doesn't show up anywhere in windows explorer. When i click on it again, it gives me an error that the device is busy.

I have checked the USB drivers on the Host: these are the original Windows drivers.
I have also tried adding filters for my devices, but no luck there either. I know i'm using the right values, because i could simply select it from a drop down; this filled all the fields and have then removed all values except the one of the vendor-id and device-id.

I have also tried to:
  • Boot Guest OS
  • Plug in Device
  • Eject device on Host OS
  • Selecting it through Devices > USB on guest OS
Still no luck; the status changes to Claimed, but it doesn't show up in Windows Explorer.

I have the same problem with both my phone and a normal USB memory stick.

What else can i try? Any insights are appreciated
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Can't access USB devices on Win7 guest

Post by socratis »

Please read the following thread: USB basics and troubleshooting, all of the posts.

If you still have a problem after reading through the whole thing, please follow the advice of the last post, #8: Asking for help and post the information requested.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
themarty
Posts: 4
Joined: 4. Feb 2019, 22:36

Re: Can't access USB devices on Win7 guest

Post by themarty »

Ok, i followed those instructions and saved the output of the commands + I captured the logs.
Both can be found in the attached zip-file. In a few places you'll see ***** : i've replaced my username there with those five stars
Attachments
log.zip
(28.76 KiB) Downloaded 16 times
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Can't access USB devices on Win7 guest

Post by socratis »

I'll take a look at your logs. But please read the first sentence of my signature...
USB:             enabled
EHCI:            enabled
XHCI:            disabled
Is your USB device a USB2 or a USB3? In any event, can you change it to USB3 and make sure that you take appropriate steps to enable USB3 for your Windows guest? See USB basics and troubleshooting, #6: Guest support.

In the VBox.log, I do *not* see the device being inserted *after* you start the VM. Please take a look at the correct procedure (#8: Asking for help), it's numbered, can't miss a step or two...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
themarty
Posts: 4
Joined: 4. Feb 2019, 22:36

Re: Can't access USB devices on Win7 guest

Post by themarty »

Hi Socratis

Thanks for taking the time to help me.
I did read your signature and did not change the virtual ids. I can assure you that my username is not virtual as it contains my last name which is quite unique and very real. So i hope you understand why i wanted to star that out.

I also read the Asking for help part and i followed it to the letter: I first booted the VM, logged in, waited until window was started , then plugged in my device, waited for a good two minutes and then unplugged and shutdown windows.

I have changed my USB settings to USB3 and repeated the whole procedure which i have attached again in a zip.

Btw, after capturing the log, I again booted windows, then connected my device to see if maybe it was working (since I changed to USB3) - but it was not.
What might be worth noting, is the following behaviour:
  • Booting windows guest
  • check Device > USB > -> my Nexus 5X is already listed here, even though it's not connected yet, with status claimed
  • plugging in my Nexus 5X ; checking again Devices > USB -> nothing changed (it's still showed and still as 'claimed')
  • changing my Nexus 5X USB settings from 'charging' to 'mtp' (for file transfer); checking again Devices USB -> now it appears two times. The second one had status 'busy'
  • trying to connect to the second one : nothing happens, except the status changes to 'claimed'. But windows (guest) doesn't see the device.
  • now, when i closed windows and rebooted it, I see my Nexus 5X two times, without it even being connected, both with status claimed.
It's like, I tried to connect once, and it keeps being stuck forever.
Attachments
log2.zip
(28.17 KiB) Downloaded 16 times
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Can't access USB devices on Win7 guest

Post by socratis »

UUID:               dea466f9-760f-46b2-98b9-916d26ef5d91
VendorId:           0x18d1 (18D1)
ProductId:          0x4ee7 (4EE7)
Revision:           3.16 (0316)
Port:               4
USB version/speed:  2/High
Manufacturer:       LGE
Product:            Nexus 5X
SerialNumber:       01e60f44c2d31d35
Address:            {36fc9e60-c465-11cf-8056-444553540000}\0018
Current State:      Captured
That clearly states that the VM has captured your device, so I'm not sure what's going on. What do the Device Manager and the other tools (USBDeview, or USBView, or UsbTreeView) that you could run on your guest say about this?
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
themarty
Posts: 4
Joined: 4. Feb 2019, 22:36

Re: Can't access USB devices on Win7 guest

Post by themarty »

Even with the device not connected, after a clean boot it shows as claimed.

I checked the Device Manager and I think part of the problem is there: the USB Controller is listed under 'Other Devices' and shows an error: the driver's couldn't be installed.
I also attached a screenshot of what USBDeview has to say.

So, i searched how I can install a USB3.0 Driver for my Windows 7 guest and found this post viewtopic.php?f=7&t=84793 where you were helping someone else and pointed him to https://downloadcenter.intel.com/downlo ... set-Family . So i did the same and downloaded those drivers.
I then went back to the device manager to update the drivers and in doing so, i know have Universal Serial Bus Controllers listed under my devices. So that looks good, in principle. Except: under Other Devices, I now have an 'Unknown Device' (that was not there before). Updating it's drivers doesn't work - Windows has no idea what to do with it. Oh, and i rebooted a couple of times in between, just to see if that would fix things.
I checked the output of USBDeview, but it hasn't changed.

What's more: my device is still claimed.
I have tried detaching it like this:

Code: Select all

C:\Program Files\Oracle\VirtualBox>VBoxmanage list usbhost
Host USB Devices:

UUID:               5e46658d-09e3-4d50-b74d-b1636ee95470
VendorId:           0x8087 (8087)
ProductId:          0x0a2a (0A2A)
Revision:           0.1 (0001)
Port:               3
USB version/speed:  2/High
Manufacturer:       Intel Corp.
Address:            {e0cbf06c-cd8b-4647-bb8a-263b43f0f974}\0000
Current State:      Busy

UUID:               e39b40ab-26fe-4c15-819a-043ce09276c4
VendorId:           0x413c (413C)
ProductId:          0x81b1 (81B1)
Revision:           0.6 (0006)
Port:               8
USB version/speed:  2/High
Manufacturer:       Sierra Wireless, Incorporated
Product:            Dell Wireless 5809e Gobi™ 4G LTE Mobile Broadband Card
Address:            {36fc9e60-c465-11cf-8056-444553540000}\0004
Current State:      Busy

UUID:               0249dd79-87ba-4486-98c8-7e24060c8a12
VendorId:           0x1bcf (1BCF)
ProductId:          0x2b8d (2B8D)
Revision:           70.22 (7022)
Port:               6
USB version/speed:  2/High
Manufacturer:       Sunplus Innovation Technology Inc.
Address:            {36fc9e60-c465-11cf-8056-444553540000}\0006
Current State:      Busy

UUID:               dea466f9-760f-46b2-98b9-916d26ef5d91
VendorId:           0x18d1 (18D1)
ProductId:          0x4ee7 (4EE7)
Revision:           3.16 (0316)
Port:               4
USB version/speed:  2/High
Manufacturer:       LGE
Product:            Nexus 5X
SerialNumber:       01e60f44c2d31d35
Address:            {36fc9e60-c465-11cf-8056-444553540000}\0018
Current State:      Captured

UUID:               ae3ac5c3-b901-48cb-93b2-c266b29aef42
VendorId:           0x18d1 (18D1)
ProductId:          0x4ee2 (4EE2)
Revision:           3.16 (0316)
Port:               4
USB version/speed:  2/High
Manufacturer:       LGE
Product:            Nexus 5X
SerialNumber:       01e60f44c2d31d35
Address:            {36fc9e60-c465-11cf-8056-444553540000}\0015
Current State:      Captured

UUID:               1bc0ed94-8e6c-4e16-8d4d-670bd6d1b84e
VendorId:           0x0a5c (0A5C)
ProductId:          0x5800 (5800)
Revision:           1.1 (0101)
Port:               7
USB version/speed:  1/Full
Manufacturer:       Broadcom Corp
Product:            5880
SerialNumber:       0123456789ABCD
Address:            {36fc9e60-c465-11cf-8056-444553540000}\0007
Current State:      Busy


C:\Program Files\Oracle\VirtualBox>VBoxManage controlvm WindroidStudio usbdetach dea466f9-760f-46b2-98b9-916d26ef5d91 |
The syntax of the command is incorrect.

C:\Program Files\Oracle\VirtualBox>VBoxManage controlvm WindroidStudio usbdetach dea466f9-760f-46b2-98b9-916d26ef5d91
VBoxManage.exe: error: USB device with UUID {dea466f9-760f-46b2-98b9-916d26ef5d91} is not attached to this machine
VBoxManage.exe: error: Details: code E_INVALIDARG (0x80070057), component ConsoleWrap, interface IConsole, callee IUnknown
VBoxManage.exe: error: Context: "DetachUSBDevice(usbId.raw(), dev.asOutParam())" at line 1392 of file VBoxManageControlVM.cpp


C:\Program Files\Oracle\VirtualBox>VBoxManage controlvm WindroidStudio usbdetach ae3ac5c3-b901-48cb-93b2-c266b29aef42
VBoxManage.exe: error: USB device with UUID {ae3ac5c3-b901-48cb-93b2-c266b29aef42} is not attached to this machine
VBoxManage.exe: error: Details: code E_INVALIDARG (0x80070057), component ConsoleWrap, interface IConsole, callee IUnknown
VBoxManage.exe: error: Context: "DetachUSBDevice(usbId.raw(), dev.asOutParam())" at line 1392 of file VBoxManageControlVM.cpp

C:\Program Files\Oracle\VirtualBox>
But as you can see in the output: that didn't work.

Maybe the problem will be gone now that I have a working USB Controller, but I guess that won't work until I can somehow convince the Guest OS that it shouldn't be claimed anymore...
Attachments
usbdeview.png
usbdeview.png (21.33 KiB) Viewed 1723 times
Post Reply