歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> VirtualBox下安裝Openstack

VirtualBox下安裝Openstack

日期:2017/2/28 14:54:37   编辑:Linux教程

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

Copyright © Linux教程網 All Rights Reserved