Red Hat Bugzilla – Bug 597947
QEMU could not open USB device
Last modified: 2015-03-16 11:25:09 EDT
Description of problem:
vm configure to use usb device but can not use it.
log message in /var/log/libvirt/qemu/vm.log
husb: open device 5.3
/dev/bus/usb/005/003: Operation not permitted
Version-Release number of selected component (if applicable):
Steps to Reproduce:
this is because cgroup enabled and usb is blacklisted, so libviirtd can not
open it. the usb need to be added to cgroup devices, or do not enable cgroup.
Ah, I forgot that USB devices appear as character device nodes. libvirt will need to be taught to set those up with cgroups like it already does for disks, serial ports & parallel ports.
Fixed upstream by:
Author: Diego Elio Pettenò <email@example.com>
AuthorDate: 2010-11-01 12:03:16 +0100
Commit: Eric Blake <firstname.lastname@example.org>
CommitDate: 2010-11-01 10:19:51 -0600
qemu: add the USB devices to the cgroup whitelist
Make sure that the QEmu process within the cgroup can access the device
file for the USB device that has to be connected to the virtual domain.
git describe: v0.8.5-6-g5919afe contains: v0.8.6~192