While updating my iPhone 3GS to iOS 4, I encountered an error on iTunes saying that my iPhone could not be updated. My phone went into recovery mode after that. This is not the first time I’m doing restore and update with Vmware, so I’m pretty surprise why the update process failed.
A peek into dmesg shows the following –
[52420.444795] usb 2-2: usbfs: interface 2 claimed by ipheth while ‘vmware-vmx’ sets config #4
[52420.460159] usb 2-2: usbfs: process 9345 (vmware-vmx) did not claim interface 2 before use
[52420.460222] usb 2-2: usbfs: process 9345 (vmware-vmx) did not claim interface 2 before use
Linux is now capable of detecting the iPhone over USB natively and automatically via the iPhone for tethering and direct access to the underlying filesystem, so it’s hogging the USB port on the iPhone and denying Vmware of accessing it.
Anyway the solution is simple. Just run
# rmmod ipheth
[52445.922401] usbcore: deregistering interface driver ipheth
[52445.964038] ipheth 2-2:4.2: Apple iPhone USB Ethernet now disconnected
[52491.228075] usb 2-2: reset high speed USB device using ehci_hcd and address 21
[52491.524073] usb 2-2: reset high speed USB device using ehci_hcd and address 21
Linux releases the iPhone. On Vmware, disconnect and connect the iPhone again.