Hello,<br>I'm having a problem with the opennebula sunstone vnc feature. When I try to connect to the server using the vnc button, it opens the window and after a short while "connect timeout" message appears. First I tried to connect to the host vnc with vncviewer and it works allright, so there should be no firewall problems. So I played a bit with the sunstone configuration. I set :vnc_proxy_base_port: 0 in the sunstone.conf so that the noVNC proxy port on the sunstone server is the same as the remote one. I then restarted sunstone and watched the sunstone.log while I tried to use the vnc again, this line appeared in the log (and I got the "connect timeout" message again):<br>
<br><span style="font-weight:normal"></span><span style="font-weight:bold;color:#204a87"> </span>Mon Jul 30 18:22:56 2012 [I]: Starting vnc proxy: /usr/share/one/noVNC/utils/websockify 5904 node3:5904<span style="font-weight:bold;color:#204a87"><br>
</span><br>Then I checked these:<br><br>root@nebula # netstat --ip -lnp | grep 5904<br>tcp 0 0 <a href="http://0.0.0.0:5904">0.0.0.0:5904</a> 0.0.0.0:* LISTEN 7534/python<br><br>root@nebula # ps u -p 7534<br>
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND<br>root 7534 0.1 1.6 92924 16724 pts/1 S 19:11 0:00 python /usr/share/one/noVNC/utils/websockify 5904 node3:5904<br><br>so the noVNC proxy opened the port correctly, but while I can connect to the remote host correctly (using the vncviewer), when I try to connect to this proxied port, I get the following:<br>
<br><span style="font-weight:normal"></span><span style="font-weight:bold;color:#204a87"> </span>root@nebula # vncviewer localhost:4<br>VNC Viewer Free Edition 4.1.1 for X - built Feb 5 2012 20:01:21<br><br>Mon Jul 30 19:16:29 2012<br>
CConn: connected to host localhost port 5904<br><br>Mon Jul 30 19:16:32 2012<br> main: End of stream<br><span style="font-weight:normal"></span><span style="font-weight:bold;color:#204a87"> </span><br>it does connect, so the proxy is partly working, but then the stream ends before the video transmission starts. What should I do to solve this kind of problem? Have I missed something?<br>
<br>Just for completeness, this is my sunstone.conf:<br><br>root@nebula:/usr/share/one# cat /etc/one/sunstone-server.conf | egrep -v '^#|^$'<br>:one_xmlrpc: <a href="http://localhost:2633/RPC2">http://localhost:2633/RPC2</a><br>
host: 0.0.0.0<br>:port: 9869<br>:debug_level: 3<br>:auth: sunstone<br>:core_auth: cipher<br>:vnc_proxy_base_port: 0<br>:vnc_proxy_path: /usr/share/one/noVNC/utils/websockify<br>:vnc_proxy_support_wss: no<br>:vnc_proxy_cert:<br>
:vnc_proxy_key:<br>:lang: en_US<br><br>and the graphics part of the template of the VM I tried it on:<br>GRAPHICS=[<br> LISTEN="0.0.0.0",<br> PORT="5904",<br> TYPE="vnc" ]<br><br>Thank you. Jakub<br>