您的位置:首页 > 产品设计 > UI/UE

openstack quick start

2015-08-31 18:21 621 查看
openstack安装参考网址:
http://blog.csdn.net/zhoudaxia/article/details/9068931
Openstack官方文档:http://docs.openstack.org/

OpenStack Compute Administration Guide:http://docs.openstack.org/trunk/openstack-compute/admin/content/

[官版翻译ing]OpenStack云计算快速入门之一:OpenStack及其构成简介:http://blog.chinaunix.net/uid-22414998-id-3263551.html

[官版翻译ing]OpenStack云计算快速入门之二:OpenStack安装与配置:http://blog.chinaunix.net/uid-22414998-id-3265685.html

[官版翻译ing]OpenStack云计算快速入门之三:OpenStack镜像管理:http://blog.chinaunix.net/uid-22414998-id-3272059.html

1,Select a Linux Distribution

    Only Ubuntu 14.04 (Trusty), Fedora 21 (or Fedora 22) and CentOS/RHEL 7 are documented here. OpenStack also runs and is packaged on other flavors of Linux

    such as OpenSUSE and Debian.

2,Install Selected OS

    In order to correctly install all the dependencies, we assume a specific minimal version of the supported distributions to make it as easy as possible.

    We recommend using a minimal install of Ubuntu or Fedora server in a VM if this is your first time.

3,Download DevStack

    git clone https://git.openstack.org/openstack-dev/devstack
    The devstack repo contains a script that installs OpenStack and templates for configuration files

4,Configure

    We recommend at least a Minimal Configuration be set up.

     Minimal Configuration

     

    no logging

    pre-set the passwords to prevent interactive prompts

    move network ranges away from the local network (FIXED_RANGE and FLOATING_RANGE, commented out below)

    set the host IP if detection is unreliable (HOST_IP, commented out below)

[[local|localrc]]

ADMIN_PASSWORD=secrete

DATABASE_PASSWORD=$ADMIN_PASSWORD

RABBIT_PASSWORD=$ADMIN_PASSWORD

SERVICE_PASSWORD=$ADMIN_PASSWORD

SERVICE_TOKEN=a682f596-76f3-11e3-b3b2-e716f9080d50

#FIXED_RANGE=172.31.1.0/24

#FLOATING_RANGE=192.168.20.0/25

#HOST_IP=10.3.4.5

If the *_PASSWORD variables are not set here you will be prompted to enter values for them by stack.sh.

The network ranges must not overlap with any networks in use on the host. Overlap is not uncommon as RFC-1918 ‘private’ ranges are commonly used for both the local

networking and Nova’s fixed and floating ranges.

HOST_IP is normally detected on the first run of stack.sh but often is indeterminate on later runs due to the IP being moved from an Ethernet interface to a bridge on the host.

Setting it here also makes it available for openrc to set OS_AUTH_URL. HOST_IP is not set by default.

HOST_IPV6 is normally detected on the first run of stack.sh but will not be set if there is no IPv6 address on the default Ethernet interface.

Setting it here also makes it available for openrc to set OS_AUTH_URL. HOST_IPV6 is not set by default.

5,Start the install

  cd devstack; ./stack.sh

It takes a few minutes, we recommend reading the script while it is building.

遇到的问题

1,权限问题,我用root下载的git 源码,用root执行stack.sh会提示创建一个非root用户来执行。创建非root用户执行注意,执行前

   sudo chown -R stack:stack /opt/devstack改变目录的用户,以及把非root用户加入sudoer组

2,源配置问题,执行stack.sh后,它会下载很多包,源配置要覆盖尽可能多的包,尽可能快。参考http://chenrongya.blog.163.com/blog/static/8747419620143185103297/。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: