Description of problem: Can not copy/paste from host to guest after restart spice-vdagentd.service Version-Release number of selected component (if applicable): libvirt-8.5.0-5.el9.x86_64 qemu-kvm-7.0.0-12.el9.x86_64 How reproducible: 100% Steps to Reproduce: 1. Prepare a vm with qemu-vdagent device ... <channel type='qemu-vdagent'> <source> <clipboard copypaste='yes'/> <mouse mode='client'/> </source> <target type='virtio' name='com.redhat.spice.0' state='connected'/> <alias name='channel0'/> <address type='virtio-serial' controller='0' bus='0' port='1'/> </channel> ... 2. Use tigervnc connect into guest, now the copy/paste function works well. 3: Log in to guest, stop the spice-vdagentd.service. spice-vdagentd.socket will active spice-vdagentd.service immediately. Check copy/paste again. Actual results: On vnc client, I am only able to copy/paste form guest to host, can not copy/paste from host to guest. Expected results: Can copy/paste for both way(From host to guest and guest to host)
What's the guest OS & spice-vdagent version? Could you check if spice-vdagent (the user daemon, not the vdagentd root daemon) is still running? If not, did it crash? On fc36/fc36, spice-vdagent-0.22.1-1, I get a crash in vdagent_x11_do_read, because x11->display is NULL. I'll look into that. thanks
(In reply to Marc-Andre Lureau from comment #1) > What's the guest OS & spice-vdagent version? > > Could you check if spice-vdagent (the user daemon, not the vdagentd root > daemon) is still running? If not, did it crash? > > On fc36/fc36, spice-vdagent-0.22.1-1, I get a crash in vdagent_x11_do_read, > because x11->display is NULL. I'll look into that. > > thanks I am running a RHEL9.1 guest on a RHEL-9.1 host with spice-vdagent-0.21.0-4.el9.x86_64, After I restart spice-vdagentd.service, is still running with no error occurs.
Upstream patches: https://lists.nongnu.org/archive/html/qemu-devel/2022-09/msg01627.html
QE bot(pre verify): Set 'Verified:Tested,SanityOnly' as gating/tier1 test pass.
I'm able to reproduce this issue via the steps from the original report, buggy qemu used is qemu-kvm-7.1.0-6.el9.x86_64, vm used is rhel9.2 And I'm able to verify this issue against qemu-kvm-7.2.0-2.el9.x86_64. With qemu-kvm-7.2.0-2.el9.x86_64, I can do bi-direction(client <-> VM) copy paste without problem
I also hit spice vdagent crash seems been noticed from https://bugzilla.redhat.com/show_bug.cgi?id=2124446#c1 And seems there is already a bug to track it: Bug 2145004 - On a RHEL 9 VM stopping and starting the spice-vdagentd results in a non-usable console The spice vdagent crash can be reproduced on both qemu-kvm-7.1.0-6.el9.x86_64 and qemu-kvm-7.2.0-2.el9.x86_64, so this is not a regression of the patches here, so I mark this bug verified
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: qemu-kvm security, bug fix, and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2023:2162