之前自己按照指南上裝了好幾次都出錯了,後來發現了redhat RDO packstack 方式,安裝成功了。
http://openstack.redhat.com/Quickstart
Please name the host with a fully qualified domain name rather than a short-form nameto avoid DNS issues with Packstack.
# vi /etc/hosts
# 127.0.0.1
#
127.0.0.1 hostname
sudo yum update -y
sudo yum install -y http://rdo.fedorapeople.org/rdo-release.rpm
reboot.
sudo yum install -y openstack-packstack
packstack --allinone
installation successful
Additional information:
* Anew answerfile was created in: /root/packstack-answers-20140601-050232.txt
*Time synchronization installation was skipped. Please note that unsynchronizedtime on server instances might be problem for some OpenStack components.
*Did not create a cinder volume group, one already existed
*File /root/keystonerc_admin has been created on OpenStack client host192.168.1.20. To use the command line tools you need to source the file.
* Toaccess the OpenStack Dashboard browse to http://192.168.1.20/dashboard .
Please, find your login credentials storedin the keystonerc_admin in your home directory.
* Touse Nagios, browse to http://192.168.1.20/nagios username : nagiosadmin,password : a35344dc01ad45ee
*The installation log file is available at:/var/tmp/packstack/20140601-050232-nSNyWK/openstack-setup.log
*The generated manifests are available at:/var/tmp/packstack/20140601-050232-nSNyWK/manifests
Cat keystonerc_admin
export OS_USERNAME=admin
export OS_TENANT_NAME=admin
export OS_PASSWORD=00539d19e3b04a9d
export OS_AUTH_URL=http://192.168.1.20:5000/v2.0/
登錄,
已經有了一個public network (172.24.4.224/28),這個網絡是連在主機的br-ex上的,
添加一個private網絡(172.16.0.1/24),這個是給VM使用的,
然後添加一個路由器,網關設置爲public network 172.24.4.228
然後給這個路由器添加Private網絡的接口,172.16.0.1
然後在鏡像那裏啓動實例,網絡選擇private_subnet, 下載私鑰。
在網絡拓撲那裏顯示就是這樣的:
public - 172.24.4.228 - router10 - private 172.16.0.1 - vm 172.16.0.3
打開console
Sudo vi /etc/resolv.conf 設置dns,ping baidu 通了。