(1)安装好RHEL7.2 64位操作系统
硬盘200G、内存4G以上
指定cpu类型支持虚拟化
(2)上传所需软件包Openstack-mitaka-packages.tar.gz
并解压[root@localhost ~]# tar xf /root/openstack-mitaka-packages.tar.gz
(3)关闭selinux/防火墙
(4)配置openstack的yum源
[root@localhost ~]# vim /etc/yum.repos.d/openstack.repo
(5)配置本地yum源
[root@localhost ~]# mount /dev/cdrom /mnt/
mount: /dev/sr0 is write-protected, mounting read-only
[root@localhost ~]# vim /etc/yum.repos.d/rhel7.repo
[root@localhost ~]# yum clean all
[root@localhost ~]# yum list
(7)[root@localhost ~]# vim /etc/hosts
(8)[root@localhost ~]# vim /etc/sysconfig/network
(9)安装openstack
[root@localhost ~]# yum -y install openstack-packstack
(10)上传镜像模板文件cirros-0.3.4-x86_64-disk.img
(11)安装allinone模式openstack
[root@localhost ~]# packstack --allinone --provision-p_w_picpath-url=/root/cirros-0.3.4-x86_64-disk.img
* Warning: NetworkManager is active on 192.168.137.218. OpenStack networking currently does not work on systems that have the Network Manager service enabled.
[root@localhost ~]# systemctl stop NetworkManager.service
解决如上报错信息
出现如下信息说明安装成功!
**** Installation completed successfully ******
Additional information:
* A new answerfile was created in: /root/packstack-answers-20161117-170020.txt
* Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.
* File /root/keystonerc_admin has been created on OpenStack client host 192.168.137.218. To use the command line tools you need to source the file.
* To access the OpenStack Dashboard browse to http://192.168.137.218/dashboard .
Please, find your login credentials stored in the keystonerc_admin in your home directory.
* To use Nagios, browse to http://192.168.137.218/nagios username: nagiosadmin, password: 09b7c35eb73649dd
* The installation log file is available at: /var/tmp/packstack/20161117-170019-nL91bR/openstack-setup.log
* The generated manifests are available at: /var/tmp/packstack/20161117-170019-nL91bR/manifests