QEMU USB直通不起作用

我坚持在Ubuntu Server 14.04上使用Windows 8.1来宾操作系统来获得USB直通。 我开始使用Ubuntu文档( https://help.ubuntu.com/community/KVM )安装qemu。 USB设备(Datev mIdentity)被客人识别,但是我无法访问。 这与之前报告的错误是一样的( https://bugs.launchpad.net/qemu/+bug/1033727 )

主机上的lsusb输出:

# lssub [239775.341958] usb 3-4: hub failed to enable device, error -22 [239775.508845] usb 3-4: reset full-speed USB device number 11 using xhci_hcd [239775.508893] xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for slot 10. [239775.509931] usb 3-4: hub failed to enable device, error -22 [239775.676980] usb 3-4: reset full-speed USB device number 11 using xhci_hcd [239775.695110] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800cee83100 [239775.695114] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800cee83148 [239775.695115] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800cee83190 [239775.695517] usb 3-4: usbfs: process 23897 (pcscd) did not claim interface 0 before use [239786.195869] usb 3-4: usbfs: interface 0 claimed by usbfs while 'qemu-system-x86' sets config #1 

在/var/log/libvirt/qemu/VM.log中我find了下面一行:

 libusb_set_configuration: -6 [BUSY] 

大量阅读后,我设置了一个udev规则来授予对libvirt组的访问权限,在vm的xml定义中定义设备,并检查appamor是否被阻止。 一切看起来不错,但仍然是一样的错误。

然后,我使用–enable-libusb标志设置从源代码创buildqemu。 还是一样的错误。

QEMU版本:

 # /usr/bin/qemu-system-x86_64 -version QEMU emulator version 2.0.0 (Debian 2.0.0+dfsg-2ubuntu1.13), Copyright (c) 2003-2008 Fabrice Bellard 

libsub版本:

 # dpkg -l | grep libusb ii libgusb2:amd64 0.1.6-5 amd64 GLib wrapper around libusb1 ii libusb-0.1-4:amd64 2:0.1.12-23.3ubuntu1 amd64 userspace USB programming library ii libusb-1.0-0:amd64 2:1.0.17-1ubuntu2 amd64 userspace USB programming library ii libusb-dev 2:0.1.12-23.3ubuntu1 amd64 userspace USB programming library development files ii libusbredirparser1:amd64 0.6-2ubuntu1 amd64 Parser for the usbredir protocol (runtime) 

libvirt版本:

 # dpkg -l | grep libvirt ii libvirt-bin 1.2.2-0ubuntu13.1.10 amd64 programs for the libvirt library ii libvirt0 1.2.2-0ubuntu13.1.10 amd64 library for interfacing with different virtualization systems ii python-libvirt 1.2.2-0ubuntu2 amd64 libvirt Python bindings 

在这一点上,我不知道发生了什么事情。 我感谢任何帮助。 非常感谢!