VirtualBox下安装Openstack

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

,筑起梦想的鸟巢,开始人生的长跑,领先每回的冲刺,

VirtualBox下安装Openstack

相关文章:

你感兴趣的文章:

标签云: