<div dir="ltr">Oh. I just changed /dev/input/eventx (replace x with correct number for my devices) to permissions of 666 and it worked. I guess I had to change the conf file and change the permissions. Is there a way to make the devices work with qemu? The permission user is root and group of input for all the eventx devices. Do I need a udev script or is there a qemu user that can be added to the group of input?<div><br></div><div>Thanks</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 4 January 2016 at 11:56, Gerd Hoffmann <span dir="ltr"><<a href="mailto:kraxel@redhat.com" target="_blank">kraxel@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Mo, 2016-01-04 at 10:10 +0000, Jonathan Scruggs wrote:<br>
> Hi,<br>
><br>
><br>
> I tried these patches with qemu 2.5.0 on Gentoo and libvirt. I get the<br>
> following error:<br>
> Error starting domain: internal error: early end of file from monitor:<br>
> possible problem:<br>
> 2015-12-22T21:51:20.659520Z qemu-system-x86_64:<br>
> -input-linux /dev/input/by-path/pci-0000:00:14.0-usb-0:12:1.0-event-kbd,grab-all=on: Could not open '/dev/input/by-path/pci-0000:00:14.0-usb-0:12:1.0-event-kbd'<br>
><br>
><br>
> I also tried setting /dev/input/event9 to permissions of 666 to see if<br>
> it was a permission error, but the same thing happened. Any help would<br>
> be appreciated.<br>
<br>
</span>libvirt uses cgroups to restrict qemu.  You can tweak cgroup_controllers<br>
in /etc/libvirt/qemu.conf, when you remove "devices" controller it<br>
should work (unless something else like selinux or apparmor applies<br>
additional restrictions).<br>
<br>
HTH,<br>
  Gerd<br>
<br>
</blockquote></div><br></div>