Sie sind auf Seite 1von 5

1.

Creating network interfaces ( 3 interfaces )


File > Preferences > Network > Host-only Networks
Interface 1 (Management Network)
IPv4 Address: 172.16.0.1
Network Mask: 255.255.255.0
Interface 2 (Tunnel Network)
IPv4 Address: 10.10.0.1
Network Mask: 255.255.255.0
Interface 3 (External Network)
IPv4 Address: 192.168.100.1
Network Mask: 255.255.255.0
2. Create a VM - controller
Install Ubuntu Server 14.04.4 - Download from Ubuntu (iso file)
Assign network adapter as above
Settings > Network
Adapter 1:
Attached to: Host-only Adapter
Name: Interface 1
Adapter Type: Paravirtualized Network
Promiscuous Mode: Allow All
Adapter 2:
Attached to: NAT
Adapter Type: Paravirtualized Network
Boot controller VM:
Always use root user
$ sudo su
# apt-get update
# apt-get update
# apt-get install ubuntu-cloud-keyring
# echo "deb http://ubuntu-cloud.archive.canonical.com/ubuntu" "trustyupdates/kilo main" > /etc/apt/sources.list.d/cloudarchive-kilo.list
# cat /etc/apt/sources.list.d/cloudarchive-kilo.list
# apt-get update & apt-get dist-upgrade
Configuring Hostname

# vi /etc/hostname
controller
Configuring Network Interfaces
# vi /etc/network/interfaces
auto eth0
iface eth0 inet static
address 172.16.0.10
netmask 255.255.255.0
auto eth1
iface eth1 inet dhcp
Configuring Name resolution
# vi /etc/hosts
172.16.0.10 controller
172.16.0.11 compute
172.16.0.12 network
172.16.0.13 block
172.16.0.14 object1
172.16.0.15 object2
127.0.0.1 localhost
# 127.0.1.1 - comment this out or delete
# reboot
Update Ubuntu Server
# sudo apt-get update
# powerof
3. Clone Controller Node (Full Clone) and create network node and compute
node
Assign network adapter to Network Node
Adapter 1:
Attached to: Host-only Adapter
Name: Interface 1
Adapter Type: Paravirtualized Network
Promiscuous Mode: Allow All
Adapter 2:
Attached to: Host-only Adapter
Name: Interface 2

Adapter Type: Paravirtualized Network


Promiscuous Mode: Allow All
Adapter 3:
Attached to: Host-only Adapter
Name: Interface 3
Adapter Type: Paravirtualized Network
Promiscuous Mode: Allow All
Adapter 4:
Attached to: NAT
Adapter Type: Paravirtualized Network
=============================================
4. To Compute Node
Adapter 1:
Attached to: Host-only Adapter
Name: Interface 1
Adapter Type: Paravirtualized Network
Promiscuous Mode: Allow All
Adapter 2:
Attached to: Host-only Adapter
Name: Interface 2
Adapter Type: Paravirtualized Network
Promiscuous Mode: Allow All
Adapter 3:
Attached to: NAT
Adapter Type: Paravirtualized Network
5. In Network Node
Boot the network VM.
Configuring Hostname
# vi /etc/hostname
network
Configuring Network Interfaces
# vi /etc/network/interfaces
auto eth0
iface eth0 inet static
address 172.16.0.12
netmask 255.255.255.0
auto eth1
iface eth1 inet static

address 10.10.0.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
6. In Compute Node
Boot the compute VM.
Configuring Hostname
# vi /etc/hostname
compute
Configuring Network Interfaces
# vi /etc/network/interfaces
auto eth0
iface eth0 inet static
address 172.16.0.11
netmask 255.255.255.0
auto eth1
iface eth1 inet static
address 10.10.0.11
netmask 255.255.255.0
auto eth2
iface eth2 inet dhcp
# reboot
7. In Controller Node
# ping network
# ping compute
# ping google.com
8. In compute Node

# ping network
# ping controller
# ping google.com
9. In network Node
# ping compute
# ping controller
# ping google.com