Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
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)
Comment 1Marc-Andre Lureau
2022-09-08 07:10:46 UTC
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.
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
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)