Sunday, December 11, 2011

Installing openstack on Ubuntu using Devstack with ease in 15 min only (Cloud computing part 2)

Devstack script is a useful tools and good tutorial for us.

It help me know how to install openstack(nova, glance, keystone and so on) from git. And teach us how to config them and make them work fine together. Now using devstack script is very easy if you just want to set up an openstack environment for learning.

Remember you need not install mysql and anything else in advance it will automatically installed from script   

Make sure your system is 11.10 Ubuntu server
you can test it in your really machine or in your vmware or virtualbox desktop machine.



Make sure you open your virtualization switch in your BIOS setting.
you need have to two interfaces, ie eth0 and eth1
--------------------------------------------------------------------------------------
$ sudo apt-get install bridge-utils     # install birdge
$ vi /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 10.11.3.62
netmask 255.255.255.0
network 10.11.3.0
broadcast 10.11.3.255
gateway 10.11.3.1

auto br100
iface br100 inet static
bridge_ports eth2
bridge_stp off
bridge_maxwait 0
bridge_fd 0
address 10.200.200.1
netmask 255.255.255.0



in this file, eth0 is your public network, you need it to connect to internet. eth2(maybe in your system is eth1) is another network interface used as a bridge(br100), 10.200.200.1 is your private ip, it is not need connect to any other network in our test.just choose a private network like 10.200.200.0/24 and remember.


$ sudo apt-get install git
$ git clone git://github.com/cloudbuilders/devstack
$ cd devstack
$ vi localrc
add these info into localrc


PUBLIC_INTERFACE=eth0
FIXED_RANGE=10.200.200.0/24
FIXED_NETWORK_SIZE=256
FLOATING_RANGE=10.11.3.0/24
NET_MAN=FlatDHCPManager
FLAT_NETWORK_BRIDGE=br100
VIRT_DRIVER=libvirt
LIBVIRT_TYPE=kvm
SCHEDULER=nova.scheduler.simple.SimpleScheduler



$ ./stack

it will ask for some password, remeber don't use special characters like $*_.! and so on. you can simply set password like 123456
then it will begin install , how much it take depends on your network bandwidth. If it failed since of network or some reason. look at error log carefully, delete /opt/stack/devstack and run ./stack again.




At last, you will see successful information, and then you can type your IP in your browser. Enjoy your open-stack time and it is a good thing you need learning more and more. finally you are here .

Looking for Help/ Technical support  !

Feel free to mail me vikasruhil06@gmail.com

FOLLOW US OF TWITTER 

THANKS FOR VISITING


LHS as a source of information – and a source of inspiration – I hope you’ll choose to act right now.enjoy keep learning.






1 comment:

  1. Awesome blog... I found this blog very helpful for Installing OpenStack. Thanks for providing all steps of installation.

    ReplyDelete