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:
apt-get install ntp
- To modify the configuration:
vim /etc/ntp.confserver controller iburstrestrict -4default kod notrap nomodifyrestrict -6default kod notrap nomodify
service ntp restart
Other nodes:
apt-get install ntp
- Modify configuration: (Comment out other servers)
vim /etc/ntp.confserver controller iburst
service ntp restart
By watch ntpq -p
checking whether the synchronization was successful
4. Install the database (MARIADB)
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
service mysql restart
- Execute the following command (full input y):
mysql_secure_installation
5. Install Message Queuing
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
apt-get install mongodb-server mongodb-clients python-pymongo
- To modify the configuration:
vim /etc/mongodb.confbind10.0.0.11
stoprm /var/lib/mongodb/journal/prealloc.*service mongodb start
Ubuntu Build OpenStack Platform (Kilo) (I. Overall environment)