一,所需软件
1,XianDian-IaaS-v2.2.iso (版本不同,基本服务差别不大。)
2,CentOS-7-x86_64-DVD-1511.iso
//所有脚本在安装过iaas-xiandian后以命令形式直接执行
//注意分辨那个节点需执行那个脚本,可用TAB键补全)
// 脚本均在/usr/local/bin/目录下
//有可能漏有过程或者错误的步骤,遇到问题请提问,不要做不下去还继续做。
二:系统安装设置
时区选择上海
关闭dump
手动分区
语言英语
note:这里计算节点服务器里有两个硬盘,只选择一个小的作为系统分区,另一块备用。
三,IP及主机名设置
controller:enp8s0:192.168.100.10 enp9s0:192.168.200.10
compute:enp8s0:192.168.100.20 enp9s0:192.168.200.20
note: 这里enp8s0是第一块网卡,enp9s0为第二个网卡,具体情况结合实际。
四,安装步骤
1-2.配置网络,主机名
(1)controller节点
vi /etc/sysconfig/network-scripts/ifcfg-enp*(具体网口文件)。
enp8s0: 192.168.100.10
enp9s0: 192.168.200.10
配置主机名
#
hostnamectl set-hostname controller
按ctrl+d 退出 重新登陆
(2)compute 节点
配置网络:
enp8s0: 192.168.100.20
enp9s0: 192.168.200.20
配置主机名
#
hostnamectl set-hostname compute
按ctrl+d 退出 重新登陆
note: 第二块网卡不要配置网关,否则后面执行 iaas-pre-host.sh 脚本后网络瘫痪。
配置域名解析
controller和compute节点
修改配置文件
/etc/hosts
增加如下内容
192.168.100.10 controller
192.168.100.20 compute
关闭防火墙并设置开机不自启
#controller和compute节点
systemctl stop firewalld
systemctl disable firewalld
配置selinux
controller和compute节点
修改配置文件
/etc/selinux/config
SELINUX=permissive //表示系统会收到警告消息,但是不会受到限制
note:这里修改后重启才会生效,可以用setenforce 0临时关闭,getenforce查看状态。