<html>
<head>
<meta content="text/html; charset=ISO-8859-2"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Thanks, now it is a little bit better (but only a little bit - VNC
still doesn't work, no error message on screen ...)<br>
<br>
Now I have in /etc/one/occi_templates/small.erb :<br>
<small>CPU = 1<br>
MEMORY = 512<br>
ARCH = "i686"<br>
GRAPHICS = [<br>
TYPE = "vnc",<br>
LISTEN = "0.0.0.0"<br>
]</small><br>
<br>
In /etc/one/sunstone-server.conf I have:<br>
<small>: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>
</small>In /etc/one/oned.conf I have:<br>
<small>VNC_BASE_PORT = 5900</small><br>
<br>
When I click on VNC icon in Sunstone interface, the following
message in /var/log/one/sunstone.log appears:<br>
<br>
<small>Mon Jul 02 12:51:14 2012 [I]: 10.0.3.51 - - [02/Jul/2012
12:51:14] "POST /vm/25/startvnc 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 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 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 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 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 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 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 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 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 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 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
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
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
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
HTTP/1.1" 200 274 0.0032</small><br>
<br>
In /etc/one/sunstone-server.error:<br>
<small><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>
</small>What is wrong?<br>
<br>
Jan<br>
<br>
<br>
<div class="moz-cite-prefix">Dňa 29.06.2012 14:15, Hector Sanjuan
wrote / napísal(a):<br>
</div>
<blockquote
cite="mid:op.wgny0ammlpo1op@hecturchi.intranet.convivencial.org"
type="cite">
<br>
Hello,
<br>
<br>
I believe your small.erb should rather say:
<br>
<br>
GRAPHICS = [
<br>
TYPE = "vnc"
<br>
]
<br>
<br>
More info:
<a 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>
</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:part1.00050800.05090003@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:part4.04070207.00030400@atos.net"
width="261" height="58"><br>
</font> </font></div>
<br>
<br>
</body>
</html>