[Spice-devel] Possible problems with usbredir in w7 guest on F16 host?
Marc-André Lureau
mlureau at redhat.com
Tue Feb 7 15:03:03 PST 2012
Hi Gianluca,
Thanks for your testing, and glad that helps you. It's cool you run those various tests too!
Btw, the attached patch for libvirt should be all is needed to not have to edit the domain XML manually. I am going to submit it upstream as soon as I finish with some tests.
The TCP option in virt-manager is to configure the qemu USB redirection to connect to a USB host over TCP, for example to usbredirserver. This allows qemu to do usb redirection without using SPICE (it's not normally used by regular users)
----- Mensaje original -----
> On Tue, Feb 7, 2012 at 7:39 PM, Marc-André Lureau wrote:
> > [snip]
> > In the meantime, you ....
> > [snip]
>
> Ok, thanks for the detailed explanation, Marc.
> So, preliminary tests on my F16 host and a winxp vm were successful
> These were my steps:
>
> - virsh edit winxp
> Adding the usb line before the /devices line so that I had:
>
> <memballoon model='virtio'>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x05'
> function='0x0'/>
> </memballoon>
> <controller type='usb' index='0'/>
> </devices>
> </domain>
>
> - run virt-manager
> I see now a "controller USB" between devices and can change model
> from
> "default" to USB2 --> apply
>
> - $ sudo diff new.xml old.xml
> gives
>
> 49,62c49,50
> < <controller type='usb' index='0' model='ich9-ehci1'>
> < <address type='pci' domain='0x0000' bus='0x00' slot='0x08'
> function='0x0'/>
> < </controller>
> < <controller type='usb' index='0' model='ich9-uhci1'>
> < <master startport='0'/>
> < <address type='pci' domain='0x0000' bus='0x00' slot='0x09'
> function='0x0'/>
> < </controller>
> < <controller type='usb' index='0' model='ich9-uhci2'>
> < <master startport='2'/>
> < <address type='pci' domain='0x0000' bus='0x00' slot='0x0a'
> function='0x0'/>
> < </controller>
> < <controller type='usb' index='0' model='ich9-uhci3'>
> < <master startport='4'/>
> < <address type='pci' domain='0x0000' bus='0x00' slot='0x0b'
> function='0x0'/>
> ---
> > <controller type='usb' index='0'>
> > <address type='pci' domain='0x0000' bus='0x00' slot='0x01'
> > function='0x2'/>
>
> - Add hardware --> redirected USB --> spice channel
> (BTW: what is the other option "TCP" for?)
>
> Now the xml has got this added diff at its end:
>
> < <redirdev bus='usb' type='spicevmc'>
> < </redirdev>
>
> NOTE:
> A difference from when I manually edited the file (with Hans
> instructions) is that this line now remains:
> <domain type='kvm'>
>
> while before it had to be manually changed to:
> <domain type='kvm'
> xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
>
> donna if this is important...
>
> Tests:
> - usb key
> OK
>
> - iTunes and iPOD shuffle last gen
> OK
> installed latest iTunes (10.5.3.3, 66Mb installer and about 350Mb
> installation, worse than a virus... ;-)
> and connected an ipod shuffle last generation
> it was recognized both by the system and iTunes; I was able to
> register it an play in iTunes some songs previously stored on the
> ipod
> (with gtkpod... ;-)
>
> So for now it is quite good result.
>
> Tomorrow I'm going to test other devices on this system and another
> F16 host with a win7 32bit guest (where I apparently had problems, as
> detailed in this thread itslef previous e-mails):
> - a Galaxy S2 with Kies
> - a pair of cameras
> - smartcard (for public health access)
>
> and let you know.
>
> Thansk in the mean time tor your time and sharing
> Gianluca
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-domain-add-implicit-USB-controller.patch
Type: text/x-patch
Size: 1022 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20120207/1ea6096d/attachment.bin>
More information about the Spice-devel
mailing list