Setting-up the COmmandline version of Cloud Mesh
IF you have not yet done so, please install and use virtualenv.
Checkout Cloud Mesh:
git clone git://github.com/futuregrid/cm.git
Activate virtualenv:
. ~/ENV/bin/activate
Install nova-client if not available:
sudo easy_install pip
pip install python-novaclient
For more information see
Install novaclient:
pip install nova
Run make:
(ENV) make
Set the key for Open Stack (You could get this key from your futuregrid account.):
scp gregor@india.futuregrid.org:.futuregrid/openstack/novarc .
cat novarc
mkdir -p ~/.futuregrid/openstack/
cp novarc ~/.futuregrid/openstack/
source ~/.futuregrid/openstack/novarc
Type in a nova command to check whether the key was set properly:
$ nova list
You will see
ID Name Status Networks 26a41ff1-72bc-4185-a212-9d6ceXXXXXXX Server 47XX ACTIVE vlanXXX=1X.X.2.3, XXX.XXX.XXX.8
If you are getting some table like above then you are good.
Install euca2ools (if you have not already done so.)
$ sudo apt-get install euca2ools
Generate euca key pair (this is done wrong we want nova's commands to do that):
$ euca-import-keypair -f ~/.ssh/id_dsa.pub gregor
List the generated key pair:
$ nova keypair-list
You will see
Name Fingerprint gregor shfjpaiuFEHFHEBXPNWUIXEFYBEFYPARUFIYPNERUYFPUEF
If you are getting something like above, then you are good (I have replaced my fingerprint with 'X's)
You can use following commands to play around with Cloud Mesh.
Refresh:
$ cm r
You will see
Processing |................................| 10/10Done.
Start VM:
$ cm start:1
You will see
Launching VM gregor-001
Property Value status BUILD updated 2013-03-01T10:17:23Z metadata {} Processing |................................| 10/10Done.
Start 5 VMs in parallel:
$ cm par:5
You will see
Launching VM gregor-000Launching VM gregor-001Launching VM gregor-003Launching VM gregor-004Launching VM gregor-002Done.
Reindex the already started VMs:
$ cm reindex
You will see
Skipping gregor-000Skipping gregor-001Renameing gregor-001 -> gregor-002Renameing gregor-002 -> gregor-003Renameing gregor-003 -> gregor-004Renameing gregor-004 -> gregor-005Processing |................................| 10/10Done.