Red Hat Bugzilla – Bug 838993
USBredir rejects USB thumb drive in SPICE guest using remote-viewer
Last modified: 2012-07-12 16:02:18 EDT
Created attachment 597373 [details]
Screenshot of error message
Description of problem:
USBredir rejects USB thumb drive in SPICE guest when using SPICE GTK and using remote-viewer.
The http://pastebin.test.redhat.com/96330 has the ps -ax | grep qemu output.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Start Virt-manager and add "Redirected USB" to the VM along with "Display Spice" and "Video" of QXL.
2. Start remote-viewer from terminal window (remote-viewer spice://<HOST_IP>?port=<PORT_IP>
USB gets rejected by host
USB doesn't get rejected by host
Created attachment 597648 [details]
rhel7 qemu log file
Looking at the qemu cmdline the problem is that you've not chanegd the usb controller type from the default usb-1 controller to a usb-2 controller. The qemu log confirms this:
qemu-kvm: Warning: speed mismatch trying to attach usb device USB Redirection Device to bus usb.0
So qemu refuses the redirected device since you're trying to plug a USB-2 device into a USB-1 (virtual) controller.
To fix this, start virt-manager, go to the details view of the vm and change the model of the "Controller USB" device to "USB 2"
That should fix things, if for some reason that does not help, you can try following the manual
instructions for adding usbredir support to a libvirt managed vm here:
I'm going to close this as notabug under the assumption that changing the control model fixes things, if it does not please re-open.
If you want to redirect more then 1 device at the same time you will need to add more "USB Redirection" devices (up to a maximum of 5, 6 if you remove the tablet which you can do safely if you're using the spice agent inside the guest).
When I change the "Controller USB" device to "USB 2" I get an dialog box with:
Privileges are required for low level USB device access (for usb device pass through).
About a second after, I get the USB storage seen locally and not in the guest.
(In reply to comment #3)
> When I change the "Controller USB" device to "USB 2" I get an dialog box
> Authetication Required
> Privileges are required for low level USB device access (for usb device pass
Good, that is expected, usbredir needs raw usb device access, bypassing things like file
system access setting on usb devices, etc. So by default the policykit policy for it requires
root authentication, so in that dialog enter your root password, or if you're part of the wheel
group your own password. You only need to give your password once per remote-viewer
See this blog post for instructions to change the default policy so that no authentication