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 as shown in figure:
Management networks (Management Network): 10.0.0.0/24
Data network: 10.0.1.0/24
External networks (External network) 203.0.113.0/24
API Network 125.220.254.**
Two. Network configuration (after Setup use/etc/init.d/networking Restart restart the network, not restart the machine)
Control node: vim/etc/network/interface
Auto Eht0
iface eth0 inet static
address 10.0.0.11
netmask 255.255.255.0
Gateway 10.0.0.1
Dan-nameserver 8.8.8.8
Auto eth1
iface eth1 inet Manual
Network node: vim/etc/network/interface
Auto Eht0
iface eth0 inet static
address 10.0.0.21
netmask 255.255.255.0
Gateway 10.0.0.1
Dan-nameserver 8.8.8.8
Auto eth1
iface eth1 inet static
address 10.0.1.21
netmask 255.255.255.0
Auto eth2
iface eth2 inet manual up
ifconfig $IFACE 0.0.0.0 up to
IP link set $IFACE promisc on down
i P Link Set $IFACE promisc off
ifconfig $IFACE down
Compute nodes: Vim/etc/network/interface
Auto Eht0
iface eth0 inet static
address 10.0.0.31
netmask 255.255.255.0
Gateway 10.0.0.1
Dan-nameserver 8.8.8.8
Auto eth1
iface eth1 inet static
address 10.0.1.31
netmask 255.255.255.0
Edit each node (add the following):
Vim/etc/hosts
Controller 10.0.0.11
network 10.0.0.21
compute 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 out the Premitrootlogin without_password in case the root user who has set the password cannot log in)
Vim/etc/ssh/sshd_config
#PremitRootLogin without_password
premitrootlogin Yes
Restart the SSH service
Service SSH Restart
2. Install the OpenStack package (per node)
Apt-get Install ubuntu-cloud-keyring
echo "Deb Http://ubuntu-cloud.archive.canonical.com/ubuntu" " Trusty-updates/kilo main ">/etc/apt/sources.list.d/cloudarchive-kilo.list
apt-get update && 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.conf
Server Controller iburst
restrict-4 default kod notrap nomodify
restrict-6 default Kod not Rap nomodify
Restart:
Service NTP restart
Other nodes: Installation:
Apt-get Install NTP
Modify configuration: (Comment out other servers)
vim/etc/ntp.conf
Server Controller Iburst
Restart:
Service NTP restart
Check for sync success with watch Ntpq-p
4. Installation 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):
[Mysqld]
bind-address = 10.0.0.11
default-storage-engine = InnoDB
innodb_file_per_table
collation-server = utf8_ General_ci
init-connect = ' SET NAMES utf8 '
character-set-server = UTF8
To restart MySQL:
Service MySQL Restart
Execute the following command (full input y) (here should be a set of permissions):
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 (my password is 123)
Rabbitmqctl set_permissions OpenStack ". *" ". *" ". *"
6. Install MongoDB Installation:
Apt-get Install Mongodb-server mongodb-clients Python-pymongo
To modify the configuration:
vim/etc/mongodb.conf
bind_ip = 10.0.0.11
Reboot:
Service MongoDB Stop
rm/var/lib/mongodb/journal/prealloc.*
service MongoDB start