文档章节

Use Amazon VM to try Openstack (1) (with DevStack)

l
 lindylin
发布于 2014/03/16 20:53
字数 626
阅读 94
收藏 0

Step 1: To launch an instance on AWS

    You need to create your account on AWS (please refer to AWS links for how to create the account).

    1. You need to create a VPC and a subnet for yourself.

  • Go to the VPC service (Virtual Private Cloud), under "Your VPCs" -> select "Create VPC". You could specify a CIDR block, e.g. 192.0.0.0/24, keep the "Tenancy" be "default". You need to make sure the DNS settings are selected, including

    • Enable DNS resolution

    • Enable DNS hostname support for instances launch

  • Under the "Subnets" -> select "Create Subnet". Select the VPC you created just now (vpc-xxxxxx(192.0.0.0/24)), and specify the CIDR block, e.g. 192.0.0.0/24.

  • Go to "Internet Gateway" to create and attach an internet gateway for the created VPC.

  • Go to "Route table" and select the route table of the created VPC. To add one route for the internet gateway created just now (target = "igw-cxxxxxx"), and configure the "destination" as "0.0.0.0/0"


    2. Launch a new instance

    Then go to AWS EC2 service -> Instances, click the "Launch Instance" button.

  • You need to select the Amazon Machine Image of  Red Hat Enterprise Linux 6.4 (64 bit), OpenStack DevStack couldn't support the Amazon Linux yet.

  • Just select ti.micro as the image (you want to be free, right?), and "Next: Configure Instance Details"

  • In the "Network" option, select the "vpc-xxxxxx(192.0.0.0/24)" we created just now

  • You could enable the "Monitoring".

  • Click the "Review and Launch", and you might see a warning saying that "Your security group is openning to the world". It doesn't matter. To ensure all the functions are correct, let's not set too complex security rule in current stage.

  • Clict "Launch", then it will show the selection of key pair. If you don't have created keypair before, you could select to "Create a new key pair" here.  Otherwise, you'd better to use an existing key pair. Once you create a new key pair in this step, PLEASE remember to save the keypair file to your laptop. The key pair file generated by AWS is .pem file. You need to use Puttygen to convert it to the .ppk (Putty private key) file. Just download the Puttygen from website and do it. Very simple step. 

  • Once it is done, you could launch the new instance.

  • You could go back to the EC2 service -> instance to check the instance status. Please remember which region you created the instance. Otherwise you will not find your instance. In my practise, I created the instances in N.Virginia

  • Once you find the new instance status is "running", and public DNS is there, you could log into your instance.


Step 2: Log into the VM of AWS

Let's use Putty to log into the VM. Most of the user name will be "ec2-user". So, if the DNS is

ec2-54-84-58-163.compute-1.amazonaws.com

You should input "ec2-user@ec2-54-84-58-163.compute-1.amazonaws.com" in Putty.

On the left side of Putty dialog, select "Connection" -> "SSH" ->"Auth", input the key file (.ppk), then open the instance.

Step 3: Install DevStack

  • Install git:  sudo yum install git

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

  • cd devstack

  • git checkout stable/havana

  • Create the localrc file like following:

DATABASE_PASSWORD=passw0rd
RABBIT_PASSWORD=passw0rd
SERVICE_TOKEN=passw0rd
SERVICE_PASSWORD=passw0rd
ADMIN_PASSWORD=passw0rd
FLOATING_RANGE=10.0.0.0/24
FLAT_INTERFACE=eth0
LOGFILE=/home/ec2-user/stack.sh.log
Q_FLOATING_ALLOCATION_POOL=start=10.0.0.100,end=10.0.0.120
PUBLIC_NETWORK_GATEWAY=10.0.0.1

disable_service n-net
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-13
enable_service q-meta
enable_service neutron
enable_service tempest

  • execute: ./stack.sh




© 著作权归作者所有

l
粉丝 23
博文 18
码字总数 16651
作品 0
海淀
私信 提问
使用devstack在ubuntu server(64)上安装openstack囫囵吞枣式

说要部署一套cloudfoundry v2的代码 欲装cf2先装出一个可用的openstack 哎,惭愧,对linux还是不熟悉,对openstack仅停留在是一个iaas平台的,具体组件架构不知 使用bosh-cli操作bosh server...

qingfeng哥
2014/02/18
1K
0
使用 DevStack 快速搭建 OpenStack 实验环境

安装 OpenStack 对新手来说是个痛苦的过程,尤其是 OpenStack 和它依赖的一些组件在快速发展中,经常出现这个版本 keystone 对不上那个版本 dashboard 类似的情况。如果只是想看看 OpenStac...

liangxiao
2013/06/11
261
0
通过devstack自动部署Openstack icehouse 版本

问题导读 1、脚本自动化部署原理是什么? 2、重启虚拟机后,登录 Dashboard 时出现错误,如何解决? 3、stack.sh 执行之 pip-1.4.1 安装失败,怎么办? 本篇主要阐述通过DeveStack 去部署Ope...

剑气满天
2015/08/12
4K
0
如何通过OpenStack命令行管理VMs

I assume that there is an OpenStack deployment already up and running somewhere. I am going to use OpenStack CLI clients to manage VMs on the existing OpenStack setup. Install O......

yuyanghuoming
2014/04/20
1K
1
使用devstack部署openstack开发环境

devstack是一套用来给开发人员快速部署Openstack开发环境的脚本,其实对于整个安装过程没有什么好说的,因为脚本写的很完善,全程无脑式安装也没什么大问题,但是因为公司里的网络环境不给力...

YueZheng
2012/08/22
16.6K
1

没有更多内容

加载失败,请刷新页面

加载更多

深入理解JVM - 类加载机制

类加载过程 一个类型从被加载到虚拟机内存中开始,到卸载出内存为止,它的整个生命周期将会经历加载(Loading)、验证(Verification)、准备(Preparation)、解析(Resolution)、初始化(...

xiaolyuh
12分钟前
57
0
脸盲症的小伙伴 测试下你的脸盲症程度

笔者在背单词的时候突然想到了一个问题,就是背单词的时候,相近的词容易混淆,例如:coast和roast,在我背诵的时候,我就很烦恼,不光是英文单词,还有汉字,例如“籍”和“藉“,我还是个中...

蛤蟆丸子
13分钟前
50
0
「网易官方」极客战记(codecombat)攻略-地牢-囚犯the-prisoner

解放囚犯,你会得到盟友。 简介 敬请期待! 默认代码 # 释放囚犯,击败守卫并夺取宝石。 # 从"Weak Door"后解救Patrick。 # 击败名为"Two"的守卫。 # 获得宝石。 概览 您可以按照名称 "Weak ...

极客战记
14分钟前
12
0
Final cut pro 10.4.4中文版本

1.双击打开dmg,点击红框图示 2.出现这个界面后直接回车 3直接将fcp拖拽到application文件夹 然后就可以直接打开了! 百度网盘地址:链接: https://pan.baidu.com/s/1Db9hXmzPV4EdR7_LxEqctA...

kylin_ink
16分钟前
32
0
jquery.validate

规则名称 类型 描述 required Boolean 设置该项内容为必填 remote Json|String 请求远程资源来校验内容有效性 minlength Number 设置内容的最少字符长度 maxlength Number 设置内容的最多字符...

愚蠢的土豆
16分钟前
129
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部