VirtualBox

Ticket #491 (new defect)

Opened 1 year ago

Last modified 2 weeks ago

iphone not connecting through to itunes on windows guest -> fixed in 2.1

Reported by: daishi Assigned to:
Priority: major Component: USB
Version: VirtualBox 2.0.0 Keywords:
Cc: Guest type: other
Host type: Linux

Description

i tried virtualbox after encountering the following behavior under vmware:

http://www.vmware.com/community/thread.jspa?messageID=692925&#692925

but was unsuccessful in syncing to the iphone via itunes.

it appeared that virtualbox had problems with the iphone earlier than vmware, in that windows never acknowledged any usb device at all.

Attachments

WinXP-2007-08-26-23-52-36.log (36.4 kB) - added by daishi on 08/27/07 09:00:51.
boot, attach iphone, toggle usb button in vbox window, get error msg, shutdown
VBox.log (27.6 kB) - added by milli on 09/10/07 23:08:36.
Log from Windows XP + SP2 (clean), iTunes 7.4.1 installed, connect iPhone -> ABORT
Windows XP-2008-07-20-12-10-55.log (39.2 kB) - added by nohn on 07/20/08 12:15:41.
Ubuntu 8.04, Virtualbox 1.6.2, iTunes 7.7, iPhone 1 (2G)

Change History

08/09/07 16:12:40 changed by sandervl73

Which host? Please attach your VM log. Select Machine->Show Log for the right VM in the GUI.

08/09/07 16:13:26 changed by sandervl73

And which windows guest. Please include such basic information in the future if you file bug reports.

08/27/07 09:00:51 changed by daishi

  • attachment WinXP-2007-08-26-23-52-36.log added.

boot, attach iphone, toggle usb button in vbox window, get error msg, shutdown

08/27/07 09:01:56 changed by daishi

Just added the VM log.

Host is: Ubuntu 7.04 (feisty). Regularly updated. Guest is: Windows XP SP2

09/10/07 23:08:36 changed by milli

  • attachment VBox.log added.

Log from Windows XP + SP2 (clean), iTunes 7.4.1 installed, connect iPhone -> ABORT

09/10/07 23:12:59 changed by milli

I am seeing the same problem with a clean Windows XP + SP2 install, with iTunes 7.4.1. VBox is version 1.5.0 release, obtained via "apt-get" on Ubuntu 7.04 (feisty) after adding the deb line to /etc/apt/sources.list. Connect the iPhone, it makes a "boing" sound, so Windows recognized a USB device was connected, then VBox 1.5.0 just Aborts. No core file. I have Ubuntu configured via a HAL "ignore" entry to not attach any driver for the iPhone. Attached my log file (VBox.log).

10/22/07 07:06:50 changed by aviv

