Red Hat Bugzilla – Bug 1266231
Grey out (disable) the "redirect usb" options in the Virtual Machine Manager (virt-manager)
Last modified: 2016-05-10 19:57:52 EDT
Description of problem:
After much research and testing, I have determined that the Virtual Machine Manager console does not support USB redirection when using Red Hat Enterprise Linux (RHEL) 6.6 and 6.7 as a client system. See the supporting information below.
The feature selection should be disabled in the Virtual Machine Manager.
Virtual Machine Manager Console (RHEL 6.6 and 6.7)
Based on testing, USB redirection does not work using the Virtual Machine Manager's integrated console in RHEL 6.6 and 6.7. This is documented in the RHEL 6 Virtualization Administration Guide.
Additionally, while testing redirection using the Virtual Machine menu, I receive the warning "There are no free USB channels" in the 'Select USB devices for redirection' dialog. This test was done with a single USB Redirection device.
With more than 1 USB Redirection device (2 to 4), it fails to redirect silently. It's worth noting that there is a check-mark next to the USB device in the 'Select USB devices for redirection' (Virtial Machine => Redirect USB device) dialog. This implies that the host attempted the redirection, but it was not attached to the guest OS in the console.
Version-Release number of selected component (if applicable):
How reproducible: 100%
Steps to Reproduce:
Fails to redirect the USB device to the guest VM.
Should redirect the USB device to the guest VM.
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.
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 . Based on this, we set a property in the session that will be used to gray out the usb redirection, if needed .
I hope it helps you to fix your problem.
(In reply to Fabiano Fidêncio from comment #4)
> 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 .
> Based on this, we set a property in the session that will be used to gray
> out the usb redirection, if needed .
> 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.
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
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 -
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.
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
The usb device can be redirected to the guest.
USB Redirection failed silently.
With virt-manager updated to latest rhel6 version on HostA, this problem won't happen.
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.