The way I do it is by using the user level systemd service. I think latest vdagent improved this by making their user level service depend on graphical user session.
See: * https://gitlab.freedesktop.org/spice/linux/vd_agent/-/blob/master/data/spice-vdagent.service * https://gitlab.freedesktop.org/spice/linux/vd_agent/-/merge_requests/47 The one in Debian now is still outdated: /usr/lib/systemd/user/spice-vdagent.service So you can probably patch that manually with the above and see if that helps. Regards, Shmerl.