Friday, April 4, 2014

A working OpenStack configuration for a single network card

 After some longer trouble to get OpenStack running on a system which just has one network card I found a proper solution. 



Here it is:

  • Install a fresh Ubuntu 12.04 LTS
  • Install bridge-utils and configure a br100 bridge on your single network card eth0
    • Here the config part for br100 in /etc/network/interfaces
# Internal Network
auto br100
iface br100 inet static
address 192.168.0.1
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
bridge_ports eth0
bridge_fd 0
bridge_hello 2
bridge_maxage 12
bridge_stp off
  •  Create a VLAN network interface on eth0 using VLAN ID 0
    • Run:
modprobe 8021q
vconfig add eth0 0
ifconfig eth0.0:1 10.11.12.1 netmask 255.255.255.0 up
echo 1 > /proc/sys/net/ipv4/ip_forward
echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
    •  This creates a eth0.0 device with the ip 10.11.12.1
  • Check that the new eth0.0 device got created with "ifconfig -a"
  • Now follow the regular Devstack instructions
    • Add a stack user with sudo permissions
    • Check out OpenStack with git
    • Create a /home/stack/devstack/localrc as following
HOST_IP=192.168.0.1
FLOATING_RANGE=192.168.0.0/24
FIXED_RANGE=10.11.12.0/24
FIXED_NETWORK_SIZE=256
FLAT_INTERFACE=eth0
ADMIN_PASSWORD=password
MYSQL_PASSWORD=password
RABBIT_PASSWORD=password
SERVICE_PASSWORD=password
SERVICE_TOKEN=password
LOGFILE=/home/stack/stack.sh.log
  • Now run stack.sh
su - stack
cd devstack
./stack.sh

Shortly after that OpenStack will be up + running and you can connect to the OpenStack Horizion Dashboard at http://192.168.0.1

With this network configuration this setup allows to successfully launch OpenStack instances which are then reachable from the controller.

Devstack, a documented shell script to build complete OpenStack development environments. More about Devstack at: http://devstack.org

11 comments:

jake george said...

Open Stack Cloud Computing Key words: Open stack training , Open stack online Training , Open stack cloud computing training , open stack cloud computing online training ,Open stack Corporate Training,Best Open stack training, Open stack cloud computing training, Expert Open stack Training , Expert Openstack Cloud Computing Training
http://www.21cssindia.com/courses/open-stack-online-training-224.html
Introduction – Virtualization Overview – Software as a service – platform as a service –
Infrastructure as a Service – Openstack – History and Overview – Q&A – OpenStack Architecture DeepDive – Components Overview – Keystone architecture – Nova architecture – Glance architecture – Quantum architecture – Deploying OpenStack – Step by Step through CLI

jake george said...

Open Stack Cloud Computing Online Training
http://www.21cssindia.com/courses/open-stack-online-training-224.html
Introduction - Virtualization Overview - Software as a service - platform as a service - Infrastructure as a Service - Openstack – History and Overview - Q&A - OpenStack Architecture DeepDive - open stack cloud computing key words: open stack training, open stack online training, open stack cloud computing training, open stack cloud computing online training, open stack corporate training, best open stack training, open stack cloud computing training, expert open stack training, expert open stack cloud computing training

jake george said...

OpenStack Cloud Computing Online Training, ONLINE TRAINING – IT SUPPORT – CORPORATE TRAINING http://www.21cssindia.com/courses/open-stack-online-training-224.html The 21st Century Software Solutions of India offers one of the Largest conglomerations of Software Training, IT Support, Corporate Training institute in India - +919000444287 - +917386622889 - Visakhapatnam,Hyderabad OpenStack Cloud Computing Online Training, OpenStack Cloud Computing Training, OpenStack Cloud Computing, OpenStack Cloud Computing Online Training| OpenStack Cloud Computing Training| OpenStack Cloud Computing| "Courses at 21st Century Software Solutions
Talend Online Training -Hyperion Online Training - IBM Unica Online Training - Siteminder Online Training - SharePoint Online Training - Informatica Online Training - SalesForce Online Training - Many more… | Call Us +917386622889 - +919000444287 - contact@21cssindia.com
Visit: http://www.21cssindia.com/courses.html"

Tec-Tist Texas said...

Really something Grate in this article Thanks for sharing this. We are providing NETWORK ADMIN courses training online. After reading this slightly am changed my way of introduction about my training to people. And also refer my website for NETWORK ADMIN Training and solutions of NETWORK ADMIN applications. Please Visit Us @ NETWORK ADMIN training courses online

jake george said...

OpenStack Cloud Computing Online Training, ONLINE TRAINING – IT SUPPORT – CORPORATE TRAINING http://www.21cssindia.com/courses/open-stack-online-training-224.html The 21st Century Software Solutions of India offers one of the Largest conglomerations of Software Training, If you’re serious about a career in IT, 21st Century would like to provide you a guidance don’t hesitate to organize a free demo session. For any further information regarding the courses once go through our website Visit: http://www.21cssindia.com | Call Us +917386622889 - +919000444287 - contact@21cssindia.com

P Archan said...

OpenStack lets users deploy virtual machines and other instances which handle different tasks for managing a cloud environment on the fly. It makes horizontal scaling easy, which meansRead more
Check this siteTeKslate for indepth Openstack training.
Go here if you’re looking for information on Openstack training.

vabna islam said...

Excellent post!!! I have learnt many things form here. I have also website where you can visit and pass your pleasure time. In everyone’s life, at some time, our inner fire goes out. It is then burst into flame by an encounter with another human being. We should all be thankful for those people who rekindle the inner spirit. To get more information, visit here……………
home network setup

Unknown said...

when you install openstack through ./stack.sh

how do you restart individual components. I didn't see these individual components registered as a service, also if I do ./unstack.sh and ./stack.sh. It will clean up my database, and existing data (e.g. VMs, images) will be lost.

王瑞 said...

when you install openstack through ./stack.sh

how do you restart individual components. I didn't see these individual components registered as a service, also if I do ./unstack.sh and ./stack.sh. It will clean up my database, and existing data (e.g. VMs, images) will be lost.

Ruchika Mathur said...

Thanks for great post regarding OpenStack configuration. It’s very useful. OpenStack is a set of software tools for building and managing cloud computing platforms for public and private clouds. I found one of the good resource related to OpenStack . It is giving a detailed knowledge in OpenStack. To know more Just view on this link: https://intellipaat.com/openstack-training/

Dwarakesh babu said...



Ya that's great to have blog like this it may clear the many thought from this

Pega Training
PlSQL Training
AWS Training
Teradata Training
Qlikview Training
Informatica MDM Training