qemu-kvm-0.13.0 doesn't pass USB devices to the VM

Reported by Arsen.Shnurkov on 2011-02-19
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QEMU
Undecided
Unassigned

Bug Description

I have the bug, similar to this one:
https://bugzilla.redhat.com/show_bug.cgi?id=583108
but under gentoo

When I add parameters -usb -usbdevice host:4348:5584, I see the following lines in console:

husb: config #1 need -1
USBDEVFS_DISCONNECT: No route to host
husb: open device 2.11
(...many repetitions of three above lines...)

All parameters (2.11) are verified with lsusb at host computer - parameters are correct

Error description is very confusing - I don't know what to check, what "config #1" mean, which route should be checked and how to check it.

Brad Hards (bradh) wrote :

Hi,

Thanks for reporting this problem.

Can you tell me a bit more about your configuration? For example:
What are the guest and host operating systems?

Is it always "need -1"? Do you ever see "need 1"?

What is the device you're trying to open? Can you show the USB descriptors (e.g. from lsusb)?

Do you have rights to open the device (e.g. are you running qemu with elevated privileges)? Does it help / change things if you do or don't?

I'm not sure that the error messages are very accurate in this particular case. I think the problem with those messages comes from use of perror() in the QEMU code and that the underlying operations aren't returning / setting errno in the right way (or perhaps at all). However the fact that we're even getting to the error path indicates a problem. If I had to guess, the device is already bound to a driver on the host and you don't have permissions to unbind it. However I'm pretty fuzzy on this one, and I'm really hoping the additional information might help someone else fix it.

Brad

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers