VirtualBox

Opened 12 years ago

Closed 8 years ago

#9762 closed defect (obsolete)

OSX 10.7.2 USB support broken

Reported by: oli Owned by:
Component: USB Version: VirtualBox 4.1.4
Keywords: Cc:
Guest type: Windows Host type: Mac OS X

Description (last modified by Frank Mehnert)

I can no longer attach USB devices since upgrading to OSX 10.7.2

https://forums.virtualbox.org/viewtopic.php?f=8&t=45376

Previously I could happily connect my iLok dongle via virtualbox's usb... now when I connect it it doesn't connect (doesn't show up in win XP guest and remains available in the virtualbox menu) when i try and save the virtual machine's state i get the error NS_ERROR_CALL_FAILED (0x800706BE). Likewise can't stop... all communication is lost.

Attachments (1)

vbox-usb-logs.zip (31.5 KB ) - added by oli 12 years ago.
logs with usb problems

Download all attachments as: .zip

Change History (26)

comment:1 by Ludovic, 12 years ago

I have the same/identical problem here with a USB smart card reader. When I try to connect it to the guest system I get the error (sorry it is in French):

Échec de la connexion du périphérique USB Gemplus USB SmartCard Reader [0100] à la machine virtuelle Windows 7 (64 bits).

USB device 'Gemplus USB SmartCard Reader' with UUID {2097f32e-b524-40c1-b512-8c6352fcf2f0} is busy with a previous request. Please try again later.

Code d'erreur : NS_ERROR_INVALID_ARG (0x80070057)
Composant : HostUSBDevice
Interface : IHostUSBDevice {173b4b44-d268-4334-a00d-b6521c9a740a}
Fonction appelée : IConsole {1968b7d3-e3bf-4ceb-99e0-cb7c913317bb}

In my case the error is NS_ERROR_INVALID_ARG and not NS_ERROR_CALL_FAILED.

Of course the device is not used on the Mac OS X host (Lion 10.7.2 but the problem was already present in 10.7.1 and maybe also 10.7.0). I guess Apple changed something in the USB layer and broke USB support in VirtualBox.

comment:2 by Ludovic, 12 years ago

Also note that I have the same problem if the guest OS Linux or WIndows. The problem is on the VirtualBox side.

comment:3 by vasily Levchenko, 12 years ago

Could you please attach the logs?

And please note that your host might have pcscd daemon running, which could potentially lock your card reader.

by oli, 12 years ago

Attachment: vbox-usb-logs.zip added

logs with usb problems

comment:4 by vasily Levchenko, 12 years ago

I couldn't reproduce the issue locally my USB flash storages mounted fine here and card reader attaching to guest successfully (but I have to kill pscsd manually first).

Could you please paste here output of

# bash-4.2$ ps -axf | grep pcscd

?

comment:5 by oli, 12 years ago

shouldn't this be on a different ticket... re smart cards?

comment:6 by Rei, 12 years ago

I've noticed the same issue for freeing Bluetooth from Mac OS X host so the Windows host could use it.

Code available at http://github.com/rei-vilo/VirtualBox_Bluetooth_Management and explanations at http://bit.ly/r2hRr0

comment:7 by kensenjiha, 12 years ago

very weird. I had the same issue 2 hours ago. after doing almost nothing and a reboot of host OS X 10.7.2, I can attach USB devices now.

comment:8 by kensenjiha, 12 years ago

When I say nothing. I mean changing the IDE controller from ICH6 to PIIX4. Guest OS is XP x86 SP3.

comment:9 by disjaukifa, 12 years ago

I'm experiencing this as well. This is a major defect in my opinion I have Windows only hardware that I use that right now I'm stuck with not using anything. I hope a fix or workaround is discovered soon!

comment:10 by Chris Murphy, 12 years ago

I do not think this is a 10.7.2 specific problem. I have this problem on 10.6.8 with Linux hosts, on a Macbook Pro with built-in USB and there is no pcscd running on Mac OS. Also the problem goes away when I set CPUs to 1 instead of 2 or more. See bug 9841.

comment:11 by oli, 12 years ago

after installing the extensions pack, USB started working again. I have my VM set to 1 processor

comment:12 by bscardin, 12 years ago

Just wanted to add another datapoint. I had upgraded to 10.7.2 and at the same time bumped my machine up from 1 to 4 CPUs. In this configuration no USB devices would work. I would get an indication that they were plugged in but it would always return an unrecognized device error.

I just updated to 4.1.6 and updated the extensions pack. Still had the same problem.

Changed the system back to 1 processor and USB works again! Still a bug but at least it can be worked around.

comment:13 by Eric Green, 12 years ago

I am having the same general category of problems with two different USB serial port dongles, one being the hoary old PL2303 and the other being a FTDI. Both show up on the properly passed through to Windows when I migrated the Windows XP VM to Parallels 7 (which I downloaded as an eval *after* failing with VirtualBox) and were used successfully to communicate with a Kenwood ham radio from within the (Parallels-imported) virtual machine, thus the problem is clearly something to do with the VirtualBox USB functionality on OSx (since it works under Parallels). Mac OS X 10.7.2, VirtualBox 4.1.8 with latest extensions. Seems that, in general, USB on Mac is broken right now and needs someone to look at it with a debugger to see what's going on.

comment:14 by nonix, 12 years ago

I am having the same issue with the latest VB 4.1.12 + Ext. pack + guest additions. running on Mac osx 10.7.3. The problem seems to be related to the VB does not properly unloads device drivers (kexts), which makes the device occupied by OSX. Also, I don't believe this issue is guest specific, I have tested this problem is consistent on guests running Windws XP (single or multiple CPU(s)) as well as on Linux (32bit or 64bit, single or multiple CPU(s)).

comment:15 by Anton Pomozov, 12 years ago

4.1.12 Same bug. It always was here from the third version as I remember. After rebooting OS X VBox attaches usb devices well until you need attach usb device again several days later. Then reboot again. Can someone explain how to restart only VBox instead whole OS X?

log: 215:40:22.288 nspr-2 Log continuation - Log started 2012-04-24T07:15:53.968639000Z 215:41:23.455 nspr-2 ERROR [COM]: aRC=NS_ERROR_INVALID_ARG (0x80070057) aIID={173b4b44-d268-4334-a00d-b6521c9a740a} aComponent={HostUSBDevice} aText={USB device 'AKS HASP HL 3.25' with UUID {2332d924-7b7e-4f35-930a-855498b3b709} is busy with a previous request. Please try again later}, preserve=false

Last edited 12 years ago by Anton Pomozov (previous) (diff)

comment:16 by sleets, 12 years ago

I run lion 10.7.2 with vbox 4.1.14, the usb still not woring.

comment:17 by David Zuliani, 12 years ago

Hi everyone,

I run Virtual Box 4.1.14 r77400 on my MacBook Air with Mac OS X 10.7.3. I've got the NS_ERROR_INVALID_ARG message for the following devices: a) USB to SERIAL controller b) SafeNet USB hardkey which were working before the last VB upgrade.

I think that's a VB bug and I hope it'll be solved soon. Currently I can't go on with my work because of the USB hardkey failures. As I can understand a VirtualBox 4.1.15 for OS X Mountain Lion hosts is available. Do you think I can use that to solve the problem?

Bye

David

comment:18 by Anton Pomozov, 12 years ago

David, just reboot your Mac (may be just logoff-logon). The VBox is stuck on loading usb drivers on host system. These drivers must be loaded BEFORE you attach the usb device to guest system.

Regards, Anton.

Last edited 12 years ago by Anton Pomozov (previous) (diff)

in reply to:  18 comment:19 by David Zuliani, 12 years ago

Replying to zhivotnoe:

David, just reboot your Mac (may be just logoff-logon). The VBox is stuck on loading usb drivers on host system. These drivers must be loaded BEFORE you attach the usb device to guest system.

Regards, Anton.

Hi Anton, thanks for the suggestion. It works, great answer fast and effective. I've done the following: a) removed all the usb keys/adapters b) reboot the mac c) inserted all the usb devices d) started Virtual Box

Bye and thanks again David

comment:20 by David Zuliani, 12 years ago

Hi, I'm here again to bother you with my stupid issues.

Now I've a handheld device wich I usually connect to the VB Win XP on my mac. I use the XP "active sync" to browse the handheld. Unfortunately the device doesn't appear in the USB port configuration of VB (I've the USB 2.0 (EHCI) controller enabled but no USB device for the handheld device is available).

Any idea?

David

comment:21 by Anton Pomozov, 12 years ago

No idea, David. Try Parallels Desktop 7 for Mac: http://www.parallels.com It's the best virtual hypervizor on OS X.

in reply to:  21 comment:22 by David Zuliani, 12 years ago

Replying to zhivotnoe:

No idea, David. Try Parallels Desktop 7 for Mac: http://www.parallels.com It's the best virtual hypervizor on OS X.

Ok Thanks

David

comment:23 by jyppy65, 12 years ago

I use VBx 4.1.4 with a MacBookAir as a Host... and had this USB issue for weeks. Since I rebooted, problem disappeared.

Thanks for the tip

comment:24 by blueytoo, 11 years ago

Perhaps part of the behavior reported here is bug ticket 7462.

https://www.virtualbox.org/ticket/7462

comment:25 by Frank Mehnert, 8 years ago

Description: modified (diff)
Resolution: obsolete
Status: newclosed
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use