[vfio-users] VM loses mouse

Javier Celaya jcelaya at gmail.com
Mon May 1 12:56:06 UTC 2017


You can set the user the VMs are run as in /etc/libvirt/qemu.conf,
directive user

El 1/5/2017 14:50, "Patrick O'Callaghan" <poc at usb.ve> escribió:

> On Mon, 2017-05-01 at 15:34 +0300, Zycorax Tokoroa wrote:
> > > OK, I did the following:
> > >
> > > * Added the 'qemu' user to the 'input' group.
> > > * Edited /etc/libvirt/qemu.conf to add the evdev devices
> > > * Restarted libvirtd
> > >
> > > I still get the same error.
> > >
> > > poc
> > >
> >
> >
> > - Check the ownership of the /dev/input/ devices matches what I've seen
> > in my experience (root:input).
>
> It does.
>
> > - Note that the user VMs are run as is "libvirt-qemu", not just "qemu",
> > at least in the systems I've worked with. If your distribution uses a
> > different user, this can be found by running a simple dummy VM.
>
> There is no libvirt-qemu user. VMs run as 'qemu'. This is Fedora 25.
>
> > - Note that /dev/input/ aren't guaranteed to always be the same with
> > every host boot. /dev/input/by-id/ should grant a non-changing name,
> iirc.
>
> That's what I'm using (my earlier example used 'eventX' but changing it
> to /dev/input/by-id makes no difference).
>
> > Alternatively to the two first points, you could set the ownership of
> > the devices involved to libvirt-qemu before launching the VM.
>
> Tried that. No change.
>
> poc
>
> _______________________________________________
> vfio-users mailing list
> vfio-users at redhat.com
> https://www.redhat.com/mailman/listinfo/vfio-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/vfio-users/attachments/20170501/7f772875/attachment.htm>


More information about the vfio-users mailing list