Centos7下使用RDO方式安装openstack-r版
一、前言
OpenStack是一个开源的云计算管理平台项目,OpenStack支持几乎所有类型的云环境,项目目标是提供实施简单、可大规模扩展、丰富、标准统一的云计算管理平台。OpenStack通过各种互补的服务提供了基础设施即服务(IaaS)的解决方案,每个服务提供API以进行集成。OpenStack覆盖了网络、虚拟化、操作系统、服务器等各个方面。
二、安装方式
openstack安装方法有很多种,其中有手动一步一步安装,fuel安装,devstack安装,rdo安装,RDO是红帽的的一个开源项目,能够帮我们快速部署openstack开发环境,官方部署文档:https://www.rdoproject.org/install/packstack/
三、测试环境
环境使用vmware进行测试,内存8G,处理器为4,磁盘200G,2块网卡,一块为net,一块为仅主机模式。开启支持虚拟化
三、基本配置
配置net网卡与仅主机网卡,配置完成后可以连接外网
vi /etc/sysconfig/network-scripts/ifcfg-ens33
vi /etc/sysconfig/network-scripts/ifcfg-ens34
重启网卡
service network restart
完成后即可ping通外网,
修改主机名,关闭防火墙,selinux
hostnamectl set-hostname rdo-openstack
LANG=en_US.utf-8
LC_ALL=en_US.utf-8
配置hosts文件 vi /etc/hosts
192.168.62.10 rdo-openstack
重启
reboot
四、安装,
安装过程非常简单,只有4条命令,顺序执行即可
sudo yum install -y centos-release-openstack-rocky
sudo yum update -y
sudo yum install -y openstack-packstack
sudo packstack --allinone
完成后将会输出以下内容
**** Installation completed successfully ******
Additional information:
* A new answerfile was created in: /root/packstack-answers-20181011-174750.txt
* Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components.
* Warning: NetworkManager is active on 192.168.62.10. OpenStack networking currently does not work on systems that have the Network Manager service enabled.
* File /root/keystonerc_admin has been created on OpenStack client host 192.168.62.10. To use the command line tools you need to source the file.
* To access the OpenStack Dashboard browse to http://192.168.62.10/dashboard .
Please, find your login credentials stored in the keystonerc_admin in your home directory.
* Because of the kernel update the host 192.168.62.10 requires reboot.
* The installation log file is available at: /var/tmp/packstack/20181011-174749-NSg_sq/openstack-setup.log
* The generated manifests are available at: /var/tmp/packstack/20181011-174749-NSg_sq/manifests
访问 http://192.168.62.10/dashboard
用户名密码则在 /root 目录下的keystone_admin 文件中,
至此使用RDO安装openstack完成
如有问题可以评论指出。