[Spice-devel] Possible problems with usbredir in w7 guest on F16 host?

Marc-André Lureau marcandre.lureau at gmail.com
Tue Feb 7 10:39:46 PST 2012


On Tue, Feb 7, 2012 at 7:24 PM, Marc-André Lureau
<marcandre.lureau at gmail.com> wrote:
>> Where can I find information about enabling and testing usbredir
>> operating from virt-manager and not directly by xml editing?
>
> This is not fully supported, I think

Sorry, I meant to reply with more details but pressed "space" in the
wrong place and the message was gone.

There was a patch that never went to virt-inst and was bringing the
support to declare a USB controller. Then virt-manager allows you to
switch the USB controller (from default USB1 to USB2 ICH9 with
companions controllers).

Unfortunately, that patch was wrong and the solution should be in
libvirt instead.

In the meantime, you can edit the domain XML and declare the USB
controller by adding:

     <controller type='usb' index='0'/>

Then virt-manager allows you to switch the controller to from
default/USB1 to USB2/ICH9.

The USB2 controller is required for a lot of devices to work properly
with usb redirection.

Virt-manager allows you to also add Spice channels for redirection, in
"Add Hardware" / "USB Redirection"

You will need a guest and a client with all the required software. If
you use fedora 16, it should work already.

>> Also, information for smartcard enabling would be great.

It can be added as well from virt-manager, as "passthrough" over a
spice channel. The resulting XML node

    <smartcard mode='passthrough' type='spicevmc'>
      <address type='ccid' controller='0' slot='0'/>
    </smartcard>

>> Is it supposed I connect to my vm from virt-viewer or spicy, to use usbredir?

Yes, best for usb redirection is spicy 0.9 atm. Next virt-viewer
release will have USB redirection support.

>> BTW: I have virt-viewer-0.4.1-3.fc16.x86_64 without remote-viewer
>> $ rpm -ql virt-viewer |grep remote
>> $

It's going to be in coming release.

>> And also, what is the meaning of the changelog line:
>> - Option to switch usb controller to support usb2.0 (Marc-André Lureau)
>> Is it independent from usbredir or related?

It is related, as usbredir works best with USB2/ICH9. (Hans should
know the details)

regards

-- 
Marc-André Lureau


More information about the Spice-devel mailing list