0% found this document useful (0 votes)
479 views

Installing Mirantis OpenStack Manually

This document provides instructions for manually installing Mirantis OpenStack on VirtualBox. It describes: 1) Configuring virtual machines for the Fuel Master node and at least 3 Fuel Slave nodes by setting their hardware requirements, network adapters, and storage. 2) Configuring 3 VirtualBox host-only network adapters and their IP settings. 3) Mounting the Mirantis OpenStack ISO image on the Fuel Master node virtual machine. 4) Installing Fuel on the master node and configuring networking to allow the nodes to communicate.

Uploaded by

yousef
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
479 views

Installing Mirantis OpenStack Manually

This document provides instructions for manually installing Mirantis OpenStack on VirtualBox. It describes: 1) Configuring virtual machines for the Fuel Master node and at least 3 Fuel Slave nodes by setting their hardware requirements, network adapters, and storage. 2) Configuring 3 VirtualBox host-only network adapters and their IP settings. 3) Mounting the Mirantis OpenStack ISO image on the Fuel Master node virtual machine. 4) Installing Fuel on the master node and configuring networking to allow the nodes to communicate.

Uploaded by

yousef
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

QuickStart Guide

Installing Mirantis OpenStack Manually


If you do not want to use the Mirantis VirtualBox scripts, you can install Mirantis OpenStack on VirtualBox
manually.
Warning
Do not use a manually configured environment for production or customized deployments.

Configuring Virtual Machines


Before installing Fuel, you must configure the Fuel Master node and Fuel Slave nodes virtual machines.
The virtual machine configuration includes:

Configuring the Network


Creating Virtual Machines
Mounting the Mirantis OpenStack ISO Image

Virtual Machine Requirements


Your virtual machines must meet the following hardware requirements:
Fuel Master Node:

OS Type: Linux
Version: Ubuntu (64bit)
CPU: 2 virtual CPU cores
RAM: 1536+ MB (2048+ MB recommended)
HDD (VDI): 64 GB dynamically allocated
Network: 2 Host-Only Adapters Intel PRO/1000 MT desktop driver, 1 NAT Adapter Intel PRO/1000
MT desktop driver

Fuel Slave Nodes:

OS Type: Linux, Version: Ubuntu (64bit)


RAM: 1536+ MB (2048+ MB recommended)
HDD (VDI): 3 disks x 64+ GB, with dynamic disk expansion
Network: 3 Host-Only Adapters Intel PRO/1000 MT desktop driver

See also

Configuring the Network

Configuring the Network


Configure the VirtualBox Host-Only Ethernet Adapters for the Fuel Master node and Fuel Slave nodes.
Procedure:
1. In VirtualBox, click File Preferences Network.
2. Select Host-only Networks.

3. Create three VirtualBox Host-Only Ethernet Adapters by clicking the Adds new host-only network icon.
VirtualBox creates three new Ethernet adapters. For the purpose of example, Ethernet adapters names
are:
o

4.

5.

6.

7.

For Linux and Mac OS X:


vboxnet0
vboxnet1
vboxnet2
o For Windows with Cygwin:
VirtualBox Host-Only Ethernet Adapter
VirtualBox Host-Only Ethernet Adapter #2
VirtualBox Host-Only Ethernet Adapter #3
Modify the settings of the first Ethernet adapter:
o IPv4 Address: 10.20.0.1
o IPv4 Network mask: 255.255.255.0
o DHCP Server: disabled
Modify the settings of the second Ethernet adapter:
o IPv4 Address: 172.16.0.254
o IPv4 Network mask: 255.255.255.0
o DHCP Server: disabled
Modify the settings for the third Ethernet adapter:
o IPv4 Address: 172.16.1.1
o IPv4 Network mask: 255.255.255.0
o DHCP Server: disabled
Proceed to Creating Virtual Machines.

Creating Virtual Machines


