Bug 1981338
| Summary: | KDE: spice-vdagentd.socket not hearing spice-vdagent-sock | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Todd <ToddAndMargo> |
| Component: | spice-vdagent | Assignee: | Christophe Fergeau <cfergeau> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 34 | CC: | alon, cfergeau, hdegoede, marcandre.lureau, nerijus, rdieter, sandmann |
| Target Milestone: | --- | ||
| 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: | 2021-07-15 20:56:54 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Todd
2021-07-12 12:33:14 UTC
It is activated by /usr/lib/udev/rules.d/70-spice-vdagentd.rules:
ACTION=="add", SUBSYSTEM=="virtio-ports", ENV{DEVLINKS}=="/dev/virtio-ports/com.redhat.spice.0", ENV{SYSTEMD_WANTS}="spice-vdagentd.socket"
and /usr/lib/systemd/system/spice-vdagentd.socket:
[Unit]
Description=Activation socket for spice guest agent daemon
[Socket]
ListenStream=/run/spice-vdagentd/spice-vdagent-sock
Hi Nerijus, EVERY OTHER distro I have tested, `systemctl enable spice-vdagent` work properly: Xfce, weird old gnome, etc,. If "70-spice-vdagentd.rules" is wrong in KDE, why is it doing such and what need to be done to KDE's installer to fix it? -T Hi Nerijus,
EVERY OTHER distro I have tested, `systemctl enable spice-vdagent` work properly: Xfce, weird old gnome, etc,. If "70-spice-vdagentd.rules" is wrong in KDE, why is it doing such and what need to be done to KDE's installer to fix it?
If this helps:
both fresh power on boots):
KDE VM (Fedora-KDE-Live-x86_64-34-1.2.iso):
# systemctl status spice-vdagentd
○ spice-vdagentd.service - Agent daemon for Spice guests
Loaded: loaded (/usr/lib/systemd/system/spice-vdagentd.service; indire>
Active: inactive (dead)
TriggeredBy: ● spice-vdagentd.socket
Gnome VM (Fedora-Workstation-Live-x86_64-34-1.2.iso):
# systemctl status spice-vdagentd
● spice-vdagentd.service - Agent daemon for Spice guests
Loaded: loaded (/usr/lib/systemd/system/spice-vdagentd.service; indirect; >
Active: active (running) since Mon 2021-07-12 15:17:32 PDT; 2h 1min ago
TriggeredBy: ● spice-vdagentd.socket
Process: 1190 ExecStart=/usr/sbin/spice-vdagentd $SPICE_VDAGENTD_EXTRA_ARGS>
Main PID: 1195 (spice-vdagentd)
Tasks: 3 (limit: 2329)
Memory: 836.0K
CPU: 1.125s
CGroup: /system.slice/spice-vdagentd.service
└─1195 /usr/sbin/spice-vdagentd
Jul 12 17:04:51 fedora spice-vdagentd[1195]: Error getting active session: No d>
Jul 12 17:04:51 fedora spice-vdagentd[1195]: Error getting active session: No d>
Jul 12 17:04:51 fedora spice-vdagentd[1195]: Error getting active session: No d>
Jul 12 17:04:53 fedora spice-vdagentd[1195]: opening vdagent virtio channel
Jul 12 17:04:53 fedora spice-vdagentd[1195]: Set max clipboard: 104857600
Jul 12 17:04:53 fedora spice-vdagentd[1195]: Set max clipboard: 104857600
Jul 12 17:18:31 fedora spice-vdagentd[1195]: closed vdagent virtio channel
Jul 12 17:18:34 fedora spice-vdagentd[1195]: opening vdagent virtio channel
Jul 12 17:18:34 fedora spice-vdagentd[1195]: Set max clipboard: 104857600
Jul 12 17:18:34 fedora spice-vdagentd[1195]: Set max clipboard: 104857600
Xfce VM (Fedora-Xfce-Live-x86_64-34-1.2.iso):
$ systemctl status spice-vdagentd
● spice-vdagentd.service - Agent daemon for Spice guests
Loaded: loaded (/usr/lib/systemd/system/spice-vdagentd.service; enabled; v>
Active: active (running) since Mon 2021-07-12 17:27:57 PDT; 12s ago
TriggeredBy: ● spice-vdagentd.socket
Process: 1191 ExecStart=/usr/sbin/spice-vdagentd $SPICE_VDAGENTD_EXTRA_ARGS>
Main PID: 1193 (spice-vdagentd)
Tasks: 3 (limit: 2330)
Memory: 920.0K
CPU: 30ms
CGroup: /system.slice/spice-vdagentd.service
└─1193 /usr/sbin/spice-vdagentd
Hi All,
Host:
Fedora 34
Xfce 4.14
qemu-kvm-5.2.0-8.fc34.x86_64
Virtual Machine (VM):
KDE installed from ISO:
Fedora-KDE-Live-x86_64-34-1.2.iso
My assumption that "enable" was not working correctly is wrong. It is the .socket not hearing
ListenStream=/run/spice-vdagentd/spice-vdagent-sock
and not triggering the .service that is at issue
The thing is, it should start automatically, but does not.
-T
$ systemctl status spice-vdagentd.service
○ spice-vdagentd.service - Agent daemon for Spice guests
Loaded: loaded (/usr/lib/systemd/system/spice-vdagentd.service; indire>
Active: inactive (dead)
TriggeredBy: ● spice-vdagentd.socket
$ systemctl status spice-vdagentd.socket
● spice-vdagentd.socket - Activation socket for spice guest agent daemon
Loaded: loaded (/usr/lib/systemd/system/spice-vdagentd.socket; static)
Active: active (listening) since Mon 2021-07-12 22:35:53 PDT; 1min 36s>
Triggers: ● spice-vdagentd.service
Listen: /run/spice-vdagentd/spice-vdagent-sock (Stream)
CGroup: /system.slice/spice-vdagentd.socket
# cat /usr/lib/systemd/system/spice-vdagentd.service
[Unit]
Description=Agent daemon for Spice guests
After=dbus.target
Requires=spice-vdagentd.socket
[Service]
Type=forking
EnvironmentFile=-/etc/sysconfig/spice-vdagentd
ExecStart=/usr/sbin/spice-vdagentd $SPICE_VDAGENTD_EXTRA_ARGS
PIDFile=/run/spice-vdagentd/spice-vdagentd.pid
PrivateTmp=true
Restart=on-failure
[Install]
Also=spice-vdagentd.socket
# cat /usr/lib/systemd/system/spice-vdagentd.socket
[Unit]
Description=Activation socket for spice guest agent daemon
[Socket]
ListenStream=/run/spice-vdagentd/spice-vdagent-sock
$ systemctl status spice-vdagentd.service
○ spice-vdagentd.service - Agent daemon for Spice guests
Loaded: loaded (/usr/lib/systemd/system/spice-vdagentd.service; indire>
Active: inactive (dead)
TriggeredBy: ● spice-vdagentd.socket
$ systemctl status spice-vdagentd.socket
● spice-vdagentd.socket - Activation socket for spice guest agent daemon
Loaded: loaded (/usr/lib/systemd/system/spice-vdagentd.socket; static)
Active: active (listening) since Mon 2021-07-12 22:35:53 PDT; 1min 36s>
Triggers: ● spice-vdagentd.service
Listen: /run/spice-vdagentd/spice-vdagent-sock (Stream)
CGroup: /system.slice/spice-vdagentd.socket
See bug #1951580 this has both a system-level and user-level component, the aforementioned bug is a work-in progress to provide a user level systemd service (and add appropriate dependencies to get it started for plasma environments) *** This bug has been marked as a duplicate of bug 1951580 *** I see now this is more about the system part of the problem (which may be separate issue). If that's the case, feel free to re-open this one. |