In our recent article we discussed on how you can Install and Configure OpenNebula Front-end on a Debian system. In this guide we dive deep into the installation of OpenNebula KVM Node where the VMs are going to run. The hypervisor minimal node installation is needed in order to finish deployment and usage of OpenNebula to mange your Virtualization Infrastructure.
Step 1: Update Debian System
Let’s make sure we’re working on the latest release of the Operating System.
sudo apt update && sudo apt -y full-upgradeCheck if the reboot is required. The command will perform a reboot if needed.
[ -f /var/run/reboot-required ] && sudo reboot -fStep 2: Set Hostname and Configure NTP
Login to the server and set correct hostname.
sudo hostnamectl set-hostname onekvm01.example.comWhere onekvm01.example.com is replaced with the correct hostname.
Add IP and hostname to /etc/hosts:
$ sudo vim /etc/hosts
192.168.100.11 onekvm01.example.com onekvm01 # Set correctlyUninstall ntp package and install chrony.
sudo apt update && sudo apt install chrony -y
sudo systemctl restart chrony && sudo systemctl enable chronyThen ensure the correct timezone is set:
sudo timedatectl set-timezone Africa/Nairobi
sudo timedatectl set-ntp yesShow time synchronization status:
$ sudo chronyc sources
210 Number of sources = 4
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
^- time.cloudflare.com 3 6 35 13 -49ms[ -49ms] +/- 167ms
^- ntp1.icolo.io 2 6 17 14 +655us[ +655us] +/- 109ms
^* ntp0.icolo.io 2 6 17 16 +251us[ +116ms] +/- 109ms
^+ time.cloudflare.com 3 6 33 13 -49ms[ -49ms] +/- 167msStep 3: Add OpenNebula Repositories
We’ll be using the Community edition repositories for this installation.
Import GPG key by running the command below on the terminal:
sudo apt update && sudo apt install wget gnupg2 -y
curl -fsSL https://downloads.opennebula.io/repo/repo2.key|sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/opennebula.gpgThen add repository file. Confirm latest release and update accordingly.