VNC

If you want to setup novnc to view your Xen guest consoles in your webbrowser, you should use websockify to make the VNC ports available via websocket.

apt-get install python-setuptools websockify

Service file /etc/systemd/system/websockify@.service

[Unit]
Description=websockify %I

[Service]
Type=simple
ExecStart=/usr/bin/python /usr/bin/websockify -D 127.0.0.1:$WEBSOCKET_PORT 127.0.0.1:$VNC_PORT
EnvironmentFile=/etc/websockify/%I.conf
Restart=on-failure

[Install]
WantedBy=multi-user.target

Sample configuration /etc/websockify/vnctest.conf

WEBSOCKET_PORT=5810
VNC_PORT=5910

You need to activate the systemd service by the following command:

systemctl daemon-reload
systemctl enable websockify@vnctest
systemctl start websockify@vnctest

You can now verify that websockify is running:

systemctl status websockify@vnctest