Ubuntu Build OpenStack Platform (Kilo) (I. Overall environment)

Source: Internet
Author: User
Tags install mongodb

I. Environment
Os:ubuntu 14.04
Network card requirements: a minimum of two NICs per host, a minimum of three net nodes
Eth0 as the Management network card, eth1 as the data network card, eth2 as the external network card
Network type

10.0.0.0/24数据网络(Data Network):        10.0.0.1.0/24外部网络(External Network)     203.0.113.0/24API Network                    125.220.254.**   

Two. Network configuration (after Setup use restart /etc/init.d/networking restart network, not restart the machine)
Control node: vim/etc/network/interface

auto10.0.0.11255.255.255.010.0.0.18.8.8.8auto eth1iface eth1 inet manual

Network node: vim/etc/network/interface

auto10.0.0.21255.255.255.010.0.0.18.8.8.810.0.1.21255.255.255.0$IFACE$IFACE down

Compute nodes: Vim/etc/network/interface

auto10.0.0.31255.255.255.010.0.0.18.8.8.810.0.1.31255.255.255.0

Edit each node (add the following):

vim /etc/hostscontroller   10.0.0.11network      10.0.0.21compute      10.0.0.31

Three machines ping each other to see if the ping's pass

Three. Environmental preparedness
1. Installing Openssh-server

apt-get install openssh-server

Modify the configuration file (comment it out PremitRootLogin without_password so that the root user who has set the password cannot log in)

vim /etc/ssh/sshd_config#PremitRootLogin without_passwordPremitRootLogin yes

Restart the SSH service

service ssh restart

2. Install the OpenStack package (per node)

apt-get install ubuntu-cloud-keyring"deb http://ubuntu-cloud.archive.canonical.com/ubuntu""trusty-updates/kilo main"> /etc/apt/sources.list.d/cloudarchive-kilo.listapt-get&& apt-get dist-upgrade

(You can restart reboot here)

3. Install NTP, sync time
Control node:

    • Installation:
apt-get install ntp
    • To modify the configuration:
vim /etc/ntp.confserver controller iburstrestrict -4default kod notrap nomodifyrestrict -6default kod notrap nomodify
    • Restart:
service ntp restart

Other nodes:

    • Installation:
apt-get install ntp
    • Modify configuration: (Comment out other servers)
vim /etc/ntp.confserver controller iburst
    • Restart:
service ntp restart

By watch ntpq -p checking whether the synchronization was successful

4. Install the database (MARIADB)

    • Installation
apt-get install mariadb-server python-mysqldb
    • Modifying a configuration file
      Create the/etc/mysql/conf.d/mysqld_openstack.cnf file, edit the following (set the UTF8 format, and set the Controller node IP to enable access to other nodes through the management Network):
10.0.0.11default-storage-engine = innodbinnodb_file_per_tablecollation-server‘SET NAMES utf8‘character-set-server = utf8
    • To restart MySQL:
service mysql restart
    • Execute the following command (full input y):
mysql_secure_installation

5. Install Message Queuing

    • Installation:
apt-get install rabbitmq-server
    • Configuration
      Add OpenStack Users and passwords (in their own habit, passwords are important and important) to set permissions for OpenStack users:
rabbitmqctl add_user openstack RABBIT_PASS(我的密码是123set".*"".*"".*"

6. Installing MongoDB

    • Installation:
apt-get install mongodb-server mongodb-clients python-pymongo
    • To modify the configuration:
vim /etc/mongodb.confbind10.0.0.11
    • Reboot:
stoprm /var/lib/mongodb/journal/prealloc.*service mongodb start

Ubuntu Build OpenStack Platform (Kilo) (I. Overall environment)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.