Ubuntu 14下使用Devstack安装OpenStack Icehouse-->(1)

1、下载Ubuntu 14.04 LTS:
     http://mirrors.hustunique.com/ubuntu-releases/14.04/ubuntu-14.04-server-amd64.iso


2、VMware Workstation创建虚拟机,网络选择NAT模式,安装下载的Ubuntu系统,配置网络,

     记得配置DNS否则会有解析问题,8.8.4.4


3、 查看版本和更新系统
     openstack@openstack:~$lsb_release �Ca   #查看Ubuntu版本
     No LSBmodules are available.
     DistributorID: Ubuntu
     Description:    Ubuntu 14.04 LTS
     Release:        14.04
     Codename:       trusty


     openstack@openstack:~$uname �Ca       #查看内核版本
     Linuxopenstack 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08

     UTC 2014  x86_64x86_64             x86_64 GNU/Linux


     openstack@openstack:~$sudo apt-get dist-upgrade   #系统更新
     Readingpackage lists... Done
     Buildingdependency tree      
     Readingstate information... Done
     Calculatingupgrade... Done
     0upgraded, 0 newly installed, 0 to remove and 0 not upgraded.   #无法更新


4、openstack@openstack:~$ sudo apt-get install git   #安装git
     Reading package lists... Done
     Building dependency tree      
     Reading state information... Done
     E: Unable to locate package git      #报错
     openstack@openstack:~$ sudo apt-getupdate     #先更新源
     openstack@openstack:~$ sudo apt-get installgit     #成功
     openstack@openstack:~$sudo apt-get dist-upgrade     #成功


5、openstack@openstack:~$ git clone https://github.com/openstack-dev/devstack.git   

     #下载源代码


6、openstack@openstack:~/devstack$ git branch �Ca      #查看分支
     * master
      remotes/origin/HEAD-> origin/master
      remotes/origin/master
      remotes/origin/stable/havana
      remotes/origin/stable/icehouse

     openstack@openstack:~/devstack$ git checkout -b icehouseorigin/stable/icehouse 

      #切换分支
     Branch icehouse set up to track remote branch stable/icehouse fromorigin.
     Switched to a new branch 'icehouse'


     openstack@openstack:~/devstack$ git branch �Ca  
     * icehouse                                             切换到icehouse版本
     master
     remotes/origin/HEAD ->origin/master
     remotes/origin/master
     remotes/origin/stable/havana
     remotes/origin/stable/icehouse


7、新建localrc文件在/home/openstack/devstack下,然后将localrc内容粘贴进去(见附件)


8、执行./stack,我是一次成功,然后登陆提示的IP就可以看到openstack相关信息了


9、两个遇到的问题:若是提示目录权限问题,可手动创建即可;若是提示到neutron退出则在

    devstack 目录下执行ll,看看localrc目录是否正常,特别是目录的名字。


10、创建主机后看是否能正常获取IP地址,3.0的镜像是不能的这书BUG,3.2正常,但是从主机是ping

     不通云主机的,要按照如下修改安全组规则,放行ICMP和ssh,才可以从主机ping或者ssh上

     云主机。


edc09e380cd79123ff467f38ae345982b3b7809d

a56634fc1e178a82b9d494ecf503738da877e857

你可能感兴趣的:(ubuntu,openstack,devstack,icehouse)