This document provides information about cloud computing and OpenStack installation. It discusses:
1) The evolution of cloud computing from mainframes to distributed computing and virtualization.
2) Key concepts of cloud computing including infrastructure as a service (IaaS), platform as a service (PaaS), and software as a service (SaaS).
3) An 8 step process for installing OpenStack including creating virtual machines, configuring networks, installing OpenStack using scripts, uploading images, and launching instances.
4. • Client – Server Computing
• Cluster Computing
5. 5
Peer-to-Peer Computing
– Sharing of computer resources and services by direct exchange
between systems.
– Computers can act as clients or servers depending on what role is
most efficient for the network.
7. Grid computing is a method of harnessing the power of many computers in a
network to solve problems requiring a large number of processing cycles and
involving huge amounts of data. Most organizations today deploy firewalls around
their computer networks to protect their sensitive proprietary data. But the
central idea of grid computing-to enable resource sharing makes mechanisms such
as firewalls difficult to use 7
8. Who Needs Grid Computing?
8
• A chemist may utilize hundreds of processors to screen thousands of
compounds per hour.
• Teams of engineers worldwide pool resources to analyze terabytes of
structural data.
• Meteorologists seek to visualize and analyze data of climate with
enormous computational demands.
Some Highly-Visible Grids
• The NASA Information Power Grid (IPG).
• The Distributed Terascale Facility (DTF) Project.
• GARUDA(Global Access to Resource Using Distributed Architecture)
is India's Grid Computing initiative connecting 17 cities across the
country with 45 Institutes collaboration.
http://www.garudaindia.in/
11. Virtualization
● Virtualization is the foundation on which cloud infrastructure is built.
● Provide secure, isolated sandboxes for running untrusted applications.
● Reliability and Availability,
– A software failure in one VM does not affect other VMs.
● Cost
- Typical savings: 29% to 64%.
● Migration: Load Balancing
– The state of a VM is completely encapsulated in the VMM: easy to migrate VMs to
other platforms to improve performance.
11
27. OPENSTACK INSTALLATION
Step 1: Virtual Box Install & Setup -
performed on Host PC
• Verify VT-X enabled in your host PC's BIOS
• Download Ubuntu 12.04 ISO (i'm using the 64 bits desktop)
• install Virtual Box [apt-get or here]
• Configure VirtualBox's Host-Only Networks
• start Virtual Box [on ubuntu prior to Unity it's in Applications →
Accessories]
• open File → Preferences → Network tab
• Add host-only network for vboxnet0 – this will be the Public
interface
• set IP to 172.16.0.254, mask 255.255.0.0, dhcp disabled
• Add host-only netwok for vboxnet1 – this will be the Private
(VLAN) interface
• set IP to 11.0.0.1, mask 255.0.0.0, dhcp disabled
28. Step 2: Create Guest - performed in
Virtual Box
• click the “New” button
• Create a VM with the following settings:
• Name: Essex1 (or whatever, not really important)
• OS type: Linux
• Version: Ubuntu (or Ubuntu 64, in accordance with the ISO downloaded above)
• Memory: 1536MB
• Hard Disk: accept all the defaults, size 20GB
• Configure the newly created VM
• Now modify the guest as follows: (performed from the right panel in VirtualBox's main window,
• where the new VM is selected on the left).
• System tab:
• Processor (optional, but recommended): Increase CPU from 1 set to 2
• Acceleration: make sure VT-x and nested paging are checked
• Network tab:
• Adapter 1: attached to NAT – eth0 will connect here;
• Adapter 2: attached to Host-Only Adapter, vboxnet0 - eth1 will connect here ;
• Adapter 3: attached to Host-Only Adapter, vboxnet1 - eth2 will connect her
• Power newly created VM
29. Step 3: Guest Install & Initial
Configuration
• Install the guest OS(from the iso image)
• Verify internet access after reboot
• Configure network interfaces
• Edit /etc/network/interfaces as root
(sudo –i)
30. Contd…
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
#Public Interface
auto eth1
iface eth1 inet static
address 172.16.0.1
netmask 255.255.0.0
network 172.16.0.0
broadcast 172.16.255.255
#Private VLAN interface
auto eth2
iface eth2 inet manual
up ifconfig eth2 up then run ifup eth1 and eth2
31. • Verify reachability from your host PC
ping 172.16.0.1
• Update && upgrade
run
apt-get update && apt-get upgrade
and reboot
• Install openssh-server, required when installation ISO is the “desktop”
edition:
apt-get -y install openssh-server
• Install Git, required to pull down Kevin's scripts
apt-get -y install gi
• Take a snapshot
33. Step 5: Finalize OpenStack installation
• Upload a test Ubuntu image:
./upload_ubuntu.sh -a admin -p openstack -t
demo -C 172.16.0.1
• Add a keypair to your environment so you can
access the guests using keys:
euca-add-keypair demo > demo.pem
chmod 0600 demo.pem
35. Step 7: Launch an instance Using the Horizon Web UI
Start a browser and login to the Dashboard at http://172.16.0.1 with credentials
‘demo/openstack’
36.
37. Step 8: Login to the openstack instance
• chmod 0600
• ssh -i demo.pem ubuntu@172.16.1.