You must manually configure virtual machines for the Fuel installation. Create one virtual machine for the Fuel
Master node and at least three virtual machines for Fuel Slave Nodes.
Procedure:
1. In VirtualBox, configure the Fuel Master node virtual machine according to the Virtual Machine
Requirements.
2. In the Fuel Master node network settings, configure the following network adapters:
o For Windows with Cygwin:
Adapter 1: Host-only adapter "VirtualBox Host-Only Ethernet Adapter"
Adapter 2: Host-only adapter "VirtualBox Host-Only Ethernet Adapter #2"
Adapter 3: NAT
o For Linux:
Adapter 1: Host-only adapter vboxnet0
Adapter 2: Host-only adapter vboxnet1
Adapter 3: NAT
3. Specify the following parameters to the Fuel Master node network adapters:
o Promiscuous mode: Allow All
o Adapter Type: Intel PRO/1000 MT Desktop
o Select the Cable Connected checkbox
4. Select the Fuel Master node virtual machine and click Settings.
5. Select System Processor.
6. Select Enable PAE/NX.
7. Adjust the number of CPU to 2.
8. Click OK.
9. Configure at least three Fuel Slave nodes virtual machines according to the Virtual Machine
Requirements.

10. Select a Fuel Slave node VM and click Settings System.


11. In Boot Order, select Network.
12. Unselect Floppy and Optical.
13. Set the following booting order:
1. Network
2. Hard drive
14. Click OK.
15. Click on a Fuel Slave node VM and select Settings Network.
16. Configure the following network adapters:
o For Windows with Cygwin:
Adapter 1: Host-only adapter "VirtualBox Host-Only Ethernet Adapter"
Adapter 2: Host-only adapter "VirtualBox Host-Only Ethernet Adapter #2"
Adapter 3: Host-only adapter "VirtualBox Host-Only Ethernet Adapter #3
o For Linux:
Adapter 1: Host-only adapter vboxnet0
Adapter 2: Host-only adapter vboxnet1
Adapter 3: Host-only adapter vboxnet2
17. Specify the following parameters to the Fuel Slave node network adapters:
o Promiscuous mode: Allow All
o Adapter Type: Intel PRO/1000 MT Desktop
o Select the Cable Connected checkbox
18. Click Settings Storage.
19. Select Controller SATA
20. Click Create Hard Disk.
21. In the Create New Virtual Disk wizard, select:
o File type: VDI
o Storage details: Dynamically allocated
o Size: 64 GB
22. Click Create.
23. Create another disk as described in Step 18 - Step 22.
24. Repeat Step 10 - Step 23 for each Fuel Slave node.
25. Proceed to Mounting the Mirantis OpenStack ISO Image.

Mounting the Mirantis OpenStack ISO Image


To install Fuel, mount the Mirantis OpenStack ISO image in the virtual machine settings.
Procedure:
1.
2.
3.
4.
5.
6.
7.

Right-click the Fuel Master node.


Select Storage.
Select the empty optical drive.
Click the optical drive icon.
Select Choose Virtual Optical Disk File.
Open the Fuel ISO image.
Proceed to Installing Fuel.

See also

Downloading the Mirantis OpenStack Image

Installing Fuel
After you complete the steps described in Configuring Virtual Machines, install Fuel.
Procedure:

1. Power on the Fuel Master node VM to start the installation.


2. When prompted, select 1. Fuel Install (Static IP).
Fuel installs on the virtual machine. It may take some time.
3. Optionally, enter the Fuel Setup screen when the following message displays:
4. Press a key to enter Fuel Setup (or press ESC to skip)...

If you enter Fuel Setup, the following configuration screen displays:

For a testing environment, you do not need to modify any settings.


5. Press F8.
System response:
Loading docker images. (This may take a while)

When Fuel completes the installation, the following message displays:


Welcome to the Fuel server
...
fuel login:

6. After the Fuel Master node installs, power on the Fuel Slave nodes. When the Fuel Slave nodes boot,
the Fuel Master node automatically discovers them.
7. Log in to the Fuel Master Node CLI using the default credentials.
8. Configure network interfaces:
1. Prepare the network configuration files:
2.
3.
4.
5.
6.
7.

