Hi,
Has anyone been able to successfully have the iphone recognized by a windows xp guest? I have tried adding the iphone as a usb devide to the guest's virtual hardware details without any luck :(
Daniel
Heh.
I spent a week after I got my iTouch (sorry, "iPod Touch") trying to get it to sync with ITunes on WinXP in a virtual machine hosted on Fedora 12.
You have to use the USB passthrough feature - BUT The iPhone/iPod Touch devices apparently have a "more complicated" USB protocol than qemu/kvm can currently handle. Oh, and I never saw a failure - iTunes just never sees the device - quite annoying.
I read somewhere that Sun's Virtual Box (free-as-in-maybe-open-source) works - but it didn't. The way I finally got the iTouch<->iTunes communication to work was with the not-entirely-free version of Virtual Box. (It is free-as-in-beer though.) I think you can get it from Sun^H^H^HOracle here:
http://www.sun.com/software/products/virtualbox/get.jsp
Once I had WinXP running in that, I just have to right click on the little USB icon in Virtual Box's frame and select the iPod Touch device.
I wasn't able to get my qemu/kvm XP image to boot in Virtual Box, so I gave up on that even and reinstalled XP.
Best of luck, Jamie
On Tue, Feb 9, 2010 at 6:55 PM, Daniel Sanabria sanabria.d@gmail.com wrote:
Hi, Has anyone been able to successfully have the iphone recognized by a windows xp guest? I have tried adding the iphone as a usb devide to the guest's virtual hardware details without any luck :( Daniel _______________________________________________ virt mailing list virt@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/virt
On 02/09/2010 07:16 PM, Jamie Wellnitz wrote:
Heh.
I spent a week after I got my iTouch (sorry, "iPod Touch") trying to get it to sync with ITunes on WinXP in a virtual machine hosted on Fedora 12.
You have to use the USB passthrough feature - BUT The iPhone/iPod Touch devices apparently have a "more complicated" USB protocol than qemu/kvm can currently handle. Oh, and I never saw a failure - iTunes just never sees the device - quite annoying.
AIUI the iphone requires USB 2.0 to work, while qemu only emulates USB 1.1.
- Cole
Thanks Cole, Jamie,
Do you guys know if support for USB 2.0 is in qemu's development roadmap?
Daniel
On 10 February 2010 14:56, Cole Robinson crobinso@redhat.com wrote:
On 02/09/2010 07:16 PM, Jamie Wellnitz wrote:
Heh.
I spent a week after I got my iTouch (sorry, "iPod Touch") trying to get it to sync with ITunes on WinXP in a virtual machine hosted on Fedora 12.
You have to use the USB passthrough feature - BUT The iPhone/iPod Touch devices apparently have a "more complicated" USB protocol than qemu/kvm can currently handle. Oh, and I never saw a failure - iTunes just never sees the device - quite annoying.
AIUI the iphone requires USB 2.0 to work, while qemu only emulates USB 1.1.
- Cole
On 02/10/2010 10:14 AM, Daniel Sanabria wrote:
Thanks Cole, Jamie,
Do you guys know if support for USB 2.0 is in qemu's development roadmap?
People have posted patches in the past of unknown (to me) quality/completeness, but nothing committed. I don't think anyone is being paid to work on it so it's tough to say when it will be supported.
- Cole
Nevertheless, I'd still like to share what I'm getting in /var/log/libvirt/qemu/ when connecting the phone to my qemu host and then starting the guest ...
Starting the guest without the phone connected to the host:
LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin QEMU_AUDIO_DRV=none /usr/bin/qemu-kvm -S -M pc-0.11 -m 1024 -smp 1 -name winxp -uuid 88b53573-a3c1-3e12-8703 -monitor unix:/var/lib/libvirt/qemu/winxp.monitor,server,nowait -localtime -boot c -drive file=/var/lib/libvirt/images/winxp.img,if=ide,index=0,boot=on,format=raw -drive file=/home/daniel/Downloads/Adobe CS4 Design Premium/adobe_CS4_design_premium.iso,if=ide,media=cdrom,index=2 -net nic,macaddr=52xxxxxx,vlan=0,name=nic.0 -net tap,fd=20,vlan=0,name=tap.0 -serial pty -parallel none -usb -usbdevice tablet -vnc 127.0.0.1:1 -k en-gb -vga cirrus -soundhw es1370 -usbdevice host:05ac:1294 -usbdevice host:05ac:1294 char device redirected to /dev/pts/2 Warning: could not add USB device host:05ac:1294 Warning: could not add USB device host:05ac:1294
Starting the guest with the phone connected:
LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin QEMU_AUDIO_DRV=none /usr/bin/qemu-kvm -S -M pc-0.11 -m 1024 -smp 1 -name winxp -uuid 88b53573-a3c1-3e12-8703-ea3fc8580493 -monitor unix:/var/lib/libvirt/qemu/winxp.monitor,server,nowait -localtime -boot c -drive file=/var/lib/libvirt/images/winxp.img,if=ide,index=0,boot=on,format=raw -drive file=/home/daniel/Downloads/Adobe CS4 Design Premium/adobe_CS4_design_premium.iso,if=ide,media=cdrom,index=2 -net nic,macaddr=52:54:00:62:66:ed,vlan=0,name=nic.0 -net tap,fd=20,vlan=0,name=tap.0 -serial pty -parallel none -usb -usbdevice tablet -vnc 127.0.0.1:1 -k en-gb -vga cirrus -soundhw es1370 -usbdevice host:05ac:1294 -usbdevice host:05ac:1294 char device redirected to /dev/pts/2 husb: open device 1.6 /dev/bus/usb/001/006: Permission denied Warning: could not add USB device host:05ac:1294 husb: open device 1.6 /dev/bus/usb/001/006: Permission denied Warning: could not add USB device host:05ac:1294
So it looks to me like qemu/kvm tries to interact with the fs/phone but is facing a file permission problem?
[daniel@bigblackbox ~]$ ls -l /dev/bus/usb/001/006 crw-rw-r--+ 1 root root 189, 5 2010-02-10 22:38 /dev/bus/usb/001/006
[daniel@bigblackbox ~]$ mount /dev/mapper/vg_bigblackbox-LogVol_root on / type ext4 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0") /dev/md0 on /boot type ext4 (rw) /dev/md2 on /home type ext4 (rw) /dev/mapper/vg_bigblackbox-LogVol_opt on /opt type ext4 (rw) /dev/mapper/vg_bigblackbox-LogVol_tmp on /tmp type ext4 (rw) /dev/mapper/vg_bigblackbox-LogVol_var on /var type ext4 (rw) /dev/mapper/virtvg-virtlv on /var/lib/libvirt type ext4 (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) gvfs-fuse-daemon on /home/daniel/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=daniel) [daniel@bigblackbox ~]$
Any suggestions about what the permission errors are indicating?
Cheers,
Daniel
an update for those who are interested ...
chmod 777 /dev/bus/usb/001/006 and temporarly setting selinux to permisive gave me this:
LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin QEMU_AUDIO_DRV=none /usr/bin/qemu-kvm -S -M pc-0.11 -m 1024 -smp 1 -name winxp -uuid 88b53573-a3c1-3e12-8703-ea3fc8580493 -monitor unix:/var/lib/libvirt/qemu/winxp.monitor,server,nowait -localtime -boot c -drive file=/var/lib/libvirt/images/winxp.img,if=ide,index=0,boot=on,format=raw -drive file=/home/daniel/Downloads/Adobe CS4 Design Premium/adobe_CS4_design_premium.iso,if=ide,media=cdrom,index=2 -net nic,macaddr=52:54:00:62:66:ed,vlan=0,name=nic.0 -net tap,fd=20,vlan=0,name=tap.0 -serial pty -parallel none -usb -usbdevice tablet -vnc 127.0.0.1:1 -k en-gb -vga cirrus -soundhw es1370 -usbdevice host:05ac:1294 -usbdevice host:05ac:1294 char device redirected to /dev/pts/2 husb: open device 1.6 husb: config #1 need -1 husb: 1 interfaces claimed for configuration 1 husb: grabbed usb device 1.6 Warning: could not add USB device host:05ac:1294 husb: config #1 need 1 husb: 1 interfaces claimed for configuration 1 husb: config #1 need 1 husb: 1 interfaces claimed for configuration 1 husb: config #1 need 1 husb: 1 interfaces claimed for configuration 1 husb: config #1 need 1 husb: 1 interfaces claimed for configuration 1 husb: config #1 need 4 husb: config #2 need 4 husb: config #3 need 4 husb: config #4 need 4 husb: 3 interfaces claimed for configuration 4
The guest definetly detected the device (with beep in the phone included) and attempted to install a "qemu usb hub" driver while installing the driver but unfortunately everything ended up with a blue screen of death referring to usbhci or something. I didn't take a screnshoot which is a problem because after this if I try to reproduce the scenario windows doesn't try to install the driver and this is what I get in the qemu logs:
LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin QEMU_AUDIO_DRV=none /usr/bin/qemu-kvm -S -M pc-0.11 -m 1024 -smp 1 -name winxp -uuid 88b53573-a3c1-3e12-8703-ea3fc8580493 -monitor unix:/var/lib/libvirt/qemu/winxp.monitor,server,nowait -localtime -boot c -drive file=/var/lib/libvirt/images/winxp.img,if=ide,index=0,boot=on,format=raw -drive file=/home/daniel/Downloads/Adobe CS4 Design Premium/adobe_CS4_design_premium.iso,if=ide,media=cdrom,index=2 -net nic,macaddr=52:54:00:62:66:ed,vlan=0,name=nic.0 -net tap,fd=20,vlan=0,name=tap.0 -serial pty -parallel none -usb -usbdevice tablet -vnc 127.0.0.1:1 -k en-gb -vga cirrus -soundhw es1370 -usbdevice host:05ac:1294 -usbdevice host:05ac:1294 char device redirected to /dev/pts/2 husb: open device 1.7 husb: config #1 need -1 husb: 1 interfaces claimed for configuration 1 husb: grabbed usb device 1.7 Warning: could not add USB device host:05ac:1294 husb: config #1 need 1 husb: 1 interfaces claimed for configuration 1 husb: config #1 need 1 husb: 1 interfaces claimed for configuration 1 husb: config #1 need 4 husb: config #2 need 4 husb: config #3 need 4 husb: config #4 need 4 husb: 3 interfaces claimed for configuration 4
On 10 February 2010 23:10, Daniel Sanabria sanabria.d@gmail.com wrote:
Nevertheless, I'd still like to share what I'm getting in /var/log/libvirt/qemu/ when connecting the phone to my qemu host and then starting the guest ...
Starting the guest without the phone connected to the host:
LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin QEMU_AUDIO_DRV=none /usr/bin/qemu-kvm -S -M pc-0.11 -m 1024 -smp 1 -name winxp -uuid 88b53573-a3c1-3e12-8703 -monitor unix:/var/lib/libvirt/qemu/winxp.monitor,server,nowait -localtime -boot c -drive file=/var/lib/libvirt/images/winxp.img,if=ide,index=0,boot=on,format=raw -drive file=/home/daniel/Downloads/Adobe CS4 Design Premium/adobe_CS4_design_premium.iso,if=ide,media=cdrom,index=2 -net nic,macaddr=52xxxxxx,vlan=0,name=nic.0 -net tap,fd=20,vlan=0,name=tap.0 -serial pty -parallel none -usb -usbdevice tablet -vnc 127.0.0.1:1 -k en-gb -vga cirrus -soundhw es1370 -usbdevice host:05ac:1294 -usbdevice host:05ac:1294 char device redirected to /dev/pts/2 Warning: could not add USB device host:05ac:1294 Warning: could not add USB device host:05ac:1294
Starting the guest with the phone connected:
LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin QEMU_AUDIO_DRV=none /usr/bin/qemu-kvm -S -M pc-0.11 -m 1024 -smp 1 -name winxp -uuid 88b53573-a3c1-3e12-8703-ea3fc8580493 -monitor unix:/var/lib/libvirt/qemu/winxp.monitor,server,nowait -localtime -boot c -drive file=/var/lib/libvirt/images/winxp.img,if=ide,index=0,boot=on,format=raw -drive file=/home/daniel/Downloads/Adobe CS4 Design Premium/adobe_CS4_design_premium.iso,if=ide,media=cdrom,index=2 -net nic,macaddr=52:54:00:62:66:ed,vlan=0,name=nic.0 -net tap,fd=20,vlan=0,name=tap.0 -serial pty -parallel none -usb -usbdevice tablet -vnc 127.0.0.1:1 -k en-gb -vga cirrus -soundhw es1370 -usbdevice host:05ac:1294 -usbdevice host:05ac:1294 char device redirected to /dev/pts/2 husb: open device 1.6 /dev/bus/usb/001/006: Permission denied Warning: could not add USB device host:05ac:1294 husb: open device 1.6 /dev/bus/usb/001/006: Permission denied Warning: could not add USB device host:05ac:1294
So it looks to me like qemu/kvm tries to interact with the fs/phone but is facing a file permission problem?
[daniel@bigblackbox ~]$ ls -l /dev/bus/usb/001/006 crw-rw-r--+ 1 root root 189, 5 2010-02-10 22:38 /dev/bus/usb/001/006
[daniel@bigblackbox ~]$ mount /dev/mapper/vg_bigblackbox-LogVol_root on / type ext4 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0") /dev/md0 on /boot type ext4 (rw) /dev/md2 on /home type ext4 (rw) /dev/mapper/vg_bigblackbox-LogVol_opt on /opt type ext4 (rw) /dev/mapper/vg_bigblackbox-LogVol_tmp on /tmp type ext4 (rw) /dev/mapper/vg_bigblackbox-LogVol_var on /var type ext4 (rw) /dev/mapper/virtvg-virtlv on /var/lib/libvirt type ext4 (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) gvfs-fuse-daemon on /home/daniel/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=daniel) [daniel@bigblackbox ~]$
Any suggestions about what the permission errors are indicating?
Cheers,
Daniel
in case someone is interested in the details of the windows xp error (DRIVER_IRQL_NOT_LESS_OR_EQUAL) reported when the windowsxp guest tries to install QEMU's USB Hub driver I have uploaded a screenshot to imageshack
http://img717.imageshack.us/img717/6489/iphoneusbcrash.png
On 10 February 2010 23:46, Daniel Sanabria sanabria.d@gmail.com wrote:
an update for those who are interested ...
chmod 777 /dev/bus/usb/001/006 and temporarly setting selinux to permisive gave me this:
LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin QEMU_AUDIO_DRV=none /usr/bin/qemu-kvm -S -M pc-0.11 -m 1024 -smp 1 -name winxp -uuid 88b53573-a3c1-3e12-8703-ea3fc8580493 -monitor unix:/var/lib/libvirt/qemu/winxp.monitor,server,nowait -localtime -boot c -drive file=/var/lib/libvirt/images/winxp.img,if=ide,index=0,boot=on,format=raw -drive file=/home/daniel/Downloads/Adobe CS4 Design Premium/adobe_CS4_design_premium.iso,if=ide,media=cdrom,index=2 -net nic,macaddr=52:54:00:62:66:ed,vlan=0,name=nic.0 -net tap,fd=20,vlan=0,name=tap.0 -serial pty -parallel none -usb -usbdevice tablet -vnc 127.0.0.1:1 -k en-gb -vga cirrus -soundhw es1370 -usbdevice host:05ac:1294 -usbdevice host:05ac:1294 char device redirected to /dev/pts/2 husb: open device 1.6 husb: config #1 need -1 husb: 1 interfaces claimed for configuration 1 husb: grabbed usb device 1.6
Warning: could not add USB device host:05ac:1294 husb: config #1 need 1 husb: 1 interfaces claimed for configuration 1 husb: config #1 need 1 husb: 1 interfaces claimed for configuration 1 husb: config #1 need 1 husb: 1 interfaces claimed for configuration 1 husb: config #1 need 1 husb: 1 interfaces claimed for configuration 1 husb: config #1 need 4 husb: config #2 need 4 husb: config #3 need 4 husb: config #4 need 4 husb: 3 interfaces claimed for configuration 4
The guest definetly detected the device (with beep in the phone included) and attempted to install a "qemu usb hub" driver while installing the driver but unfortunately everything ended up with a blue screen of death referring to usbhci or something. I didn't take a screnshoot which is a problem because after this if I try to reproduce the scenario windows doesn't try to install the driver and this is what I get in the qemu logs:
LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin QEMU_AUDIO_DRV=none /usr/bin/qemu-kvm -S -M pc-0.11 -m 1024 -smp 1 -name winxp -uuid 88b53573-a3c1-3e12-8703-ea3fc8580493 -monitor unix:/var/lib/libvirt/qemu/winxp.monitor,server,nowait -localtime -boot c -drive file=/var/lib/libvirt/images/winxp.img,if=ide,index=0,boot=on,format=raw -drive file=/home/daniel/Downloads/Adobe CS4 Design Premium/adobe_CS4_design_premium.iso,if=ide,media=cdrom,index=2 -net nic,macaddr=52:54:00:62:66:ed,vlan=0,name=nic.0 -net tap,fd=20,vlan=0,name=tap.0 -serial pty -parallel none -usb -usbdevice tablet -vnc 127.0.0.1:1 -k en-gb -vga cirrus -soundhw es1370 -usbdevice host:05ac:1294 -usbdevice host:05ac:1294 char device redirected to /dev/pts/2 husb: open device 1.7 husb: config #1 need -1 husb: 1 interfaces claimed for configuration 1 husb: grabbed usb device 1.7
Warning: could not add USB device host:05ac:1294 husb: config #1 need 1 husb: 1 interfaces claimed for configuration 1 husb: config #1 need 1 husb: 1 interfaces claimed for configuration 1 husb: config #1 need 4 husb: config #2 need 4 husb: config #3 need 4 husb: config #4 need 4 husb: 3 interfaces claimed for configuration 4
On 10 February 2010 23:10, Daniel Sanabria sanabria.d@gmail.com wrote:
Nevertheless, I'd still like to share what I'm getting in /var/log/libvirt/qemu/ when connecting the phone to my qemu host and then starting the guest ...
Starting the guest without the phone connected to the host:
LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin QEMU_AUDIO_DRV=none /usr/bin/qemu-kvm -S -M pc-0.11 -m 1024 -smp 1 -name winxp -uuid 88b53573-a3c1-3e12-8703 -monitor unix:/var/lib/libvirt/qemu/winxp.monitor,server,nowait -localtime -boot c -drive file=/var/lib/libvirt/images/winxp.img,if=ide,index=0,boot=on,format=raw -drive file=/home/daniel/Downloads/Adobe CS4 Design Premium/adobe_CS4_design_premium.iso,if=ide,media=cdrom,index=2 -net nic,macaddr=52xxxxxx,vlan=0,name=nic.0 -net tap,fd=20,vlan=0,name=tap.0 -serial pty -parallel none -usb -usbdevice tablet -vnc 127.0.0.1:1 -k en-gb -vga cirrus -soundhw es1370 -usbdevice host:05ac:1294 -usbdevice host:05ac:1294 char device redirected to /dev/pts/2 Warning: could not add USB device host:05ac:1294 Warning: could not add USB device host:05ac:1294
Starting the guest with the phone connected:
LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin QEMU_AUDIO_DRV=none /usr/bin/qemu-kvm -S -M pc-0.11 -m 1024 -smp 1 -name winxp -uuid 88b53573-a3c1-3e12-8703-ea3fc8580493 -monitor unix:/var/lib/libvirt/qemu/winxp.monitor,server,nowait -localtime -boot c -drive file=/var/lib/libvirt/images/winxp.img,if=ide,index=0,boot=on,format=raw -drive file=/home/daniel/Downloads/Adobe CS4 Design Premium/adobe_CS4_design_premium.iso,if=ide,media=cdrom,index=2 -net nic,macaddr=52:54:00:62:66:ed,vlan=0,name=nic.0 -net tap,fd=20,vlan=0,name=tap.0 -serial pty -parallel none -usb -usbdevice tablet -vnc 127.0.0.1:1 -k en-gb -vga cirrus -soundhw es1370 -usbdevice host:05ac:1294 -usbdevice host:05ac:1294 char device redirected to /dev/pts/2 husb: open device 1.6 /dev/bus/usb/001/006: Permission denied Warning: could not add USB device host:05ac:1294 husb: open device 1.6 /dev/bus/usb/001/006: Permission denied Warning: could not add USB device host:05ac:1294
So it looks to me like qemu/kvm tries to interact with the fs/phone but is facing a file permission problem?
[daniel@bigblackbox ~]$ ls -l /dev/bus/usb/001/006 crw-rw-r--+ 1 root root 189, 5 2010-02-10 22:38 /dev/bus/usb/001/006
[daniel@bigblackbox ~]$ mount /dev/mapper/vg_bigblackbox-LogVol_root on / type ext4 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0") /dev/md0 on /boot type ext4 (rw) /dev/md2 on /home type ext4 (rw) /dev/mapper/vg_bigblackbox-LogVol_opt on /opt type ext4 (rw) /dev/mapper/vg_bigblackbox-LogVol_tmp on /tmp type ext4 (rw) /dev/mapper/vg_bigblackbox-LogVol_var on /var type ext4 (rw) /dev/mapper/virtvg-virtlv on /var/lib/libvirt type ext4 (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) gvfs-fuse-daemon on /home/daniel/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=daniel) [daniel@bigblackbox ~]$
Any suggestions about what the permission errors are indicating?
Cheers,
Daniel