标签:
6.1 CentOS环境准备
Vm name |
Hostname |
IP |
Function |
Lxp-centos-1 |
hcloud.controller |
192.168.11.13/10.33.41.132 |
Controller |
Lxp-centos-2 |
hcloud.network |
192.168.11.14/10.33.41.135 |
Network |
Lxp-centos-3 |
hcloud.compute1 |
192.168.11.15/10.33.41.139 |
Compute1 |
Lxp-centos-4 |
hcloud.compute2 |
192.168.11.16/10.33.41.148 |
Compute2 |
修改/etc/sysconfig/network-scripts/ifcfg-eth0中ONBOOT=yes
修改/etc/hostname、/etc/hosts:
192.168.11.13hcloud.controller
192.168.11.14hcloud.network
192.168.11.15hcloud.compute1
192.168.11.16hcloud.compute2
10.1.14.235 mirrors.hikvision.com.cn
配置yum源为hik内部源:
然后更新yum源:
# yum clean;yumupdate; yum makecache
四个节点都执行一下:
yum install openstack-packstack -y
在控制节点:首先生成answer-file:
[root@hcloudetc]# packstack--gen-answer-file=hcloud.txt
Packstack changedgiven value to required value/root/.ssh/id_rsa.pub
然后修改hcloud.txt:
修改点如下:
[root@hcloud etc]#grep HOST ./hcloud.txt
CONFIG_CONTROLLER_HOST=192.168.11.13
CONFIG_COMPUTE_HOSTS=192.168.11.13 -> CONFIG_COMPUTE_HOSTS=192.168.11.15,192.168.11.16
CONFIG_NETWORK_HOSTS=192.168.11.13-> CONFIG_NETWORK_HOSTS=192.168.11.14
CONFIG_VCENTER_HOST=
CONFIG_STORAGE_HOST=192.168.11.13-> CONFIG_STORAGE_HOST=192.168.11.15,192.168.11.16
CONFIG_SAHARA_HOST=192.168.11.13
CONFIG_AMQP_HOST=192.168.11.13
CONFIG_MARIADB_HOST=192.168.11.13
CONFIG_CINDER_NETAPP_HOSTNAME=
然后修改不上传cirros镜像:
CONFIG_PROVISION_DEMO=y改为n
安装前再检查一下:
[root@hcloud etc]#grep HOST ./hcloud.txt
CONFIG_CONTROLLER_HOST=192.168.11.13
CONFIG_COMPUTE_HOSTS=192.168.11.15,192.168.11.16
CONFIG_NETWORK_HOSTS=192.168.11.14
CONFIG_VCENTER_HOST=
CONFIG_STORAGE_HOST=192.168.11.15,192.168.11.16
[root@hcloud etc]#grep PROV ./hcloud.txt
CONFIG_PROVISION_DEMO=n
CONFIG_PROVISION_TEMPEST=n
开始安装:
# yum install screen -y
# screen packstack--answer-file=hcloud.txt
Welcome to thePackstack setup utility
The installationlog file is available at:/var/tmp/packstack/20160509-032847-SM4DwT/openstack-setup.log
Installing:
Clean Up [DONE ]
Discovering ipprotocol version [DONE ]
这里需要手动输入四台节点的密码
root@192.168.11.13‘spassword:
root@192.168.11.15‘spassword:
root@192.168.11.14‘spassword:
root@192.168.11.16‘spassword:
Setting up sshkeys [DONE ]
然后等待安装完毕即可:
安装成功之后会出现如下打印:
**** Installation completed successfully******
Additionalinformation:
* Time synchronization installation wasskipped. Please note that unsynchronized time on server instances might beproblem for some OpenStack components.
* Warning: NetworkManager is active on192.168.11.13, 192.168.11.15, 192.168.11.14, 192.168.11.16. OpenStacknetworking currently does not work on systems that have the Network Managerservice enabled.
* File /root/keystonerc_admin has been createdon OpenStack client host 192.168.11.13. To use the command line tools you needto source the file.
* To access the OpenStack Dashboard browse tohttp://192.168.11.13/dashboard .
Please, find yourlogin credentials stored in the keystonerc_admin in your home directory.
* To use Nagios, browse tohttp://192.168.11.13/nagios username: nagiosadmin, password: afc447090a6448e0
* The installation log file is available at:/var/tmp/packstack/20160509-032847-SM4DwT/openstack-setup.log
* The generated manifests are available at:/var/tmp/packstack/20160509-032847-SM4DwT/manifests
[screen isterminating]
packstack –answer-file方式部署多节点openstack环境:四节点
标签:
原文地址:http://blog.csdn.net/xiangpingli/article/details/51353760