how to log in Ubuntu Cloud images ?

asked 2015-08-03 06:22:13 -0600

abhishek-talwar gravatar image

updated 2015-08-03 06:38:50 -0600

I have a multinode OpenStack kilo setup with a controller node, network node and 2 compute nodes. I have installed ubuntu cloud image (trusty) in my my /tmp/images directory and created an image from it.

I have created an instance of the ubuntu image and now I am trying to log in that but cannot find the default password.

I followed a link and created a keypair using the command ' ssh-keygen -P "" -b 2048 ' and used this keypair to create a vm.

Now when I am trying to ssh into this VM it is giving me an error "ssh: connect to host 192.168.1.7 port 22: Connection timed out".

Also if I get a vnc console for this VM it gives an error "error : invalid arch-independent ELF magic."

How to resolve this error.

edit retag flag offensive close merge delete

Comments

What SSH client are you using? You must use tell your client to use the right key for login. Way of doing this depends on the client.

Openstackuser2013 gravatar imageOpenstackuser2013 ( 2015-08-03 06:44:14 -0600 )edit

Use your keypair when using SSH to connect to the instance, also remember to use the "ubuntu" user since the root user is disabled by default.

Tobias Urdin gravatar imageTobias Urdin ( 2015-08-03 09:07:20 -0600 )edit

I have created a key using "ssh-keygen" and then added it using the nova keypair add command. The VM goes to active state using this key but then when I try to login in this VM using "ssh -i .ssh/id_rsa.pub ubuntu@192.168.1.5" it gives me a connection timeout error "ssh: connect to host 192.168.1.5.

abhishek-talwar gravatar imageabhishek-talwar ( 2015-08-04 01:40:05 -0600 )edit

Do you have access to the host 192.168.1.5? Does it respond to ping? Can you telnet to port 22? Make sure you have connectivity to the host, maybe you don't then you can try to execute a ping inside the namespace (network) where that host lives (if you are running Neutron).

Tobias Urdin gravatar imageTobias Urdin ( 2015-08-04 01:43:24 -0600 )edit

post the output of "ssh -i .ssh/id_rsa.pub ubuntu@192.168.1.5 -v" please.

schegi gravatar imageschegi ( 2015-08-04 06:23:07 -0600 )edit