novnc: How to run websockify automatically

3.2k views Asked by At

Maybe someone can help me with novnc. I want to use the novnc service, so I installed it on a debian machine with debian packages. I am able to manually establish a vnc session over a proxy server to another vnc server. But currently I have to manually start the websockify service on my proxy.

How can I start this service automatically? And if the user finished his session how do I tell the proxy server to close the session? I only want to use novnc without the whole openstack installation.

In addition the service should run for multiple users. For example user1 should connect to proxy-ip:5901 and user2 should connect to proxy-ip:5902. So I need to start the websockify service on different ports at the same time.

1

There are 1 answers

0
Arjit Chaudhary On

One way could be to launch websockify with a libvirt hook ? https://www.libvirt.org/hooks.html