* usb hid device
@ 2012-03-06 11:13 Maja Massarini
2012-03-06 11:50 ` Avi Kivity
0 siblings, 1 reply; 4+ messages in thread
From: Maja Massarini @ 2012-03-06 11:13 UTC (permalink / raw)
To: kvm
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: usb hid device
2012-03-06 11:13 usb hid device Maja Massarini
@ 2012-03-06 11:50 ` Avi Kivity
2012-03-06 15:06 ` Maja Massarini
2012-03-07 8:15 ` Maja Massarini
0 siblings, 2 replies; 4+ messages in thread
From: Avi Kivity @ 2012-03-06 11:50 UTC (permalink / raw)
To: m.massarini; +Cc: kvm
On 03/06/2012 01:13 PM, Maja Massarini wrote:
> 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.
What version of qemu-kvm are you using? In general 1.0+ is much better
than its predecessors.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: usb hid device
2012-03-06 11:50 ` Avi Kivity
@ 2012-03-06 15:06 ` Maja Massarini
2012-03-07 8:15 ` Maja Massarini
1 sibling, 0 replies; 4+ messages in thread
From: Maja Massarini @ 2012-03-06 15:06 UTC (permalink / raw)
To: Avi Kivity; +Cc: kvm
On Tue, 2012-03-06 at 13:50 +0200, Avi Kivity wrote:
> What version of qemu-kvm are you using? In general 1.0+ is much better
> than its predecessors.
I was using qemu-kvm-0.12.3 and in another host qemu-kvm-0.14.1.
Now I have just compiled "QEMU emulator version 1.0,1" and nothing has
changed.
I tried with the modules usbhid and hid loaded and without them but was
the same.
Inside the Windows XP Device Manager the hid device seems to be working
properly (I see no yellow exclamation marks over the device icon).
Thanks,
Maja
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: usb hid device
2012-03-06 11:50 ` Avi Kivity
2012-03-06 15:06 ` Maja Massarini
@ 2012-03-07 8:15 ` Maja Massarini
1 sibling, 0 replies; 4+ messages in thread
From: Maja Massarini @ 2012-03-07 8:15 UTC (permalink / raw)
To: Avi Kivity; +Cc: kvm
I figured it out to use usb/ip to skip the problem, and now my hid
device is working properly.
Thanks for your kind reply,
Maja
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-03-07 8:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-06 11:13 usb hid device Maja Massarini
2012-03-06 11:50 ` Avi Kivity
2012-03-06 15:06 ` Maja Massarini
2012-03-07 8:15 ` Maja Massarini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.