Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Ubuntu Cloud Image: Key Injection

Hi, I am playing with VMwareESXDriver and Ubuntu Cloud Images for a couple of hour. Finally, I managed to sucessfully spawn an instance at all. Right now, the instance is powered on hangs a long while with only a "_" in the upper left corner of the console screen and then finally jumps right to the login prompt. The instance starts pinging way earlier though. But I believe that might be normal...

My actual problem is that after the instance seems to be up and running, I cannot SSH into it:

root@controller:~# nova keypair-list
+-------+-------------------------------------------------+
| Name  | Fingerprint                                     |
+-------+-------------------------------------------------+
| mykey | 3b:b1:fc:29:b2:24:37:c8:5f:10:f2:ba:ec:9c:ce:14 |
+-------+-------------------------------------------------+
root@controller:~# ssh-keygen -lf ~/.ssh/id_rsa.pub
2048 3b:b1:fc:29:b2:24:37:c8:5f:10:f2:ba:ec:9c:ce:14  root@controller (RSA)
root@controller:~# ssh -i .ssh/id_rsa root@10.0.0.2
Read from socket failed: Connection reset by peer
root@controller:~# ssh -i .ssh/id_rsa root@10.0.0.2
Connection closed by 10.0.0.2
root@controller:~# ssh -i .ssh/id_rsa root@10.0.0.2
Read from socket failed: Connection reset by peer
root@controller:~# telnet 10.0.0.2 22
Trying 10.0.0.2...
Connected to 10.0.0.2.
Escape character is '^]'.
SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1.1
^]
telnet> quit
Connection closed.
root@controller:~# ssh root@10.0.0.2                                                                                                                                                                                                                                                                                   
Read from socket failed: Connection reset by peer
root@controller:~# ssh -v root@10.0.0.2
OpenSSH_5.9p1 Debian-5ubuntu1.1, OpenSSL 1.0.1 14 Mar 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to 10.0.0.2 [10.0.0.2] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/id_rsa type 1
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: identity file /root/.ssh/id_dsa-cert type -1
debug1: identity file /root/.ssh/id_ecdsa type -1
debug1: identity file /root/.ssh/id_ecdsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.9p1 Debian-5ubuntu1.1
debug1: match: OpenSSH_5.9p1 Debian-5ubuntu1.1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1.1
debug1: SSH2_MSG_KEXINIT sent
Read from socket failed: Connection reset by peer
root@controller:~#

I create my instances using

nova boot --flavor 2 --image 7a81cac3-91c9-427d-a08c-9a34b301bae5 --key-name mykey ubuntu01

so I assume a key should have been injected.

Now as I don't know about the mechanism being used to inject a key with VMwareESXiDriver, I cannot guess where the problem might be or what needs to be done to make it possible.

Any ideas?

Ubuntu Cloud Image: Key Injection

Hi, I am playing with VMwareESXDriver and Ubuntu Cloud Images for a couple of hour. Finally, I managed to sucessfully spawn an instance at all. Right now, the instance is powered on hangs a long while with only a "_" in the upper left corner of the console screen and then finally jumps right to the login prompt. The instance starts pinging way earlier though. But I believe that might be normal...

My actual problem is that after the instance seems to be up and running, I cannot SSH into it:

root@controller:~# nova keypair-list
+-------+-------------------------------------------------+
| Name  | Fingerprint                                     |
+-------+-------------------------------------------------+
| mykey | 3b:b1:fc:29:b2:24:37:c8:5f:10:f2:ba:ec:9c:ce:14 |
+-------+-------------------------------------------------+
root@controller:~# ssh-keygen -lf ~/.ssh/id_rsa.pub
2048 3b:b1:fc:29:b2:24:37:c8:5f:10:f2:ba:ec:9c:ce:14  root@controller (RSA)
root@controller:~# ssh -i .ssh/id_rsa root@10.0.0.2
Read from socket failed: Connection reset by peer
root@controller:~# ssh -i .ssh/id_rsa root@10.0.0.2
Connection closed by 10.0.0.2
root@controller:~# ssh -i .ssh/id_rsa root@10.0.0.2
Read from socket failed: Connection reset by peer
root@controller:~# telnet 10.0.0.2 22
Trying 10.0.0.2...
Connected to 10.0.0.2.
Escape character is '^]'.
SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1.1
^]
telnet> quit
Connection closed.
root@controller:~# ssh root@10.0.0.2                                                                                                                                                                                                                                                                                   
Read from socket failed: Connection reset by peer
root@controller:~# ssh -v root@10.0.0.2
OpenSSH_5.9p1 Debian-5ubuntu1.1, OpenSSL 1.0.1 14 Mar 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to 10.0.0.2 [10.0.0.2] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/id_rsa type 1
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: identity file /root/.ssh/id_dsa-cert type -1
debug1: identity file /root/.ssh/id_ecdsa type -1
debug1: identity file /root/.ssh/id_ecdsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.9p1 Debian-5ubuntu1.1
debug1: match: OpenSSH_5.9p1 Debian-5ubuntu1.1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1.1
debug1: SSH2_MSG_KEXINIT sent
Read from socket failed: Connection reset by peer
root@controller:~#

I create my instances using

nova boot --flavor 2 --image 7a81cac3-91c9-427d-a08c-9a34b301bae5 --key-name mykey ubuntu01

so I assume a key should have been injected.

Now as I don't know about the mechanism being used to inject a key with VMwareESXiDriver, I cannot guess where the problem might be or what needs to be done to make it possible.

Any ideas?ideas? Looking at the output of ssh -v, I am not even sure its a key injection problem :( please help!