Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Clipboard sharing works when using qemu & SPICE: <https://www.spice-space.org>

Guest needs to have spice-guest-tools installed and probably be using gnome - I have had no success with other environments but my testing was shallow.

Alternatively, you can share the host's wayland socket with the guest over the network via waypipe: <https://gitlab.freedesktop.org/mstoeckl/waypipe>

In this scenario the clipboard will function without any issues and with no further steps. And wouldn't require a compositor running in the guest.

You can also have a wayland connection between the guest and host through shared memory buffers via virtio-gpu. But this requires crosvm as qemu doesn't have this functionality. Guest kernel needs to be >=5.16 and be compiled with CONFIG_DRM_VIRTIO_GPU and this tool is required: <https://github.com/talex5/wayland-proxy-virtwl>



FYI: Wayland socket forwarding via the virtio-gpu device is going to get merged soon into upstream QEMU. The patch series is at qemu-devel right now. I have tested it, and works smoothly for 2D stuff. GPU rendering will be added in the future.


Can you elaborate on this? Are you saying that this obviates the need for the proxy tool above?


The network one? No, it'd just make the guest able to show windows in the host's compositor without running one inside the guest.


> Guest needs to have spice-guest-tools installed and probably be using gnome - I have had no success with other environments but my testing was shallow.

Well that's just a nonstarter.

(The waypipe thing is interesting, though)




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: