VirtualBox

Ticket #4519 (closed defect: fixed)

Opened 5 years ago

Last modified 4 years ago

Can not atach USB Device (Aladdin eToken)

Reported by: lkorokh Owned by:
Priority: major Component: USB
Version: VirtualBox 3.0.2 Keywords:
Cc: Guest type: Windows
Host type: Solaris

Description

Hi, On Solaris 2009.06 i cannont attach usb security dongle made by Aladdin Knowledge System (eToken) to the Windows 7 guest. I tried with usb filters configured and with out it. VBox-nofilters.log - attempt to attach device w/o filters configured VBox-fullfilter.log - attempt to attach with autogenerated filter

Looks like the same as #4286.

Attachments

VBox-fullfilter.log Download (59.9 KB) - added by lkorokh 5 years ago.
VBox-nofilters.log Download (59.6 KB) - added by lkorokh 5 years ago.
VBox-VERR_ACCESS_DENIED.log Download (64.5 KB) - added by lkorokh 4 years ago.
VBox-NS_ERROR_INVALID_ARG.log Download (66.1 KB) - added by lkorokh 4 years ago.
VirtualBox-VERR_ACCESS_DENIED.png Download (47.0 KB) - added by lkorokh 4 years ago.
VBox-NS_ERROR_INVALID_ARG.png Download (10.8 KB) - added by lkorokh 4 years ago.
messages.usb.flt Download (36.4 KB) - added by lkorokh 4 years ago.
dmesg.usb.flt Download (17.8 KB) - added by lkorokh 4 years ago.
showvminfo Download (3.2 KB) - added by lkorokh 4 years ago.
vboxusbdrvs_64.zip Download (28.0 KB) - added by ramshankar 4 years ago.
VirtualBox USB 3.1 drivers bleeding edge - amd64
vboxusb.bleededge.messages Download (2.3 KB) - added by lkorokh 4 years ago.

Change History

Changed 5 years ago by lkorokh

Changed 5 years ago by lkorokh

comment:1 Changed 5 years ago by lkorokh

If you need additional research feel free to contact me.

comment:2 Changed 4 years ago by ramshankar

  • Status changed from new to closed
  • Resolution set to fixed

Please try with VirtualBox 3.1 (NOTE: OpenSolaris snv 124 or higher required for USB support). Feel free to re-open the ticket if problem persists.

comment:3 Changed 4 years ago by lkorokh

  • Status changed from closed to reopened
  • Resolution fixed deleted

Hi, Still does not work. What i did:

  1. Ran pkg image-update from snv_111b to snv_127
  2. Ran VirtuaBox and tried to modify setting of my VM (usb controller was enabled). I got error VERR_ACCESS_DINED (VirtualBox-VERR_ACCESS_DENIED.png).
  3. Ran my VM, try to attach usb device. USB Devices menu was empty. Log file attached (VBox-VERR_ACCESS_DENIED.log)

I found that /dev/vboxusbmon has owner root and group sys. RW permission added only for this user and group. Just for fun i changed permissions to 777. After that i tried to modify settings of my vm and didn't get error. Started my vm i saw USB devices menu populated with usb devices (Keyboard, mouse and eToken). Tried to attach eToken to VM - nothing happened. Tried to attach second time and i got error NS_ERROR_INVALID_ARG (VBOX-NS_ERROR_INVALID_ARG.png). Log file attached (VBOX-NS_ERROR_INVALID_ARG.log)

Changed 4 years ago by lkorokh

Changed 4 years ago by lkorokh

Changed 4 years ago by lkorokh

Changed 4 years ago by lkorokh

comment:4 follow-up: ↓ 5 Changed 4 years ago by ramshankar

I presume you used USB filters and then started your VM with the eToken still plugged in and nothing happened?

Could you attach /var/adm/messages file?

comment:5 in reply to: ↑ 4 Changed 4 years ago by lkorokh

Replying to ramshankar:

