//
you're reading...
OpenStack

OpenStack Revisit – Icehouse – Getting Started

Getting StartedController ServerNetwork ServerCompute ServerFinishing Up

We are reviewing some hypervisor setups right now and one of the things we are looking at is OpenStack (again) but this time with LXC.

I decided to setup some local VM’s to test with, ideally I want to try to get SmartOS working as a hypervisor, but to start I will be using LXC.

I’m using a reference architecture from OpenStack Operations Guide.

My setup uses 3 Virtualbox VMs, this is a testing setup, not production.

The network looks like this:

# VM Name:
#    Network Name (NIC)    IP

onet:
  oint (eth0)	10.0.0.10
  nat  (eth1)	10.0.3.10
  vnet (eth2)	10.0.1.10
  nat  (eth3)	10.0.5.10

octr:
  oint (eth0)	10.0.0.15
  opub (eth1)	10.0.3.15

ocmp:
  oint (eth0)	10.0.0.30
  nat  (eth1)	10.0.3.30
  onet (eth2)	10.0.1.30

oint - 10.0.0.0/24
vnet - 10.0.1.0/24
nat  - 10.0.3.0/24
opub - 10.0.5.0/24

The non-nat networks are attached to internal networks.

Before I get into setting up OpenStack, I suggest creating a appliance for VirtualBox.

Basically create a new VM, call it node or something, and use minimalish specs(1 cpu, 512mb, 4GB disk)

Install Centos 6.5 minimal then do post config:

vi /etc/selinux/config
SELINUX=permissive # or disabled

chkconfig ip6tables off
chkconfig iptables off
chkconfig iscsi off
chkconfig iscsid off
chkconfig postfix off


yum install http://repos.fedorapeople.org/repos/openstack/openstack-icehouse/rdo-release-icehouse-3.noarch.rpm

yum install http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

yum -y update

yum install openstack-utils

cat >>/etc/hosts<<EOF

10.0.0.15       controller
10.0.0.10       network
10.0.0.30       compute
EOF

Once done, clean up the image for making a appliance:

vi /etc/sysconfig/network-scripts/ifcfg-eth0
# Delete MAC and UUID entry, make sure ONBOOT=yes

vi /etc/udev/rules.d/70-persistent-net.rules
# Delete all SUBSYSTEM=="net" entries, should be just NAME="eth0"

Shutdown the VM and export as an appliance, I use OVA 2.0 file with Meta data.

Now we build the controller server.

Advertisements

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