虚拟机网络规划
管理网络:
eth0, nat
192.168.31.0/24
外部网络:
eth1, host only
192.168.32.0/24
数据网络:
eth2, lan
192.168.33.0/24
节点规划
controller:
管理网络:eth0 192.168.31.10
外部网络:eth1 192.168.32.10
network:
管理网络:eth0 192.168.31.11
外部网络:eth1 192.168.32.11
数据网络:eth2 192.168.33.11
compute1:
管理网络:eth0 192.168.31.21
外部网络:eth1 192.168.32.21
数据网络:eth2 192.168.33.21
初始化apt-get源
所有节点初始化
[email protected]:~# echo "deb http://ubuntu-cloud.archive.canonical.com/ubuntu" "trusty-updates/kilo main" > /etc/apt/sources.list.d/cloudarchive-kilo.list
[email protected]:~# apt-get update
[email protected]:~# apt-get dist-upgrade
[email protected]:~# apt-get install ubuntu-cloud-keyring
配置hosts
所有节点初始化
192.168.31.10? controller
192.168.31.11? network
192.168.31.21? compute1
NTP
[email protected]:~# apt-get install ntp
部署MySQL
部署在controller节点
[email protected]:~# apt-get install mariadb-server python-mysqldb
[email protected]:~# vi /etc/mysql/my.cnf
[mysqld]
bind-address = 192.168.31.10 #默认为管理网络ip,防止其他网络访问到核心数据库
default-storage-engine = innodb
innodb_file_per_table
collation-server = utf8_general_ci
init-connect = 'SET NAMES utf8'
character-set-server = utf8
[email protected]:~# service mysql restart
部署RabbitMQ?
部署在controller节点
[email protected]:~# apt-get install rabbitmq-server
[email protected]:~# rabbitmqctl add_user openstack RABBIT_PASS
Creating user "openstack" ...
[email protected]:~# rabbitmqctl set_permissions openstack ".*" ".*" ".*"
Setting permissions for user "openstack" in vhost "/" ...
原文地址:https://www.cnblogs.com/wshenjin/p/11365903.html
时间: 2024-10-08 13:47:49