I presume you used USB filters and then started your VM with the eToken still plugged in and nothing happened?

Could you attach /var/adm/messages file?

If you mean USB filter in VM settings - no, i didn't use it. I plug eToken in after the VM was started. messages will be attached in a next few hours (need to reboot into updated BE). Should i attach messages from first try or from second (permissions on vboxusbmon changed to 777) ?

comment:6 follow-up: ↓ 7 Changed 4 years ago by ramshankar

Please attach after permissions changed and the error when you clicked VM settings was gone.

Also for this device I suggest you plug the device in, start VBox, add a USB filter. Then unplug the device, wait a few seconds for Solaris to fully detach it. Start the VM and plug the device in.

This is because some devices cannot be reliably captured by hijacking it from the host. This is a limitation of Solaris USB implementation although for most stuff it should work if nothing is referencing the device on the host.

comment:7 in reply to: ↑ 6 Changed 4 years ago by lkorokh

Replying to ramshankar:

Also for this device I suggest you plug the device in, start VBox, add a USB filter. Then unplug the device, wait a few seconds for Solaris to fully detach it. Start the VM and plug the device in. referencing the device on the host.

So, i did everything as you suggest. Now i don't see eToken in USB Devcie list menu in running VM. messages.usb.flt and dmesg.usb.flt attached. Please note: there is only one usb attach event in logs, before i create the filter. After filter creation there are no entries in logs showing that i attach eToken to host.

Changed 4 years ago by lkorokh

Changed 4 years ago by lkorokh

comment:8 Changed 4 years ago by ramshankar

Hm the filter is not picking up the device. How does your USB filter look like? VBoxManage showvminfo <your-vm-name> output.

Changed 4 years ago by lkorokh

comment:9 Changed 4 years ago by lkorokh

Here it is. Dont pay attention to Fliter 1, i've just created it to test usb flash. USB Flash doesn't works too.

comment:10 follow-up: ↓ 13 Changed 4 years ago by ramshankar

Strange, the filter looks fine when you insert the device 'vboxusb' module should pick it up, unless it's not loaded. Can you show me the output of "modinfo | grep vb"?

comment:12 Changed 4 years ago by lkorokh

160 fffffffff857e7f0    a88 266   1  vboxnet (VirtualBox NetAdp 3.1.0r55467)
161 fffffffff85c0000  24dc8 265   1  vboxdrv (VirtualBox HostDrv 3.1.0r55467)
215 fffffffff87b7000   44f0 198   1  vboxusbmon (VirtualBox USBMon 3.1.0r55467)
219 fffffffff87c0000   6a20 267   1  vboxflt (VirtualBox NetDrv 3.1.0r55467)
219 fffffffff87c0000   6a20   -   1  vboxflt (VirtualBox NetMod 3.1.0r55467)
231 fffffffff88f5000   67c0 287   1  vboxusb (VirtualBox USB 3.1.0r55467)

comment:13 in reply to: ↑ 10 Changed 4 years ago by lkorokh

Replying to ramshankar:

Strange, the filter looks fine when you insert the device 'vboxusb' module should pick it up, unless it's not loaded. Can you show me the output of "modinfo | grep vb"?

Is there any way to gather additional debug information from VBox or Solaris USB stack? DTrace or something like that?

comment:14 follow-up: ↓ 15 Changed 4 years ago by ramshankar

Would you be willing to try a new VBoxUSBMon and VBoxUSB driver?

comment:15 in reply to: ↑ 14 Changed 4 years ago by lkorokh

Replying to ramshankar:

Would you be willing to try a new VBoxUSBMon and VBoxUSB driver?

Yep, no problem.

Changed 4 years ago by ramshankar

VirtualBox USB 3.1 drivers bleeding edge - amd64

comment:16 Changed 4 years ago by lkorokh

Any instructions?

comment:17 Changed 4 years ago by ramshankar

