Page 1 of 2
Windows 7 x64 Host doesn't show USB devices
Posted: 19. Aug 2013, 16:59
by dgalimov
Hello,
I cannot make USB devices visible to Virtual Box. The devices menu always shows "No USB devices connected". However, Windows shows the devices normally.
VBoxManage.exe list usbhost command do not show the USB devices either.
I've tried creating machine filters by using just vendor id, the situation slightly changes - when i insert the device, "VirtualBox USB" device appears in the devices list, instead of original device, but still "No USB devices connected", and the usb device is not shown within the guest (I'm using Ubuntu 13.04 x64).
I've tried to create global filters, but situation is the same...
I have Windows 7 SP1 x64 with all latest additions installed. Virtual Box and extensions version is 4.2.16.
Nothing in the logs. I only can see something like
00:00:01.107000 ERROR [COM]: aRC=VBOX_E_IPRT_ERROR (0x80bb0005) aIID={22781af3-1c96-4126-9edf-67a020e0e858} aComponent={SessionMachine} aText={Saved screenshot data is not available (VERR_NOT_SUPPORTED)}, preserve=false
00:00:02.028000 ERROR [COM]: aRC=VBOX_E_INVALID_VM_STATE (0x80bb0002) aIID={22781af3-1c96-4126-9edf-67a020e0e858} aComponent={SessionMachine} aText={The machine is not mutable (state is Starting)}, preserve=false
00:01:26.518000 main ERROR [COM]: aRC=VBOX_E_OBJECT_IN_USE (0x80bb000c) aIID={29989373-b111-4654-8493-2e1176cba890} aComponent={Medium} aText={Medium 'F:\Ubuntu\Ubuntu.vhd' cannot be closed because it is still attached to 1 virtual machines}, preserve=false
00:01:26.549000 Watcher ERROR [COM]: aRC=E_ACCESSDENIED (0x80070005) aIID={3b2f08eb-b810-4715-bee0-bb06b9880ad2} aComponent={VirtualBox} aText={The object is not ready}, preserve=false
but I doubt that they matter.
Any ideas?
Re: Windows 7 x64 Host doesn't show USB devices
Posted: 19. Aug 2013, 17:05
by mpack
Post the complete VM log please, as a .zip attachment.
The usual mistake on a Windows 64bit host is that the host has been configured to silently reject the installation of non-Microsoft device drivers - VirtualBox needs to install a device driver to intercept messages coming from the USB device and redirect it to the VM. Running the installer as administrator does not fix this problem.
Bridged network mode uses an almost identical scheme to redirect network I/O, so if you find that bridged networking also doesn't work then "driver signature enforcement" is almost certainly the problem.
Re: Windows 7 x64 Host doesn't show USB devices
Posted: 19. Aug 2013, 17:18
by dgalimov
Please find the logs attached
Re: Windows 7 x64 Host doesn't show USB devices
Posted: 19. Aug 2013, 17:21
by dgalimov
mpack wrote:
The usual mistake on a Windows 64bit host is that the host has been configured to silently reject the installation of non-Microsoft device drivers - VirtualBox needs to install a device driver to intercept messages coming from the USB device and redirect it to the VM. Running the installer as administrator does not fix this problem.
Bridged network mode uses an almost identical scheme to redirect network I/O, so if you find that bridged networking also doesn't work then "driver signature enforcement" is almost certainly the problem.
How can i disable this? Actually, it loads some virtual box usb driver - please see attached screen.

