Skip to main content
Topic: SPICE guest (Fedora) can read from host clipboard but not write (Read 540 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

SPICE guest (Fedora) can read from host clipboard but not write

Hi, I'm trying to set up a shared clipboard for hosts and guests using SPICE. For VMs I am using virt-manager with QEMU/KVM.

I have SPICE set up, but oddly, my Fedora guest can only read the contents of my host clipboard, but when I copy something in the guest, it doesn't change my host clipboard. I have a Windows guest where the shared clipboard behaviour works fine.

spice-vdagentd is running in Fedora. Output of `pacman -Qs spice` on the host is

Code: [Select]
local/qemu-audio-spice 10.0.3-1
    QEMU spice audio driver
local/qemu-chardev-spice 10.0.3-1
    QEMU spice chardev driver
local/qemu-ui-spice-app 10.0.3-1
    QEMU spice app UI driver
local/qemu-ui-spice-core 10.0.3-1
    QEMU spice core UI driver
local/spice 0.16.0-2
    SPICE server
local/spice-gtk 0.42-4
    GTK+ client library for SPICE
local/spice-protocol 0.14.5-1
    Headers for SPICE protocol

Any ideas?

Re: SPICE guest (Fedora) can read from host clipboard but not write

Reply #1
Update—the guest is copying to the host clipboard, but there seems to be a noticeable delay. Not sure how long exactly—I haven't timed it—but long enough that I didn't notice that it is actually copying until now.

I'm using KDE Plasma in the guest and I think this might be a Plasma Wayland issue (also a cross-distro one, as Plasma VMs with other OSes also have the same problem) but I haven't done enough testing to see which graphical environments it's constrained to. Copying host to guest is instant though.

Based on this I'm guessing the host probably polls the VM periodically for clipboard changes, and the polling interval is too infrequent?