环境VMware,centos7Minimal
centos配置如下:
这里需要注意的是网络、内存、硬盘、处理器、虚拟化引擎。如上图所示
1配置虚拟机的网络:
vi /etc/sysconfig/network-scripts/ifcfg-ens33
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=static
IPADDR=192.168.244.140
NETMASK=255.255.255.0
GATEWAY=192.168.244.2
DNS1=192.168.244.2
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=ens33
UUID=f05af829-363c-4668-a72d-f4a6420ab263
DEVICE=ens33
ONBOOT=yes
重启网络
service network restart
关闭selinux:
sed -i '/^SELINUX/s/enforcing/disabled/' /etc/selinux/config
关闭防火墙和Netmanager
systemctl stop firewalld && systemctl disable firewalld
systemctl stop NetworkManager && systemctl disable NetworkManager
更新yum源,安装openstack源
yum update -y
yum install centos-release-openstack-queens -y
安装packstack
yum install openstack-packstack -y
最后部署opensatck
packstack --install-hosts=192.168.244.140
packstack --allinone ##allinone模式
packstack --gen-answer-file=<file> ##生成部署配置文件
packstack --answer-file=<file> ##选择应答文件
查看登录用户和密码
用户admin
密码de88ebce726c4343
cat /root/keystonerc_admin
unset OS_SERVICE_TOKEN
export OS_USERNAME=admin
export OS_PASSWORD='de88ebce726c4343'
export OS_REGION_NAME=RegionOne
export OS_AUTH_URL=http://192.168.244.140:5000/v3
export PS1='[\u@\h \W(keystone_admin)]\$ '
export OS_PROJECT_NAME=admin
export OS_USER_DOMAIN_NAME=Default
export OS_PROJECT_DOMAIN_NAME=Default
export OS_IDENTITY_API_VERSION=3
登录192.168.244.140/dashboard
centos更改主机名
hostnamectl set-hostname 主机名
如果报错误Delta RPMs disabled because /usr/bin/applydeltarpm not installed
依次执行下面两条命令,即可解决。
yum provides '*/applydeltarpm'
yum install deltarpm
然后重新安装:
packstack --install-hosts=192.168.244.140