https://unix.stackexchange.com/questions/642562/make-shared-clipboard-work-for-qemu service spice-vdagent start with the root user in the guest. After starting X (with startx command), run spice-vdagent in a x-terminal-emulator with a non-root user in the guest.