Then connect to the vm with the multiple monitor client which you want to
use it with using: "spicec --full-screen=auto-config" (or the user portal
equivalent). At this point the agent will write out a:
- /opt/var/run/spice-vdagentd/xorg.conf.spice file. With all the necessary magic
+ /tmp/spice-vdagentd/xorg.conf.spice file. With all the necessary magic
to get Xinerama working. Move this file to /etc/X11/xorg.conf, then kill
Xorg so that it will get restarted and you should be good to go.
* Limited support for setups with multiple Screens (multiple qxl devices each
# A template to for higher precision timestamps + severity logging
$template SpiceTmpl,"%TIMESTAMP%.%TIMESTAMP:::date-subseconds% %syslogtag% %syslogseverity-text%:%msg:::sp-if-no-1st-sp%%msg:::drop-last-lf%\n"
-:programname, startswith, "spice-vdagent" /opt/var/run/log/spice-vdagent.log;SpiceTmpl
+:programname, startswith, "spice-vdagent" /tmp/log/spice-vdagent.log;SpiceTmpl
exec="/usr/sbin/spice-vdagentd"
prog="spice-vdagentd"
port="/dev/virtio-ports/com.redhat.spice.0"
-pid="/opt/var/run/spice-vdagentd/spice-vdagentd.pid"
+pid="/tmp/spice-vdagentd/spice-vdagentd.pid"
[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog
-lockfile=/opt/var/run/lock/subsys/$prog
+lockfile=/tmp/spice-vdagentd/lock/subsys/$prog
start() {
[ -x $exec ] || exit 5
[ -c $port ] || exit 0
modprobe uinput > /dev/null 2>&1
# In case the previous running vdagentd crashed
- rm -f /opt/var/run/spice-vdagentd/spice-vdagent-sock
+ rm -f /tmp/spice-vdagentd/spice-vdagent-sock
echo -n $"Starting $prog: "
daemon --pidfile $pid $exec $SPICE_VDAGENTD_EXTRA_ARGS
[Unit]
Description=Agent for Spice guests
-After=xorg.target e17.service
[Service]
Type=forking
exec="/usr/sbin/spice-vdagentd"
prog="spice-vdagentd"
port="/dev/virtio-ports/com.redhat.spice.0"
-pid="/opt/var/run/spice-vdagentd/spice-vdagentd.pid"
+pid="/tmp/spice-vdagentd/spice-vdagentd.pid"
[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog
-lockfile=/opt/var/run/lock/subsys/$prog
+lockfile=/tmp/spice-vdagentd/lock/subsys/$prog
start() {
[ -x $exec ] || exit 5
[ -c $port ] || exit 0
modprobe uinput > /dev/null 2>&1
# In case the previous running vdagentd crashed
- rm -f /opt/var/run/spice-vdagentd/spice-vdagent-sock
+ rm -f /tmp/spice-vdagentd/spice-vdagent-sock
echo -n $"Starting $prog: "
daemon --pidfile $pid $exec $SPICE_VDAGENTD_EXTRA_ARGS
retval=$?
[Service]
Type=forking
EnvironmentFile=-/etc/sysconfig/spice-vdagentd
-ExecStartPre=/bin/rm -f /opt/var/run/spice-vdagentd/spice-vdagent-sock
+ExecStartPre=/bin/rm -f /tmp/spice-vdagentd/spice-vdagent-sock
ExecStart=/usr/sbin/spice-vdagentd $SPICE_VDAGENTD_EXTRA_ARGS;
-PIDFile=/opt/var/run/spice-vdagentd/spice-vdagentd.pid
+PIDFile=/tmp/spice-vdagentd/spice-vdagentd.pid
PrivateTmp=true
[Install]
# spice-vdagentd needs this and does not create it itself
-d /opt/var/run/spice-vdagentd 0755 root root -
+d /tmp/spice-vdagentd 0755 root root -
Name: spice-vdagent
-Version: 0.15.0
+Version: 0.15.1
Release: 1
Summary: This is used for spice input communication
License: GPL-3.0
make
%install
-rm -rf %{buildroot}
-
-if [ ! -d %{buildroot}/usr/lib/systemd/system/emulator.target.wants ]; then
- mkdir -p %{buildroot}/usr/lib/systemd/system/emulator.target.wants
-fi
-cp data/spice-vdagentd.service %{buildroot}/usr/lib/systemd/system/.
-ln -s ../spice-vdagentd.service %{buildroot}/usr/lib/systemd/system/emulator.target.wants/spice-vdagentd.service
-
-if [ ! -d %{buildroot}/usr/lib/systemd/user/core-efl.target.wants ]; then
- mkdir -p %{buildroot}/usr/lib/systemd/user/core-efl.target.wants
-fi
-cp data/spice-vdagent.service %{buildroot}/usr/lib/systemd/user/.
-ln -s ../spice-vdagent.service %{buildroot}/usr/lib/systemd/user/core-efl.target.wants/spice-vdagent.service
-
-%make_install
%clean
make clean
rm -rf install_manifest.txt
%post
-mkdir -p /opt/var/run/spice-vdagentd
%postun
%files
%defattr(-,root,root,-)
-/usr/lib/systemd/user/spice-vdagent.service
-/usr/lib/systemd/system/spice-vdagentd.service
-/usr/lib/systemd/user/core-efl.target.wants/spice-vdagent.service
-/usr/lib/systemd/system/emulator.target.wants/spice-vdagentd.service
/usr/bin/spice-vdagent
/usr/etc/rsyslog.d/spice-vdagentd.conf
/usr/etc/xdg/autostart/spice-vdagent.desktop
#ifndef __VDAGENTD_PROTO_H
#define __VDAGENTD_PROTO_H
-#define VDAGENTD_SOCKET "/opt/var/run/spice-vdagentd/spice-vdagent-sock"
+#define VDAGENTD_SOCKET "/tmp/spice-vdagentd/spice-vdagent-sock"
enum {
VDAGENTD_GUEST_XORG_RESOLUTION, /* client -> daemon, arg1: overall width,
.subvendor_id = PCI_MATCH_ANY,
.subdevice_id = PCI_MATCH_ANY,
};
- const char *xorg_conf = "/opt/var/run/spice-vdagentd/xorg.conf.spice";
- const char *xorg_conf_old = "/opt/var/run/spice-vdagentd/xorg.conf.spice.old";
+ const char *xorg_conf = "/tmp/spice-vdagentd/xorg.conf.spice";
+ const char *xorg_conf_old = "/tmp/spice-vdagentd/xorg.conf.spice.old";
r = rename(xorg_conf, xorg_conf_old);
if (r && errno != ENOENT) {
};
/* variables */
-static const char *pidfilename = "/opt/var/run/spice-vdagentd/spice-vdagentd.pid";
+static const char *pidfilename = "/tmp/spice-vdagentd/spice-vdagentd.pid";
static const char *portdev = "/dev/virtio-ports/com.redhat.spice.0";
static const char *vdagentd_socket = VDAGENTD_SOCKET;
static const char *uinput_device = "/dev/uinput";