Fedora 34 guests can no longer paste from host

Victor Toso victortoso at redhat.com
Wed Apr 14 14:53:27 UTC 2021


Hi,

There is nothing obvious to pinpoint here. I can see that
spice-vdagent in Fedora is not using the gtk backend [0] but it is
hard to tell what is happening so far.
What version of spice-gtk you have?

[0] https://kojipkgs.fedoraproject.org//packages/spice-vdagent/0.21.0/1.fc33/data/logs/x86_64/build.log

On Wed, Apr 14, 2021 at 3:26 PM Germano Massullo
<germano.massullo at gmail.com> wrote:
...
> ../src/spice-gtk-session.c:631 clipboard_get_targets:
> (virt-viewer:442690): GSpice-DEBUG: 15:21:47.912:
> ../src/spice-gtk-session.c:670  "text/plain"
> (virt-viewer:442690): GSpice-DEBUG: 15:21:47.912:
> ../src/spice-gtk-session.c:670  "UTF8_STRING"
> (virt-viewer:442690): GSpice-DEBUG: 15:21:47.912:
> ../src/spice-gtk-session.c:670  "STRING"
> (virt-viewer:442690): GSpice-DEBUG: 15:21:47.912:
> ../src/spice-gtk-session.c:670  "TEXT"
> (virt-viewer:442690): GSpice-DEBUG: 15:21:47.912:
> ../src/spice-gtk-session.c:670  "TARGETS"
> (virt-viewer:442690): GSpice-DEBUG: 15:21:47.912:
> ../src/spice-gtk-session.c:670  "MULTIPLE"
> (virt-viewer:442690): GSpice-DEBUG: 15:21:47.912:
> ../src/spice-gtk-session.c:670  "TIMESTAMP"
> (virt-viewer:442690): GSpice-DEBUG: 15:21:47.912:
> ../src/spice-gtk-session.c:670  "SAVE_TARGETS"

Here the client notify some clipboard text to the guest. Not sure if
it was sent to the guest (the agent needs to request the data).

We need the agent's debug log as well. You need to create
/etc/sysconfig/spice-vdagentd and set SPICE_VDAGENTD_EXTRA_ARGS="-d"
for the system agent.
We should be able to see some messages like below or errors with:

journalctl -t spice-vdagentd spice-vdagent # (in the guest)

 | Apr 14 16:49:04 fedora spice-vdagentd[1086]: 0x5627c402dce0 sent
clipboard grab, arg1: 1, arg2: 0, size 4
 | Apr 14 16:49:05 fedora spice-vdagentd[1086]: 0x5627c402dce0
received clipboard request, arg1: 1, arg2: 1, size 0
 | Apr 14 16:49:05 fedora spice-vdagentd[1086]: 0x5627c402dce0 sent
clipboard data, arg1: 1, arg2: 1, size 6

Cheers,




More information about the virt-tools-list mailing list