From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maja Massarini Subject: usb hid device Date: Tue, 06 Mar 2012 12:13:22 +0100 Message-ID: <1331032402.2195.6.camel@maja-desktop> Reply-To: m.massarini@crscasa.it Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from mr001msr.fastwebnet.it ([85.18.95.64]:50475 "EHLO mr001msr.fastwebnet.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965144Ab2CFLYI (ORCPT ); Tue, 6 Mar 2012 06:24:08 -0500 Received: from [192.168.10.80] (93.57.28.222) by mr001msr.fastwebnet.it (8.5.140) id 4F513D0D003BA243 for kvm@vger.kernel.org; Tue, 6 Mar 2012 12:13:24 +0100 Sender: kvm-owner@vger.kernel.org List-ID: Hi all, I'm trying to use a hid device inside qemu/kvm without success. My host OS is Ubuntu and the guest is a Windows XP. I have disabled apparmor to have, hopefully, less problems. Inside the Windows XP "Device Manager" I see the "Human Interface Device" listed but I'm not really able to use it. I have already seen this same behaviour when using the device in a vmware virtual machine where there was no *usb.generic.allowHID = "TRUE"* directive inside the .vmx file. Adding that directive I'm now able to use the hid device properly inside the vmware virtual machines. When the vmware virtual machine starts I can see in the host, through dmesg, that the modules usbhid and hid are removed from the kernel. 313 Mar 5 10:37:21 maja-desktop kernel: [ 7878.457020] usbcore: deregistering interface driver usbhid 314 Mar 5 10:37:21 maja-desktop kernel: [ 7878.457135] usbcore: deregistering interface driver hiddev When qemu/kvm starts I see no deregistration messages, therefore I thought to remove the modules by hand (through rmmod) before starting qemu/kvm but nothing had changed; The hid device is listed inside the guest system but I can't use it (I mean I can not receive or send any message/packet through it). Running the virtual machine with qemu this is what I got: sudo qemu -m 512 /var/lib/libvirt/images/builder.img -usb -usbdevice host:c251:1101 pci_add_option_rom: failed to find romfile "pxe-rtl8139.bin" usb_create: no bus specified, using "usb.0" for "usb-host" husb: open device 2.6 husb: config #1 need -1 husb: 1 interfaces claimed for configuration 1 husb: grabbed usb device 2.6 husb: config #1 need 1 husb: 1 interfaces claimed for configuration 1 husb: config #1 need 1 husb: 1 interfaces claimed for configuration 1 husb: config #1 need 1 husb: 1 interfaces claimed for configuration 1 husb: config #1 need 1 husb: 1 interfaces claimed for configuration 1 husb: config #1 need 1 husb: 1 interfaces claimed for configuration 1 husb: config #1 need 1 husb: 1 interfaces claimed for configuration 1 husb: config #1 need 1 husb: 1 interfaces claimed for configuration 1 husb: config #1 need 1 husb: 1 interfaces claimed for configuration 1 I really don't have a clue about what to do... I'm not sure if it's a kvm or a qemu issue, for sure its really important to me solve this problem otherwise I can not leave vmware for kvm. Thanks all, Maja