Thanks, now it is a little bit better (but only a little bit - VNC still doesn't work, no error message on screen ...)

Now I have in /etc/one/occi_templates/small.erb :
CPU             = 1
MEMORY          = 512
ARCH            = "i686"
GRAPHICS        = [
        TYPE    = "vnc",
        LISTEN  = "0.0.0.0"
]


In /etc/one/sunstone-server.conf I have:
:vnc_proxy_base_port: 29876
:vnc_proxy_path: /usr/share/opennebula/noVNC/utils/websockify
:vnc_proxy_support_wss: no
:vnc_proxy_cert:
:vnc_proxy_key:

In /etc/one/oned.conf I have:
VNC_BASE_PORT = 5900

When I click on VNC icon in Sunstone interface, the following message in /var/log/one/sunstone.log appears:

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
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
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
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
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
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
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
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
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
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
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
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
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
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
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


In /etc/one/sunstone-server.error:

  File "/usr/share/opennebula/noVNC/utils/websockify", line 282, in websockify_init
    server.start_server()
  File "/usr/share/opennebula/noVNC/utils/websocket.py", line 804, in start_server
    lsock = self.socket(self.listen_host, self.listen_port)
  File "/usr/share/opennebula/noVNC/utils/websocket.py", line 190, in socket
    sock.bind(addrs[0][4])
  File "/usr/lib/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 98] Address already in use

What is wrong?

Jan


Dňa 29.06.2012 14:15, Hector Sanjuan wrote / napísal(a):

Hello,

I believe your small.erb should rather say:

GRAPHICS = [
  TYPE    = "vnc"
]

More info: http://opennebula.org/documentation:rel3.4:template#i_o_devices_section

Also remember to set LISTEN if your not accessing the VM from localhost.


--

Ján Beňadik
Managed Services - Solution Design Architect
+421 46 5151 332
+421 903 691 634
[email protected]
Vinohradnícka 6, 971 01 Prievidza
www.sk.atos.net
__________________________________




_______________________________________________
Users mailing list
[email protected]
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Reply via email to