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.
Welcome to Wayland !
I have had similar issues, to what you report. I also found that "Resize to
VM", does not work either, please test and let me know if you find this too.
I would like to test Gnome-Wayland to see if they have found a solution? If you
can, please test Gnome-Wayland to see.
I mostly use XFCE with X11, for both Host and Guest, appreciating that Resize
to VM and sharing clipboard works.
Maybe these issue are limitations with Wayland, or as you suggested, spice has
not found a way to make these features work under Wayland and KDE's compositor?
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?
>
> Best regards,
> Rafal
>
>
>