[Spice-devel] Agent crashes on Alpine Linux guest due to lack of /dev/uinput

let-me-use-copy-and-paste let-me-use-copy-and-paste at proton.me
Fri Nov 11 08:09:01 UTC 2022


On Thursday, November 10th, 2022 at 16:42, Frediano Ziglio <freddy77 at gmail.com> wrote:

> You need to pass "agent-mouse=off" to Qemu, see
> https://people.freedesktop.org/~teuf/spice-doc/html/ch03.html or
> "qemu-system-x86_64 --help".
> 
> Try mkdir -p /run/spice-vdagentd before launching the daemon. Not sure
> who deletes the directory (if that's the problem).
> 
> Frediano

Thanks.

`mkdir -p /run/spice-vdagentd` solved the problem of the "Could not create socket..." .

As for the QEMU "agent-mouse=off", I am using the GUI VirtManager 4.1.0 from Redhat, so I did not know how to do that. I searched Google a lot, and finally found an option in the LibVirt documentation page ( https://libvirt.org/formatdomain.html#graphical-framebuffers ). VirtManager's GUI does not have an option to add the setting, but after enabling XML editing, I selected "Display Spice" node in hardware details, and then added `<mouse mode="server"/>` like below. I succeeded in copy-and-pasting text from host to client.

<graphics type="spice" port="5900" autoport="yes" listen="127.0.0.1">
  <listen type="address" address="127.0.0.1"/>
  <image compression="off"/>
  <mouse mode="server"/>
</graphics>


More information about the Spice-devel mailing list