VNC noVNC ready: native WebSockets, canvas rendering Error?

What is this error means? How to overcome this error?

1 Like

Hi there!,
though it may not be related, just to discard other problemsā€¦

In your opennebula frontendā€¦ is the noVNC proxy server started and listening? You may run ss -ntap | grep 29876 and check if that port is listeningā€¦

Also check if you have an exception in your firewall for that 29876/tcp port if youā€™re using any.

Cheers!

Even I got the same error:
This is message i got when i typed your command in terminal

What to do now?

Hi,
that means the noVNC proxy is listening, thatā€™s good.

Iā€™d check if your frontendā€™s firewall allows traffic to port 29876/tcp. If you have no firewall or that port is allowed then Iā€™d check if tcp ports 5900 onwards are allowed in opennebulaā€™s node from your frontendā€™s. The noVNC server is listening on the 29876 port and then it proxies VNC sessions to the nodes/hypervisors so that traffic must be allowed by the firewall. Check it out and if thatā€™s not the problem will continue the troubleshooting.

Cheers

1 Like

This is message i got when i typed your command in terminal


What to do now?

Hi!
that means that 5900 port is listening so you have a virtual machine with VNC port ready for incoming connections, but you have to check if you have a firewall running that could be blocking the connection.

What operating system are you running on that host? And what is the virtual machine ID you want to open the VNC connection? The VNC ports starts on 5900. If you want to connect to VM #4 the port should be 5904, if VM is #22 the port should be 5922 and so on.

Cheers!

OS is centos 7 and VM ID is 0. How to check and change port to the VNC connection?

Hi!
well in CentOS 7 try the following.

firewall-cmd --state, is it running? Both in frontend and nodes?

If itā€™s running change 1.2.3.4 with the IP address of your frontend and try executing these lines just to be sure that the firewall ports are allowed.

firewall-cmd --zone=public --add-rich-rule=ā€˜rule family=ā€œipv4ā€ source address=ā€œ1.2.3.4/32ā€ port protocol=ā€œtcpā€ port=ā€œ5900-6000ā€ acceptā€™ --permanent
firewall-cmd --reload

What if firewall shows not running. What to do now?

Ok! so firewalld is not running. What about iptables just to be sure? Whatā€™s shown if you run: systemctl status iptables

If it says not-foundā€¦ try to check if you can reach 5900 port on the node from the frontend. You can install nmap in the frontend: yum install nmap and try to run: nmap -p 5900 X.X.X.X changing X.X.X.X with the IP of your node, letā€™s see what happens.

Cheers

I have the same error, and after this error I have: VNC Failed to connect to server (code: 1006).

Any idea?

Hi there!
what have you tried?, in this post Iā€™ve put many different troubleshooting steps so it would be helpful to know what youā€™ve tried already so we know what can be discarded.

Just to sum up, this is what happens usually (I hope Iā€™m right :slight_smile: )

  • If the VM machine is runningā€¦
  • The VNC button in Sunstone tries to open a connection against 29876/tcp port where the noVNC proxy is listening.
  • Then VNC proxy in the frontend tries to open a connection against 59XX port on the node/hypervisor where XX is the ID of the VM.

Are you using KVM as hypervisor or vCenter?

Are you using Apache or NGINX in front of Sunstone? Using SSL/TLS?

Cheers!

Hi,

Yes, I read the solution of this post, but I continue with the problemā€¦ :frowning:

-The VM is running
-If i execute ss -ntap | grep 29876 , result is that LISTEN
-Before importing virtual machines to opennebula, I set this in the .vmx:
remotedisplay.vnc.enabled TRUE
remotedisplay.vnc.port 5901
remotedisplay.vnc.ip 0.0.0.0

For each machine I change the port number. But the XX of port (59XX) is aleatori and not the ID of VM.

I have 3 esx and a vCenter. I have to open any port on a vCenter? Or only gdb server on esx? Actually, I only opened gdb server.

Iā€™m not using ssl/tls.

Itā€™s strange, because at the moment I have imported 2 machines, I can connect to one of them and the other not.

Thanks.

Hi there,
thanks for your feedback, Iā€™ll try to help but Iā€™m beginning my journey with OpenNebula and vCenter so Iā€™m not sure of what could be happeningā€¦ hope I donā€™t give you wrong advices.

According to the docs, you should only have to configure the ESX servers (http://docs.opennebula.org/5.0/deployment/node_installation/vcenter_node_installation.html?highlight=vnc):

ā€œTo enable VNC functionality, repeat the following procedure for each ESX:
In the vSphere client proceed to Home -> Inventory -> Hosts and Clusters
Select the ESX host, Configuration tab and select Security Profile in the Software category
In the Firewall section, select Edit. Enable GDB Server, then click OK
Make sure that the ESX hosts are reachable from the OpenNebula Front-endā€

So, Iā€™d try to check that the frontend can connect to any of the ESX hosts, maybe a DNS error? Are both machines running in the same host? If they run in different ESX hosts maybe you forgot to enable GDB Serverā€¦

As you are working with VMWare as hypervisorā€¦ are you using vOneCloud? (http://vonecloud.today/) In that case you may try this forum instead: https://support.vonecloud.com/hc/en-us

Cheers!

Hi again Sergi,
Iā€™ve been looking for more info in the docs. Check that VMWare Tools is installed in any VM, maybe thatā€™s why you can open a connection to one VM and failing with the other VM.

Cheers

Hi All,

I have the gdb server enabled on all esxā€™s within vcenter.

I think that I have a problem in .vmx configuration.

When you importing a machine, you have all fields as well?

remotedisplay.vnc.enabled TRUE
remotedisplay.vnc.port 5901
remotedisplay.vnc.ip 0.0.0.0

I have to put the remotedisplay.vnc.port in all imported machines? Or there is a way for that opennebula sets a random port?

Thanks.

Hi @Sergi

When import the VMs (wilds), you need put manually these configs in each VM.

Remembering to change remotedisplay.vnc.port to each VM

Best regards,

-Carlos

Hi @ccesario,

There is any way for not have to put the port in each VM?

I have to import a lot of virtual machines, and, if i have to put a different port on each VM, it is easy to make mistakes.

Hi @Sergi,

Maybe you can usage PowerCli to automate it.
This is only an example, but you can usage it as based :slight_smile:

This feature request, should solve this kind of problem, easily :slight_smile:

Regards,

-Carlos

Hi,
Iā€™m continuing with this errorā€¦but, I see that if I enter in portal by name, https://nameOpenneubla, when I try to open a vnc console I have the error. But, if I enter in the portal by ip, https://ip, when I try to open a vnc console I can connect without problem.

Any idea? If i connect to opennebula by ssh and do a ping, by name, to a esx, resolves!

Thanks.