<html>
<head>
<meta content="text/html; charset=ISO-8859-2"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
BACK, BACK, BACK ...:-)<br>
<br>
VNC console works, but on other IP than I expected ...<br>
When I tried to open port 5932 on IP of physical server (where
virtual instance runs - via other VNC viewer which I have), it
works.<br>
Why it doesn't work directly in Sunstone UI or OCCI UI?<br>
<br>
I'm sure I have something wrong in noVNC installation / setting ...<br>
<br>
J.B.<br>
<br>
<div class="moz-cite-prefix">Dňa 02.07.2012 13:57, Jan Benadik wrote
/ napísal(a):<br>
</div>
<blockquote cite="mid:4FF18CBC.8020606@atos.net" type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-2">
It doesn't help.<br>
That websockify process is ran by clicking on icon.<br>
<br>
Processes before clicking on icon VNC console:<br>
<small>root@nebula-3:/home/sk1u06k5# ps aux |grep websoc<br>
root 6179 0.0 0.0 8068 648 pts/0 S+ 13:51 0:00
grep --color=auto websoc<br>
root@nebula-3:/home/sk1u06k5# </small><br>
<br>
Processes after clicking to icon VNC console (instance ID 32):<br>
<small>root@nebula-3:/home/sk1u06k5# ps aux |grep websoc<br>
oneadmin 6461 4.0 0.4 91628 16808 ? S 13:52 0:00
python /usr/share/opennebula/noVNC/utils/websockify 35808
myto:5932<br>
root 6471 0.0 0.0 8068 652 pts/0 S+ 13:52 0:00
grep --color=auto websoc<br>
root@nebula-3:/home/sk1u06k5# </small><br>
<br>
But console doesn't work ...:-(<br>
No open port on that server:<br>
<small>root@nebula-3:/home/sk1u06k5# nmap one<br>
<br>
Starting Nmap 5.21 ( <a moz-do-not-send="true"
class="moz-txt-link-freetext" href="http://nmap.org">http://nmap.org</a>
) at 2012-07-02 13:56 CEST<br>
Nmap scan report for one (10.0.1.125)<br>
Host is up (0.000015s latency).<br>
Not shown: 996 closed ports<br>
PORT STATE SERVICE<br>
22/tcp open ssh<br>
111/tcp open rpcbind<br>
2049/tcp open nfs<br>
5678/tcp open unknown<br>
<br>
Nmap done: 1 IP address (1 host up) scanned in 0.08 seconds<br>
root@nebula-3:/home/sk1u06k5# </small><br>
<br>
<br>
J.B.<br>
<br>
<br>
<br>
<br>
<div class="moz-cite-prefix">Dňa 02.07.2012 13:45, Hector Sanjuan
wrote / napísal(a):<br>
</div>
<blockquote
cite="mid:op.wgthmrgxlpo1op@hecturchi.intranet.convivencial.org"
type="cite"> <br>
looks like there is a websockify proxy running that shouldnt be
there... <br>
<br>
try killing the related python process which is taking port
29876+vmid and retry opening the vnc console. <br>
<br>
Hector <br>
<br>
En Mon, 02 Jul 2012 13:40:56 +0200, Jan Benadik <a
moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="mailto:jan.benadik@atos.net"><jan.benadik@atos.net></a>
escribió: <br>
<br>
<blockquote type="cite">Thanks, now it is a little bit better
(but only a little bit - VNC still doesn't <br>
work, no error message on screen ...) <br>
<br>
Now I have in /etc/one/occi_templates/small.erb : <br>
CPU = 1 <br>
MEMORY = 512 <br>
ARCH = "i686" <br>
GRAPHICS = [ <br>
TYPE = "vnc", <br>
LISTEN = "0.0.0.0" <br>
] <br>
<br>
In /etc/one/sunstone-server.conf I have: <br>
:vnc_proxy_base_port: 29876 <br>
:vnc_proxy_path: /usr/share/opennebula/noVNC/utils/websockify
<br>
:vnc_proxy_support_wss: no <br>
:vnc_proxy_cert: <br>
:vnc_proxy_key: <br>
<br>
In /etc/one/oned.conf I have: <br>
VNC_BASE_PORT = 5900 <br>
<br>
When I click on VNC icon in Sunstone interface, the following
message in /var/log/one/sunstone.log <br>
appears: <br>
<br>
Mon Jul 02 12:51:14 2012 [I]: 10.0.3.51 - - [02/Jul/2012
12:51:14] "POST /vm/25/startvnc <br>
HTTP/1.1" 200 30 0.0023 <br>
Mon Jul 02 12:51:19 2012 [I]: 10.0.3.51 - - [02/Jul/2012
12:51:19] "GET /vmtemplate?timeout=true <br>
HTTP/1.1" 200 3559 0.0829 <br>
Mon Jul 02 12:51:26 2012 [I]: 10.0.3.51 - - [02/Jul/2012
12:51:26] "GET /group?timeout=true <br>
HTTP/1.1" 200 311 0.0124 <br>
Mon Jul 02 12:51:47 2012 [I]: 10.0.3.51 - - [02/Jul/2012
12:51:47] "GET /cluster?timeout=true <br>
HTTP/1.1" 200 27 0.0778 <br>
Mon Jul 02 12:51:57 2012 [I]: 10.0.3.51 - - [02/Jul/2012
12:51:57] "GET /user?timeout=true <br>
HTTP/1.1" 200 840 0.0099 <br>
Mon Jul 02 12:52:00 2012 [I]: 10.0.3.51 - - [02/Jul/2012
12:52:00] "GET /datastore?timeout=true <br>
HTTP/1.1" 200 2360 0.0132 <br>
Mon Jul 02 12:52:01 2012 [I]: 10.0.3.51 - - [02/Jul/2012
12:52:01] "GET /vnet?timeout=true <br>
HTTP/1.1" 200 791 0.0157 <br>
Mon Jul 02 12:52:03 2012 [I]: 10.0.3.51 - - [02/Jul/2012
12:52:03] "GET /vm?timeout=true <br>
HTTP/1.1" 200 18134 0.0172 <br>
Mon Jul 02 12:52:04 2012 [I]: 10.0.3.51 - - [02/Jul/2012
12:52:04] "GET /image?timeout=true <br>
HTTP/1.1" 200 6974 0.0143 <br>
Mon Jul 02 12:52:08 2012 [I]: 10.0.3.51 - - [02/Jul/2012
12:52:08] "GET /acl?timeout=true <br>
HTTP/1.1" 200 377 0.0750 <br>
Mon Jul 02 12:52:11 2012 [I]: 10.0.3.51 - - [02/Jul/2012
12:52:11] "GET /host?timeout=true <br>
HTTP/1.1" 200 3808 0.0171 <br>
Mon Jul 02 12:52:14 2012 [I]: 10.0.3.51 - - [02/Jul/2012
12:52:14] "GET
/host/monitor?title=graph1&monitor_resources=cpu_usage%2Cused_cpu%2Cmax_cpu&history_length=40<br>
HTTP/1.1" 200 330 0.0121 <br>
Mon Jul 02 12:52:14 2012 [I]: 10.0.3.51 - - [02/Jul/2012
12:52:14] "GET
/host/monitor?title=graph2&monitor_resources=mem_usage%2Cused_mem%2Cmax_mem&history_length=40<br>
HTTP/1.1" 200 398 0.0042 <br>
Mon Jul 02 12:52:14 2012 [I]: 10.0.3.51 - - [02/Jul/2012
12:52:14] "GET
/vm/monitor?title=graph3&monitor_resources=total%2Cactive%2Cerror&history_length=40<br>
HTTP/1.1" 200 293 0.0043 <br>
Mon Jul 02 12:52:14 2012 [I]: 10.0.3.51 - - [02/Jul/2012
12:52:14] "GET
/vm/monitor?title=graph4&monitor_resources=net_tx%2Cnet_rx&history_length=40<br>
HTTP/1.1" 200 274 0.0032 <br>
<br>
In /etc/one/sunstone-server.error: <br>
<br>
File "/usr/share/opennebula/noVNC/utils/websockify", line 282,
in websockify_init <br>
server.start_server() <br>
File "/usr/share/opennebula/noVNC/utils/websocket.py", line
804, in start_server <br>
lsock = self.socket(self.listen_host, self.listen_port) <br>
File "/usr/share/opennebula/noVNC/utils/websocket.py", line
190, in socket <br>
sock.bind(addrs[0][4]) <br>
File "/usr/lib/python2.7/socket.py", line 224, in meth <br>
return getattr(self._sock,name)(*args) <br>
socket.error: [Errno 98] Address already in use <br>
<br>
What is wrong? <br>
<br>
Jan <br>
<br>
<br>
Dňa 29.06.2012 14:15, Hector Sanjuan wrote / napísal(a): <br>
<br>
<br>
Hello, <br>
<br>
I believe your small.erb should rather say: <br>
<br>
GRAPHICS = [ <br>
TYPE = "vnc" <br>
] <br>
<br>
More info: <a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="http://opennebula.org/documentation:rel3.4:template#i_o_devices_section">http://opennebula.org/documentation:rel3.4:template#i_o_devices_section</a>
<br>
<br>
Also remember to set LISTEN if your not accessing the VM from
localhost. <br>
<br>
<br>
</blockquote>
<br>
<br>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<title></title>
<font size="3" color="black" face="Verdana"> <img alt=""
src="cid:part4.02050302.09050003@atos.net" width="252"
height="15"><br>
<b>Ján Beňadik</b><br>
<font size="2" face="Verdana"> Managed Services - Solution
Design Architect<br>
+421 46 5151 332<br>
+421 903 691 634<br>
<a moz-do-not-send="true"
href="mailto://jan.benadik@atos.net">jan.benadik@atos.net</a><br>
Vinohradnícka 6, 971 01 Prievidza<br>
<a moz-do-not-send="true" href="http://www.sk.atos.net">www.sk.atos.net</a><br>
__________________________________<br>
<br>
<img alt="" src="cid:part7.05050301.03050700@atos.net"
width="261" height="58"><br>
</font> </font></div>
<br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a>
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-2">
<title></title>
<font size="3" color="black" face="Verdana"> <img alt=""
src="cid:part8.06050003.04030208@atos.net" width="252"
height="15"><br>
<b>Ján Beňadik</b><br>
<font size="2" face="Verdana"> Managed Services - Solution
Design Architect<br>
+421 46 5151 332<br>
+421 903 691 634<br>
<a href="mailto://jan.benadik@atos.net">jan.benadik@atos.net</a><br>
Vinohradnícka 6, 971 01 Prievidza<br>
<a href="http://www.sk.atos.net">www.sk.atos.net</a><br>
__________________________________<br>
<br>
<img alt="" src="cid:part11.06020002.06010206@atos.net"
width="261" height="58"><br>
</font> </font></div>
<br>
<br>
</body>
</html>