Mac & USB issues

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
ericsusername
Posts: 5
Joined: 22. Dec 2010, 13:57
Primary OS: Mac OS X Leopard
VBox Version: OSE other
Guest OSses: Ubuntu-10.4-64bit

Mac & USB issues

Post by ericsusername »

Host: Mac OS X 10.5.8
VM: Ubuntu 10.4 -64b

Has anyone uncovered a better way to handle USB devices on a mac OS X host?
For every new device I have to shutdown the VM, add a USB filter. Turn the VM back on without the USB, and then plug it in.

And still the results are very inconsistent.

It appears the only the port you specify in the filter will work. when plugged into the other port..

# dmesg | grep usb

usb 1-1: new high speed USB device using ehci_hcd and address 2
usb 1-1: device descriptor read/64, error -110
usb 1-1: device descriptor read/64, error -110

#lsusb //just hangs while the the address number continues to climb and attempt to mount.

Can't tell if that's a different problem with the VM and my 2 USB ports?

I'm just at the early stages of diagnosing this.. If anyone else has any insight or a fix I'd very much appreciate it.
ChipMcK
Volunteer
Posts: 1095
Joined: 20. May 2009, 02:17
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, OSX
Location: U S of A

Re: Mac & USB issues

Post by ChipMcK »

You do not need to specify the port in the USBFilter - leave it blank/empty.
Then VBox will accept the device on any port.
Good Holidays!
ericsusername
Posts: 5
Joined: 22. Dec 2010, 13:57
Primary OS: Mac OS X Leopard
VBox Version: OSE other
Guest OSses: Ubuntu-10.4-64bit

Re: Mac & USB issues

Post by ericsusername »

I never specified a port on the filter, but still there seems to be an issue with which port I select (when inserting the device, I realize my previous lack of clarity, apologies).
It appears that prior to connecting any device that one port is using an EHCI controller and the other is using an OHCI controller. But when a device is connected to the OHCI controlled port, it's recognized as an EHCI device.

#usb-devices

T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 8
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev=02.06
S: Manufacturer=Linux 2.6.32-27-generic ehci_hcd
S: Product=EHCI Host Controller
S: SerialNumber=0000:00:0b.0
C: #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub

T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 8
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0001 Rev=02.06
S: Manufacturer=Linux 2.6.32-27-generic ohci_hcd
S: Product=OHCI Host Controller
S: SerialNumber=0000:00:06.0
C: #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub

#dmesg | grep usb //when connecting to the OHCI controlled port.

usb 1-1: new high speed USB device using ehci_hcd
usb 1-1: device descriptor read/64, error -110

Is there a way to set both ports as EHCI controlled?

Also the way the Mac grabs the devices is still somewhat annoying..
ericsusername
Posts: 5
Joined: 22. Dec 2010, 13:57
Primary OS: Mac OS X Leopard
VBox Version: OSE other
Guest OSses: Ubuntu-10.4-64bit

Re: Mac & USB issues

Post by ericsusername »

I fixed this.. in case anyone comes across the same problem here's what I did.

1) Upgrade to VirtualBox 4.0 (Do they still call it PUEL?)
2) Install virtual box USB extension
3) Upgrade guest additions
4) Power off guest
5) Connect device
6) Add USB filter
7) Power On guest
chrismurphy
Posts: 13
Joined: 9. Feb 2011, 12:21
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Fedora

Re: Mac & USB issues

Post by chrismurphy »

I am having this problem on a Macbook Pro 8,2 running Mac OS X 10.6.8 (host) and VirtualBox 4.1.4. Guest system is Fedora 16, Linux 3.1.0-5.fc16.x86_64.

The flash drive is a Kingston DT R500. Sometimes it's available as /dev/sdb but usually isn't found and instead I get the same errors listed by the original poster, error -110 from Fedora VM. Guest Additions are installed. In the VM window, bottom status bar, USB icon, the Kingston is listed and checked. It is not available in either Mac OS or Fedora.


[root@f16 chris]# usb-devices

T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 8
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev=03.01
S: Manufacturer=Linux 3.1.0-5.fc16.x86_64 ehci_hcd
S: Product=EHCI Host Controller
S: SerialNumber=0000:00:0b.0
C: #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub

T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 8
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0001 Rev=03.01
S: Manufacturer=Linux 3.1.0-5.fc16.x86_64 ohci_hcd
S: Product=OHCI Host Controller
S: SerialNumber=0000:00:06.0
C: #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub

T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=80ee ProdID=0021 Rev=01.00
S: Manufacturer=VirtualBox
S: Product=USB Tablet
C: #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid
chrismurphy
Posts: 13
Joined: 9. Feb 2011, 12:21
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Fedora

Re: Mac & USB issues

Post by chrismurphy »

This problem is reproducible with CentOS 6.
Linux 2.6.32-71.29.1.el6.x86_64 #1 SMP Mon Jun 27 19:49:27 BST 2011 x86_64 x86_64 x86_64 GNU/Linux
chrismurphy
Posts: 13
Joined: 9. Feb 2011, 12:21
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Fedora

Re: Mac & USB issues

Post by chrismurphy »

Looks like maybe a very long standing VirtualBox bug.
https://wiki.rice.edu/confluence/displa ... ox+on+iMac

When I changed the setup for the two virtual machines from two CPUs to one, the problem is apparently resolved.
chrismurphy
Posts: 13
Joined: 9. Feb 2011, 12:21
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Fedora

Re: Mac & USB issues

Post by chrismurphy »

Filed a bug on this here:
https://www.virtualbox.org/ticket/9841
frank
Oracle Corporation
Posts: 3362
Joined: 7. Jun 2007, 09:11
Primary OS: Debian Sid
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux, Windows
Location: Dresden, Germany
Contact:

Re: Mac & USB issues

Post by frank »

Please try the test build provided in ticket 7462. It should fix this problem.
aktaylor
Posts: 1
Joined: 13. Jun 2013, 05:14

Re: Mac & USB issues

Post by aktaylor »

The download link for ticket 7462 is no longer working. Anyone know of a location that it is available?

Thanks!
Post Reply