Here's how to install.

  1. Stop all VMs, close all VBox processes and GUI.
  1. Remove existing driver
    pfexec rem_drv vboxusb
    pfexec rem_drv vboxusbmon
    
  1. Backup old drivers if you want:
    pfexec mv /platform/i86pc/kernel/drv/amd64/vboxusb* ~/backup/
    
  1. Unzip drivers from zip file and load them:
    pfexec cp vboxusb* /platform/i86pc/kernel/drv/amd64/
    pfexec add_drv vboxusbmon
    pfexec add_drv vboxusb
    

You'll get an attach failure for vboxusb and it's normal as there's no USB device it attaches to right now.

  1. Launch VM enabling USB controller in VM, with your filters.

Changed 4 years ago by lkorokh

comment:18 Changed 4 years ago by lkorokh

Cut from messsages attached

comment:19 follow-up: ↓ 20 Changed 4 years ago by ramshankar

Wow, fails early, vboxusb thinks it's not a USB device to begin with.. Okay good I can check now. Thanks!

comment:20 in reply to: ↑ 19 Changed 4 years ago by lkorokh

Replying to ramshankar:

Wow, fails early, vboxusb thinks it's not a USB device to begin with.. Okay good I can check now. Thanks!

Welcome. When you'll find the bug i can test fix in my environment.

comment:21 Changed 4 years ago by sactodave

I'm getting exactly the same thing. After reading the notes I added the drivers and I get the same messages with my token and with my iphone.

comment:22 Changed 4 years ago by ramshankar

Could you try this build:  http://www.virtualbox.org/download/testcase/VirtualBox-3.1.1-SunOS-r55671.tar.gz

Warning: the link will expire in 14 days so download it before then.

Since there were too many changes both in kernel and userland, I decided a full build would be easier for you to test as otherwise I'll have to replace individual files and what not.

Please reboot your system before installing this version to clean any previous USB trials just to be sure.

Thanks.

comment:23 Changed 4 years ago by sactodave

It worked for me! I can see my iphone and communicate with it using itunes. Awesome!!! I have been waiting for this for so long I could cry tears of joy.

5.11 snv_127 i86pc i386 i86pc Solaris

comment:24 follow-up: ↓ 29 Changed 4 years ago by lkorokh

Hi Ram, I confirm that new build works fine. I can use eToken and USB flash devices in my snv_127 64 bit. But there is a minor problem: connection state of device does not replicate to VM. When i physically disconnects usb device from host it does not disappear from VM. Anyway thank you for your great job!

comment:25 follow-up: ↓ 36 Changed 4 years ago by ramshankar

Does the physical disconnection not work for the eToken or does this apply to all USB flash devices you tested? The USB flash disks I've tested disappear from the VM (WinXP/Windows 7 in my case) when physically unplugged from the host.

comment:26 Changed 4 years ago by Ringding

I also tried build r55671, and it's working nicely on osol snv_127. This is the first time that I can use USB with VirtualBox on OpenSolaris, and I've been trying since OpenSolaris 2008/11. Yay!

comment:27 follow-up: ↓ 28 Changed 4 years ago by smino

Same issues on Linux ubuntu 9.10 and virtualbox 3.1r55467. I can see 3 devices, but I cannot check any of them. 1 is the mouse, and two are my gps internal storage and external storage. Garmin Nuvi 765.

comment:28 in reply to: ↑ 27 Changed 4 years ago by ramshankar

Replying to smino:

Same issues on Linux ubuntu 9.10 and virtualbox 3.1r55467. I can see 3 devices, but I cannot check any of them. 1 is the mouse, and two are my gps internal storage and external storage. Garmin Nuvi 765.

Please open a seperate defect for Linux hosts if one doesn't exist already. This defect is specific to USB on Solaris hosts. Since USB is very different across hosts it would only make sense to open a new ticket. Thank you.

comment:29 in reply to: ↑ 24 ; follow-up: ↓ 30 Changed 4 years ago by morettoni

