手机版
你好,游客 登录 注册
背景:
阅读新闻

Ubuntu Openstack Django 十分钟快速部署Openstack 云计算

[日期:2012-07-02] 来源:Linux社区  作者:gmszone [字体:大 中 小]

安装keystone

使用脚本方式安装。

  1. ./openstack_keystone.sh  

你会被提示一个token,OpenStack里的服务输入的密码,您的电子邮件地址。电子邮件地址是用来填充用户的数据库中的信息。

  1. Enter a token for the OpenStack services to auth wth keystone: r4th3rb3t0k3n  
  2. Enter the password you used for the MySQL users (nova, glance, keystone): f00bar  
  3. Enter the email address for service accounts (nova, glance, keystone): user@foobar.com  

然后

  1. source stackrc  

接着我们可以看到用户和结果

  1. . ./stackrc  
  2. keystone user-list  

例如

  1. +----------------------------------+---------+------------------------+--------+  
  2. |                id                | enabled |         email          |  name  |  
  3. +----------------------------------+---------+------------------------+--------+  
  4. | b32b9017fb954eeeacb10bebf14aceb3 | True    | kordless@foobar222.com | demo   |  
  5. | bfcbaa1425ae4cd2b8ff1ddcf95c907a | True    | kordless@foobar222.com | glance |  
  6. | c1ca1604c38443f2856e3818c4ceb4d4 | True    | kordless@foobar222.com | nova   |  
  7. | dd183fe2daac436682e0550d3c339dde | True    | kordless@foobar222.com | admin  |  
  8. +----------------------------------+---------+------------------------+--------+  

安装Glance

  1. ./openstack_glance.sh  

这时候会被要求下载个Ubuntu could img,我是使用迅雷下载,而后放里面的。估计,如果网速不如的话会压力的。

  1. glance index  

就可以看到

  1. ID                                   Name                           Disk Format          Container Format     Size            
  2. ------------------------------------ ------------------------------ -------------------- -------------------- --------------  
  3. 71b8b5d5-a972-48b3-b940-98a74b85ed6a Ubuntu 12.04 LTS               qcow2                ovf                       226426880  

安装Nova

依旧使用脚本

  1. ./openstack_nova.sh  

需要填写一些关于网络的资料,以及IP地址等等

  1. #############################################################################################################   
  2. The IP address for eth0 is probably 10.0.1.35. Keep in mind you need an eth1 for this to work.  
  3. #############################################################################################################   
  4. Enter the primary ethernet interface IP: 10.0.1.35  
  5. Enter the fixed network (eg. 10.0.2.32/27): 10.0.2.32/27  
  6. Enter the fixed starting IP (eg. 10.0.2.33): 10.0.2.33  
  7. #######################################################################################   
  8. The floating range can be a subset of your current network.  Configure your DHCP server  
  9. to block out the range before you choose it here.  An example would be 10.0.1.224-255  
  10. #######################################################################################   
  11. Enter the floating network (eg. 10.0.1.224/27): 10.0.1.224/27  
  12. Enter the floating netowrk size (eg. 32): 32  

完成安装后,输入命令

  1. nova image-list  

输出

  1. root@ www.linuxidc.com :/home/kord/openstackgeek# nova image-list  
  2. +--------------------------------------+------------------+--------+--------+  
  3. |                  ID                  |       Name       | Status | Server |  
  4. +--------------------------------------+------------------+--------+--------+  
  5. | 71b8b5d5-a972-48b3-b940-98a74b85ed6a | Ubuntu 12.04 LTS | ACTIVE |        |  
  6. +--------------------------------------+------------------+--------+--------+  

安装Horizon

  1. ./openstack_horizon.sh  

然后

  1. env |grep OS_PASSWORD  
linux
相关资讯       云计算  OpenStack 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款