1、环境信息
2、创建虚拟机
新建虚拟机时选择稍后安装系统:
虚拟机建好后在开机前调整配置:
选择镜像:
设置两块仅主机模式网卡:
记录两张网卡所处网段:
开机安装系统,选择系统盘:
仅仅设置root用户即可,其余全部默认:
3、配置controller节点
vi /etc/sysconfig/network-scripts/ifcfg-ens32
vi /etc/sysconfig/network-scripts/ifcfg-ens33
systemctl restart network
systemctl stop firewalld
systemctl disable firewalld
setenforce 0
vi /etc/selinux/config
rm -rf /etc/yum.repos.d/*
hostnamectl set-hostname controller
vi /etc/hosts
192.168.193.10 controller
192.168.193.20 compute
4、compute节点配置
完整克隆controller节点:
vi /etc/sysconfig/network-scripts/ifcfg-ens32
IPADDR=192.168.193.20
vi /etc/sysconfig/network-scripts/ifcfg-ens33
IPADDR=192.168.254.20
systemctl restart network
hostnamectl set-hostname compute
标签:network,vi,ifcfg,sysconfig,etc,scripts,OpenStack From: https://www.cnblogs.com/vorn/p/17283581.html