Bug 1600798
| Summary: | spice-vdagent clipboard ownership copy-and-paste problems | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Charlton Harrison <charlton> | ||||
| Component: | spice-vdagent-win | Assignee: | Default Assignee for SPICE Bugs <rh-spice-bugs> | ||||
| Status: | CLOSED UPSTREAM | QA Contact: | meital avital <mavital> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | --- | CC: | cfergeau, dblechte, ladar, lsurette, rbalakri, srevivo, victortoso | ||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2018-07-13 08:23:43 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | Virt | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Charlton Harrison
2018-07-13 04:43:53 UTC
Hi Charlton, thanks for taking time to report this bug here. I've opened an upstream bug, we can discuss it further there [0] [0] https://gitlab.freedesktop.org/spice/linux/vd_agent/issues/9 I have also run into this issue. Cutting/copying/pasting inside my RHEL 6.10 guest is generating a large number of log entries. The operation itself seems to work once every 5 or so attempts. To make matters worse, this problem is causing certain apps (Eclipse and the clipit widget in particular), to freeze for 10 to 20 seconds at a time. As you can imagine, having your IDE freeze every few minutes is rather annoying. After trying many different things to fix the problem, I gave up. Since this caused me so much pain, I'm posting a workaround here, so that others may be spared some of my grief. Disabling spice clipboard supports, avoids the issue (albeit at the cost of guest/host clipboard sharing). To apply this workaround, libvirt users will need to edit the XML file with the guest configuration directly. With system hosted libvirt guests, the file will likely be /etc/libvirt/qemu/GuestName.xml ... note these files require elevated privileges to access directly ... once open, add a "<clipboard copypaste='no'/>" child node to the "<graphics>" node. This should result in the "<graphics>" section looking something like: <graphics type='spice' autoport='yes' listen='127.0.0.1'> <listen type='address' address='127.0.0.1'/> <image compression='off'/> <clipboard copypaste='no'/> </graphics> For users running QEMU directly, you'll need to add "disable-copy-paste" to the "-spice" configuration. This will yield a command like option that looks something like: -spice port=5900,addr=127.0.0.1,disable-ticketing,image-compression=off,disable-copy-paste,seamless-migration=on Should anyone try and fix this issue, my host is RHEL 7.5. The following are just some of the errors found inside my guest system logs. I will post a larger sample set as an attachment. Jul 17 10:59:40 dark spice-vdagent[2711]: clipboard: received selection request event for target STRING, while not owning client clipboard Jul 17 10:59:40 dark spice-vdagent[2711]: clipboard: received selection request event for target TARGETS, while not owning client clipboard Jul 17 10:59:40 dark spice-vdagent[2711]: clipboard: received clipboard req while not owning guest clipboard Jul 17 11:00:44 dark spice-vdagent[2711]: clipboard: selection requests pending on clipboard ownership change, clearing Jul 17 11:00:44 dark spice-vdagent[2711]: clipboard: received clipboard req while not owning guest clipboard Jul 17 11:01:47 dark spice-vdagent[2711]: clipboard: selection requests pending on clipboard ownership change, clearing Jul 17 11:01:57 dark spice-vdagent[2711]: clipboard: received clipboard req while not owning guest clipboard Jul 17 11:01:58 dark spice-vdagent[2711]: clipboard: selection requests pending on clipboard ownership change, clearing Jul 17 11:02:00 dark spice-vdagent[2711]: clipboard: unexpected selection type text/uri-list Created attachment 1459973 [details]
spice.log
|