For the uninitiated, OpenNebula is an open-source cloud computing platform that allows you to combine and manage VMware and KVM virtual machines in fully virtualized clouds which you can integrate with providers like AWS, Azure, and Packet and create flexible hybrid and edge cloud infrastructures. For more about OpenNebula, please check its homepage. To get started with installing and configuring OpenNebula, please follow the steps below:
Install MariaDB Database Server
OpenNebula also needs a database server to store its content. and MariaDB database server is a great place to start when looking at open-source database servers to use with OpenNebula. To install MariaDB run the commands below: After installing MariaDB, the commands below can be used to stop, start and enable the MariaDB service always to start up when the server boots. After that, run the commands below to secure the MariaDB server by creating a root password and disallowing remote root access. When prompted, answer the questions below by following the guide.
Enter current password for root (enter for none): Just press the Enter Set root password? [Y/n]: Y New password: Enter password Re-enter new password: Repeat password Remove anonymous users? [Y/n]: Y Disallow root login remotely? [Y/n]: Y Remove test database and access to it? [Y/n]: Y Reload privilege tables now? [Y/n]: Y
Restart MariaDB server To test if MariaDB is installed and working, run the commands below: That should display MariaDB’s service status.
Create OpenNebula Database
Now that you’ve installed all the packages that are required, continue below to start configuring the servers. First, create a blank database for OpenNebula to use. To do that, run the commands below to log on to MariaDB. When prompted for a password, type the root password you created above. Then create a database called opennebula Create a database user called opennebulauser with a new password Next, grant the user full access to the cakephpuser database. Finally, save your changes and exit. Now that the MariaDB server is installed and a database created, now go and install OpenNebula.
Install OpenNebula
By default, OpenNebula isn’t available via Ubuntu default repositories. If you’d like to install it in Ubuntu, you’ll have to install it from its repository. First, run the commands below to add its repository key to Ubuntu After adding the repository’s key, run the commands below to add its repository file. Now that the repository’s key and file are added, run the commands below to install OpenNebula. When you’re done installing OpenNebula, run the commands below to install Ruby libraries and other required packages to support OpenNebula. That should install OpenNebula on Ubuntu. After installing, the commands below can be used to start and enable OpenNebula services. To support the MariaDB database server, run the commands below to open its configuration file. Then edit the highlighted lines with the database name, user, and password created above and save the file. Save the file and exit. To access the OpenNebula portal, you’ll need a credential. By default, its default username and password are stored in the credential below: Edit it and replace the username and password that suits you. After that, run the commands below to check the status of OpenNebula services. You should get similar lines as below: That shows the service is running.
Access OpenNebula Portal
Now that OpenNebula is installed, open your web browser ad browse to the server hostname or IP address followed by port 9869 http://localhost:9869 Login with the credential found in the file above. That should redirect you to the OpenNebula dashboard. That’s it! Your platform is ready, but you’ll need to add VMware or KVM nodes to manage.
Setup KVM Node
Now that the OpenNebula platform is installed and ready, you’ll need to add nodes to manage. To add KVM nodes, simply run the commands below the node you want to manage via OpenNebula. Then add its repository Finally, run the commands below to install the node package After installing the node package, open its configuration file to allow OpenNebula to manage it. Then edits these lines and save. Save the file and exit. Restart the client services Communication is done via SSH. So you’ll want to install SSH and enable password-less SSH authentication between the OpenNebula host and the KVM node. After creating a password authentication, copy the server SSH key to the client known_hosts file. All keys in there will be trusted. To manage a KVM host, go to the OpenNebula web interface, open Infrastructure » Hosts, and click on the + button. Add a new node to manage. That should do it! Conclusion: This post showed you how to install OpenNebula on Ubuntu 18.04 | 16.04. If you find any error above, please use the comment form below to report it. Thanks, You may also like the post below: