Tutorials/Cloudim/openstack

OpenStack Setup ==

Install and Set up OpenStack ==

You will need to have OpenStack installed to complete this tutorial. If you do not have previous experience, we recommend installing within a VM using vagrant by following the instructions here

Once this completes, you should be able to view the OpenStack dashboard at 172.16.0.201


 * 1) Set up your OpenStack Machine

In order to use the cloudsim scripts, you will need to do a little bit of configuration within the OpenStack Machine.

If you installed it in the vagrant VM, from the directory with the Vagrantfile,

vagrant ssh

Install the python api for nova, the OpenStack computer service:

sudo apt-get install python-novaclient

Finally, create the image and flavor that we will use. This can be done through the OpenStack Dashboard, or through the command line:

nova-manage instance_type create ubuntu 512 1 2 0 0 0 wget http://cloud-images.ubuntu.com/precise/current/precise-server-cloudimg-amd64-disk1.img glance image-create --name="ubuntu12.04" --is-public=true --container-format=bare --disk-format=raw < precise-server-cloudimg-amd64-disk1.img

Install the python API here as well:
 * 1) Set up your Host Machine

sudo apt-get install python-novaclient

Download credentials from the OpenStack dashboard under 'Access and Security', 'API Access'.



Source your credentials:

. ~/Downloads/admin-openrc

You may need to replace the path with your download location and admin with your username. The default password on the vagrant install is cloudsim.

Finally, run openstack.py to test that everything is working. All unit tests should run cleanly.

python openstack.py


 * 1) Set up CloudSim

Openstack has not been incorporated into an official release yet, therefore, follow the development tutorial to get your CloudSim environment set up.

Launching and Terminating a CloudSim Instance using OpenStack == Once you have set all of this up, you should be able to launch a Cloudsim server through the CloudSim web interface. This tutorial explains how to launch and terminate machines. Choose Openstack [OSRF] and Cloudsim