Hi Arshad,
in OpenNebula VNC ports are assigned like this (hope I explain it well :
- If no VNC port is set in your template, by default the following port will be used 5900 + VMID. Example if you have a VM with ID 5, the port will be 5905 and if VM ID is 15, the VNC port would be 5915. Thatās why you should open ports 5900 TCP onwards in your nodes firewall for traffic with Frontend as source. I usually donāt specify any VNC port as OpenNebula provides one for each VM but thatās a personal choice!
- Each VM has its own VNC port so no, 5900 is not the port for every VM. A VNC proxy runs in the frontend in port 29876 and redirects VNC traffic to each node and port (5905, 5915, 59whateverā¦)
In your case you have set port 5905 so if you use nmap -p 5905 X.X.X.X (where X.X.X.X is the IP address of the node where your VM is running) and the port is closed, you should have to open it in your firewall.
Cheers!