Re: [one-users] noVNC/ssh is not working
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_harr...@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=graph1monitor_resources=cpu_usage%2Cused_cpu%2Cmax_cpuhistory_length=40 HTTP/1.1 200 81 0.0047 XXX.XXX.177.212 - - [10/Dec/2013 13:37:11] GET /vm/monitor?title=graph3monitor_resources=total%2Cactive%2Cerrorhistory_length=40 HTTP/1.1 200 71 0.0044 XXX.XXX.177.212 - - [10/Dec/2013 13:37:11] GET /host/monitor?title=graph2monitor_resources=mem_usage%2Cused_mem%2Cmax_memhistory_length=40 HTTP/1.1 200 81 0.0040 XXX.XXX.177.212 - - [10/Dec/2013 13:37:11] GET /vm/monitor?title=graph4monitor_resources=net_tx%2Cnet_rxhistory_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
[one-users] noVNC/ssh is not working
Hi, i set up opennebula several times now, but for some reason this time I cant 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 wasnt 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=graph1monitor_resources=cpu_usage%2Cused_cpu%2Cmax_cpuhistory_length=40 HTTP/1.1 200 81 0.0047 XXX.XXX.177.212 - - [10/Dec/2013 13:37:11] GET /vm/monitor?title=graph3monitor_resources=total%2Cactive%2Cerrorhistory_length=40 HTTP/1.1 200 71 0.0044 XXX.XXX.177.212 - - [10/Dec/2013 13:37:11] GET /host/monitor?title=graph2monitor_resources=mem_usage%2Cused_mem%2Cmax_memhistory_length=40 HTTP/1.1 200 81 0.0040 XXX.XXX.177.212 - - [10/Dec/2013 13:37:11] GET /vm/monitor?title=graph4monitor_resources=net_tx%2Cnet_rxhistory_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