- 在 Centos 7 上安裝 OpenStack Mitaka 版本套件!
- 安裝 OpenStack 基本 Nova、Glance、Nuetron元件套件!
- 安裝 OpenStack 基本 RabbitMQ 套件,提供 keystone 服務!
-
設定 yum 的 repo 檔案:
#vim /etc/yum.repos.d/CentOS-OpenStack.repo [OpenStack] name= CentOS 7 OpenStack Mitaka baseurl=ftp://ftp.stu.edu.tw/Linux/CentOS/7.2.1511/cloud/x86_64/openstack-mitaka/ enabled=1 gpgcheck=0
-
安裝 openstack-packstack 套件:
# yum -y install openstack-packstack
-
停止使用 Network Manager 套件:
#systemctl disable NetworkManager #systemctl stop NetworkManager #systemctl enable network #systemctl start network
-
產生 answer-file ,方便以後的設定:
# packstack --gen-answer-file /root/answer.txt CONFIG_DEFAULT_PASSWORD=secret CONFIG_SWIFT_INSTALL=n CONFIG_HEAT_INSTALL=y CONFIG_NTP_SERVERS=211.22.103.158 CONFIG_KEYSTONE_ADMIN_PW=secret CONFIG_CINDER_VOLUMES_CREATE=y CONFIG_LBAAS_INSTALL=y CONFIG_NEUTRON_FWAAS=y CONFIG_NEUTRON_ML2_TYPE_DRIVERS=vlan CONFIG_NEUTRON_ML2_TENANT_NETWORK_TYPES=vlan CONFIG_NEUTRON_ML2_VLAN_RANGES=physnet1:1:1000 CONFIG_NEUTRON_OVS_BRIDGE_MAPPINGS=physnet1:br-eth1 CONFIG_NEUTRON_OVS_BRIDGE_IFACES=br-eth1:enp0s3 CONFIG_HORIZON_SSL=y CONFIG_PROVISION_DEMO=n
-
執行 OpenStack 套件安裝:
# packstack --answer-file /root/answer.txt
※若發生 DB 編輯錯誤:-
移除 Mariadb Database 套件:
# yum -y erase mariadb-*
-
重新安裝 Mariadb Database Server 套件:
# yum -y erase mariadb-server
-
移除 Mariadb Database 套件:
參考文獻:
- https://www.gitbook.com/book/kairen/openstack-centos/details
- https://kairen.gitbooks.io/openstack-centos/content/conceptions/index.html