Professional Documents
Culture Documents
CC Exp 4
CC Exp 4
60004180105
B-3
CC EXPERIMENT NO. 4
THEORY:
OpenStack is a free cloud-computing solution that helps initiate, manage, and sustain a huge pool
of virtual machines with the required resources (CPU, memory, networking, and storage). This
infrastructure is managed through a user-friendly web interface that helps present the status of
the nodes to the system administrator, and gives them easy access to manage the infrastructure
resources. OpenStack provides open source and enterprise services as per the user’s demands,
which make it well used by multiple organizations. Most organizations providing cloud services,
to either the public or private, use OpenStack to deliver an IaaS service. Though OpenStack’s
core function is to provide IaaS platform, it is used as DBaaS (database-as-a-service), building
Hadoop clusters, Container orchestration and much more. In single node OpenStack installation,
all of its basic functionalities such as compute, network, storage, and dashboard are installed on
the same machine. This method of installation is the best for proof of concept (POC).
Major Functionalities of OpenStack
In this article we will install the latest version of OpenStack ‘Liberty’ on CentOS 7 using rdo
repositories. As per my setup i am using followings on my CentOS 7 Machine
● Hostname = openstack.example.com
● IP address = 192.168.1.3
● netmask = 255.255.255.0
● Gateway = 192.168.1.1
● DNS = 192.168.1.254
After the installation a new interface “br-ex” will be created and assign the IP addess of eth0 or
enp0s3 to br-ex .
In above files please change the IP details, Hardware address and Device name as per your setup.
When we restart the network service , it will add “enp0s3” as a port in br-ex OVS bridge.
Please take a reboot and check whether settings are persistent or not.
Step7: Now Access OpenStack Dashboard.
When the installation is completed a dashboard link was provided on the screen, in My Case it is
https://10.0.2.15/dashboard
Use the user name as “admin” and password that we set for keystone admin user in the answer
file.
As we are able to login in Dashboard , the OpenStack installation part is completed.
Siddharth Salvi
60004180105
B-3
Now our next task is to “Launch an Instance from OpenStack Dashboard”.
To Launch an instance from OpenStack Horizon dashboard, first we need to finish following
steps :
o Create a Project and add a member to the Project.
o Create a Image and Flavor
o Create a Network and Router for a Project.
In my case I will use Project Name as “Innovation” and linuxtechi as Project Member of
Innovation.
o Internal Network = 10.10.10.0/24
o External Network or Floating IP Network = 192.168.1.0/24
o Gateway of External Network = 192.168.1.1
Create a Project and add a member to the Project.
Login to the dashboard using Admin credentials and Go to Identity Tab –> Projects and Click
on Create Project.
Siddharth Salvi
60004180105
B-3
Click on “Create Project”, We can also set the Quota for the project from Quota Tab.
To create Users, go to Identify Tab–> Users–> Click on ‘Create User’
In my case I have specified the followings:
o User Name = linuxtechi
o email = linuxtechi@example.com
o password = xxxxxx
o Primary Project = innovation
o Role = member
Siddharth Salvi
60004180105
B-3
Specify the Flavor Name (fedora.small) , VCPU , Root Disk , Ephemeral Disk & Swap disk.
Siddharth Salvi
60004180105
B-3
click on Next. Specify the Subnet name (sub-internal) and Network Address (10.10.0.0/24)
VMs will be getting internal IP from DHCP Server because we enable DHCP option for internal
network.
Now Create External Network. Click on “Create Network” again, Specify Network Name as
“external”.
Siddharth Salvi
60004180105
B-3
Click on Next. Specify subnet Name as “sub-external” & Network Address as “192.168.1.0/24”
Click on Next. Untick “Enable DHCP” option and Specify the ip address pool for external
network.
Siddharth Salvi
60004180105
B-3
Click on Add interface. Network Part is completed Now & we can view Network Topology from
“Network Topology” Tab
Siddharth Salvi
60004180105
B-3
Siddharth Salvi
60004180105
B-3
Siddharth Salvi
60004180105
B-3
Now Create a key pair that will be used for accessing the VM and define the Security firewall
rules.
For creating a key pair
Go to ‘Access & Security’ tab —> Click on Key Pairs –> then click on ‘Create Key Pair’
Siddharth Salvi
60004180105
B-3
Once the Security Group ‘fedora-rules’ created, click on Manage Rules and allow 22 & ICMP
ping.
Click on Add, similarly add a rule for ICMP.
Now Finally it’s time to Launch an instance.
Go to Compute Tab –> Click on Instances –> then click on ‘Launch Instance’
Siddharth Salvi
60004180105
B-3
Siddharth Salvi
60004180105
B-3
Specify the Instance Name, Flavor that we created in above steps and ‘Boot from image’ from
Instance Boot Source option and Select Image Name ‘fedora-image’.
Click on ‘Access & Security’ and Select the Security Group ‘fedora-rules’ & Key Pair ”myssh-
keys”
Once the VM is launched, associate a floating IP so that we can access the VM.
Click on Associate.
Now try to access the VM with floating IP (192.168.1.20) using keys.
Siddharth Salvi
60004180105
B-3
As we can see above that we are able to access the VM using keys. Our task of launching a VM
from Dashboard is Completed Now.