OpenStack Build Prep Work
Host name and server IP address
Controller 192.168.23.98 (Control node) compute1 192.168.23.61 (Compute node)
2. Configuring the Hosts resolution
[[email protected] ~]# vim/etc/hosts add 192.168.23.98 controller192.168.23.61 compute1[[email protected] ~]# scp/etc/ hosts [email protected]:/etc/hosts to ensure that the hosts file for each node is unified
3. Verification
[Email protected] ~]# ping-c 4 compute1ping compute1 (192.168.23.61) (+) bytes of data.64 bytes from compute1 (192.16 8.23.61): icmp_seq=1 ttl=64 time=0.639 ms64 bytes from compute1 (192.168.23.61): icmp_seq=2 ttl=64 time=0.307 ms64 bytes F Rom compute1 (192.168.23.61): icmp_seq=3 ttl=64 time=0.324 ms64 bytes from compute1 (192.168.23.61): Icmp_seq=4 ttl=64 Tim e=0.312 ms---compute1 PING statistics---4 packets transmitted, 4 received, 0% packet loss, time 3000msrtt MIN/AVG/MAX/MD EV = 0.307/0.395/0.639/0.142 ms
5. Turn off Selinx and firewall firewalld
The following command all nodes Execute # sed-i ' s/selinux=enforcing/selinux=disabled/g '/etc/selinux/config# setenforce 0# systemctl Stop firewalld.service# systemctl Disable firewalld.service# reboot# sestatus–v Check if successful SELinux status is turned off: Disabled
4. Configure the time synchronization server (NTP)
Control Node [[email protected] ~]# yum install chrony -y installation Service [[email protected] ~]# sed -i ' s/ #allow 192.168\/16/allow 192.168\/16/g ' /etc/chrony.conf [[email protected] ~]# cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime Change the time zone to start the NTP service [[Email protected] ~]# systemctl enable chronyd.service[[email protected] ~]# systemctl start chronyd.service Configuring compute nodes [[Email protected] ~]# yum install chrony -y[[email protected] ~]# sed -i ' s/^server.*$//g ' /etc/ chrony.conf [[email protected] ~]# sed -i "n;2aserver controller Iburst " /etc/chrony.conf [[email protected] ~]# cp /usr/share/zoneinfo/asia/ Shanghai /etc/localtime changing the time zone to start the NTP service [[Email protected] ~]# systemctl enable chronyd.service[[email protected] ~]# systemctl start chronyd.servic
5.openstack installation Package
All nodes Execute # yum install centos-release-openstack-newton-y# yum upgrade-y# yum install python-openstackclient Openstack-seli Nux-y
Basic preparation is basically done
This article is from the Linux OPS blog, so be sure to keep this source http://lijiawang.blog.51cto.com/10156897/1890696
Openstack-newton version of cloud Computing (i)