Revision history [back]

How to change the default port for vnc?

I am trying to reconfigure the nova-novncproxy server to listen to port 5985 instead of 6080. This is because the openstack nodes are residing on a separate network in front of our corp firewall which only allowed a handful of ports, 5985 being one of them. I reconfigured the [vnc] section in /etc/nova/nova.conf on the compute node as follow: [vnc]

enabled = True
server_listen = 0.0.0.0
novncproxy_base_url = http://10.204.16.150:5985/vnc_auto.html


Restart the nova services on both controller and compute, restart apache service. I even reboot the whole thing, but doesn't work. nova-novncproxy is still listening on 6080:

root@controller:~# lsof -i :6080
COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
nova-novn 2295 nova    4u  IPv4  20957      0t0  TCP *:6080 (LISTEN)


nothing is listening on 5985:

root@controller:~# lsof -i :5985
returned nothing


How do I correctly configure vnc to listen to a different port?