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

Wesley13
• 阅读 665

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

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
点赞
收藏
评论区
推荐文章
blmius blmius
3年前
MySQL:[Err] 1292 - Incorrect datetime value: ‘0000-00-00 00:00:00‘ for column ‘CREATE_TIME‘ at row 1
文章目录问题用navicat导入数据时,报错:原因这是因为当前的MySQL不支持datetime为0的情况。解决修改sql\mode:sql\mode:SQLMode定义了MySQL应支持的SQL语法、数据校验等,这样可以更容易地在不同的环境中使用MySQL。全局s
皕杰报表之UUID
​在我们用皕杰报表工具设计填报报表时,如何在新增行里自动增加id呢?能新增整数排序id吗?目前可以在新增行里自动增加id,但只能用uuid函数增加UUID编码,不能新增整数排序id。uuid函数说明:获取一个UUID,可以在填报表中用来创建数据ID语法:uuid()或uuid(sep)参数说明:sep布尔值,生成的uuid中是否包含分隔符'',缺省为
待兔 待兔
5个月前
手写Java HashMap源码
HashMap的使用教程HashMap的使用教程HashMap的使用教程HashMap的使用教程HashMap的使用教程22
Jacquelyn38 Jacquelyn38
3年前
2020年前端实用代码段,为你的工作保驾护航
有空的时候,自己总结了几个代码段,在开发中也经常使用,谢谢。1、使用解构获取json数据let jsonData  id: 1,status: "OK",data: 'a', 'b';let  id, status, data: number   jsonData;console.log(id, status, number )
Stella981 Stella981
3年前
KVM调整cpu和内存
一.修改kvm虚拟机的配置1、virsheditcentos7找到“memory”和“vcpu”标签,将<namecentos7</name<uuid2220a6d1a36a4fbb8523e078b3dfe795</uuid
Wesley13 Wesley13
3年前
mysql设置时区
mysql设置时区mysql\_query("SETtime\_zone'8:00'")ordie('时区设置失败,请联系管理员!');中国在东8区所以加8方法二:selectcount(user\_id)asdevice,CONVERT\_TZ(FROM\_UNIXTIME(reg\_time),'08:00','0
Wesley13 Wesley13
3年前
00:Java简单了解
浅谈Java之概述Java是SUN(StanfordUniversityNetwork),斯坦福大学网络公司)1995年推出的一门高级编程语言。Java是一种面向Internet的编程语言。随着Java技术在web方面的不断成熟,已经成为Web应用程序的首选开发语言。Java是简单易学,完全面向对象,安全可靠,与平台无关的编程语言。
Stella981 Stella981
3年前
Android蓝牙连接汽车OBD设备
//设备连接public class BluetoothConnect implements Runnable {    private static final UUID CONNECT_UUID  UUID.fromString("0000110100001000800000805F9B34FB");
Wesley13 Wesley13
3年前
MySQL部分从库上面因为大量的临时表tmp_table造成慢查询
背景描述Time:20190124T00:08:14.70572408:00User@Host:@Id:Schema:sentrymetaLast_errno:0Killed:0Query_time:0.315758Lock_
Python进阶者 Python进阶者
11个月前
Excel中这日期老是出来00:00:00,怎么用Pandas把这个去除
大家好,我是皮皮。一、前言前几天在Python白银交流群【上海新年人】问了一个Pandas数据筛选的问题。问题如下:这日期老是出来00:00:00,怎么把这个去除。二、实现过程后来【论草莓如何成为冻干莓】给了一个思路和代码如下:pd.toexcel之前把这