版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/ywmack/article/details/81539593
openstack Q版
服务器系统centos7
控制端IP:192.168.50.31
计算端IP:192.168.50.32
网卡就一块 (也可以两块 后面会有多块网卡教程)
# 网卡配置
TYPE=Ethernet
BOOTPROTO=static
IPADDR=192.168.50.31
NETMASK=255.255.255.0
GATEWAY=192.168.50.1
DNS1=114.114.114.114
NAME=eth0
DEVICE=eth0
ONBOOT=yes
# 设置主机名
hostnamectl set-hostname controller
# 配置防火墙
systemctl stop firewalld
chkconfig firewalld off
#selinux一定要关闭
setenforce 0
sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/config
# host设置
echo '192.168.50.31 controller' >> /etc/hosts
echo '192.168.50.32 compute' >> /etc/hosts
# 时间同步
yum install ntp -y
vim /etc/net.conf
#最上面加上这两行
server 127.127.1.0
fudge 127.127.1.0 stratum 8
#设置时区
timedatectl set-timezone Asia/Shanghai