qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Shared clipboard support between Linux host and Windows 10 guest


From: Laurent Halter
Subject: Shared clipboard support between Linux host and Windows 10 guest
Date: Mon, 24 Feb 2025 14:56:46 +0100
User-agent: Mozilla Thunderbird

Hi everyone,

My first post here :)

I'm currently trying to have shared clipboard support between a Linux host and a Windows 10 guest.

It works perfectly if I use -display spice-app. Here are my working arguments to QEMU:

  -name $WINDOW_NAME \
  -m 4G \
  -smp $(($(nproc) / 3)) \
  -hda "$QCOW2_FILE" \
# -incoming "exec: cat memsnapshot"
# -incoming "exec: gzip -c -d memsnapshot.gz"
  -cpu host \
  -enable-kvm \
  -usb -device usb-tablet \
  -audiodev pa,id=pa0,out.stream-name=qemu-audio \
  -device ich9-intel-hda \
  -device hda-output,audiodev=pa0 \
  -boot c \
  -device virtio-serial,packed=on,ioeventfd=on \
  -chardev spicevmc,id=vdagent,name=vdagent \
  -device virtserialport,chardev=vdagent,name=com.redhat.spice.0 \
  -display spice-app \
#  -display gtk \
  -device usb-ehci,id=ehci \
  -device qemu-xhci,id=xhci

But... I'd prefer to use the Gtk display, for several reasons:

I've tried everything to make the above parameters work with Gtk display:

...and never had any clipboard communication (in any direction).

I think my parameters (exposed above) are not so bad as they do work with "-display spice-app".

So far, my guess is that spice-app / virt-viewer are doing some extra or different things compared to spice-vdagent ?

Could you guys confirm me that this approach (shared clipboard without -display spice-app) should work  ?

If yes, any idea of what might go wrong here ?

I'm using QEMU version 8.2.2 on Ubuntu 24.04, and my Windows 10 installation is quite standard.

Thanks in advance for your answers !

Laurent


reply via email to

[Prev in Thread] Current Thread [Next in Thread]