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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This two patch use spicy-client python binding to add USB redirection
support in virt-manager if guests use spice viewer.

Add "Select USB devices to redirect" option in console viewer
Initialize and embed UsbDeviceWidget object from SpiceClientGtk into
a dialog to let user choose available USB devices for redirection.
Throw an error message if USB connection failed.

These feature works well if running virt-manager application with
super root privilege. But if running it with non-root user, libusb
will report Permission problem as follows.

libusbx: error [op_open] libusbx couldn't open USB device /dev/bus/usb/002/010: Permission denied.
libusbx: error [op_open] libusbx requires write access to USB device nodes.

I am not sure about this, the error explains itself. In this case virt-manager
will popup a dialog to show related error from spice-client library.


Guannan Ren
 [PATCH 1/2] error: new helper function to embed customized widget into dialog
 [PATCH 2/2] details: Add USB redirection support in console viewer

 ui/vmm-details.ui      | 15 +++++++++++++++
 virtManager/console.py | 23 +++++++++++++++++++++++
 virtManager/details.py | 26 ++++++++++++++++++++++++++
 virtManager/error.py   | 19 +++++++++++++++----
 4 files changed, 79 insertions(+), 4 deletions(-)

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list




[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux