vaheeD khoshnouD

linux, mikrotik, macosx

Step by Step install Openstack all in one Virtual machines

Written by vaheeD on December 30, 2015
5.00 avg. rating (94% score) - 1 vote

Requirements:
OS Type : Ubuntu 14.04
CPU : 2 Core
RAM : 8G
Disk: 60G

First Step we need add user for configure and running devstack

sudo bash
useradd -m stack
echo "stack ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
su stack
sudo aptitude update
sudo aptitude upgrade -y
reboot


now install dependency package

sudo aptitude install build-essential htop atop vim-nox nload git -y
sudo bash
su stack
cd
git clone https://github.com/openstack-dev/devstack.git
cd devstack


now we need local configuration

vi /home/stack/devstack/local.conf


and paste configuration

[[local|localrc]]
#=================
#[email protected]
#=================
#Password list configuration
ADMIN_PASSWORD=nova
MYSQL_PASSWORD=nova
RABBIT_PASSWORD=nova
SERVICE_PASSWORD=$ADMIN_PASSWORD
SERVICE_TOKEN=nova
#=================
#seet UUID as keystone token which is much shorter and easier to work with.
KEYSTONE_TOKEN_FORMAT=UUID
#=================
#Swift-Object_Storage
ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account
SWIFT_HASH=66a3d6b56c1f479c8b4e70ab5c2000f5
SWIFT_REPLICAS=1
SWIFT_DATA_DIR=$DEST/data
#=================
#Ceilometer-Metering_Service
ENABLED_SERVICES+=,ceilometer-acompute,ceilometer-acentral,ceilometer-collector,ceilometer-api
ENABLED_SERVICES+=,ceilometer-alarm-notify,ceilometer-alarm-eval
#=================
#Heat-Orchestration_Service
ENABLED_SERVICES+=,heat,h-api,h-api-cfn,h-api-cw,h-eng
#=================
#Apache_fronted_for_WSGI
APACHE_ENABLED_SERVICES+=keystone,swift
#=================
#Murano
enable_plugin murano git://git.openstack.org/openstack/murano
enable_service murano-cfapi
#MURANO_APPS=io.murano.apps.apache.Tomcat,io.murano.apps.Guacamole
#MURANO_APPS=io.murano.apps.apache.Tomcat,io.murano.apps.Guacamole,io.murano.apps.HDPSandbox,io.murano.apps.RabbitMQ,io.murano.apps.TestCluster,io.murano.apps.WordPress,io.murano.apps.ZabbixAgent,io.murano.apps.ZabbixServer,io.murano.apps.linux.Git,io.murano.apps.linux.Telnet,io.murano.databases.MySql,io.murano.apps.apache.ApacheHttpServer,io.murano.apps.apache.TomcatCluster,io.murano.apps.apache.TomcatServletContainer,io.murano.apps.apache.TomcatSingle,io.murano.apps.java.HelloWorld,io.murano.apps.java.HelloWorldCluster,io.murano.apps.mongodb.MongoReplicationSet,io.murano.apps.openstack.Murano,io.murano.apps.openstack.MuranoDashboard,io.murano.apps.paas.CloudFoundry.DEAng,io.murano.apps.paas.CloudFoundry,io.murano.apps.paas.CloudFoundryUI,io.murano.apps.test.SimpleVMcluster,io.murano.databases.PostgreSql,io.murano.databases.SqlDatabase,io.murano.windows.ActiveDirectory,io.murano.windows.FailoverCluster,io.murano.windows.SqlServer,io.murano.windows.SqlServerCluster,io.murano.apps.docker.DockerStandaloneHost,io.murano.apps.SugarCRM
#=================
#Enable_Logging
LOGFILE=/opt/stack/logs/stack.sh.log
VERBOSE=True
LOG_COLOR=True
SCREEN_LOGDIR=/opt/stack/logs
#=================
#Network_Configuration
FLOATING_RANGE=192.168.25.0/27
FLAT_INTERFACE=eth0
LOGFILE=/home/stack/stack.sh.log
Q_FLOATING_ALLOCATION_POOL=start=192.168.25.10,end=192.168.25.20
PUBLIC_NETWORK_GATEWAY=192.168.25.1
#=================
#install_devstack_single_node
disable_service n-net
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta
enable_service neutron
enable_service tempest
#=================
#install_devstack_multi_node
#disable_service n-net
#enable_service q-svc
#enable_service q-agt
#enable_service q-dhcp
#enable_service q-l3
#enable_service q-meta
#enable_service neutron
#================
#Runnig_this_section_for_all_node_connected_to_controler
#ENABLED_SERVICES=n-cpu,rabbit,neutron,q-agt
#SERVICE_HOST=[IP of controller node]
#MYSQL_HOST=$SERVICE_HOST
#RABBIT_HOST=$SERVICE_HOST
#Q_HOST=$SERVICE_HOST

now go to devstack directory and run ./stack.sh

virtual machine in openstack need internet and other network activity

sudo bash
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


Attention: never poweroff or reboot openstack server, just pause and play (Snapshot ):D

have a good day dude!

5.00 avg. rating (94% score) - 1 vote

Posted Under: Linux, openstack

About vaheeD

Leave a Reply

Your email address will not be published. Required fields are marked *

Protected by WP Anti Spam