Red Hat Bugzilla – Bug 969405
Spice shared clipboard is not working in anaconda DVD.iso
Last modified: 2014-01-30 17:11:15 EST
Description of problem:
Shared clipboard between host and guest in VM is not working in DVD.iso of Fedora 19 Beta RC4, spice-vdagent is however present and running.
Version-Release number of selected component (if applicable):
Host: Fedora 19
Guest: Fedora 19 Beta RC4 DVD.iso
Steps to Reproduce:
1. Run DVD.iso in KVM
2. Copy something to cliboard in host OS
3. Try to paste it to anaconda in VM
It does not paste the text from clipboard.
It should paste the text from Host's clipboard.
With Live images the clipboard sharing works without problems.
It looks like the installer environment is doing what it's supposed to as far as vdagent, reassigning to spice
I've not investigated this, but this is likely caused by the spice-vdagent not being started as part of a proper login session registered with systemd-logind. spice-vdagentd uses systemd-logind to find out which spice-vdagent process belongs to the active session (there can be multiple spice-vdagent-s running when using fast user switching), so it knows where to send copy and paste data. There are probably messages related to this in /var/log/spice-vdagent.log, assuming rsyslog is running in the anaconda environment.
The easiest way to work around spice-vdagentd requiring a session which is properly registered with systemd-logind is to disable spice-vdagentd-s session tracking, note that if you do this there may only be one spice-vdagent process, as soon as there are 2 spice-vdagentd will refuse to serve either of them.
To disable the systemd-logind integration start spice-vdagentd with -X, note this option is new in spice-vdagent-0.14.0 and not available in older versions.
Thanks, Hans, that was it: there's no login session on the non-live media.