same problems here (win xp sp2 guest, ubuntu gutsy host, 64bit, virtualbox 1.5.2

a bit more info: dmesg shows:

VirtualBox[6899] trap divide error rip:2aaaad1b2679 rsp:41225dc0 error:0

same error every time after virtualbox crashes (once i plugin the iphone)

10/22/07 09:21:03 changed by frank

Ah, interesting detail. Please could you provide a core dump? See http://www.virtualbox.org/wiki/Core_dump for how to create a core dump.

10/22/07 15:20:50 changed by aviv

even compressed it's 44Mb, and system can't accept it - do you have an ftp so i can upload it?

10/22/07 15:46:15 changed by frank

Hmm, you could use some free provider (e.g. http://www.file-upload.net/) and tell me the address via private E-mail (frank at innotek.de).

10/22/07 18:52:19 changed by frank

Thanks, got it. Very helpful, investigating...

10/29/07 03:23:27 changed by chronos

Any knews on this issue?

I can confirm this issue too. I am using VirtualBox 1.5.2 on Ubuntu gusty (7.10). I installed a windows XP SP2 guest (Windows Unattended Edition v6 http://www.windowsue.com) and installed iTunes on it. After this, the moment I selected the iphone to connect to the virtual machine, It aborted.

The strange thing, though, was that BEFORE installing iTunes, I could connect the iphone to the VM without problems. It was detected as a regular photo camera but couldn't access any photos... The VM started crashing AFTER installing iTunes.

Is it possible iTunes is responsible por breaking USB support?

10/29/07 16:33:59 changed by kfries6

@chronos - I am seeing the same behavior, with one addition. If I start my VBox Windows instance, with the phone plugged in. And, the VM was configured to understand the iPhone, Windows crashes before logon.

Therefore, building on chronos's observations...

When the phone was first plugged in, Windows jumped through its normal hoops of discovery. It then appeared to install a driver of some sort from the device itself. Could the problem be with that DRIVER and something installed by iTunes. Windows will generally configure a protocol handler in the registry. The phone by itself does not have the handler in place. iTunes runs fine as long as the phone is not attached. So iTunes itself is fine. BUT, once the automatic launch process starts, or iTunes starts its communication with the phone, Windows goes down in an ugly crash.

So, that makes me wonder if it is the actual driver that facilitates the actual communications that could be the problem?

11/28/07 14:00:38 changed by cdunham

Probably related to non-standard Apple USB...

http://communities.vmware.com/thread/91715?start=90&tstart=0

02/27/08 19:31:14 changed by kfries6

Any shot this may actually be fixed before it gets to 1 year old?

02/28/08 09:43:38 changed by frank

We hope that we can fix several USB-related problems with the next release (1.6). Though no ETA yet.

07/10/08 21:22:58 changed by frank

  • owner changed.
  • component changed from other to USB.

07/20/08 12:15:41 changed by nohn

  • attachment Windows XP-2008-07-20-12-10-55.log added.

Ubuntu 8.04, Virtualbox 1.6.2, iTunes 7.7, iPhone 1 (2G)

07/20/08 12:16:29 changed by nohn

I can reproduce the same behaviour with Virtualbox 1.6.2, iTunes 7.7 on Ubuntu 8.04

07/22/08 01:24:45 changed by msingh

I can confirm this behaviour with my iPod touch (firmware 1.1.5).

This is with Virtualbox 1.6.2 (the latest version) with Windows XP Professional as guest on Ubuntu Hardy (with all packages up to date).

iTunes version 7.7 (latest).

Initially, when I plugged in the iPod touch, I got a bunch of notifications at the bottom indicating that windows was recognizing the iPod. However, in iTunes, I get a strange error :

Virtualbox, iTunes could not connect to the iPhone because an unknown error occured (0xE8000035)

After the first few times time, windows does not even appear to detect the iPod and iTunes has gone silent as well.

Its a pretty old bug and it would be nice to know what progress is being made on this, if any. What is the culprit here ? I have read that VMware is also showing it up, which suggests that it might be a linux issue of some sort ?

(in reply to: ↑ description ) 08/09/08 01:46:28 changed by Morimando

I can also confirm this behaviour with the iPod as well as a Nokia 7900 Prism (i suspect both are having the same problem, since the Nokia PC Suite behaves almost identical to iTunes, not recognizing the Phone when plugged in, although drivers were installed by the Windows guest) If more information is needed, let me know. I would be happy, if this bug was solved/solveable, since VirtualBox is absolutely awesome in any respect!

(follow-up: ↓ 20 ) 08/10/08 16:45:35 changed by noname51

I also confirm the same issue. My setup: VirtualBox 1.6.4 iTunes 7.7 iPod Touch firmware 1.1.5

This issue has been going for a long time and for me it is the only reason to boot into native Windows!

Cheers.

(in reply to: ↑ 19 ) 08/11/08 16:41:13 changed by Morimando

Replying to noname51:

I also confirm the same issue. My setup: VirtualBox 1.6.4 iTunes 7.7 iPod Touch firmware 1.1.5 This issue has been going for a long time and for me it is the only reason to boot into native Windows! Cheers.

Forgot to mention that in my previous post: VirtualBox 1.6.4, iPod Firmware 1.5 and iTunes 7.7. The guest OS is Windows XP, host OS is Gentoo Linux amd64 2.6.26

08/26/08 20:16:23 changed by bherrmann7

Confirmed today with iPod touch and VirtualBox 1.6.4 with Guest as Windows Vista

08/26/08 20:50:21 changed by frank

  • version changed from VirtualBox 1.4.0 to VirtualBox 1.6.2.

08/26/08 20:50:33 changed by frank

  • version changed from VirtualBox 1.6.2 to VirtualBox 1.6.4.

(in reply to: ↑ description ) 09/05/08 02:43:10 changed by jvboyle

Same issue on Version 2.0 of VirtualBox. Why has vmware gotten this fixed months ago and it still an issue here

09/05/08 08:14:23 changed by frank

  • version changed from VirtualBox 1.6.4 to VirtualBox 2.0.0.

09/06/08 22:44:42 changed by nathan

Same problem here. Windows XP Home in VirtualBox 2.0 on Ubuntu 8.04 64-bit. Can't sync iPhone (which was the only reason I set up a Windows VM at all...). iPhone is recognized by Windows, but not iTunes.

09/07/08 08:22:38 changed by rince

Yes, same problem here as well. Windows XP Professional in VirtualBox 2.0 on Ubuntu 8.04 (32bit). iphone is recognized by Windows, but itunes can't talk to it. :-(

09/09/08 07:26:01 changed by zeddock

VB 2.0 on Hardy 8.04 64-bit.

Looks like this is really becoming a sought-after option through Virtualbox. Is the issue being addressed?

Thanx!

zeddock

09/13/08 03:58:02 changed by georges

In fact, I would think the problem is related to the link speed (USB intimacy), I have the same problem described above with VB 2.0 on XP SP2 guest, when I connect: - MP3 Kenwood HD20GA7 (which has a specific interface to relate with the mp3 to encode)

And with my IPAQ 212 in "fast USB mode" (RNDIS), lock and Error message.

The interesting point is that when I switch back to slow USB (serial), then it works fine! Of course for my IPAQ I connect only in "serial" (Slow mode), but for my Mp3 I am stuck (no option to go slower).

=> I had hoped the 2.0 would solve the issue but not yet (I tried this morning again).

09/13/08 11:09:18 changed by nohn

Still reproducable with 2.0.2

09/15/08 21:44:36 changed by Matir

Is there any progress on this bug? I really like VirtualBox, and I'm not as big a fan of VMWare, but if I want to be able to access my iPod, it seems like I might have to do that.

(follow-up: ↓ 34 ) 09/19/08 09:53:14 changed by sandervl73

  • host changed from other to Linux.

In case one of you is in for some adventure. The iPhone works if you modify the linux sources and recompile your kernel:

Modify MAX_USBFS_BUFFER_SIZE to 128K in drivers/usb/core/devio.c

We're working on a better solution.

09/19/08 20:37:49 changed by rince

Thank you, thank you, thank you !

This neat trick worked. I recompiled the kernel with the sugeested changes and now it works like a charm !!!

You really saved my day!

(in reply to: ↑ 32 ) 09/19/08 23:53:26 changed by Morimando

Replying to sandervl73:

In case one of you is in for some adventure. The iPhone works if you modify the linux sources and recompile your kernel: Modify MAX_USBFS_BUFFER_SIZE to 128K in drivers/usb/core/devio.c We're working on a better solution.

Could you please explain that more precisely? Can I just change the line

#define MAX_USBFS_BUFFER_SIZE 16384

to

#define MAX_USBFS_BUFFER_SIZE 128k

? Or do I just enter 128 without the 'k'? Or is it a whole different line? TIA!

(follow-up: ↓ 36 ) 09/20/08 00:22:57 changed by rince

Hi sandervl73,

the line is correct I replaced it with

#define MAX_USBFS_BUFFER_SIZE 131072

(128k -> 128x1024)

(in reply to: ↑ 35 ) 09/20/08 00:43:54 changed by Morimando

Replying to rince:

Hi sandervl73, the line is correct I replaced it with #define MAX_USBFS_BUFFER_SIZE 131072 (128k -> 128x1024)

Jup, that's what i figured, too... and it works. Wanted to add it right now, but I see you beat me to the punch, rince ;) Trying to test whether it works for the Nokia phone as well (which would be awesome), will let you know whether it fixed both issues (though it is not strictly speaking on topic, it might be useful). As for the iPod, the fix seems to work flawlessly, the device is being recognized and synchronized!

(follow-up: ↓ 38 ) 09/20/08 05:01:22 changed by zeddock

Shucks! Still to much of a newb to know how to recompile. Anyone want to hold my hand?

Thanx,

zeddock

(in reply to: ↑ 37 ) 09/20/08 12:04:41 changed by Morimando

Replying to zeddock:

Shucks! Still to much of a newb to know how to recompile. Anyone want to hold my hand? Thanx, zeddock

Sure... I assume you have your kernel sources ready and compiled the kernel you're running yourself, else you might want to google on a "How to compile a kernel" -code, since I don't want to digress too much here. If you have your (configured) kernel ready, navigate (in a console) to /usr/src/linux (if you set a symlink, else /usr/src/linux-2.6.xx). Enter 'nano -w /usr/src/linux/drivers/usb/core/devio.c' and hit CTRL+W to search for 'MAX_USBFS_BUFFER_SIZE'. The first occurence should be #define MAX_USBFS_BUFFER_SIZE 16384. Change this line to #define MAX_USBFS_BUFFER_SIZE 131072 Then CTRL+O and CTRL+X (save and close), navigate to /usr/src/linux and enter 'make && make modules && make modules_install'. After the kernel is recompiled, cp /usr/src/linux/arch/x86_64/boot/bzimage to /boot/kernel-2.6.XX. Also copy the .config and the System.map to /boot/ to have a backup of your settings. Make sure the /boot/kernel-2.6.xx is in /boot/grub/menu.lst (and/or symlink 'vmlinux' is pointing to the 'new' kernel), so that Grub boots the right kernel. Well and then you should be ready (maybe recompile nvidia-drivers and alsa-drivers, depending on your config as well as the virtualbox-modules). Recompiling the nvidia drivers might be necessary, if the kernel changed since the last time it was compiled, alsa drivers are only necessary, if you do not use the in-kernel drivers (like me), which you might want to do if you have a HD audio chip that doesn't work ootb. You may email me, if you've got further questions. I also want to add that my Nokia now works flawlessly inside the VirtualBox, thanks so much for the fix, guys!

(follow-up: ↓ 41 ) 09/20/08 22:10:20 changed by jjbudd3

I have tried to just compile the usbcore.ko module, but this did not work. Why should it be necessary to re-compile the entire kernel when the code is contained only in the module? JJB

09/21/08 01:24:31 changed by jjbudd3

Well whatever the reason, re-compiling the kernel does the trick and the iphone talks to itunes as advertised. Thanks for the tip. JJB

(in reply to: ↑ 39 ) 09/21/08 02:44:20 changed by zeddock

"Sure... I assume you have your kernel sources ready and compiled the kernel you're running yourself, else you might want to google on a "How to compile a kernel" -code, since I don't want to digress too much here."

Thank you so much for taking the time to describe the procedure. You scared the crap out of me so I will wait for now, until someone provides the fix in another fashion.

I would be willing to put some money into this fix but I cannot risk my system to my unsure hands.

Zeddock

(follow-ups: ↓ 43 ↓ 71 ) 09/21/08 04:22:26 changed by remainder

No need to recompile the whole kernel -- this should work on Ubuntu Hardy:

sudo apt-get build-dep linux-source-2.6.24
sudo apt-get install linux-source-2.6.24 build-essential
tar -jxvf /usr/src/linux-source-2.6.24.tar.bz2
cd linux-source-2.6.24/drivers/usb/core
perl -pi.bak -e 's/16384/131072/' devio.c
make -C /lib/modules/`uname -r`/build/ M=`pwd` modules
strip --strip-debug usbcore.ko
sudo install -m644 -b usbcore.ko /lib/modules/`uname -r`/kernel/drivers/usb/core
sudo depmod -ae
sudo update-initramfs -u
sudo reboot

(in reply to: ↑ 42 ; follow-up: ↓ 45 ) 09/21/08 10:26:40 changed by nohn

Replying to remainder:

No need to recompile the whole kernel -- this should work on Ubuntu Hardy:

Doesn't work.

09/21/08 11:06:49 changed by mikeymckay

I followed this guide for compiling the kernel:

http://www.howtogeek.com/howto/ubuntu/how-to-customize-your-ubuntu-kernel/

Which was pretty straightforward. Before the "make-kpkg clean" line I edited the devio.c file as specified above.

I rebooted and itunes and my ipodtouch now work inside virtualbox. Unfortunately I seem to have lost my Ubuntu sound drivers in the process. :-(

(in reply to: ↑ 43 ) 09/21/08 22:38:08 changed by remainder

Replying to nohn:

Replying to remainder:

No need to recompile the whole kernel -- this should work on Ubuntu Hardy:

Doesn't work.

People may be more helpful if you provide more details.

09/21/08 22:51:58 changed by xente

Thanks for the fix. It works.

(follow-up: ↓ 52 ) 09/22/08 06:23:55 changed by zeddock

"sudo apt-get build-dep linux-source-2.6.24 sudo apt-get install linux-source-2.6.24 build-essential tar -jxvf /usr/src/linux-source-2.6.24.tar.bz2 cd linux-source-2.6.24/drivers/usb/core perl -pi.bak -e 's/16384/131072/' devio.c make -C /lib/modules/uname -r/build/ M=pwd modules strip --strip-debug usbcore.ko sudo install -m644 -b usbcore.ko /lib/modules/uname -r/kernel/drivers/usb/core sudo depmod -ae sudo update-initramfs -u sudo reboot "

Will this work for 64 bit please?

Thanx.

Zeddock

09/22/08 10:17:29 changed by georges

Hi,

I do not know for the ipod, but it made my opensuse slower (mouse specially was sluggish... on the USB port).

=> For my ipaq (sorry out of this direct ipod touch issue), it did not change anything compared to my initial post.

The nice trick to recompile the module (and not the full kernel) works though

Waiting for a "virtual box" solution....

09/22/08 13:49:55 changed by crobe

Hi, thanks for the hint for a fix, could someone provide a usbcore.ko module for a default ubuntu 2.6.24-21-generic kernel? I'm behind a 3G connection and getting 100mb for compiling a kernel is not what I intend. Thanks,

-rob

(follow-up: ↓ 88 ) 09/22/08 19:49:58 changed by crobe

OK, was a piece of work but I got it now.

http://www.speedshare.org/download.php?id=1A5FEE2413 ( I hope its legal to post it here ) is a usbcore.ko module for Ubuntu linux-image-2.6.24-21-generic.

Go to /lib/modules/2.6.24-21-generic/kernel/drivers/usb/core, backup your current module, get mine, put it there, run "depmod -ae", run "update-initramfs -u" and reboot. Everything as root ( use sudo ).

Works perfectly with iTunes 7.7 and my iPod Touch 2.0.2.

09/22/08 20:41:24 changed by tienhn

remainder, Thanks for the tips. After building and installing the usbcore.ko, I can sync with iPod Touch no problem. A strange thing however is that I can no longer connect to an older iPod mini (normal USB disk type). Other USB drive seem to work fine still. Just FYI.

Cheers.

(in reply to: ↑ 47 ) 09/22/08 20:43:20 changed by tienhn

Replying to zeddock:

"sudo apt-get build-dep linux-source-2.6.24 sudo apt-get install linux-source-2.6.24 build-essential tar -jxvf /usr/src/linux-source-2.6.24.tar.bz2 cd linux-source-2.6.24/drivers/usb/core perl -pi.bak -e 's/16384/131072/' devio.c make -C /lib/modules/uname -r/build/ M=pwd modules strip --strip-debug usbcore.ko sudo install -m644 -b usbcore.ko /lib/modules/uname -r/kernel/drivers/usb/core sudo depmod -ae sudo update-initramfs -u sudo reboot " Will this work for 64 bit please? Thanx. Zeddock

Should work for AMD64 too. I have done it and it fixed my connection with iPod Touch. Cheers.

09/22/08 23:25:00 changed by dnz16

It works partially(?)...

Host: Linux Slackware
Linux version 2.6.24.7-smp with #define MAX_USBFS_BUFFER_SIZE 131072

Guest: WindowsXP sp3
Synchronizing iPod-touch; OK
Updating iPod-touch firmware 2.0 -> 2.1; "gives diverse faults with itunes" and set iPod to recovery mode. After recovery (connected to other pc), sync works back fine within guest...

...but still a giant leap forward ;)

09/23/08 06:25:52 changed by eighthsin

I followed crobe's module and instructions. No errors. iTunes now recognizes my ipod touch.

However I can not sync music, nor update the firmware.The ipod indicates a sync taking place, but eventually times out and returns to the regular lock screen. The process in itunes just hangs. Using iTunes 8 (latest), in XP SP3 on a Kubuntu Hardy host. Using latest vbox (2.0.2).

Sadly I cannot offer any input on how to fix it, but I will be happy to provide logs if someone wants to tell me which may be of some use. I will mess around some more tomorrow, but I just wanted to get a status out there.

In either case, I feel this is a huge step forward!!

09/23/08 07:52:17 changed by bkummel

Interesting. Finally there's something happening regarding to this topic. I hope a "real" solution by VirtualBox itself will come out soon, because I don't want to mess around with my kernel...

(follow-up: ↓ 57 ) 09/23/08 08:18:37 changed by zeddock

Magical!

Worked for me on 64bit Ubuntu 8.04, latest vbox and iPhone3 3G. iTunes version 8 BTW.

Thanx all!

zeddock

(in reply to: ↑ 56 ) 09/23/08 16:35:40 changed by dgtlrift

subscribe

09/23/08 17:41:33 changed by stewfan

hm, want to subscribe as well, why is that disabled! ... a bit ot, anyway..! :)

09/23/08 17:54:28 changed by stewfan

It seems not to work if I replace usbcore.ko with the file from the link or using remainders steps. The error messsage is still unknown error occured (0xE8000035) and the phone won't appear in the list. Using ubuntu hardy, virtualbox 2.0.2, mounted usbfs, winxp sp2, current itunes 8, iphone 1. gen with fw 2.1. Has it anyone else running with a very similar configuration?

Thanks

(follow-up: ↓ 67 ) 09/23/08 23:15:11 changed by scottywz

Pretty interesting the only thing keeping the iPhone from working in VBox is a USBFS buffer size.

Makes me wonder how VMware fixed it without overwriting the kernel.

09/23/08 23:39:09 changed by eighthsin

stew, do you have EHCI (USB 2.0) enabled? try upgrading to SP3 as well, I think that was necessary to get the iphone working under vmware.

09/24/08 02:19:21 changed by shazow

Doesn't work for me.

Running:

Kernel 2.6.26-gentoo-r1 with modified MAX_USBFS_BUFFER_SIZE, VirtualBox 2.0.2, Windows XP Pro with all the latest updates, iTunes 8.0, iPhone 3G 2.1.

Also tried briefly on an Ubuntu Hardy machine running 2.6.24-20, still no luck.

In both cases, 0xE8000035 comes up when the iPhone is plugged in and then iTunes is started. If the iPhone is plugged in while iTunes is already running, nothing happens until iTunes is restarted.

Tried plugging/unplugging the iPhone in different stages, no help. I noticed that in some cases, dmesg said:

  usb 1-1: new high speed USB device using ehci_hcd and address 10
  usb 1-1: configuration #1 chosen from 3 choices
  usb 1-1: usbfs: interface 0 claimed by usbfs while 'VirtualBox' sets config #3

While in others, the VirtualBox line was missing. Neither worked with iTunes.

I'm really desperate to get my iPhone to sync, so I'm open to all sorts of fun kernel modifications.

09/24/08 02:47:25 changed by eighthsin

have you tried blacklisting the iphone in your host OS? linux will mount the iphone as a camera.

09/24/08 03:20:06 changed by stewfan

I guess ehci is enabled, as far as the host is concerned. I think there is ot option in VBox. The module ehci_hcd is loaded. I guess otherwise windows wouldn't recognize the iphone at all. I'll test sp3, but since shazow has the smae problem, probably there's another variable that makes it work or not.

09/24/08 03:53:06 changed by shazow

It works!

I had to run VirtualBox as root, and now it can connect. Running as a normal user still doesn't work. I also turned off hald, but I don't think that's related.

Very exciting.

09/24/08 07:35:13 changed by tienhn

Have you added your user name into vboxusers group? Also, you may need to add GROUP="vboxusers" in a couple of lines in the udev rules file.

Cheers,

(in reply to: ↑ 60 ) 09/24/08 15:02:47 changed by dgtlrift

Replying to scottywz:

Pretty interesting the only thing keeping the iPhone from working in VBox is a USBFS buffer size. Makes me wonder how VMware fixed it without overwriting the kernel.

Take a look at this thread: http://www.uwsg.indiana.edu/hypermail/linux/kernel/0603.0/0217.html

It seems that there is a malcontent about keeping vs changing this value to allow user space app developers to be "lazy" about how they handle USB data transport.

I get the impression that the patch mentioned above is the "quick and dirty" work around, until they can modify the algorithm to handle the communication better.

09/25/08 02:08:00 changed by stewfan

Still no success (i.e. same error message) with sp3 and/or starting as root... :/

09/25/08 03:41:37 changed by shazow

Still haven't been able to get this working as a normal user. Looks like all of my devices have the correct permissions:

# ls -lah /dev/vboxdrv
crw-rw---- 1 root vboxusers 10, 59 Sep 23 21:37 /dev/vboxdrv
# groups shazow
disk wheel audio cdrom video usb users cron plugdev speech games qemu scanner vboxusers vmware shazow

Unfortunately my /dev/usbdev* devices are owned by root:root by default, so I had to add a udev rule:

# cat /etc/udev/rules.d/10-local.rules
SUBSYSTEMS=="usb", ATTRS{product}=="iPhone", NAME="%k", SYMLINK="iphone", GROUP="usb"
# ls -lah /dev/usbdev*
crw-rw---- 1 root plugdev 189,  9 Sep 24 21:24 /dev/usbdev1.10
crw-rw---- 1 root usb     254, 30 Sep 24 21:24 /dev/usbdev1.10_ep00
crw-rw---- 1 root usb     254, 27 Sep 24 21:25 /dev/usbdev1.10_ep02
crw-rw---- 1 root usb     254, 31 Sep 24 21:25 /dev/usbdev1.10_ep04
crw-rw---- 1 root usb     254, 28 Sep 24 21:25 /dev/usbdev1.10_ep81
crw-rw---- 1 root usb     254, 29 Sep 24 21:25 /dev/usbdev1.10_ep83
crw-rw---- 1 root usb     254, 32 Sep 24 21:25 /dev/usbdev1.10_ep85
[... snip]

So it does set the permissions correctly, and I have the correct permissions, but iTunes still gives the same error when I run it as a normal user. Root still works fine.

Any idea what other devices VirtualBox might be accessing for this that it doesn't find permissions to?

09/25/08 04:16:34 changed by eighthsin

Are you able to fully sync running as root? Transfer music, firmware, etc?

I gave myself access on /etc/udev/rules.d/40-permissions.rules by doing:

# USB serial converters
SUBSYSTEM=="usb_device", GROUP=”usbusers”,  GOTO="usb_serial_start"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GOTO="usb_serial_start"
GOTO="usb_serial_end"
LABEL="usb_serial_start"
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", \
                                        MODE="0660", GROUP="dialout"
LABEL="usb_serial_end"

I don't understand rules.d at all, I just picked that up on google.

(in reply to: ↑ 42 ) 09/29/08 02:02:09 changed by dgtlrift

Replying to remainder:

No need to recompile the whole kernel -- this should work on Ubuntu Hardy: {{{ sudo apt-get build-dep linux-source-2.6.24 sudo apt-get install linux-source-2.6.24 build-essential tar -jxvf /usr/src/linux-source-2.6.24.tar.bz2 cd linux-source-2.6.24/drivers/usb/core perl -pi.bak -e 's/16384/131072/' devio.c make -C /lib/modules/uname -r/build/ M=pwd modules strip --strip-debug usbcore.ko sudo install -m644 -b usbcore.ko /lib/modules/uname -r/kernel/drivers/usb/core sudo depmod -ae sudo update-initramfs -u sudo reboot }}}

Followed as prescribed and was able to detect and sync iphone. Then I got too ambitious and tried upgrading and now it is an expensive paperweight. This is lame.

(follow-up: ↓ 78 ) 09/29/08 03:04:09 changed by tienhn

Unless you have "jail break" your device, there is a great chance that you still can plug the device back into a native Windows system and rebuild your device back to factory condition. Also, using your device with VirtualBox is not violating any guaranty condition so you can just bring it back to Apple store to get help. This is just a case of flash upgrade went bad, it happen all the time :(.

Hope you can recover from this. Cheers,

09/29/08 03:11:37 changed by nathan

I had the same problem. I can sync, but trying to upgrade just leaves the phone in recovery mode. I had to restore/upgrade the phone on a mac, and then I could connect it to my VM again and reload my backup.

09/29/08 03:22:32 changed by tienhn

The firmware upgrade problem is not related or isolate to iPod/iPhone nor VirtualBox.

In general you should not use Virtual Machine to perform firmware upgrade. The reason is that before upgrade the device, the software must take the device off line and then set it into a different mode (recovery, native, or whatver they call it) so thtat it can push the firmware over before reboot; once the device is in this mode, your virtual machine won't reconnect the USB link any more and software won't be able to communicate with the device any more. Thus, your device is stuck in this limbo mode.

I have seen this happen to other USB device such as upgrade firmware for mobile phone.

So, the moral lesson: do not upgrade firmware on virtual machine, any virtual machine not only VirtualBox.

(follow-up: ↓ 79 ) 09/29/08 05:36:27 changed by nathan

I haven't tried another firmware update since doing this, but I've now set a USB filter in VirtualBox that will connect any device with "Apple Inc." in the Manufacturer field to the VM so that the phone will reconnect in recovery mode. Maybe this will help?

09/29/08 06:33:33 changed by zeddock

hmmm. That sounds like a great idea! Hope someone can check it soon. Then maybe you can explain how to do it for us newbs?

zeddock

09/29/08 09:29:39 changed by lixiaohong

i'm ok now. this is my info:

NoteBook?: Dell latitude D830 OS: CentOS 5.2 ( kernel 2.6.18-92.1.13) Virtualbox: 1.6.6 Guest: windows xp sp2 Iphone: 16G ( 1.1.4)

before I start virtualbox, often do the following commands:

sudo chown -R xiaohong:vboxusers /proc/bus/usb sudo chmod -R g+w /proc/bus/usb

then I can use it to sync music and movie. it's great!

(in reply to: ↑ 72 ) 09/29/08 16:16:46 changed by dgtlrift

Replying to tienhn:

Unless you have "jail break" your device, there is a great chance that you still can plug the device back into a native Windows system and rebuild your device back to factory condition. Also, using your device with VirtualBox is not violating any guaranty condition so you can just bring it back to Apple store to get help. This is just a case of flash upgrade went bad, it happen all the time :(. Hope you can recover from this. Cheers,

I can confirm that I can restore (and upgrade) from another native Windows Machine. My iPhone is now a phone again. It is no longer lame.

(in reply to: ↑ 75 ) 09/29/08 16:20:11 changed by dgtlrift

Replying to nathan:

I haven't tried another firmware update since doing this, but I've now set a USB filter in VirtualBox that will connect any device with "Apple Inc." in the Manufacturer field to the VM so that the phone will reconnect in recovery mode. Maybe this will help?

I ended up doing this, but it still didn't help - I tried sifting through the log to see what the deal is but couldn't find anything useful. The blanket apple vendor filter does make things a little smoother since you cannot add a new filter while the VM is running.

(follow-up: ↓ 89 ) 10/04/08 21:22:15 changed by scottywz

I'm on Ubuntu Intrepid, kernel 2.6.27-4-generic, with the MAX_USBFS_BUFFER_SIZE mod, VBox 2.0.2, XP Home SP3, iTunes 8.0.1, and an iPhone 2G with os 2.1. When I try to connect the phone, the Window$ Add New Hardware thing says the device can't start (error 10). I tried un- and reinstalling the driver to no avail.

Relevant VBox log:

13:48:21.902 VUSB: attached '0a0a46e0[proxy 05ac:1290]' to port 1
13:48:21.909 EHCI: USB Operational
13:49:26.655 EHCI: USB Suspended
13:49:28.216 VUSB: attached '09383fb8[proxy 05ac:1290]' to port 1
13:49:28.224 EHCI: USB Operational
13:51:07.493 EHCI: USB Suspended
13:51:08.824 VUSB: attached '09383fb8[proxy 05ac:1290]' to port 1
13:51:08.832 EHCI: USB Operational
13:55:06.478 EHCI: USB Suspended

looks normal. Any ideas?

10/10/08 22:10:11 changed by colin.surprenant

Ubuntu 8.04, kernel 2.6.24-19-generic VBox 2.0.2 Vista installed in virtual machine with USB + EHCI enabled in VBox config iTunes 8.0.1.11 iPhone 3G

When plugging in my iPhone, iTunes reports "iTunes could not connect to the phone "" because an unknown error occurred (0xE8000035)."

...installing Vista in VBox was specifically for using iTunes for syncing my iPhone... fail for me!

10/21/08 20:07:52 changed by Ciso

Can someone please upload a prepared usbcore.ko module for 2.6.27 kernel? Thank you.

10/21/08 20:40:25 changed by bkummel

Can someone please fix the problem in the next VBox release? :-(

10/24/08 15:32:55 changed by zeus77

Anyone have success with 2.0.4 (i.e. without the usbcore.ko hack)?

(follow-up: ↓ 86 ) 10/24/08 15:50:42 changed by sandervl73

A fix is scheduled for 2.1.

(in reply to: ↑ 85 ) 10/24/08 16:44:51 changed by scottywz

Replying to sandervl73:

A fix is scheduled for 2.1.

YAY!!! Finally!

10/25/08 22:29:36 changed by Ciso

Great!!! When (approximatively) will be released? :)

(in reply to: ↑ 50 ) 10/26/08 02:48:42 changed by christianroy

crobe: thanks a lot! This worked for me. I was relunctant to recompile the kernel myself - I've been using Linux/Ubuntu for one week and felt I needed some more experience before goint that way. :)

Replying to crobe:

OK, was a piece of work but I got it now. http://www.speedshare.org/download.php?id=1A5FEE2413 ( I hope its legal to post it here ) is a usbcore.ko module for Ubuntu linux-image-2.6.24-21-generic. Go to /lib/modules/2.6.24-21-generic/kernel/drivers/usb/core, backup your current module, get mine, put it there, run "depmod -ae", run "update-initramfs -u" and reboot. Everything as root ( use sudo ). Works perfectly with iTunes 7.7 and my iPod Touch 2.0.2.

(in reply to: ↑ 80 ) 10/26/08 22:35:33 changed by scottywz

Replying to scottywz:

I'm on Ubuntu Intrepid, kernel 2.6.27-4-generic, with the MAX_USBFS_BUFFER_SIZE mod, VBox 2.0.2, XP Home SP3, iTunes 8.0.1, and an iPhone 2G with os 2.1. When I try to connect the phone, the Window$ Add New Hardware thing says the device can't start (error 10). I tried un- and reinstalling the driver to no avail....

Well, I got it to work now per these instructions on 2.6.27-7-generic on Ubuntu Intrepid 32-bit. Here's my modded usbcore.ko for anyone interested: http://www.scott-wallace.net/misc/usbcore.ko_2.6.27-7-generic_131072-mod.tar.gz

Extract usbcore.ko to your home directory and run this from your home directory:

chmod 644 usbcore.ko
sudo cp usbcore.ko /lib/modules/`uname -r`/kernel/drivers/usb/core
sudo depmod -ae
sudo update-initramfs -u
sudo reboot

and pray that it works.

11/01/08 00:41:27 changed by Ninety

I prayed, it worked. Woaw ! Thanks a lot man !

But why aren't you all posting on the forum (http://forums.virtualbox.org/viewtopic.php?p=44025#44025) =) ? Another thing, I'd like to upgrade my iPod touch from 1.1.5 to 2.1 but how can I do this :

Replying to nathan:

I haven't tried another firmware update since doing this, but I've now set a USB filter in VirtualBox that will connect any device with "Apple Inc." in the Manufacturer field to the VM so that the phone will reconnect in recovery mode. Maybe this will help?

11/01/08 06:21:30 changed by huanix

Worked for me. I created a simple shell script to run the fix.

Direct download: http://www.huanix.com/wp-content/uploads/2008/10/virtualbox_iphone.sh

Link to the post and instructions for running a shell script:

http://www.huanix.com/2008/10/31/making-itunes-work-in-an-xp-virtualbox-machine-through-ubuntu/

11/03/08 00:12:46 changed by Ciso

Did not work for me (on 2 different pc). Tomorrow i will try the script ;)

11/03/08 15:55:33 changed by Ciso

Also the script doesn't work for me :(

11/03/08 17:50:28 changed by Ninety

By the way, it would be nice if we could upgrade the iPod firmware with the 2.1 release =).

11/04/08 02:13:31 changed by huanix

Okay, I modified my script to fix both problems with Ubuntu 8.10:

  1. USB doesn't work at all because there's no mount point; edit /etc/fstab to fix it.
  2. For the iPhone to sync, MAX_USBFS_BUFFER_SIZE needs to be modified in drivers/usb/core/devio.c

I tried this on fresh installs with 32 bit and AMD64 and it worked on both. If you want to try it, please follow the link to the post and read the instructions before proceeding. Let me know how it works.. i'll keep trying until i get it right!

http://www.huanix.com/2008/11/03/fixing-usb-on-virtualbox-to-allow-iphone-sync-with-an-ubuntu-host-running-windows-xp/

11/04/08 23:14:03 changed by Ciso

Hi huanix! Thank you! Now works! My problem was in a wrong configuration of the /etc/fstab, so maybe also the previous script is ok ;) Thank you again!

11/07/08 10:20:20 changed by gckoopi

can anyone guide me how to do this on PClinxOS.. thx..

im too noob to do it myself...

-im new to Linux..

11/12/08 12:13:58 changed by sandervl73

  • summary changed from iphone not connecting through to itunes on windows guest to iphone not connecting through to itunes on windows guest -> fixed in 2.1.

11/12/08 14:51:51 changed by tienhn

Any idea of when will 2.1 will be released? Is there a beta version for us to test?

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy