设为首页 收藏本站
查看: 798|回复: 0

[经验分享] expreimenting-openstack-essex-ubuntu-1204-lts-under-virtualbox(转载)

[复制链接]

尚未签到

发表于 2016-1-9 10:11:19 | 显示全部楼层 |阅读模式
原文:http://www.tikalk.com/alm/expreimenting-openstack-essex-ubuntu-1204-lts-under-virtualbox
 
The best way to get an insight into OpenStack is playing with a live installation, but OpenStack's simplest configuration requires 2 network interfaces, e.g. 2 machines, each equipped with 2 network cards and an additional ethernet hub. Using VirtualBox we can set up a full OpenStack installation on a single laptop or desktop.
--openstack最少需要两个机器,每个提供两个网中。通过使用VirtualBox可在单机模拟这种拓扑。
This approach is very appealing and there's a number of guides that describe it. This guide is a compilation of those sources (credited below) with the neccessary updates and fixes.  
--针对一些安装作者进行了整理
OpenStack is evolving fast and the recent release, Essex, came out by the end of April 2012 - at about the same time Ubuntu released 12.04 LTS “Precise Pangolin” (LTS stands for Long Term Support). OpenStack's development is mostly carried out on Ubuntu so this is the easiest platform to get it running on. Ubuntu's repositories for 12.04 provide all the necessary packages to support OpenStack's Essex so a POC based on this combination is supposed to be the easiest to set up.
--示例使用的是OpenStack的Essex版,对应的Ubuntu是12.04 LTS Server版。
 
Quick Overview of The Installation
 
We will install VirtualBox on whatever host OS you have (provided it runs VirtualBox, even Windows). After configuring VirtualBox's host-only network adapetrs, we will create a VM (named essex1) in which a fresh ISO of Ubuntu 12.04 will be installed. All subsequent actions are performed inside essex1. We will grab Kevin's script (credits below) which will do most of the installation and configuration work. Then we will download a tiny(很小的) cloud-ready image, from which we will create our “cloud instance”. OpenStack's Dashboard will be used to launch this instance, we will end the session logging into the cloud instance.
--安装VirtualBox
--配置VirtualBox的网络中Host-only network adapter.
--创建一个虚拟机,叫essex1,在其上安装Ubuntu 12.04。
--使用Kevin's script 执行安装和配置工作
--下载一个小的cloud-ready 镜像,在其上创建我们的cloud instance
--openstack的Dashboard用来加载这个实例,然后就可以登陆这个cloud instance了。
DSC0000.png
 
Ingredients(准备材料)
Host PC
recommended 8GB RAM, at least 30GB free disk space, internet connection, VT-X enabled in BIOS.
The host OS can be any Linux, windows, Mac supporting VirtualBox
(建议8G内存,30G硬盘,网络,VT-X支持)
  VirtualBox 4
  I'm using 4.1.12-dfsg-2 (from “universe”)
  Ubuntu 12.04 LTS Precise Pangolin ISO image
  Most guides use the “server” edition; since a lot of work is performed inside the VM guest, I use (and highly recommend) the “desktop”.
  Choose 32 or 64 bits according to your host
  (作者建议使用桌面版)
  Kevin Jackson's Osinstall.sh script
  is obtained by git-cloning Kevin's repository [inline below]
  Tiny cloud image
  
  is downloaded by another script (written by Kevin)
  
  Estimated time
  About 1h30, including VM installation and OpenStack setup (not including the ubuntu ISO download time).
