文章目录
一、基础环境配置
- 由于电脑性能有限。实验配置为 一台控制节点、两台计算节点
虚拟机硬件配置为:最小化安装
- 双核双线程
- 8G内存
- 300G硬盘
- 双网卡(一NAT 一仅主机)
- Centos 7.6系统
- 三台同配置(若内存不够 计算节点可减少为6G)
网络配置演示如下:
内网网卡仅主机模式 复制模板然后相应改动即可 要注意的是 UUID要注释掉 否则跟ens33冲突
1. 下载基础工具包
yum -y install net-tools bash-completion vim gcc gcc-c++ make pcre pcre-devel expat-devel cmake bzip2 lrzsz
2. 下载open stack t版 客户端
yum -y install centos-release-openstack-train python-openstackclient openstack-selinux openstack-utils
OpenStack 的 train 版本仓库源安装包,同时安装 OpenStack 客户端和 openstack-selinux 安装包
官方在线源容易丢包 记得多下载几次 直到显示无需更新处理为止
3. 配置hosts主机映射
echo '172.16.10.10 ct' >> /etc/hosts
echo '172.16.10.20 c1' >> /etc/hosts
echo '172.16.10.30 c2' >> /etc/hosts
ct、c1、c2 是我自己的主机名 ip为内网ip
4. 三台主机做免交互
ssh-keygen -t rsa
#一路回车
#上传密钥
ssh-copy-id ct
ssh-copy-id c1
ssh-copy-id c2
5. 配置时间同步
控制节点:ct
yum install chrony -y
vim /etc/chrony.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
server ntp6.aliyun.com iburst #配置阿里云时钟