#个人一点习惯,不关掉点什么总觉的有点不顺畅。

service iptables stop

chkconfig iptables off


setenforce 0

vi /etc/sysconfig/selinux

getenforce

Permissive



vi /etc/sysconfig/network-scripts/ifcfg-eth0

vi /etc/sysconfig/network-scripts/ifcfg-eth1

#关掉对networkmanager的依赖,改上static


hostname

vi /etc/hosts

192.168.100.10   controller

192.168.100.20   compute


cd /etc/yum.repos.d/

ll

rm -rf *

vi yum.repo

[centos]

name=centos

baseurl=ftp://192.168.100.10/centos

gpgcheck=0


[iaas]

name=iaas

baseurl=ftp://192.168.100.10/iaas/iaas-repo

gpgcheck=0


yum clean all

yum makecache


ping -c 4 controller

ping -c 4 compute


yum install ntp -y


vi /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

restrict 192.168.100.10

server 192.168.100.10


service ntpd restart

chkconfig ntpd on


ntpstat

ntpq -p


yum install MySQL-python -y

yum install yum-plugin-priorities openstack-utils  openstack-selinux -y


yum upgrade -y