OPENSTACK INSTALLATION:-
First of all, it is necessary to know about the OpenStack :-
OPENSTACK :- OpenStack is a collection of open source software modules that provides a framework to create and manage both public cloud as well as private cloud infrastructure. An organization can use OpenStack to deploy and manage cloud-based infrastructure that supports an array of uses cases, including web hosting, big data projects, software as a service delivery, or deploying high volumes of containers.
Now, we have to download these files for installing OpenStack on Oracle Virtual Box:-
https://drive.google.com/file/d/185RVR3EWjez1rsL4Q9A6o-uGlDu00WC6/view?usp=sharing
https://drive.google.com/drive/folders/1U7w4vLEJSJn8h7J_4a3_0qK4IUtEzz2I?usp=sharing
Now, it's time to start with the practical session:-
Step 1- After installing the Oracle VM VirtualBox, open the Oracle Virtual Box and then create a new Virtual Machine and give any name to the machine you like.
Step 2 - Provide atleast 6-8 GB RAM for the virtual machine and then click on next.
Step 3 - Now, select the size of virtual hard disk in the range 60 to 100 GB and then click on create.
Step 4 - Go to the settings of the virtual machine and then do all those things similarly as shown in the screenshots. Provide atleast two CPUs for the virtual machine.
Step 5- Start the virtual machine and then select install Redhat 7.5 by using up and down arrow and then hit Enter. And then follow these screenshots-
Step 6 - Now click on Begin installation and then set and confirm the password for the virtual machine.
Step 7 - And then wait for the installation to be complete. After that Click on Reboot.
Step 8 - Now, we have to login with the root user and the root password and then we have to mount cdrom to dvd folder for configuring yum and after that we have to create a dvd repository.We have to do all the things as same as shown in the screenshot.
* free -m is a command which can give us valuable information on available RAM in virtual machine.
* mkdir command allows the user to create directories.
* mount command mounts a storage device, making it accessible and attaching it to an existing directory structure.
* cd command is used to change the current directory.
* ls is used to list information about files and directories within the file system.
* vi command is used to create a new file.
Step 9 - After creating the dvd repository we have to write some text and after writing press escape and type :wq and then hit the Enter tab for saving the file.
Step 10 - Use yum command to install net-tools. The net-tools package contains the basic networking tools including ifconfig, netstat, route and others.
* yum repolist shows a list of all enabled repositories.
Step 11 - Now, use ifconfig command to assign the IP address to an interface.
Step 12 - Use IP address, host name and the password of the virtual machine to connect with the WinSCP which is used to transfer the files between the local and the remote computer.
Step 13 - Now it's time to mount all the three iso files to the three different folders and then by using cd command change the current directory and use ls for getting information about the files.
Step 14 - Create a new folder and then copy all the files to the folder using cp -rfv command.
Step 15 - Here we have to again configure yum but this time to the software folder. Use the vi command and write the text in the file and again press escape then type :wq and hit Enter.
Step 16 - Use yum command for installing createrepo and python-setuptools.
* cat command is used to read data from the file and then gives their content as output.
Step 17 - Use cd command for moving towards the software folder and then run the command - createrepo -v .
Step 18 - Here we have to stop and disable the NetworkManager using the command shown in the screenshot and then use yum command to install openstack-packstack.
* Packstack is a utility that uses Puppet modules to deploy various parts of OpenStack on multiple pre-installed servers over SSH automatically. Currently only CentOS , Red Hat Enterprise Linux (RHEL) and compatible derivatives of both are supported.
Step 19 - Packstack provides by default an answer file template that deploys an all in one environment. Run the command given below-
Step 20 - Run free -m command to know about the free RAM available. Then use the command - echo 3 > /proc/sys/vm/drop_caches. This command is used to clear all the cache from the virtual machine.
Step 21 - Run the command given below for the final installation of OpenStack.
After running the above command you will able to see something like that-
Now, it's time to keep calm because it will take approximately 40-60 minutes for the complete installation.
Step 22 - After the completion of the installation. Type the IP address of your virtual machine on the host system and then you will be able to see the dashboard of the OpenStack as shown in the image.
FINALLY ALL DONE!!
THANKS for giving your time in reading the article.
Senior Technical Support
4 年Nicely explained. one suggestion is, static ip step is missing .... In my case I m using mobile network every time when I restart host machine my dns change...(when u find any solution, reply)
Full-stack Developer at Mobius by Gaian with expertise in React.js, Node.js and MongoDB
4 年is it deployed on aws cloud?
Devops Engineer@Powerplay
4 年Nicely explained!!