Replying to lkorokh:

Hi Ram, I confirm that new build works fine. I can use eToken and USB flash devices in my snv_127 64 bit. But there is a minor problem: connection state of device does not replicate to VM. When i physically disconnects usb device from host it does not disappear from VM. Anyway thank you for your great job!

I try it into my OpenSolaris (build 128a), I can attach an USB webcam (but no video). When I try to attach my iPod nothing appen, if I try to attach it again I got this:

ERROR: The USB device with UUID {dc1092ed-726d-45d9-8717-da08003fc642} is not currently attached to the host
Details: code NS_ERROR_INVALID_ARG (0x80070057), component USBProxyService, interface IHost, callee nsISupports
Context: "AttachUSBDevice(usbId)" at line 568 of file VBoxManageControlVM.cpp

comment:30 in reply to: ↑ 29 ; follow-ups: ↓ 31 ↓ 32 Changed 4 years ago by ramshankar

Webcams won't work yet. There are performance issue with getting isochronous transfers going. So don't try Webcams or other isochronous devices yet. As for the iPod, does the iPod mount on the host?

comment:31 in reply to: ↑ 30 Changed 4 years ago by morettoni

Replying to ramshankar:

Webcams won't work yet. There are performance issue with getting isochronous transfers going. So don't try Webcams or other isochronous devices yet. As for the iPod, does the iPod mount on the host?

I just try the webcam to see if the USB layer works :) About the iPod I try it with or without it mounted under OpenSolaris. Usually when I insert the iPod OpenSolaris auto-mount it, I'll eject it and try to attach the usb under VirtualBox, without success.

from command line I do this:

VBoxManage controlvm "WinXP Test" usbattach 693ac8db-a638-46cd-9a09-b5643db1fb36

and the output of "VBoxManage controlvm "WinXP Test" usbattach 693ac8db-a638-46cd-9a09-b5643db1fb36" is:

UUID:               693ac8db-a638-46cd-9a09-b5643db1fb36
VendorId:           0x05ac (05AC)
ProductId:          0x1262 (1262)
Revision:           0.1 (0001)
Manufacturer:       Apple Inc.
Product:            iPod
SerialNumber:       000A27001B670D71
Address:            0x5ac:0x1262:1:/pci@0,0/pci1179,1@1a,7
Current State:      Captured

but no iPod under windows :(

comment:32 in reply to: ↑ 30 Changed 4 years ago by morettoni

Replying to ramshankar:

Webcams won't work yet. There are performance issue with getting isochronous transfers going. So don't try Webcams or other isochronous devices yet. As for the iPod, does the iPod mount on the host?

have you some hints for me or other thinks to check under my installation?

comment:33 follow-up: ↓ 34 Changed 4 years ago by ramshankar

No, webcams won't work no matter what you try because I've disabled them in the code because they are too unstable. As for the iPod it's a bug and needs to be fixed.

comment:34 in reply to: ↑ 33 Changed 4 years ago by morettoni

Replying to ramshankar:

No, webcams won't work no matter what you try because I've disabled them in the code because they are too unstable. As for the iPod it's a bug and needs to be fixed.

no problems for the webcam, I hope to see the fix for the iPod asap :) keep in touch!

comment:35 Changed 4 years ago by smino

Is anyone able to get their GPS to work via USB? IE Garmin?

comment:36 in reply to: ↑ 25 Changed 4 years ago by lkorokh

Replying to ramshankar:

Does the physical disconnection not work for the eToken or does this apply to all USB flash devices you tested? The USB flash disks I've tested disappear from the VM (WinXP/Windows 7 in my case) when physically unplugged from the host.

Yep, USB Flash disapears, but eToken does not. VB 3.1.2 + Snv129.

comment:37 Changed 4 years ago by ramshankar

  • Status changed from reopened to closed
  • Resolution set to fixed

Fixed in VirtualBox 3.1.2. Open a new ticket for other devices that don't work.

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use