-------------------------------------激动人心的时刻到了..................................................
  Step 1: VirtualBox Install & Setup - performed on Host PC 
  



  • Verify  VT-X enabled in your host PC's BIOS
  • Download  Ubuntu 12.04 ISO (i'm using the 64 bits desktop)
  • install  VirtualBox [apt-get or here]
  • Configure VirtualBox's Host-Only Networks
  start VirtualBox [on ubuntu prior to Unity it's in Applications → Accessories]
  open File → Preferences → Network tab
  Add host-only netwok for vboxnet0 – this will be the Public interface
  set IP to 172.16.0.254, mask 255.255.0.0, dhcp disbaled
  
  Add host-only netwok for vboxnet1 – this will be the Private (VLAN) interface
  set IP to 11.0.0.1, mask 255.0.0.0, dhcp disbaled
  
  Note1: In Kevin's screencast, vboxnet1 is set to 10.0.0.1 which is also used by the default D-Link router (from Bezeq). There shouldn't be IP addressing issues since VirtualBox is supposed to take care of isolation – but I had IP clashes and therefore suggest 11.0.0.0/8 instead.
  Note2: In my screenshots vboxnet0 is assigned to another test, so I use vboxnet1 and vboxnet2 respectively
  DSC0001.png
 
  Step 2: Create Guest - performed in VirtualBox
  click the “New” button 
DSC0002.png
  Create a VM with the following settings:
Name: Essex1 (or whatever, not really important)
OS type: Linux
Version: Ubuntu (or Ubuntu 64, in accordance with the ISO downloaded above)
Memory: 1536MB
Hard Disk: accept all the defaults, size 20GB
(创建第一个虚拟机)
 
  Configure the newly created VM(配置它)
Now modify the guest as follows: (performed from the right panel in VirtualBox's main window, where the new VM is selected on the left).
System tab:
Processor (optional, but recommended): Increase CPU from 1 set to 2
Acceleration: make sure VT-x and nested paging are checked
Network tab: see figure above 
Adapter 1: attached to NAT – eth0 will connect here; 
Adapter 2: attached to Host-Only Adapter, vboxnet0 - eth1 will connect here ;
Adapter 3: attached to Host-Only Adapter, vboxnet1 - eth2 will connect here;
Audio tab: may be disabled
Shared Folders: optional
if you want to copy files around (from/to the host PC and the VM) that's handy.
 
  Power the newly created VM(增强配置)
VirtualBox should popup a wizard to connect the ISO file as boot device.
 
Note: If this doesnt happen (e.g. this isn't your first attmept to boot the VM), you may use the Storage tab to hook the ISO to the virtual CD drive. Alternatively, use the VM window's Devices menu to do the same.
(VB会弹出个向导来连接ISO文件,如果没有,点击启动的时候,会提供选择ISO)
 
  Step 3: Guest Install & Initial Configuration
  
  Install the guest (from the iso image), use the suggested defaults.
  
Create a user with a quick password such as 0000 (you'll soon have to retype it many times).
Choose eth0 as your default network interface.
 when prompted to reboot, disconnect the ISO from the CD 
DSC0003.png
 
 
  Verify internet access after reboot (mandatory to continue)
You should have internet access through eth0. If it doesn't work, copy the setup for /etc/network/interfaces from the snippet below.
Normally, eth0 will get an IP address of 10.0.2.15
 
 Configure network interfaces
Become root (from now till the end):
sudo -i
Edit /etc/network/interfaces, make it look like this:

auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp

#Public Interface
auto eth1
iface eth1 inet static
address 172.16.0.1
netmask 255.255.0.0
network 172.16.0.0
broadcast 172.16.255.255

#Private VLAN interface
auto eth2
iface eth2 inet manual
up ifconfig eth2 up
 then run:(执行下面的命令)
ifup eth1 #after this, ifconfig shows inet addr:172.16.0.1 Bcast:172.16.255.255 Mask:255.255.0.0
ifup eth2 #after this, ifconfig doesnt report ipv4 addr for eth1
or reboot
 
------------------------------不再抄了,因为这个安装的openstack版本是essex,但是cf官网说支持openstack的版本(Note that only Folsom and Grizzly OpenStack releases are supported.)
详细声明
所以,不参照这个搞了。
 

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-162097-1-1.html 上篇帖子: 构建OpenStack的高可用性(HA,High Availability) . 下篇帖子: OpenStack云计算入门指南——Nova组件介绍
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表