sed -i.orig \
'/^UUID=\|^NM_CONTROLLED=/d;s/^\(.*\)=yes/\1=no/g;' \
/etc/sysconfig/network-scripts/ifcfg-eth{0,1,2}
sed -i.orig \
's/^ONBOOT=.*/ONBOOT=yes/;/^ONBOOT=/iNM_CONTROLLED=no' \
/etc/sysconfig/network-scripts/ifcfg-eth{0,1,2}

These commands create a backup of network configuration, removes the network manager
options, disables default settings, enables network interface activation at boot time, and disables
the network manager.
8. Configure eth1 to use as a static IP address with the corresponding netmask.
Example:
sed -i 's/^BOOTPROTO=.*/BOOTPROTO=static/' \
/etc/sysconfig/network-scripts/ifcfg-eth1
sed -i '/^BOOTPROTO/aIPADDR=172.16.0.1\nNETMASK=255.255.255.0' \
/etc/sysconfig/network-scripts/ifcfg-eth1

Therefore, eth1 will have a static IP address 172.16.0.1 with the netmask 255.255.255.0.
9. Configure eth2 to obtain an IP address from the VirtualBox DHCP server and use a default
route:
10.
11.
12.
13.

sed -i 's/^BOOTPROTO=.*/BOOTPROTO=dhcp/;s/^DEFROUTE=.*/DEFROUTE=yes/' \
/etc/sysconfig/network-scripts/ifcfg-eth2
sed -i '/^BOOTPROTO/aPERSISTENT_DHCLIENT=yes' \
/etc/sysconfig/network-scripts/ifcfg-eth2

14. Create a backup of network configuration and disable zero-configuration networking:


15.

sed -i.orig '/NOZEROCONF/d;aNOZEROCONF=yes' /etc/sysconfig/network

Therefore, eth2 will use DHCP only.


16. Remove the default route and system-wide settings from eth0:
17.
18.

sed -i '/^GATEWAY=/d' /etc/sysconfig/network \


/etc/sysconfig/network-scripts/ifcfg-eth0
19. Add the aType Loopback parameter to the ifcfg-lo configuration
20.
sed -i.orig '/^DEVICE=lo/aTYPE=Loopback' \
21.
/etc/sysconfig/network-scripts/ifcfg-lo

file:

22. Enable NAT (MASQUERADE) and IP forwarding for the Public network:
Example:
iptables -I FORWARD 1 --dst 172.16.0.0/24 -j ACCEPT
iptables -I FORWARD 1 --src 172.16.0.0/24 -j ACCEPT
iptables -t nat -A POSTROUTING -s 172.16.0.0/24 \! -d 172.16.0.0/24 \
-j MASQUERADE
service iptables save

23. Disable NetworkManager and apply the new network settings:


24.

nmcli networking off &>/dev/null ; service network restart

25. Verify the Internet connection on the Fuel Master node:


26.

ping -c 3 google.com

Example of system response:


PING google.com (216.58.214.206) 56(84)
64 bytes from bud02s23-in-f14.1e100.net
ttl=54 time=31.0 ms
64 bytes from bud02s23-in-f14.1e100.net
ttl=54 time=30.1 ms
64 bytes from bud02s23-in-f14.1e100.net
ttl=54 time=30.0 ms

bytes of data.
(216.58.214.206): icmp_seq=1
(216.58.214.206): icmp_seq=2
(216.58.214.206): icmp_seq=3

27. Create a bootstrap image for Fuel Slave nodes:


28.

fuel-bootstrap -v --debug build --activate

29. Verify the bootstrap images:


30.

fuel-bootstrap list

Example of system response:


+--------------------------------------+---------------+--------+
| uuid
| label
| status |
+--------------------------------------+---------------+--------+
| dd2f45bf-08c2-4c39-bd2d-6d00f26d6540 | dd2f45bf-08c2 | active |
| centos
| deprecated
|
|
+--------------------------------------+---------------+--------+

9. Log in to the Fuel UI by pointing your browser to the URL specified in the command prompt.
Use the default login and password.
10. Proceed to Create an OpenStack environment in Fuel User Guide.

You might also like