Setting up Private Cloud Using Open Stack - Part 2

B. OpenStack Installation

1. To create Virtual Ethernet Ports in Virtualbox

  • Select File->Preferences in Virtualbox
  • Select Network menu from the left pane
  • Click the add new adapter button on the right side.
  • It will add a new virtual adapter in your physical machine.
  • Repeat above 2 steps to create multiple ports.

2. Executing python code in terminal for automatic configuration of OpenStack. code available on the http://ilearnstack.wordpress.com/2013/04/26/setting-up-a-single-node-openstack-environment/cloudgear

  • Login to the ubuntu VM.
  • Change the user to root.
sudo -i 
  1. If your network is behind proxy then please export proxy variables.
  2. exporthttp_proxy=
    export https_proxy=
    export no_proxy=”localhost,127.0.0.1″
  3. Install git on the machine
apt-get update –y apt-get install git –y 

Clone the CloudGeargit to install Openstack

git clone https://github.com/ilearnstack/cloudgear.git 

Execute the script to set up openstack

cd cloudgear/ python cloudgear.py 

After Executing above code OpenStack will be configured. 

C. Openstack Dashboard

    It provides a modular web interface for all the OpenStack services. With this web GUI, you can perform most operations on your cloud such as launching an instance, assigning IP addresses etc.

The OpenStack dashboard provides an interface for administrators and users to access, provision and automate cloud-based resources. Watch a demo on http://www.openstack. org /software/openstack-dashboard

  • Open Openstack Dashboard in browser from URL  http:///horizon
  • Login with credentials  admin/secret 
  • Default Username: admin
  • Default Password: openstack
  1. Add a Image Into Glance

Upload image to the openstack cloud with the following command

./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 

    Set the security group defaults  

euca-authorize default -P tcp -p 22 -s 0.0.0.0/0 
euca-authorize default -P tcp -p 80 -s 0.0.0.0/0 
euca-authorize default -P tcp -p 8080 -s 0.0.0.0/0 
euca-authorize default -P icmp -t -1:-1

 

Category: