[one-users] no vnc proxy running opennebula sunstone

Anouar Znagui Hassani anouarzh at gmail.com
Sun Nov 11 15:25:22 PST 2012


"Try launching Sunstone, killing the websockify proxy and relaunching the
proxy manually in a console window with the command that is logged at the
beginning of sunstone.log. Leave it running and click on the VNC icon on
Sunstone for the same VM again. You should see some output from the proxy
in the console and hopefully the cause of why the connection does not work"
---
# ps aux|grep vnc
oneadmin  1969  0.0  0.1  92952 16736 pts/0    S    Nov11   0:00 python /usr/share/opennebula/websockify/websocketproxy.py --target-config=/var/lib/one/sunstone_vnc_tokens 29876
oneadmin  4469  1.7  9.3 4607480 1154556 ?     Sl   Nov11   0:42 /usr/bin/kvm -S -M pc-1.0 -enable-kvm -m 4096 -smp 1,sockets=1,cores=1,threads=1 -name one-46 -uuid 34ff52c4-2425-441a-615f-12f170402903 -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/one-46.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -drive file=/var/lib/one//datastores/0/46/disk.0,if=none,media=cdrom,id=drive-ide0-0-0,readonly=on,format=raw -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1 -drive file=/var/lib/one//datastores/0/46/disk.1,if=none,id=drive-ide0-0-1,format=raw -device ide-drive,bus=ide.0,unit=1,drive=drive-ide0-0-1,id=ide0-0-1 -usb -vnc 0.0.0.0:46 -vga cirrus -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3
root      7200  0.0  0.0   9384   880 pts/0    S+   00:20   0:00 grep --color=auto vnc

I killed 1969

Then I ran:

# python /usr/share/opennebula/websockify/websocketproxy.py --target-config=/var/lib/one/sunstone_vnc_tokens 29876
WebSocket server settings:
   - Listen on :29876
   - Flash security policy server
   - No SSL/TLS support (no cert file)
   - proxying from :29876 to targets in /var/lib/one/sunstone_vnc_tokens

Then I try to connect and again "connect timeout" and no logging in the console. So it is like noVNC does not listen.
My vm is configured using type vnc in the graphics section listening to 0.0.0.0
No port given here.

$ onevm list
     ID USER     GROUP    NAME            STAT UCPU    UMEM HOST             TIME
     46 oneadmin oneadmin one-46          runn    2      4G Stargate     0d 00h40

sunstone.log:

-------------------------------------
          Server configuration
--------------------------------------
{:vnc_proxy_cert=>nil,
  :vnc_proxy_support_wss=>false,
  :vnc_proxy_path=>"/usr/share/opennebula/websockify/websocketproxy.py",
  :one_xmlrpc=>"http://127.0.0.1:2633/RPC2",
  :vnc_proxy_key=>nil,
  :core_auth=>"cipher",
  :host=>"0.0.0.0",
  :tmpdir=>"/var/tmp",
  :marketplace_url=>"https://marketplace.c12g.com/appliance",
  :debug_level=>3,
  :port=>9869,
  :lang=>"en_US",
  :vnc_proxy_port=>29876,
  :auth=>"sunstone"}
Sun Nov 11 23:30:26 2012 [I]: Starting VNC proxy: python /usr/share/opennebula/websockify/websocketproxy.py --target-config=/var/lib/one/sunstone_vnc_tokens  29876
Sun Nov 11 23:30:52 2012 [I]: 82.72.140.195 - - [11/Nov/2012 23:30:52] "GET / HTTP/1.1" 200 2050 0.0057
Sun Nov 11 23:30:53 2012 [I]: 82.72.140.195 - - [11/Nov/2012 23:30:53] "POST /login HTTP/1.1" 204 - 0.0959
Sun Nov 11 23:30:54 2012 [I]: 82.72.140.195 - - [11/Nov/2012 23:30:54] "GET / HTTP/1.1" 200 5487 0.0639
Sun Nov 11 23:30:54 2012 [I]: 82.72.140.195 - - [11/Nov/2012 23:30:54] "GET /vendor/noVNC/include/vnc.js HTTP/1.1" 304 - 0.0035
Sun Nov 11 23:30:54 2012 [I]: 82.72.140.195 - - [11/Nov/2012 23:30:54] "GET /vendor/noVNC/include/util.js HTTP/1.1" 304 - 0.0003
Sun Nov 11 23:30:54 2012 [I]: 82.72.140.195 - - [11/Nov/2012 23:30:54] "GET /vendor/noVNC/include/webutil.js HTTP/1.1" 304 - 0.0013
Sun Nov 11 23:30:54 2012 [I]: 82.72.140.195 - - [11/Nov/2012 23:30:54] "GET /vendor/noVNC/include/base64.js HTTP/1.1" 304 - 0.0012
Sun Nov 11 23:30:54 2012 [I]: 82.72.140.195 - - [11/Nov/2012 23:30:54] "GET /vendor/noVNC/include/websock.js HTTP/1.1" 304 - 0.0012
Sun Nov 11 23:30:54 2012 [I]: 82.72.140.195 - - [11/Nov/2012 23:30:54] "GET /vendor/noVNC/include/des.js HTTP/1.1" 304 - 0.0012
Sun Nov 11 23:30:54 2012 [I]: 82.72.140.195 - - [11/Nov/2012 23:30:54] "GET /vendor/noVNC/include/input.js HTTP/1.1" 304 - 0.0012
Sun Nov 11 23:30:54 2012 [I]: 82.72.140.195 - - [11/Nov/2012 23:30:54] "GET /vendor/noVNC/include/display.js HTTP/1.1" 304 - 0.0012
Sun Nov 11 23:30:54 2012 [I]: 82.72.140.195 - - [11/Nov/2012 23:30:54] "GET /vendor/noVNC/include/rfb.js HTTP/1.1" 304 - 0.0013
Sun Nov 11 23:30:54 2012 [I]: 82.72.140.195 - - [11/Nov/2012 23:30:54] "GET /vendor/noVNC/include/jsunzip.js HTTP/1.1" 304 - 0.0012
Sun Nov 11 23:30:54 2012 [I]: 82.72.140.195 - - [11/Nov/2012 23:30:54] "GET /config HTTP/1.1" 200 143 0.0022
Sun Nov 11 23:30:54 2012 [I]: 82.72.140.195 - - [11/Nov/2012 23:30:54] "GET /user?timeout=false HTTP/1.1" 200 1662 0.0113
Sun Nov 11 23:30:54 2012 [I]: 82.72.140.195 - - [11/Nov/2012 23:30:54] "GET /acl?timeout=false HTTP/1.1" 200 541 0.0072
Sun Nov 11 23:30:54 2012 [I]: 82.72.140.195 - - [11/Nov/2012 23:30:54] "GET /vm?timeout=false HTTP/1.1" 200 22 0.0040
Sun Nov 11 23:30:54 2012 [I]: 82.72.140.195 - - [11/Nov/2012 23:30:54] "GET /group?timeout=false HTTP/1.1" 200 781 0.0070
Sun Nov 11 23:30:54 2012 [I]: 82.72.140.195 - - [11/Nov/2012 23:30:54] "GET /image?timeout=false HTTP/1.1" 200 2023 0.0071
Sun Nov 11 23:30:54 2012 [I]: 82.72.140.195 - - [11/Nov/2012 23:30:54] "GET /vmtemplate?timeout=false HTTP/1.1" 200 30 0.


Thank you


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20121112/2281770e/attachment-0002.htm>


More information about the Users mailing list