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

VirtualBox下安装Openstack

[日期:2012-12-25] 来源:Linux社区  作者:tyzhaoqi2004 [字体:大 中 小]

VirtualBox下安装Openstack

安装部署整体架构。

虚拟机配置

主机:

windows 7

虚拟机:

VirtualBox 4

安装镜像:

Ubuntu 12.04 ISO

安装步骤:

1.安装配置VirtualBox

open File → Preferences → Network tab

添加 host-only netwok vboxnet0 – 这个作为 Public interface

设置ip 172.16.0.254, mask 255.255.0.0, dhcp disbaled

添加 host-only netwok vboxnet1 – 这个作为 Private (VLAN) interface

设置ip 11.0.0.1, mask 255.0.0.0, dhcp disbaled

2.在VirtualBox中新建虚拟机

内存:1024M

硬盘:20G

cpu:2个

Acceleration: 勾选 VT-x

网络:

Adapter 1: attached to NAT – eth0 will connect here;

Adapter 2: attached to Host-Only Adapter, vboxnet0

Adapter 3: attached to Host-Only Adapter, vboxnet1

3.安装Ubuntu 12.04

过程比较简单一路选则默认。

4.配置客户机

sudo /etc/network/interfaces

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

启动网卡

ifup eth1 #之后, ifconfig 显示 inet addr:172.16.0.1

ifup eth2

linux
相关资讯       OpenStack  OpenStack安装 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

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