Preparing for the environment before you build OpenStack

Source: Internet
Author: User

Base

Virtual machine NIC configuration: (Internet connection, download required RPM package)

Eth0: Bridge Network 192.168.0.10/According to the actual situation of your computer to set

ip:192.168.0.110

netmask:255.255.255.0

gateway:192.168.0.1

nds1:211.167.230.200

nds2:211.167.230.100


ETH1:10.0.0.1/24 Management Network

ETH2:10.0.1.1/24 Tunnel Network

ETH3:192.168.0.1/24 External Network


Controller

eth0:192.168.0.10

Eth1:10.0.0.10/management Network

Eth2: Not enabled

Eth3 not enabled

Network:

eth0:192.168.0.20

Eth1:10.0.0.20/management Network

Eht2:10.0.1.20/tunnel Network

ETH3: Not enabled//used to connect the bridge

Compute

eth0:192.168.0.30

Eth1:10.0.0.30/management Network

Eth2:10.0.1.30/tunnel Network

Eth3 not

Where VirtualBox Net1: Bridging

Net2:host-only

Net3:host-only

Net4:host-only


Here's the problem that might ping different out of the network


Route-n See if the default gateway is not the first Net1 gateway, remove the default gateway to rejoin the Net1.

Iptables and SELinux are off.

or emptying the iptables rule to restart the Iptables service; Close the window firewall


Prepare to clone three virtual machines:

Prerequisite Preparation:

Remove UUID and hwaddr for each NIC

Cannot input network boot after cloning completed? In a virtual machine in Cologne, delete the/etc/udev/rules/70-persistent-net.rules

Restart each virtual machine and each network card will start normally.


Installing the NTP service

Controller

Yum Install-y NTP


Vim/etc/ntp.conf

#server 0.centos.pool.ntp.org Iburst

#server 1.centos.pool.ntp.org Iburst

#server 2.centos.pool.ntp.org Iburst

#server 3.centos.pool.ntp.org Iburst

Server 127.127.1.0

Fudge 127.127.1.0 Stratum 10


Service NTPD Restart

Chkconfig ntpd on


Network and COMPUTE nodes

Yum Install-y NTP


Vim/etc/ntp.conf

#server 0.centos.pool.ntp.org Iburst

#server 1.centos.pool.ntp.org Iburst

#server 2.centos.pool.ntp.org Iburst

#server 3.centos.pool.ntp.org Iburst

Server 10.0.0.10

Fudge 10.0.0.10 Stratum 10


Service NTPD Restart

Ntpdate-u 10.0.0.10

Ntpq-p

Chkconfig ntpd on


Installation of MySQL:

Controller

Yum install MySQL mysql-server mysql-python


Vim/etc/my.cnf

[Mysqld]

Bind-address = 10.0.0.10

Default-storage-engine = InnoDB

Innodb_file_per_table

Collation-server = Utf8_general_ci

Init-connect = ' SET NAMES UTF8 '

Character-set-server = UTF8


Service mysqld Restart

Chkconfig mysqld on


Mysql_secure_installation (if this command cannot be performed successfully, first execute mysql_install_db)


Set Root password: OpenStack

Delete anonymous user

Allow root users to Telnet

Do not delete the test database

Reload Permissions List

Complete.


Network and COMPUTE:

Yum Install-y Mysql_python


Configuring the Epel source for the RDO source and CentOS extensions for OpenStack

Controller, network, COMPUTE:

Yum Install Yum-plugin-priorities-y

Yum Install http://repos.fedorapeople.org/repos/openstack/openstack-\

Icehouse/rdo-release-icehouse-3.noarch.rpm-y

Verify that you can use the RDO source

Yum Install-y openstack-utils

Yum Install-y Openstack-selinux

Yum Upgrade

Reboot


Installing Message-server

Controller

Yum Install-y qpid-cpp-server

Vim/etc/qpidd.conf

Auth=no


Service Qpidd Restart

Chkconfig Qpidd on

The installation of this basic environment is complete and the OpenStack components are started.


This article is from the "Gaogaozi" blog, make sure to keep this source http://hangtiangazi.blog.51cto.com/8584103/1671817

Preparing for the environment before you build OpenStack

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.