If we want to deploy the private cloud in our enviroment, there will be a need for Cloud Management system to manage our cloud environment. OpenNebula will be a choice for our need beside other Cloud Management platform such like : Openstack and Cloudstack. On this article, we will discuss how to install OpenNebula FrontEnd on Ubuntu 18.04 operating system.
OpenNebula has capability to combine an existing virtualization technologies like VMware and KVM with advanced features such like : elasticity, multi-tenancy and automatic provision. The OpenNebula platform manages a data center’s virtual infrastructure to build private, public and hybrid implementations of infrastructure as a service. The two primary uses of the OpenNebula platform are data center virtualization solutions and cloud infrastructure solutions. From the OpenNebula official website (https://opennebula.io/about/), OpenNebula was first established as a research project back in 2005 by Dr Ignacio M. Llorente and Dr Rubén S. Montero. OpenNebula is a project now managed and supported by OpenNebula Systems.
OpenNebula has two main components, namely:
- OpenNebula Hypervisor Nodes – These are the hypervisors which provide the resources needed by the VMs.
- OpenNebula Front-end – This is the management engine that executes the OpenNebula services.
On this article we will discus how to install OpenNebula Front-end, for Hypoervisor nodes will be discussed later.
OpenNebula FrontEnd Installation On Ubuntu 18.04
There will be several steps for installing OpenNebula on Ubuntu 18.04, and will be described deeply below :
- Install MariaDB Database Server
- Create OpenNebula Database
- Install OpenNebula
- Access OpenNebula Portal
Before continuing with this tutorial, we have to prepare our Ubuntu environment first. OpenNebula installation requires a user with sudo privileges, sufficient space and the last update of Ubuntu repository. In our environment we have all the necessary requirements.
Install MariaDB Database Server
OpenNebula needs a database server to store its content, at this tutorial we will use MariaDB database server as place to store and manage the information which is used by OpenNebula. Installation and securing MariaDB server has been described on the previous chapter on this web, check it out here .
To test if MariaDB is installed and working, run the commands below:
mpik@indoprinter3d:~$ sudo systemctl status mariadb
The MariaDB services status is OK and we will continue to the next step.
Create OpenNebula Database
After MariaDB creation was successful, the next step is to creating new database for OpenNebula purpose. At this step we will create blank database with name opennebula and username is opennebulauser.
mpik@indoprinter3d:~$ sudo mysql -u root -p Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 54 Server version: 10.4.12-MariaDB-1:10.4.12+maria~bionic-log mariadb.org binary distribution Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> CREATE DATABASE opennebula; Query OK, 1 row affected (0.001 sec) MariaDB [(none)]> CREATE USER 'opennebulauser'@'localhost' IDENTIFIED BY 'testnebula20'; Query OK, 0 rows affected (0.002 sec) MariaDB [(none)]> GRANT ALL ON opennebula.* TO 'opennebulauser'@'localhost' WITH GRANT OPTION; Query OK, 0 rows affected (0.001 sec) MariaDB [(none)]> FLUSH PRIVILEGES; Query OK, 0 rows affected (0.001 sec) MariaDB [(none)]> EXIT;
Now we have MariaDB installed and opennebula database was created. The next step is to install OpenNebula software on the system.
At this step, we are going to install OpenNebula on Ubuntu 18.04. We have to add the OpenNebula repository to our Ubuntu system, because OpenNebula is not Ubuntu default repositories. Here is the step :
1. Adding its repository key to Ubuntu, by submitting command line below:
mpik@indoprinter3d:~$ wget -q -O- https://downloads.opennebula.org/repo/repo.key | sudo apt-key add -
2. Adding repository file, by submitting command line below:
mpik@indoprinter3d:~$ echo "deb https://downloads.opennebula.org/repo/5.6/Ubuntu/18.04 stable opennebula" | sudo tee /etc/apt/sources.list.d/opennebula.list deb https://downloads.opennebula.org/repo/5.6/Ubuntu/18.04 stable opennebula
3. Update Ubuntu system and Install OpenNebula, by submitting command line below:
mpik@indoprinter3d:~$ sudo apt update
mpik@indoprinter3d:~$ sudo apt install opennebula opennebula-sunstone opennebula-gate opennebula-flow
4. For supporting OpenNebula, we requires the Ruby libraries. Add this libraries by submitting command below:
mpik@indoprinter3d:~$ sudo /usr/share/one/install_gems
5. Restart OpenNebula service. So far, the OpenNebula and its dependencies package has been installed on Ubuntu system. For this purpose, we can use the following command line :
mpik@indoprinter3d:~$sudo systemctl start opennebula mpik@indoprinter3d:~$sudo systemctl status opennebula
6. Update OpenNebula configuration file on /etc/one/oned.conf file. The file contains the configuration of credential for MySQL database which is used by OpenNebula.
mpik@indoprinter3d:~$ sudo vi /etc/one/oned.conf
Here is the parameter that we could change as we have defined on MySQL database parameter.
Access OpenNebula Portal
After all the steps we passed, we could try to access the OpenNebula Portal by browsing the URL at http://localhost:9869/login. Supply the username and password we have defined before, the default username is oneadmin.
The main screen of Open Nebula is as shown below. The next step is to configure the KVM or VMWare host that we could monitor on this application.