OpenStack快速安装

本文介绍如何使用RDO在15分钟内快速部署OpenStack云环境,仅需三步即可完成安装。适用于希望尝试OpenStack但又不想投入过多时间和精力的用户。文章详细介绍了从准备环境到成功运行的全过程。

RDO Quickstart

Deploying RDO is a quick and easy process. Setting up an OpenStack cloud takes approximately 15 minutes, and can be as short as 3 steps.

Below, we'll explain how to set up OpenStack on a single server. You'll be able to add more nodes to your OpenStack cloud later, if you choose.

If you just want to try it out without installing anything, check out TryStack. See also Installation for alternate deployment methods.

These instructions are to install the current ("Liberty") release.

Summary for the Impatient

** Make sure your /etc/environment is populated. In case it is not, as a suggestion, add the following content:

LANG=en_US.utf-8
LC_ALL=en_US.utf-8

Next, enter the commands:

sudo yum install -y https://www.rdoproject.org/repos/rdo-release.rpm
sudo yum update -y
sudo yum install -y openstack-packstack
packstack --allinone

Step 0: Prerequisites

Software: Red Hat Enterprise Linux (RHEL) 7 is the minimum recommended version, or the equivalent version of one of the RHEL-based Linux distributions such as CentOS, Scientific Linux, etc. x86_64 is currently the only supported architecture. See also RDO repository info for details on required repositories. Please name the host with a fully qualified domain name rather than a short-form name to avoid DNS issues with Packstack.

Hardware: Machine with at least 4GB RAM, processors with hardware virtualization extensions, and at least one network adapter.

Network: In case you are planning on having external network access to the server and instances, this is a good moment to properly configure your network settings. A static IP address to you network card and disabling NetworkManager are sound advices. If you are planing on something more fancy, you might want to check this topic about advanced networking BEFORE PROCEDING https://www.rdoproject.org/networking/neutron-with-existing-external-network/.

Step 1: Software repositories

Setup the RDO repositories:

sudo yum install -y https://rdoproject.org/repos/rdo-release.rpm

Update your current packages:

sudo yum update -y

Looking for an older version? See http://rdoproject.org/repos/ for the full listing.

Step 2: Install Packstack Installer

sudo yum install -y openstack-packstack

Step 3: Run Packstack to install OpenStack

Packstack takes the work out of manually setting up OpenStack. For a single node OpenStack deployment, run the following command.

packstack --allinone

If you encounter failures, see the Workarounds page for tips.

If you have run packstack previously, there will be a file in your home directory named something like packstack-answers-20130722-153728.txt You will probably want to use that file again, using the –answer-file option, so that any passwords you've already set (e.g.: mysql) will be reused.

The installer will ask you to enter the root password for each host node you are installing on the network, to enable remote configuration of the host so it can remotely configure each node using Puppet.

Once the process is complete, you can log in to the OpenStack web interface "Horizon" by going to http://$YOURIP/dashboard. The username is "admin". The password can be found in the file keystonerc_admin in the /root/ directory of the control node.

Next Steps

Now that your single node OpenStack instance is up and running, you can read on about running an instance, configuring a floating IP range, configuring RDO to work with your existing network, or about expanding your installation by adding a compute node.

openstack一键安装(含安装包、自制工具)支持centos6.5最小化安装 本资源分为3部分下载: 【1】openstack一键安装(1) 【2】openstack一键安装(2) 【3】openstack一键安装(3) 注意:下载完整后,请放在同一目录下解压 ==================================================== | 安装说明 | ==================================================== 注意:以下路径不能随意更改,一定要按照以下顺序进行安装 1.把openstack-cloud文件夹用SSHSecureShellClient工具上传到服务器的/usr目录下并且设置权限: chmod 777 -R /usr/openstack-cloud/ 基本配置: (1)配好主机ip重启网络 (2)更改/usr/openstack-cloud/目录下的五个的文件参数,文件分别有: =============================================================== | glance.sh httpd.conf keystone.sh nova.conf nova-user.sh | =============================================================== 将所有有关IP:192.168.1.2全部替换成服务器的IP 2.一键yum(会把原来自带yum备份到/etc/yum.repos.d/bak下): ./usr/openstack-cloud/yum.sh 3.一键安装openstack: ./usr/openstack-cloud/install-openstack.sh _________________________________________________ |可选工具 | |===============================================| |一键卸载openstack | | ./usr/openstack-cloud/install-openstack.sh | |_______________________________________________| 4.一键配置: ./usr/openstack-cloud/config.sh 5.一键创建和连接数据库 ./usr/openstack-cloud/db-connection.sh 注意:在创建数据库的过程中需要输入数据库的密码,如果没有设置数据库密码则为空,直接回车即可继续! _________________________________________________ |可选工具 | |===============================================| |一键重启服务 | | ./usr/openstack-cloud/service-restart.sh | |_______________________________________________| |一键停止服务 | |./usr/openstack-cloud/service-stop.sh | |_______________________________________________| 6.http://服务器ip/dashboard 7.最后上传镜像,运行实例——(管理节点)完毕 *如果需要手动配置和安装请参考(CentOS6.5+OpenStack+kvm云平台部署)文献。 ========服务先到这里,感谢您的使用,技术问题请联系!============ | 联系方式:QQ:1098978739 邮箱1098978739@qq.com | | QQ认证请输入:openstack+姓名 | ================开发者:小马 版权所有2014年5月21日 =============
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值