USB configuration changes from 14.04 to 14.10

Bug #1387154 reported by vvro
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
libvirt (Ubuntu)
Confirmed
Low
Unassigned
virt-manager (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Upgraded from 14.04 to 14.10
virt-manager
Version: 1:1.0.1-0ubuntu2
libvirt-bin
Version: 1.2.8-0ubuntu11

The USB Host device, no longer gets mapped in to the guest VM.

Using qemu-kvm for virtualization, with virt-manager.
Tried different types of devices and host OSs, doesn't work.
Could be some changes to libvirt.

Revision history for this message
vvro (vvro) wrote :

If I delete the VM, leave the storage intact, and create it again, It's okay. The configuration that it creates is different, but the USB works thru spice.

Seems to have been some changes made in how the usb redirects are made, probably virt-manager should take this in to account, and migrate the VMs settings.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote : Re: [Bug 1387154] Re: USB host device no longer added to VM

Thanks for reporting this bug. This will probably need to be handled
as a documentation issue.

 title USB configuration changes from 14.04 to 14.10
 status: confirmed
 importance: low

Changed in libvirt (Ubuntu):
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Matti Laakso (matti-laakso) wrote : Re: USB host device no longer added to VM

I also have the same problem: USB host devices can no longer be added to the guest system. I don't use USB redirection with spice, but the Add hardware -> USB host device option in virt-manager. I get the following messages in the /var/log/libvirt/qemu/guest.log file:

libusbx: error [_get_usbfs_fd] libusbx couldn't open USB device /dev/bus/usb/001/011: Permission denied
libusbx: error [_get_usbfs_fd] libusbx requires write access to USB device nodes.

Sure enough, the write permissions are restricted to root only:

crw-rw-r-- 1 root root 189, 11 marra 4 12:00 011

Shouldn't libvirtd change these permissions automatically? This worked in 14.04, so it is a regression.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in virt-manager (Ubuntu):
status: New → Confirmed
summary: - USB host device no longer added to VM
+ USB configuration changes from 14.04 to 14.10
Revision history for this message
Joe Clifford (joeclifford) wrote :

I'd like to confirm Matti Laakso's comment #3. I too am unable to pass through a USB mouse or keyboard for dedicated yse on my Windows VM.
Spice redirection works correctly.
Changing the permissions so that libusbx doesn't complain does not resolve the situation. Using USB passthrough in virt-manager has no effect at all. It seems this particular problem occurred upstream in Debian too, which is now fixed in libvirt-1.2.9.
See here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=765080

I too noticed the changes in the libvirt VM hardware spec when upgrading from Ubuntu 14.04 to 14.10 and I had to recreate the spec however, recreating it (with the same qcow2 image) does not solve the problem of USB passthrough not functioning.

Should I raise a new bug for the USB passthrough problem as it appears this bug has been allocated to just changing documentation referring to the libvirt spec change?

Revision history for this message
Serge Hallyn (serge-hallyn) wrote : Re: [Bug 1387154] Re: USB configuration changes from 14.04 to 14.10

> See here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=765080

Thanks.

Judging by the changelog it looks like the fix is in the 1.2.8..1.2.9
delta. Though I don't notice anything in git log about it (unless it
is "node_device_udev: Try harder to get human readable vendor:product")
So that's fine for 15.04 as we'll be merging the newest release soon,
but it sadly doesn't help cherrypicking a fix for 14.10.

> I too noticed the changes in the libvirt VM hardware spec when upgrading
> from Ubuntu 14.04 to 14.10 and I had to recreate the spec however,
> recreating it (with the same qcow2 image) does not solve the problem of
> USB passthrough not functioning.
>
> Should I raise a new bug for the USB passthrough problem as it appears
> this bug has been allocated to just changing documentation referring to
> the libvirt spec change?

Please do.

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.