Openstack three node architecture
1) Controller
2) Compute
3) Network
Following setting is applied to Oracle VM VirtualBox Manager. 
Before creating 3 nodes we need to set-up.
 - Management Network
   For openstack service communication
 - Tunnel Network
   For openstack VM's communication        
 - External Network
   Provides internet access to the virtual machines.
Now we'll set-up these networks.
Goto File-->Preferences-->Network-->Host-only Networks
Add three interfaces and edit it.
1st interface: 
 IPv4 Address: 10.10.10.1
 IPv4 Network Mask: 255.255.255.0
2st interface: 
 IPv4 Address: 10.20.20.1
 IPv4 Network Mask: 255.255.255.0
3st interface: 
 IPv4 Address: 192.168.100.1
 IPv4 Network Mask: 255.255.255.0
Controller :
Create new VM
 Name: Controller
 Type: Linux
 Version: Ubuntu(64 bit)
 -->Next
 Memory size: 2048MB or more
 -->Next
 Select Create a virtual hard drive now
 -->Next
 Select VDI(Virtual Disk Image)
 -->Next
 Select Dynamically allocated
 -->Next
 File Location: browse where it is available
 Size: 20GB or more
Start the same VM and select ubuntu server image and complete the installation.
While installation Choose software to install: OpenSSH server 
OR
Later also you can install this if it is skipped.
Once you finished the installation, try to ping google.com and if it works means VM is created successfully.
The first thing need to do is update and upgrade it.
 $sudo su
 #nano /etc/hosts
 comment out 127.0.0.1
 introduce the following host
 10.10.10.10 controller
 10.10.10.11 compute
 10.10.10.12 network
On the same VM
Goto Setting-->Network
Under Adapter 1:    
 Check Enable Network Adapter
 Attached to: Host-only Adapter
 Name: et0
 Under Advanced
 Adapter Type: Paravirtualized Network(virtio-net)
 Promiscuous Mode: Allow All
Under Adapter 2:
 Check Enable Network Adapter
 Attached to: NAT
 Under Advanced
 Adapter Type: Paravirtualized Network(virtio-net)
Now let's create two clone of this VM so we can have CONTROLLER, COMPUTE and NETWORK node.
Controller Node: -
 # 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
 # restart
Compute :
Compute Node: -
 Goto Setting-->Network
Under Adapter 1:    
 Check Enable Network Adapter
 Attached to: Host-only Adapter
 Name: et0
 Under Advanced
 Adapter Type: Paravirtualized Network(virtio-net)
 Promiscuous Mode: Allow All
Under Adapter 2:    
 Check Enable Network Adapter
 Attached to: Host-only Adapter
 Name: et1
 Under Advanced
 Adapter Type: Paravirtualized Network(virtio-net)
 Promiscuous Mode: Allow All
Under Adapter 3:
 Check Enable Network Adapter
 Attached to: NAT
 Under Advanced
 Adapter Type: Paravirtualized Network(virtio-net)
 $sudo su
 #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
 # ping google.com
 # ping 10.10.10.10
# restart
Network :
Network Node: -
 Goto Setting-->Network
Under Adapter 1:    
 Check Enable Network Adapter
 Attached to: Host-only Adapter
 Name: et0
 Under Advanced
 Adapter Type: Paravirtualized Network(virtio-net)
 Promiscuous Mode: Allow All
Under Adapter 2:    
 Check Enable Network Adapter
 Attached to: Host-only Adapter
 Name: et1
 Under Advanced
 Adapter Type: Paravirtualized Network(virtio-net)
 Promiscuous Mode: Allow All
Under Adapter 3:    
 Check Enable Network Adapter
 Attached to: Host-only Adapter
 Name: et2
 Under Advanced
 Adapter Type: Paravirtualized Network(virtio-net)
 Promiscuous Mode: Allow All
Under Adapter 4:
 Check Enable Network Adapter
 Attached to: NAT
 Under Advanced
 Adapter Type: Paravirtualized Network(virtio-net)
 $sudo su
 #nano /etc/hostname
 network
 #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 manual
  up ip link set dev $IFACE up
  down ip link set dev $IFACE down    
 auto eth3
 iface eth3 inet dhcp
 #ping google.com
 #ping 10.10.10.10
 #ping 10.10.10.11
# restart
If nodes are set-up well then you should be able to ping among all node to each other.
At this level if all work well then openstack services are ready to install on these nodes.
 
No comments:
Post a Comment