On Thursday, November 10th, 2022 at 16:42, Frediano Ziglio <freddy77@xxxxxxxxx> 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>