一、前言
OpenStack是一個開源的雲計算管理平台項目,OpenStack支持幾乎所有類型的雲環境,項目目標是提供實施簡單、可大規模擴展、豐富、標准統一的雲計算管理平台。OpenStack通過各種互補的服務提供了基礎設施即服務(IaaS)的解決方案,每個服務提供API以進行集成。OpenStack覆蓋了網絡、虛擬化、操作系統、服務器等各個方面。
二、安裝方式
openstack安裝方法有很多種,其中有手動一步一步安裝,fuel安裝,devstack安裝,rdo安裝,RDO是紅帽的的一個開源項目,能夠幫我們快速部署openstack開發環境,官方部署文檔:https://www.rdoproject.org/install/packstack/
三、測試環境
環境使用vmware進行測試,內存8G,處理器為4,磁盤200G,2塊網卡,一塊為net,一塊為僅主機模式。開啟支持虛擬化
三、基本配置
配置net網卡與僅主機網卡,配置完成后可以連接外網
vi /etc/sysconfig/network-scripts/ifcfg-ens33
vi /etc/sysconfig/network-scripts/ifcfg-ens34
重啟網卡
service network restart
完成后即可ping通外網,
修改主機名,關閉防火牆,selinux
hostnamectl set-hostname rdo-openstack
LANG=en_US.utf-8
LC_ALL=en_US.utf-8
配置hosts文件 vi /etc/hosts
192.168.62.10 rdo-openstack
重啟
reboot
四、安裝,
安裝過程非常簡單,只有4條命令,順序執行即可
sudo yum install -y centos-release-openstack-rocky
sudo yum update -y
sudo yum install -y openstack-packstack
sudo packstack --allinone
完成后將會輸出以下內容
**** Installation completed successfully ******
Additional information:
* A new answerfile was created in: /root/packstack-answers-20181011-174750.txt
* Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.
* Warning: NetworkManager is active on 192.168.62.10. OpenStack networking currently does not work on systems that have the Network Manager service enabled.
* File /root/keystonerc_admin has been created on OpenStack client host 192.168.62.10. To use the command line tools you need to source the file.
* To access the OpenStack Dashboard browse to http://192.168.62.10/dashboard .
Please, find your login credentials stored in the keystonerc_admin in your home directory.
* Because of the kernel update the host 192.168.62.10 requires reboot.
* The installation log file is available at: /var/tmp/packstack/20181011-174749-NSg_sq/openstack-setup.log
* The generated manifests are available at: /var/tmp/packstack/20181011-174749-NSg_sq/manifests
訪問 http://192.168.62.10/dashboard
用戶名密碼則在 /root 目錄下的keystone_admin 文件中,
至此使用RDO安裝openstack完成
如有問題可以評論指出。