[one-users] noVNC/ssh is not working

Daniel Molina dmolina at opennebula.org
Wed Dec 11 01:35:55 PST 2013


Hi Bendix,

Any reason of using OpenNebula 3.2, lot of bugs have been fixed in newer
version. I recommend you to upgrade to the lastest one OpenNebula 4.4

Cheers


On 10 December 2013 15:06, Bendix Harries <bendix_harries at web.de> wrote:

>
>   Hi,
> i set up opennebula several times now, but for some reason this time I
> can't ssh into the ttylinux vm. I tried to install noVNC, because I thought
> there could be a problem with the contextualization,
> maybe the public IP wasn't set correctly. Because the noVNC install script
> is located in /usr/share/opennebula/sunstone I changed the noVNC install
> script to the following:
>
> if [ -z "$ONE_LOCATION" ]; then
>     ONE_SHARE=/usr/share/opennebula
>     ONE_PUBLIC_SUNSTONE=/usr/lib/one/sunstone/public
>     SUNSTONE_CONF=/etc/one/sunstone-server.conf
> else
>
> Otherwise there was an error during installing. After installing vnc, I
> was able to see the vnc icon in sunstone, but when I click it nothing
> happens. I think there are no errors in the sunstone.log:
>
>  XXX.XXX.177.212 - - [10/Dec/2013 13:36:38] "POST /vm/16/startvnc
> HTTP/1.1" 200 30 0.0009
> XXX.XXX.177.212 - - [10/Dec/2013 13:37:06] "GET /vmtemplate?timeout=true
> HTTP/1.1" 200 1102 0.0765
> XXX.XXX.177.212 - - [10/Dec/2013 13:37:06] "GET /group?timeout=true
> HTTP/1.1" 200 291 0.0034
> XXX.XXX.177.212 - - [10/Dec/2013 13:37:06] "GET /vm?timeout=true HTTP/1.1"
> 200 2343 0.0206
> XXX.XXX.177.212 - - [10/Dec/2013 13:37:11] "GET
> /host/monitor?title=graph1&monitor_resources=cpu_usage%2Cused_cpu%2Cmax_cpu&history_length=40
> HTTP/1.1" 200 81 0.0047
> XXX.XXX.177.212 - - [10/Dec/2013 13:37:11] "GET
> /vm/monitor?title=graph3&monitor_resources=total%2Cactive%2Cerror&history_length=40
> HTTP/1.1" 200 71 0.0044
> XXX.XXX.177.212 - - [10/Dec/2013 13:37:11] "GET
> /host/monitor?title=graph2&monitor_resources=mem_usage%2Cused_mem%2Cmax_mem&history_length=40
> HTTP/1.1" 200 81 0.0040
>  XXX.XXX.177.212 - - [10/Dec/2013 13:37:11] "GET
> /vm/monitor?title=graph4&monitor_resources=net_tx%2Cnet_rx&history_length=40
> HTTP/1.1" 200 61 0.0032
> XXX.XXX.177.212 - - [10/Dec/2013 13:37:15] "GET /host?timeout=true
> HTTP/1.1" 200 1107 0.0131
> XXX.XXX.177.212 - - [10/Dec/2013 13:37:19] "GET /acl?timeout=true
> HTTP/1.1" 200 377 0.0688
> XXX.XXX.177.212 - - [10/Dec/2013 13:37:24] "GET /user?timeout=true
> HTTP/1.1" 200 583 0.0310
>
> Further more I am not able to ping the vm which may also be due to the
> fact that the contextualization is not correct. Here is the ttylinux.one
> file:
>
>    GNU nano 2.2.6
> File:
> ttylinux.one
>
> NAME   = ttylinux
> CPU    = 0.1
> MEMORY = 64
> DISK   = [ IMAGE_ID = 8 ]
> NIC    = [ NETWORK = "Small network" ]
> FEATURES= [ acpi="no" ]
> GRAPHICS = [
>     TYPE    = "vnc",
>     LISTEN  = "0.0.0.0"
> ]
> CONTEXT = [
>     hostname    = "$NAME",
>     ip_public   = "XXX.XXX.177.152",
>     files      = "/ttylinux/init.sh /ttylinux/id_rsa.pub",
>     target      = "hdc",
>     root_pubkey = "id_rsa.pub",
>     username    = "opennebula",
>     user_pubkey = "id_rsa.pub"
> ]
>
> The Vm.log is also fine I think:
>
>  Tue Dec 10 12:48:00 2013 [DiM][I]: New VM state is ACTIVE.
> Tue Dec 10 12:48:00 2013 [LCM][I]: New VM state is PROLOG.
> Tue Dec 10 12:48:05 2013 [TM][D]: tm_clone.sh:
> FrontEnd:/var/lib/one/images/57f3641f0fe063562302d964f3e63de5
> XXX.XXX.177.150:/var/lib/one//16/images/disk.0
> Tue Dec 10 12:48:05 2013 [TM][D]: tm_clone.sh: DST:
> /var/lib/one//16/images/disk.0
> Tue Dec 10 12:48:05 2013 [TM][I]: tm_clone.sh: Creating directory
> /var/lib/one//16/images
> Tue Dec 10 12:48:05 2013 [TM][I]: tm_clone.sh: Executed "ssh
> XXX.XXX.177.150 mkdir -p /var/lib/one//16/images".
> Tue Dec 10 12:48:05 2013 [TM][I]: tm_clone.sh: Cloning
> FrontEnd:/var/lib/one/images/57f3641f0fe063562302d964f3e63de5
> Tue Dec 10 12:48:05 2013 [TM][I]: tm_clone.sh: Executed "scp
> FrontEnd:/var/lib/one/images/57f3641f0fe063562302d964f3e63de5
> 147.172.177.150:/var/lib/one//16/images/disk.0".
> Tue Dec 10 12:48:05 2013 [TM][I]: tm_clone.sh: Executed "ssh
> XXX.XXX.177.150 chmod a+rw /var/lib/one//16/images/disk.0".
> Tue Dec 10 12:48:05 2013 [TM][I]: ExitCode: 0
> Tue Dec 10 12:48:05 2013 [TM][I]: tm_context.sh: Executed "mkdir -p
> /var/lib/one/c2d50246966d4d452b35a4048cc4adc8/isofiles".
> Tue Dec 10 12:48:05 2013 [TM][I]: tm_context.sh: Executed "cp -R
> /var/lib/one/16/context.sh
> /var/lib/one/c2d50246966d4d452b35a4048cc4adc8/isofiles".
> Tue Dec 10 12:48:05 2013 [TM][I]: tm_context.sh: Executed "cp -R
> /ttylinux/init.sh /var/lib/one/c2d50246966d4d452b35a4048cc4adc8/isofiles".
> Tue Dec 10 12:48:05 2013 [TM][I]: tm_context.sh: Executed "cp -R
> /ttylinux/id_rsa.pub
> /var/lib/one/c2d50246966d4d452b35a4048cc4adc8/isofiles".
> Tue Dec 10 12:48:05 2013 [TM][I]: tm_context.sh: Executed "genisoimage -o
> /var/lib/one/c2d50246966d4d452b35a4048cc4adc8/disk.1 -J -R
> /var/lib/one/c2d50246966d4d452b35a4048cc4adc8/isofiles".
> Tue Dec 10 12:48:05 2013 [TM][I]: tm_context.sh: Executed "scp
> /var/lib/one/c2d50246966d4d452b35a4048cc4adc8/disk.1
> XXX.XXX.177.150:/var/lib/one//16/images/disk.1".
> Tue Dec 10 12:48:05 2013 [TM][I]: tm_context.sh: Executed "rm -rf
> /var/lib/one/c2d50246966d4d452b35a4048cc4adc8".
> Tue Dec 10 12:48:05 2013 [TM][I]: ExitCode: 0
> Tue Dec 10 12:48:06 2013 [LCM][I]: New VM state is BOOT
> Tue Dec 10 12:48:06 2013 [VMM][I]: Generating deployment file:
> /var/lib/one/16/deployment.0
> Tue Dec 10 12:48:06 2013 [VMM][I]: ExitCode: 0
> Tue Dec 10 12:48:06 2013 [VMM][I]: Successfully execute network driver
> operation: pre.
> Tue Dec 10 12:48:07 2013 [VMM][I]: ExitCode: 0
> Tue Dec 10 12:48:07 2013 [VMM][I]: Successfully execute virtualization
> driver operation: deploy.
> Tue Dec 10 12:48:07 2013 [VMM][I]: ExitCode: 0
> Tue Dec 10 12:48:07 2013 [VMM][I]: Successfully execute network driver
> operation: post.
> Tue Dec 10 12:48:08 2013 [LCM][I]: New VM state is RUNNING
> Tue Dec 10 12:58:09 2013 [VMM][I]: ExitCode: 0
> Tue Dec 10 12:58:09 2013 [VMM][D]: Monitor Information:
>         CPU   : 8
>         Memory: 65536
>         Net_TX: 0
>         Net_RX: 256333
> Tue Dec 10 13:08:12 2013 [VMM][I]: ExitCode: 0
>
>  Can anybody help me out with that? I'm using opennebula 3.2
>
> Best regards
> Brave
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>


-- 
--
Daniel Molina
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | dmolina at opennebula.org | @OpenNebula
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20131211/ca308375/attachment-0002.htm>


More information about the Users mailing list