Bug 1266231
| Summary: | Grey out (disable) the "redirect usb" options in the Virtual Machine Manager (virt-manager) | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Peter Manzella <pmanzell> |
| Component: | virt-manager | Assignee: | Pavel Hrdina <phrdina> |
| Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.6 | CC: | ailan, cfergeau, chayang, dblechte, fidencio, jsuchane, juzhang, juzhou, meverett, mkenneth, mxie, mzhan, phrdina, rbalakri, tlavigne, tzheng, uril, virt-maint, xiaodwan, xzhong |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | virt-manager-0.9.0-30.el6 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-05-10 23:57:52 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Peter Manzella
2015-09-24 20:21:48 UTC
Hi, I was investigating this bug and virt-manager uses Spice USB device selection widget, which do the whole USB redirect staff. Moving to spice to get more investigation from their side, because spicy clinet works fine. Pavel, I am not familiar with virt-manager code at all, but what we do on virt-viewer is to check whether there's a USBREDIR channel and, in positive case, whether we have a SpiceUsbDeviceManager associated to the channel [0]. Based on this, we set a property in the session that will be used to gray out the usb redirection, if needed [1]. [0]: https://git.fedorahosted.org/cgit/virt-viewer.git/tree/src/virt-viewer-session-spice.c#n975 [1]: https://git.fedorahosted.org/cgit/virt-viewer.git/tree/src/virt-viewer-app.c#n924 I hope it helps you to fix your problem. (In reply to Fabiano Fidêncio from comment #4) > Pavel, > > I am not familiar with virt-manager code at all, but what we do on > virt-viewer is to check whether there's a USBREDIR channel and, in positive > case, whether we have a SpiceUsbDeviceManager associated to the channel [0]. > Based on this, we set a property in the session that will be used to gray > out the usb redirection, if needed [1]. > > [0]: > https://git.fedorahosted.org/cgit/virt-viewer.git/tree/src/virt-viewer- > session-spice.c#n975 > [1]: > https://git.fedorahosted.org/cgit/virt-viewer.git/tree/src/virt-viewer-app. > c#n924 > > I hope it helps you to fix your problem. After talking to Pavel Hrdina, he pointed out that the problem is about USB Redirection not working and nothing related to gray-out the menus. Peter, Can you provide us some info about what kind of devices you're trying to redirect? No logs about the issue? I just tried it on a RHEL 6.7 and it works for me, with 2 different
disk USB devices.
Win 7 x64 guest
virt-manager-0.9.0-29.el6.x86_64
virt-viewer-2.0-7.el6.x86_64
spice-gtk-0.26-4.el6.x86_64
spice-server-0.12.4-12.el6.x86_64
qemu-kvm-rhev-0.12.1.2-2.415.el6.x86_64
Note that "There are no free USB channels" appears after the redirection
action is taken. So if you have a single usbredir device after usbredir of
a USB device ("there is a check-mark next to the USB device") there are
no more free USB channels, meaning one can not usbredir more devices.
When USB devices are not allowed to usbredir, they are grey'ed out.
I tried 2 disk USB devices.
I tested a case with a single usbredir device, and a case with
two usbredir devices (and usbredir'ing 2 devices to the guest).
Can you please try to check if the guest "sees" the device ?
If a windows guest e.g. using Device Manager
If a Linux guest e.g. using lsusb
Does it work for you with a disk USB device ?
This bug only applies to the Virtual Machine Manager (virt-manager) console. The version used to open the bug is - virt-manager-0.9.0-29.el6.x86_64 All testing was done using the integrated console of that product. virt-viewer and/or remote-viewer are not related to this specific issue. My testing was done also with virt-manager console. Can you please test and answer the two questions in comment #8 ? Also do you have (at least 2) "Controller USB" devices configured for your VM ? You can also check this out with virsh list --all # (possibly with sudo virsh) virsh dumpxml $VMNAME | grep 'controller type=.usb' # (possibly with sudo virsh) I don't have all the details yet, but this appears to be an issue with device configuration using virt-manager 0.9.0. I need to do some configuration tests and compare the XML of the guests. I will post more when I have a better understanding. I can reproduce this on RHEL6.7, both on rhel6 guest and win7 guest, also with 2 different usb devices. virt-manager-0.9.0-29.el6.x86_64 spice-gtk-0.26-4.el6.x86_64 spice-server-0.12.4-12.el6.3.x86_64 Steps: 1. On HostA, lunch virt-manager, create a remote connection to HostB 2. In HostA's virt-manager, run a guest of HostB 3. Plug a usb device in HostA, in guest console, click "Virtual Machine" -> "Redirct USB Device" 4. Choose the usb device from the pop up window, click "ok" 5. In guest, #lsusb Expected Results: The usb device can be redirected to the guest. Actural Results: USB Redirection failed silently. With virt-manager updated to latest rhel6 version on HostA, this problem won't happen. virt-manager-0.9.0-30.el6.x86_64 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2016-0860.html |