On Wednesday, 22-01-2025 at 20:06 Rafał Lichwała wrote:
> Hi,
>
> I struggled with this for several days and tried everything, but nothing
> seems to work. I cannot successfully set shared clipboard between host
> and guest machines when both run Wayland desktop.
Rafal,
To my knowledge, spice-vdagent for clipboard cut/paste does not work on KDE.
There is likely to be technical reason for this, but I do not know what it is.
We are not alone in having this issue.
To my understanding, the issue exists in KDE, not in Debian, as my Arch Linux
system has the same issue.
https://www.reddit.com/r/kde/comments/11xovxh/clipboard_copypaste_sharing_does_not_work_on_kde/?rdt=38569
Maybe one day this issue will be resolved.
If you want to raise the issue further, I suggest connecting with the KDE
development team, not the Debian team.
I am sorry to say, there is no solution for you.
For me, the solution is to use XFCE <--> XFCE. But if you want to use KDE, then
spice-vdagent for clipboard cut/paste does not work on KDE at this time.
When using KDE, I use other methods, like a file shared between host and guest
on a network file share.
George.
>
> My current setup:
>
> Host machine: Debian 12.9
> Desktop environment: KDE Plasma on default Wayland and SDDM
> Installed packages related to KVM: qemu-system, libvirt-daemon-system,
> virt-manager
>
> Guest machine: Debian 12.9
> Desktop environment: KDE Plasma on default Wayland and SDDM
> During guest installation qemu-guest-agent package has been
> automatically installed.
>
> After such fresh installation shared clipboard does not work between
> host and guest.
> So I cannot copy some text to clipboard on host machine and paste it on
> guest machine.
>
> Then I applied the following procedure to have shared clipboard working
> between host(wayland) and guest(X11):
>
> 1. On guest machine installed spice-vdagent package
>
> 2. On guest machine edit file /etc/xdg/autostart/spice-vdagent.desktop
> and comment-out the line with "X-GNOME-Autostart-Phase=WindowManager"
>
> 3. Finally restart guest machine and login to X11 desktop session
>
> Shared clipboard does not work when guest is on Wayland session while it
> works fine when guest is on X11 session.
>
> It seems spice-vdagent supports X11 only...
>
> Are there any other solutions I can try to make it working with both
> machines on Wayland sessions?
spice-vdagent - no.
>
> Best regards,
> Rafal
>
>
>