You are on page 1of 5

Setting up Meghdoot Openstack Cloud

System Requirements :
System should have minimum 8 GB RAM and 50 GB HDD.
Before starting the installation, make sure that the IP address is assigned properly. Make entry in
/etc/network/interfaces (as static IP address).
Open /etc/network/interfaces file
vi /etc/network/interfaces
Add the following lines
auto <interface name... Eg. eth0>
iface <interface name > inet static
address <IP address>
netmask 255.255.255.0
gateway <gateway IP>
The sample edited file would look like the following:
# The loopback network interface
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 10.184.48.124
netmask 255.255.255.0
gateway 10.184.48.1

Save and close the file.

Run
/etc/init.d/networking restart
Step 1: Open the terminal. Change to root user using sudo -i.
Step 2: Type the command bash /usr/bin/meghdoot-quickstart/openstack.sh
Step 3 : A dialog box opens. Click Yes to continue.
Step 4 : The user is asked to choose between two node installation/single node installation. Choose
Single node installation.
Step 5 : The user is asked to choose between Physical machine installation (Cloud installed on physical
machine)/Virtual machine installation(Cloud installed on VM.). Choose Physical Machine
Step 6 : A dialog box opens asking whether to initialize database. Click Yes
Step 7: A Form is displayed to enter component details.
If you are not sure what are the values that has to be given for each field, enter the following
default values.
Keystone token : admin
Admin tenant name : admin
Service tenant name : service
Horizon username : admin
Horizon password : admin
Keystone admin mail id : <mail id>
Glance admin password : glance
Glance admin mail id : <mail id>
Nova admin password : nova
Nova admin mail id : <mail id>
Neutron admin password : neutron
Neutron admin mail id : <mail id>
Neutron n/w name : phynet1
VLAN start : 20
2

VLAN end : 30
Cinder Admin password : cinder
Cinder admin mail id : <mail id>
Check the values and Click OK.
Step 8 : The installation will enable the Openstack component services one by one and it will take 3 4
minutes to complete.
Step 9 : Ossec will prompt for updation and also updating the rules associated. You will be required to
Give y twice.
Step 9 : A information dialog is displayed. Click OK.
Step 10 : Firefox opens and the openstack dashboard login screen is displayed. Login using the horizon
credentials.(default Username : admin , Password is : admin)
Note : Do not press Ctrl + C in the terminal where the script is executed.
Step 11 : After logging in the openstack dashboard , Go to the Projects TAB. Click Networks. In the
right side screen Click Create Network.
Step 12 : Give Network Name(Eg. net1) and Click Next.
Step 13 : Give Subnet Name (Eg. Subnet1) , network address (Eg 10.10.0.0/24) and Click Next.
Step 14 : Click Create. A network will be created and displayed in the list.
Step 15. Under the Project Tab, Click Instances. In the right side screen Click Launch Instance.
Step 16 : In the details, Give the instance name(eg. Instance1).
Step 17 : Click Instance Boot Source list and choose 'Boot from image'
Step 18 : Click Image name list and choose 'cirros'.

Step 19 : Click launch.


A instance will be launched and displayed in the instances list.

To upload an existing image in the cloud and launch an instance.


Make sure you have the boss_cloudimg.qcow2 in this machine.
Step 1 : In the project Tab, Click Images. In the right side screen Click Create Image.
Step 2 : Give the image name, description
Step 3 : Click Image Source and choose 'Image File'
Step 4 : Click Browse and choose the boss image file and Click Open.
Step 5 : Click Format and Choose 'QCOW2' format
Step 6 : Give the Architecture input value as 'x86_86'
Step 7 : Give the Minimum Disk input value as 10
Step 8 : Give the Minimum RAM input value as 2048
Step 9 : Click create image.
To launch an instance.
Step 10 : Under the Project Tab, Click Instances. In the right side screen Click Launch Instance.
Step 11 : In the details, Give the instance name(eg. Instance1).
4

Step 12: Click Instance Boot Source list and choose 'Boot from image'
Step 13: Click Image name list and choose the image currently uploaded.
Step 14: Click launch.
To start all the openstack components after Machine restart
Open the terminal. Change to root user using sudo -i.
Go to /opt/openstack folder
cd /opt/openstack
Run the following scripts using command
sh network.sh
ifconfig <interface> 0

Eg. ifconfig eth0 0

sh keystone.sh
sh glance.sh
sh nova.sh
sh neutron.sh
sh cinder.sh
All the components will be up and running and you can open the browser and give the url
http://<IP>:8010

You might also like