Linux and open source articles and tutorials based on real world projects and deployments

Deploy OpenNebula 5.0 Centos 7 basic bridge lab

We will deploy Opennebula 5.0 as POC based on CentOS 7. Our deployment will consist of one front end system called front.local and one KVM hosts called back.local.

this type of installation only suitable for LAB environment and should not be deployed as production system. It lucks security and any redundancy.

Prerequisites
On each system install CentOS 7 minimal. front.local can be virtual or physical system.
On each system
Disable selinux

vi /etc/selinux/config
selinux=disabled

Disable firewalld

systemctl disable firewalld

Setup host file

vi /etc/hosts
x.x.x.x front.local
y.y.y.y back.local

Run updates

yum update -y

On back.local system we will need at least 2 NIC cards with 2 network connections. For testing purpuses we will leave them on the same network. One of the NIC’s will be part of the bridge and in our case called eno3. It will be setup as follows
Bridge

Setup Networking
In Sunstone under Network – Virtual Networks add your network with bridge name br0 as we created.

Using NFS
1. Create NFS shares with no_root_squash option.

2. On front and back servers install nfs client

yum install nfs-utils

3. Enable rpcbind to start on boot

systemctl enable rpcbind
systemctl start rpcbind

3. Add the following to your fstab file on front and all your KVM hosts. In some cases you may need to move folders from datastore to nfs share. (In this example storage.Local is the name of NFS server and vms is NFS share )