一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

相关文章
相关标签/搜索