使用devstack安装openstack过程总结

安装环境:

      1、ubuntu-14.04.2-server-amd64 纯净系统 就只安装了ssh-server

      2、vmware workstation 11

      3、虚机配置:4C 8G 单网卡  NAT模式

安装步骤:

1、安装git

     sudo apt-get install git

2、克隆devstack

     git clone https://github.com/openstack-dev/devstack.git

3、cd devstack

     1)、查看openstack分支:

           git branch –a

           * master
             remotes/origin/HEAD -> origin/master
             remotes/origin/master
             remotes/origin/stable/juno
             remotes/origin/stable/kilo

     2)、切换分支到kilo

             git checkout -b kilo/origin/stable/kilo

             Switched to a new branch 'kilo/origin/stable/kilo'

            

              git branch -a
              * kilo/origin/stable/kilo
              master
              remotes/origin/HEAD -> origin/master
              remotes/origin/master
              remotes/origin/stable/juno
             remotes/origin/stable/kilo

             说明切换成功,当前的版本为kilo

     3) 不要使用root账户运行:./stack/sh

            可以使用/devstack/tools/create-stack-user.sh来创建一个用户,比如stack:

                   cd /devstack/tools

                  ./create-stack-user.sh stack

            运行完成后,切换至root,给stack用户授权:

                     chown -R stack:stack /devstack

            运行:

                    ./stack.sh

       4) 安装向导会自动运行,期间会提示输入密码,一路下去,我在安装的时候遇到错误:

                   Download of get-pip.py failed

            这个是由于访问国外网站的原因,可能无法获取到(注:在其他地方看到需要指定pip的源为国内豆瓣的源,我尝试后不知什么原因,没能成功),我的解决办法是利用SSH+xshell,自制梯子,之后再次运行./stack,之后就是等待。

      安装完毕后,会提示有如下提示:

            This is your host ip: 192.168.28.132
             Horizon is now available at http://192.168.28.132/
             Keystone is serving at http://192.168.28.132:5000/
             The default users are: admin and demo
             The password: 111111

      在浏览器中输入Horizon 的地址,使用admin账户就可以登录了。

    

      开始Openstack吧~~

                 

猜你喜欢

转载自tonybest.iteye.com/blog/2224795