Openstak queens部署筆記(一) 環境準備
阿新 • • 發佈:2018-11-09
環境準備
- 兩臺Ubuntu16.0.4虛擬機器,一臺控制節點,一臺計算節點. - 配置網絡卡 - Controller ens0 管理 192.168.122.151 ens1 業務 - compute ens0 管理 192.168.122.147 ens1 業務 - 更改 hosts檔案 vim /etc/hosts 127.0.0.1 localhost # 127.0.1.1 localhost 192.168.122.151 controller 192.168.122.147 compute
控制節點
- 新增所需的Openstack 資源庫 sudo apt install software-properties-common sudo add-apt-repository cloud-archive:queens - 更新與升級 sudo apt update sudo apt dist-upgrade -y - 安裝資料庫 sudo apt install mariadb-server python-pymysql - 配置資料庫 vim /etc/mysql/mariadb.conf.d/99-openstack.cnf [mysqld] bind-address = 192.168.122.151 default-storage-engine = innodb innodb_file_per_table = on max_connections = 4096 collation-server = utf8_general_ci character-set-server = utf8 - 加固資料庫/重新啟動資料庫 sudo mysql_secure_installation sudo service mysql restart - 安裝NTP sudo apt install chrony - 配置NTP/重啟服務 sudo vim /etc/chrony/chrony.conf server ntp_server iburst # ntp_server替換成自己的ntp allow 192.168.122.0/24 sudo service chrony restart - 安裝rabbitmq sudo apt install rabbitmq-server - 新增openstack user 並設定許可權 sudo rabbitmqctl add_user openstack Aa123456 sudo rabbitmqctl set_permissions openstack ".*" ".*" ".*" - 安裝/配置memcached sudo apt install memcached python-memcache sudo vim /etc/memcached.conf -l 192.168.152.166 #改為controller節點IP地址 sudo service memcached restart