Hi Sergi,
have you tried using the development tools in your browser (In Chrome and Firefox Ctrl + Shift + I) and check if the browser shows any error in the console?. It might be an issue with a self-signed certificate, or it’s complaining about its content, let’s see if the browser helps us to understand what may be happening.
Another quick question, as you’re using VMWare, are you using vOneCloud or your own OpenNebula installation?
Hi Sergi,
could you give more information on the scenario you’re in?
Are you using a browser with AdBlock? If so try disabling it
Can you run Developer Tools in your browser and check if any error is shown when trying to open VNC sessions?
In a previous post you say that you’re not using SSL but you’ve mentioned that you are using https://. So can you confirm us if you are using SSL and if that’s so what have you done to create the SSL certificates and what have you done to enable SSL for Sunstone?
And… if you’re using SSL this old post I wrote may help you to see that browser can be silently blocking VNC connections, that’s why I’m telling you about Developer Tools in the browser.
Hi Sergi,
thanks, then as you can see it’s a problem in the browser. You’re trying to use HTTPS but the VNC server is not using secure sockets. You should use the configuration parameters in /etc/one/sunstone-server.conf
support_wss: yes
vnc_proxy_cert: Certificate to encrypt wss connections.
vnc_proxy_key: Key for wss connections. Only necessary if key is not included in cert.
So you need the SSL certificate and the key. And once you have all that try restarting Sunstone server so changes are applied. As I told you in a previous comment maybe you can use my blog post to guide you in configuration.
You should have a copy of your SSL certificate in the frontend so the VNC Proxy can use it to establish encrypted sessions. I guess that 405 error is that GET is not allowed by the VNC proxy, but once you have it configured you won’t be using https://name:29876 so don’t worry.
Check that certificate and key file (if key is not inside the certificate) can be read by oneadmin user, you know that sometimes permissions can be an issue if it’s not working. And don’t forget to restart sunstone after editing configuration or changing the cert file and permissions…
kindly help me on this matter. my ssl certificate is working fine when i login via web panel .web panel is open via https and working fine.but when my user take the vnc or machine error come out on screen .which is shown as above. kindly help me on this matter what i have to do . preivously without ssl its working fine.
When i open the noVnc console via http:// then it’s working fine without any problem. When i tried from https:// then it’s not working and in browser development tool its showing this error:
Mixed Content: The page at ‘https://mysite’ was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint ‘ws://My ESXI Host:1003/websockify?token=b28b8dd7e72e892bb9db5cef9e94e3af’. This request has been blocked; this endpoint must be available over WSS.
If i passed encrypt = 0 with console request then it ask for run this script as unsafe in browser. But it’s only working with chrome and also working with some https:// server but not with all.
Any idea? What i need to do with my host or on my server? Is there any certificate issue and how i will resolve it?
I do not have permissions for oneadmin user to read certificate and key file. I has created certificate with CA letsenscrypt and only root user can have access to link lrwxrwxrwx 1 root root 50 Jul 9 15:55 fullchain.pem -> …/…/archive/opennebula.domen.com/fullchain1.pem or lrwxrwxrwx 1 root root 50 Jul 9 15:55 privkey.pem -> …/…/archive/opennebula.domen.com/privkey1.pem So I tried to change owner to oneadmin but nothing happens. The owner is still root user.
I got the same error as VNC noVNC ready:native WebSockets, canvas rendering Error?
Here is my host details as follows:
1.Windows 10 in that installed Virtualbox 6.1 and installed Ubuntu18.04.4 as VM (both frontend and hypervisor host)
2.Opennebula version 5.6.1
Solution according to my case is:
1.Check the status of sudo firewall-cmd --status
2. If it is running stop the firewall using
sudo service firewalld stop