Google Nexus S USB redirection to guest fails

This is for discussing general topics about how to use VirtualBox.
Post Reply
jeinor
Posts: 1
Joined: 26. Jun 2011, 13:24
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Ubuntu

Google Nexus S USB redirection to guest fails

Post by jeinor »

Hi,

I am using VirtualBox 4.0.8 on Windows 7 64-bit Professional. I have two guests, one Ubuntu 11.04 64-bit and one Ubuntu 11.04 32-bit. On these I run Eclipse and other development tools, in order to develop Android applications.

To debug my applications on a real phone, I connect my Google Nexus S via USB and publish/debug the application on the physical phone through Eclipse on the VM. This has worked fine in VMware Player, but I recently switched to VirtualBox which overall seems more responsive and has a cleaner user interface. In VirtualBox, however, I can't get the USB redirection to work for the Nexus S.

I tried other USB devices, like USB sticks, and they work. But when I plug in the Nexus S, the "connected" symbol only shows for a few seconds (if I have the USB filter enabled), then it disconnects. Also, I cannot mount any USB storage on the Nexus S in any of the Ubuntu guests. I have installed the extension pack and enabled USB 2.0, but the command lsusb just shows me the USB 1.1 port hub and the USB 2.0 port hub, nothing else.

I have tried:
  • Installing a pre-beta of VirtualBox 4.1, as per suggestion in the IRC channel.
  • Various combinations of reboots, plug in before enabling filter, plug in with focus, have phone plugged in during startup, etc, etc (this could be twenty other "have tried"-points, but let's keep it at this :) )
  • The same thing on both my Ubuntu guests (installed the 32-bit version particulary for this).
People at IRC (thanks to klaus-vb for his help!) told me it probably was caused by the Nexus S switching USB identities when plugged in. However, I added a USB "any"-filter (with only the vendorId set) which should capture them all, but that doesn't help.

I also found a thread over at xda-developers with people having the same problem. Their solution was to switch to VMware, which is kind of bad for VirtualBox I guess... Check the thread here: http://forum.xda-developers.com/showthread.php?t=882708. However, there are other people who actually got this working on another phone: http://www.balyer.com/android-developme ... 500-phone/. I tried to follow those steps, but my Nexus S just wont show up using lsusb.

I would be happy to help any developer to find this bug, just contact me with information on what kind of logs/information I can extract etc or how I can help. The only thing I cannot help you with is to give you a Nexus S, I am a student and have bought the phone particulary to learn how to develop Android applications and have a good phone to test them on, and I cannot afford to buy one more for you guys :(

Thanks in advance for any response! As I said, I am ready to spend some time to help investigate this if anyone believes it's a bug.
Technologov
Volunteer
Posts: 3342
Joined: 10. May 2007, 16:59
Location: Israel

Re: Google Nexus S USB redirection to guest fails

Post by Technologov »

Report bugs in VBox bugzilla.

Developers rarely read here.
metalchad
Posts: 1
Joined: 13. Jul 2011, 03:26
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Ubuntu 11.04

Re: Google Nexus S USB redirection to guest fails

Post by metalchad »

I believe I am having the same issue with my Samsung Galaxy Epic 4G.

My setup:
Host OS: Windows 7 64bit with VirtualBox 4.0.10+Oracle VM Extension Pack
Guest OS: Ubuntu 11.04 32bit with Guest Additions

I cannot get Ubuntu to recognize my phone. Everything in ubuntu is set up to where it should read the device, added a 50-android.rules for udev and the USB Devices menu in VirtualBox shows it as captured, but it does not show up for lsusb and I believe the following part of the dmesg output could be related to the issue.

Code: Select all

[   20.264166] usb 1-1: new high speed USB device using ehci_hcd and address 2
[   21.312169] usb 1-1: device descriptor read/64, error -32
[   22.480125] usb 1-1: device descriptor read/64, error -32
[   23.605045] usb 1-1: new high speed USB device using ehci_hcd and address 3
[   24.673220] usb 1-1: device descriptor read/64, error -32
[   25.820278] usb 1-1: device descriptor read/64, error -32
[   26.912217] usb 1-1: new high speed USB device using ehci_hcd and address 4
[   26.991189] usb 1-1: device descriptor read/8, error -32
[   27.134249] usb 1-1: device descriptor read/8, error -32
[   28.232990] usb 1-1: new high speed USB device using ehci_hcd and address 5
[   28.292218] usb 1-1: device descriptor read/8, error -32
[   28.436207] usb 1-1: device descriptor read/8, error -32
[   28.541060] hub 1-0:1.0: unable to enumerate USB device on port 1
[   40.228605] usb 1-1: new high speed USB device using ehci_hcd and address 6
[   41.272133] usb 1-1: device descriptor read/64, error -32
[   42.444129] usb 1-1: device descriptor read/64, error -32
[   43.572099] usb 1-1: new high speed USB device using ehci_hcd and address 7
[   44.616247] usb 1-1: device descriptor read/64, error -32
[   45.772216] usb 1-1: device descriptor read/64, error -32
[   46.892102] usb 1-1: new high speed USB device using ehci_hcd and address 8
[   46.958227] usb 1-1: device descriptor read/8, error -32
[   47.101447] usb 1-1: device descriptor read/8, error -32
[   48.232194] usb 1-1: new high speed USB device using ehci_hcd and address 9
[   48.294270] usb 1-1: device descriptor read/8, error -32
[   48.438759] usb 1-1: device descriptor read/8, error -32
[   48.540233] hub 1-0:1.0: unable to enumerate USB device on port 1
Let me know if you were able to log a bug, if you were kindly post the url so I can confirm that more people are experiencing this issue.
ssteph38
Posts: 4
Joined: 8. Jul 2011, 15:43
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Kubuntu 11.04

Re: Google Nexus S USB redirection to guest fails

Post by ssteph38 »

Hello,

I struggle with Samsung device Galaxy Tab 7" for more than a month now. I suspected your problem is the same
than mine. See my post to check.

http://forums.virtualbox.org/viewtopic. ... ab#p192955

I checked and tested the things below :
- clean Windows Host by removing VB, registry clean, re-install : failed.
- upgrade VB to every new version since I discovered this problem : failed.
- download new kernel from kernel.org and compile it : failed.
- test different generic filter : failed.

What I know :
- It runs perfectly on a real Linux box.
- I succeeded on a "very old" VB box (will try to look the version number).
- Other hardware such as HTC or Motorola works without problem.

Yesterday I had a look at VB usb related ticket to add one because its seems the only way.

Regards.
komoxo
Posts: 3
Joined: 30. Sep 2011, 16:19
Primary OS: MS Windows XP
VBox Version: PUEL
Guest OSses: MS Windows XP

Re: Google Nexus S USB redirection to guest fails

Post by komoxo »

Same problem to me.

For Nexus S, I tried the following conbinations:

Host: Win XP 32bits, Win XP 64bits, Win 7 64bits
Guest: Ubuntu 10.10 64bits, Ubuntu 11.04 64bits

The VB device menu shows the Nexus S USB is captured, but it is not listed by lsusb on guest. I do setup the USB rules file because I got a HTC Android phone that works fine under the same setup. Also Nexus S ADP works on host.

I will try in on 4.1.8...
GeorgeGW
Posts: 1
Joined: 27. Jun 2012, 03:35

Re: Google Nexus S USB redirection to guest fails

Post by GeorgeGW »

I have the same problem. Here is my set up.

host: win7 64bit
guest: ubuntu 10.04 LTS
vbox: 4.1.10

My HTC evo 4G phone recognized fine by ubuntu, but not Samsung Google Nexus One.

Has anyone found a solution yet?
Post Reply