Ask Your Question
0

How to SSH a vm

asked 2015-06-11 06:29:19 -0500

abhishek-talwar gravatar image

I have an OpenStack Kilo multinode setup witha controller, network and 2 compute nodes. I am able to boot VM instances and they are going to active state.

Now I want to SSH the VM's created and install some application on it. My doubit is how to SSH the VM's as I don't have a dashboard and therefore don't have a console for the VM's created. So I need to get the consoles for the VM's created and install ssh client on it.

Kindly provide some information regarding this.

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
1

answered 2015-06-11 08:19:11 -0500

updated 2015-06-11 08:21:27 -0500

you mean to say that you want syntax or any troubleshooting assistance while doing it.

anyway following is the command. first of all launch vm with your choice of image which you done already. add rules to it. like,

nova secgroup-add-rule default icmp -1 -1 0.0.0.0/0
nova secgroup-add-rule default tcp 22 22 0.0.0.0/0

for cirros instance.

ssh cirros@INSTANCE_FIXED_IP/INSTANCE_FLOATING_IP

for ubuntu instance..

1. nova keypair-add OSKEY > OSKEY.priv (where OSKEY is the one you generated from ssh-keygen command)
2. chmod 600 OSKEY
3. now launch the instance with the OSKEY as the key
4. ssh -i OSKEY.priv ubuntu@floatingIP

hope that helps

edit flag offensive delete link more
1

answered 2015-06-11 06:58:38 -0500

SGPJ gravatar image

Create a VM with all required dependencies like SSH + apps in Virtual Box with .vmdk as extension, then upload this vm image into glance and create new VMs out of it. Then associate floating IPs and ssh into them.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-06-11 06:29:19 -0500

Seen: 767 times

Last updated: Jun 11 '15