Setting up a Single Node Openstack Environment

Here we are going to deploy openstack on a single node, i.e all openstack components Nova, Glance, Keystone, Quantum and Horizon will be running in the same box. Nova-compute is also running on the same machine which will provision virtual machines on the KVM.

Requirements:

Ubuntu 12.04 running on Oracle VirtualBox with two NIC ‘s.

  • Setup a ubuntu virtual machine in virtualBox.
  • Add a second NIC to the VM.
    • Power Off the Virtual Machine
    • Right Click on the VM and select settings
    • In the Network Section select Adapter 2 tab
    • Select “Attached to:” to internal

1.1

  • Power On the VM
  • When the VM boots up configure to network for second NIC
  • Edit /etc/network/interfaces to something like

2

  • Restart Network service

service networking restart

  • You can verify your network setting using “ ifconfig ”

ifconfig

Deploying Openstack

  • Login to the ubuntu VM.
  • Change the user to root.

sudo -i

  • If your network is behind proxy then please export proxy variables.

export http_proxy=<proxy-server>
export https_proxy=<proxy-server>
export no_proxy=”localhost,127.0.0.1″

  •  Install git on the machine

apt-get update -y

apt-get install git -y

  • Clone the CloudGear git to install Openstack

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

  • Execute the script to set up openstack

cd cloudgear/
python cloudgear.py

  • Open Openstack Dashboard in browser from URL  http://<controller-ip>/horizon
  • Login with credentials  admin/secret

horizon_1

  • Add a image into Glance

                     Download image from the given link :http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img

horizon_2

horizon_3 horizon_4

  • Create Network for Virtual Machines.

horizon_5 horizon_6 horizon_7

  • Create subnet for the network created above.

horizon_8

  • Launch a instance from the Project Tab , Instances page.

horizon_9 horizon_10

horizon_21

  • Once VM is successfully spawned it will show as ACTIVE in Instances page. 

horizon_22 horizon_23

  • Select Console tab to view VM console.

horizon_34

76 Responses to Setting up a Single Node Openstack Environment

  1. How to connect the instance(virtual machine) to internet ?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 1,094 other followers

%d bloggers like this: