[virt-tools-list] [PATCH 0/2] add USB redirection support in virt-manager

Cole Robinson crobinso at redhat.com
Tue Jun 25 14:18:36 UTC 2013


On 06/25/2013 09:58 AM, Guannan Ren wrote:
> On 06/25/2013 01:52 AM, Hans de Goede wrote:
>> Hi,
>>
>> On 06/24/2013 12:11 PM, Guannan Ren wrote:
>>>
>>> This two patch use spicy-client python binding to add USB redirection
>>> support in virt-manager if guests use spice viewer.
>>
>> Very cool, thanks for working on this. I've done a quick review, mostly
>> from the usbredir pov rather then a code pov, and there is one thing
>> missing.
>>
>> Now that virt-manager will have a usb-device selection dialog, it
>> should probably also enable usb autoredirection by setting the
>> auto-connect property of the UsbDeviceManager to true, this will enable
>> the "If the virt-viewer window has the current focus and I insert a USB
>> device, it will be automatically redirected to the guest" behavior
>> Leonardo is talking about.
>>
>> I see that Cole is not necessarily a fan of it. Cole, you should give
>> this a try, most users love it. In virt-viewer we just always enable
>> it without any complaints. Alternatively it could be made an option
>> but I would default it to true.
>>
> 
> I tried it several times, for virt-viewer, auto-usbredir property is set to
> TRUE by default, so
> it supports auto-rediret by default. it works well for a single guest.
> When there are multiple virt-viewer instance opened for multiple guests, the
> auto usbredirection
> becomes a little confusing, sometimes it is redirected to guest A, sometimes
> it goes to guest B
> between I re-plugin the usb devices.
> 
> It is a really good feature. for virt-manager, multiple viewers more often
> stay opened for guests
> than virt-viewer, so it possibly cause some confusion for user. So I think
> using *disable* to this
> feature by default probably is better. we can give an option to enable it
> somehow.
> 

Hmm, maybe we could conditionally enable the property only when the spice
widget has focus. So it's only turned on for one console at a time.

- Cole




More information about the virt-tools-list mailing list