[lxc-users] VNC server does not start inside a container

Federico Alves venefax at gmail.com
Thu Jul 2 19:18:50 UTC 2015


I have container with GUI under Fedora 22
The service vncserver@:0 fails ar boot, always

systemctl status vncserver@:0

Jul 02 15:07:19 voice1 systemd[1]: Starting Remote desktop service (VNC)...
Jul 02 15:07:19 voice1 systemd[1]: vncserver@:0.service: control process
exited, code=exited status=29
Jul 02 15:07:19 voice1 systemd[1]: Failed to start Remote desktop service
(VNC).
Jul 02 15:07:19 voice1 systemd[1]: Unit vncserver@:0.service entered failed
state.
Jul 02 15:07:19 voice1 systemd[1]: vncserver@:0.service failed.

This is the service file

[Unit]
Description=Remote desktop service (VNC)
After=xdm syslog.target network.target network-online.target
Wants=network-online.target

[Service]
Type=forking
# Clean any existing files in /tmp/.X11-unix environment
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
ExecStart=/sbin/runuser -l falves -c "/usr/bin/vncserver %i"
PIDFile=/home/falves/.vnc/%H%i.pid
ExecStop=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'

[Install]
WantedBy=multi-user.target

What might be happening that vnc fails.
If I execute manually,
systemctl start vncserver@:0

it does start fine.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20150702/067cffe5/attachment.html>


More information about the lxc-users mailing list