- Device driver window
- virtual_box_usb.png (73.28 KiB) Viewed 21972 times
This does
not happen when i remove the filters - the USB devices appears "as is" in the device manager window
Re: Windows 7 x64 Host doesn't show USB devices
Posted: 19. Aug 2013, 17:47
by mpack
The logs you posted are not the VM logs. Also I only need one log which shows the problem. For how to provide the correct log please read
Minimum information needed for assistance. Each log covers one session, so a log for any session which exhibits the problem will do.
Also, what is that last picture you posted? Is it of the host? - I'm puzzled because my (XP 32bit) host does not show a VirtualBox USB driver in the USB Controllers device branch. The guest OTOH
will have a virtual USB controller, but your first post talked about an Ubuntu guest. I wonder if this is just an architectural difference between 32bit and 64bit hosts.
I also see "USB Virtualization Connector Driver" - that's a VirtualPC aka "XP Mode" driver.
Re: Windows 7 x64 Host doesn't show USB devices
Posted: 19. Aug 2013, 18:08
by dgalimov
mpack wrote:The logs you posted are not the VM logs. Also I only need one log which shows the problem. For how to provide the correct log please read . Each log covers one session, so a log for any session which exhibits the problem will do.
Please find the log attached
mpack wrote:Also, what is that last picture you posted? Is it of the host? - I'm puzzled because my (XP 32bit) host does not show a VirtualBox USB driver in the USB Controllers device branch. The guest OTOH will have a virtual USB controller, but your first post talked about an Ubuntu guest. I wonder if this is just an architectural difference between 32bit and 64bit hosts.
I also see "USB Virtualization Connector Driver" - that's a VirtualPC aka "XP Mode" driver.
Yes, it's the host Windows 7 x64 devices list. Maybe you need to select something like 'show hidden devices' to view it in XP as well?
Yes, i also have Virtual PC installed. Do i need to uninstall it? Or maybe i need to disable this driver?
Re: Windows 7 x64 Host doesn't show USB devices
Posted: 20. Aug 2013, 08:46
by mpack
I can see nothing wrong in the log. Perhaps disabling the VirtualPC driver is worth a try.
Re: Windows 7 x64 Host doesn't show USB devices
Posted: 20. Aug 2013, 10:16
by dgalimov
Will try that soon. Actually, as this device appears when i insert the USB device and have filters turned on, so, i think, it means, that Virtual Box successfully detects the device, however, is not able to work with it for some reason. Is it possible to turn on some debug logging for the Virtual Box and/or VirtualBox USB driver?
I've also checked for "upper filters" for VirtualBox USB device, and the only one value was TsUsbFlt - but this is "Remote Desktop USB Hub Filter Driver from Microsoft Corporation", so i think it's ok.
Re: Windows 7 x64 Host doesn't show USB devices
Posted: 20. Aug 2013, 10:36
by dgalimov
The other strange thing I've noticed - when the USB device is intercepted, it's hard to start ubuntu - it either not booting, hungs while booting or graphic part is not showing - just black screen is shown. However, if i'm able to login via console (Ctrl+Alt+F1) - lsusb command doesn't show anything attached to it.
Re: Windows 7 x64 Host doesn't show USB devices
Posted: 20. Aug 2013, 11:02
by mpack
dgalimov wrote:Will try that soon. Actually, as this device appears when i insert the USB device and have filters turned on, so, i think, it means, that Virtual Box successfully detects the device, however, is not able to work with it for some reason.
When you try to use a USB device, VirtualBox on a Windows host first offers to install the USB filter driver on the host, i.e. the driver which redirects messages to the VM. If you don't allow this driver to be installed, VBox can't use the device. If your host permissions are such that installing a driver isn't allowed, the VM can't use that device.
I still suspect that your host is blocking VBox from installing the necessary drivers. Unfortunately I have no experience of using a 64bit Windows host so I can only offer guesses.
Re: Windows 7 x64 Host doesn't show USB devices
Posted: 20. Aug 2013, 11:23
by dgalimov
mpack wrote:dgalimov wrote:Will try that soon. Actually, as this device appears when i insert the USB device and have filters turned on, so, i think, it means, that Virtual Box successfully detects the device, however, is not able to work with it for some reason.
When you try to use a USB device, VirtualBox on a Windows host first offers to install the USB filter driver on the host, i.e. the driver which redirects messages to the VM. If you don't allow this driver to be installed, VBox can't use the device. If your host permissions are such that installing a driver isn't allowed, the VM can't use that device.
I still suspect that your host is blocking VBox from installing the necessary drivers. Unfortunately I have no experience of using a 64bit Windows host so I can only offer guesses.
You're correct, this is right scenario. Let me describe once again how it happens on my machine.
I) No Virtual Box USB filters are active. You can plug and unplug any USB devices, and Windows normally recognize them and works as usual - however, 'Available USB devices' menu is empty and Virtual Box do not see any of the devices.
II) You create a filter which matches the target USB device. When you plug in the device, Windows shows the new device driver message, when trying to search for Virtual Box usb driver, and loads it after a while. USB device is not functioning neither in host nor in guest. Even no 'safe eject' button. However, usb devices view program from www_nirsoft_net/utils/usb_devices_view.html (i cannot post urls yet

) shows the usb device with the same name and same product id, but vendor id is changed to 'cafe'.
This situation appears at least with USB stick and my phone, Samsung Galaxy S. Each time it searches for a driver first, but later it happens silently - i just plug in the device and no search for driver message appears - i would believe this is expected behavior.
Re: Windows 7 x64 Host doesn't show USB devices
Posted: 21. Aug 2013, 11:15
by dgalimov
I disabled "Usb Virtualization Connector Driver" and it's working! At least, it shows the devices in the virtual box usb devices menu
So this is a bug connected to VirtualPC... If it's not possible to fix it, maybe VirtualBox can give a warning about that?
Re: Windows 7 x64 Host doesn't show USB devices
Posted: 21. Aug 2013, 11:26
by dgalimov
Is it possible to enable debug output of Virtual Box USB driver? Maybe it can help you to investigate the problem...
Re: Windows 7 x64 Host doesn't show USB devices
Posted: 21. Aug 2013, 11:28
by mpack
I wouldn't jump to conclusions about bugs just yet, but perhaps you can raise a
BugTracker ticket about the issue to let the devs know.
ps. I'm not one of the devs, I'm just a user like yourself - these are user forums.
Re: Windows 7 x64 Host doesn't show USB devices
Posted: 21. Aug 2013, 11:52
by dgalimov
Actually, now i've got another problem - Ubuntu doesn't recognize my phone.
Lsusb doesn't show the device, when i've rebooted the guest, it shows the different device, when i click on it, this box popup:

- vboxerror.png (37.02 KiB) Viewed 21905 times