How to configure noVNC?
- Secure master hostname with SSL certificate, for example use the following article for free let's encrypt installation: How to install Let's Encrypt SSL certificate for the SolusVM Master hostname?
- Log into the master node via SSH and install required dependencies:
# yum install python numpy python-ssl
- Use parts of SSL certificate for the hostname to create .pem file for noVNC:
# cd /usr/local/svmstack/nginx/ssl/
# cat ssl.key ssl.crt > /usr/local/solusvm/includes/nvnc/cert.pem
- Now the
/usr/local/solusvm/data/config.inifile on SolusVM Master node need to contain the following lines:
use_remote_hostname = true
socket_dest_public = false
Create the file from
/usr/local/solusvm/data/config.ini.exampleif it does not exist and make sure that NOVNC section looks exactly like pointed above.
- Finally, enable noVNC in SolusVM at SolusVM > Configuration > Settings > Other:
- Restart svmstack-nginx:
# service svmstack-nginx restart
To debug socket connections you can manually start websockify on the host (Make sure you do this on the correct server and you specify the correct port):
# sh /scripts/websocket-stop php /usr/local/solusvm/includes/wsocket.php --port=7706 --debug=1