一vmware ubuntu14.04-安裝OpenStack-Basic Environment

1在vmware他建三臺虛擬機分別命名爲controller,compute,network, 每臺虛擬機安裝ubuntu14.04 server系統 ubuntu


建立虛擬機時爲controller節點添加兩個網卡,分別爲: google

Adapter 1:
Attached to: Host-only Adapter
Name: Interface 1

Adapter 2:
Attached to: NAT
Adapter Type: Paravirtualized Network spa

在 Controller 節點作以下操做:

# nano /etc/hostname
controller

# nano /etc/network/interfaces
auto eth0
iface eth0 inet static
address 10.10.10.10
netmask 255.255.255.0

auto eth1
iface eth1 inet dhcp

Configuring Name resolution

# nano /etc/hosts

10.10.10.10 controller
10.10.10.11 compute
10.10.10.12 network

# reboot

# sudo apt-get update server


建立虛擬機時爲compute節點添加三個網卡,分別爲: ip

Adapter 1:
Attached to: Host-only Adapter
Name: Interface 1

Adapter 2:
Attached to: Host-only Adapter
Name: Interface 2

Adapter 3:
Attached to: NAT get

在Compute 節點作如下操做

# nano /etc/hostname
compute 虛擬機

# nano /etc/network/interfaces
auto eth0
iface eth0 inet static
address 10.10.10.11
netmask 255.255.255.0

auto eth1
iface eth1 inet static
address 10.20.20.11
netmask 255.255.255.0

auto eth2
iface eth2 inet dhcp

# reboot

# ping controller
# ping network
# ping google.com io


建立虛擬機時爲network節點添加四個網卡,分別爲: ubuntu14.04

Adapter 1:
Attached to: Host-only Adapter
Name: Interface 1 date

Adapter 2:
Attached to: Host-only Adapter
Name: Interface 2

Adapter 3:
Attached to: Host-only Adapter
Name: Interface 3

Adapter 4:
Attached to: NAT

在Network 節點作如下操做

# nano /etc/hostname
network

# nano /etc/network/interfaces
auto eth0
iface eth0 inet static
address 10.10.10.12
netmask 255.255.255.0

auto eth1
iface eth1 inet static
address 10.20.20.12
netmask 255.255.255.0

auto eth2
iface eth2 inet manual
up ip link set dev $IFACE up
down ip link set dev $IFACE down

auto eth3
iface eth3 inet dhcp

# reboot

# ping controller
# ping compute
# ping google.com


在Controller 節點作如下操做 # ping network # ping compute # ping google.com

相關文章
相關標籤/搜索