openstack packstack 安装(虚拟机成功安装)

1.关闭NetworkManager

systemctl disable NetworkManager

systemctl stop NetworkManager

2.更换yum源

curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

3.配置时间同步

yum -y install ntpdate

ntpdate ntp.aliyun.com >>/var/log/ntpdate.log

ntpdate ntp.aliyun.com

4.安装openstack的train源

yum -y install centos-release-openstack-train

yum install -y http://rdo.fedorapeople.org/rdo-release.rpm


5.生成安装openstack 配置文件

packstack --gen-answer-file /root/openstack-answer.txt


6.编写配置文件

CONFIG_HEAT_INSTALL=y                    # Heat openstack编排组件,这个安装

CONFIG_PROVISION_DEMO=n             # 模板,不用生成

CONFIG_KEYSTONE_ADMIN_PW=Password    #admin密码,修改个自己习惯的

CONFIG_NEUTRON_OVN_BRIDGE_IFACES=br-ex:ens33    # 重点,这个是将openstack 外网网卡绑定到centos网卡

CONFIG_NEUTRON_ML2_TYPE_DRIVERS=vlan,flat    # openstack虚拟化网络为vlan

CONFIG_NEUTRON_ML2_TENANT_NETWORK_TYPES=vlan     # openstack虚拟化网络为vlan

..............

目前我实验可加安装(可选,在最小化安装上添加)

..............

CONFIG_PANKO_INSTALL=y    #openstack panko组件

CONFIG_SAHARA_INSTALL=y    #openstack sahara组件

CONFIG_TROVE_INSTALL=y     #openstack trove组件


7.安装openstack

packstack --answer-file /root/openstack-answer.txt

posted @ 2022-05-23 13:52  woaibaobei  阅读(461)  评论(0编辑  收藏  举报