2019独角兽企业重金招聘Python工程师标准>>>

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

转载于:https://my.oschina.net/u/1431433/blog/208722

Use Amazon VM to try Openstack (1) (with DevStack)相关推荐

  1. Ubuntu16安装OpenStack

    OpenStack介绍 注意 :系统使用的是Ubuntu16,最少4核8G内存,20G硬盘空间. Openstack 核心组件Keystone.Glance.Nova OpenStack是一个开源的具 ...

  2. openstack 等管理工具

    最近笼统地学习和试用了几款比较有名的虚拟化管理软件.学习的内容包括Eucalyptus, OpenNebula, OpenStack, OpenQRM, XenServer, Oracle VM, C ...

  3. OpenStack R版的原理、部署与使用

    文章目录 一.先说说云计算的前世今生 二.OpenStack介绍 1. 项目起源 2. 选择OpenStack的原因 3. OpenStack和其他虚拟化技术的区别? 4. OpenStack主要的组 ...

  4. 测试openstack neutron的网络连通性

    测试openstack网络连通性,方式如下: 1.openstack控制端执行nova list 查看VM对应的名称和VM_UUID. 2.openstack控制端执行nova show $VM_UU ...

  5. OpenStack入门篇(八)之镜像服务Glance

    一.Glance的概述 Glance是为虚拟机的创建提供镜像的服务,我们基于Openstack是构建基本的IaaS平台对外提供虚拟机,而虚拟机在创建时必须为选择需要安装的操作系统,Glance服务就是 ...

  6. 搭建 OpenStack 实验环境 - 每天5分钟玩转 OpenStack(16)

    2019独角兽企业重金招聘Python工程师标准>>> 在学习 OpenStack 各服务之前,让我们先搭建起一个实验环境. 毋庸置疑,一个看得到摸得着而且允许我们随便折腾的 Ope ...

  7. 如何使用DevStack在Ubuntu 18.04上安装OpenStack

    Openstack is a free and opensource IaaS cloud platform that handles cloud compute, storage and netwo ...

  8. openstack neutron介绍

    http://www.aboutyun.com/thread-13568-1-1.html openstack的Neutron中虚拟网络设备介绍 http://www.aboutyun.com/thr ...

  9. openStack镜像状态以及创建流程学习

    glance镜像组件介绍 目录 什么是 Image 以及为什么要用 Image? 什么是Glance镜像服务 Glance几个重要概念 Glance的基本架构和三大核心模块 Glance数据库设计 G ...

最新文章

  1. iPhone4S出现应用无法打开时的解决方案
  2. JSP简单练习-猜字母游戏
  3. 第一阶段站立会议05
  4. 如何让你的webapp也能跳窗口搜索
  5. v8学习笔记(六) 汇编过程
  6. 抑制java对修饰符的检查_Java 7对抑制异常的支持
  7. 由旅行商问题认识何为状态压缩
  8. linux maven编译代码,linux shell---- maven编译和部署 tomcat脚本
  9. 【HTML5】Web存储、通信、地理位置
  10. Activity间的转场动画(overridePendingTransition)
  11. 阿里云SLB上http强制跳转到https问题处理
  12. 最常用的网络应用工具之寻线仪
  13. 扩展DOM有什么问题
  14. SpreadJS V15.0 Update2 新特性一览
  15. 在微信小程序中打造 MQTT 连接测试工具
  16. Unity人物动画扩展
  17. ffmpeg播放器声音效果2-变速不变调及变调
  18. 做软件测试工程师真的很容易吗
  19. u盘格式化了怎么恢复数据?
  20. mysql sql查询昨天的数据_sql语句,查询昨天的数据

热门文章

  1. AndroidStudio_androidstudio连接华为 HUAWEI Mate平板_调试测试---Android原生开发工作笔记143
  2. 基于Spring Security的认证方式_Spring Security 的认证流程_Spring Security OAuth2.0认证授权---springcloud工作笔记123
  3. 即时通讯学习笔记002---xmpp基本概念
  4. 超高并发优化技能001--隔离
  5. JAVA面试要点003_Mybatis中#和$的区别
  6. 打包windows 和 linux caffe 版本的人脸识别 人脸年龄估计 人脸性别模型的总结
  7. 68 个人脸landmark 点分布图
  8. VS2010下配置使用OpenGL的glut库
  9. django 集成个推_Django动态添加定时任务之djangocelery的使用
  10. java access 2013_jdk1.8环境下的java如何直连接microsoft access2013(都是64位系统也是)...