2015-02-12 08:30:24 |
Marc Koderer |
description |
Problem:
----------
There is no cloud-init installed in the ubuntu nfs/cifs image by default.
With that a ssh-key authentication is not possible.
## Locally in the ubuntu vm:
# dpkg -l|grep cloud
Steps to reproduce:
------------------------------
export SECGROUP="sec01"
nova secgroup-create $SECGROUP "$SECGROUP description"
nova secgroup-add-rule $SECGROUP icmp -1 -1 0.0.0.0/0
nova secgroup-add-rule $SECGROUP tcp 22 22 0.0.0.0/0
KEY_NAME=test_key
KEY_FILE=key.pem
nova keypair-add $KEY_NAME > $KEY_FILE
chmod 600 $KEY_FILE
nova boot --flavor 1 --image 191d3f64-f1c6-4170-8ded-7b4297e0407a --security-groups=$SECGROUP --key-name $KEY_NAME test01
sudo ip netns exec qrouter-c2e7b2ab-cd41-460e-a926-c379e3bd0a7e ssh -i $KEY_FILE ubuntu@10.0.0.5 |
Problem:
----------
There is no cloud-init installed in the ubuntu nfs/cifs image by default.
With that a ssh-key authentication is not possible.
## Locally in the ubuntu vm:
# dpkg -l|grep cloud
Steps to reproduce:
------------------------------
export SECGROUP="sec01"
nova secgroup-create $SECGROUP "$SECGROUP description"
nova secgroup-add-rule $SECGROUP icmp -1 -1 0.0.0.0/0
nova secgroup-add-rule $SECGROUP tcp 22 22 0.0.0.0/0
KEY_NAME=test_key
KEY_FILE=key.pem
nova keypair-add $KEY_NAME > $KEY_FILE
chmod 600 $KEY_FILE
nova boot --flavor 100 --image 191d3f64-f1c6-4170-8ded-7b4297e0407a --security-groups=$SECGROUP --key-name $KEY_NAME test01
sudo ip netns exec qrouter-c2e7b2ab-cd41-460e-a926-c379e3bd0a7e ssh -i $KEY_FILE ubuntu@10.0.0.5 |
|