Installing oVirt on Oracle Linux (Self-Hosted)
Oracle Linux kvmI know, Oracle Linux Virtualization Manager is scheduled to be end-of-life (in 2026). But still wanting to be able to install it, was a bit more difficult. Mainly due the fact it’s EOL (I presume). But here are the installation steps which works for me.
Prerequisites
- Running server with Oracle Linux 8 (Not 9, since no repository available for it) – Minimal Server installation & not updated (yet)
- root or sudo privileges
- Domain name service configured with all host names (reverse lookup as well)
- Have complex password ready to be used
Step 1: Prepare environment
Install this version of the osinfo-db package (and not higher)
yum install osinfo-db-20231215-1.0.1.el8 -y
Exclude it from being updated
echo "exclude=osinfo-db" >> /etc/dnf/dnf.conf
Enable/Configure repositories
dnf config-manager --enable ol8_baseos_latest
dnf install oracle-ovirt-release-45-el8 -y
If needed
dnf install kernel-uek-modules-extra -y
Clean up and reboot
dnf clean all
dnf repolist
reboot
Step 2: Install host engine
Install the host engine with the following command
dnf install ovirt-hosted-engine-setup -y
If wanted you can install cockpit as well, but due to an error I would not deploy OVM by using it.
dnf install cockpit-ovirt-dashboard -y
firewall-cmd --permanent --zone=public --add-port=9090/tcp
firewall-cmd --reload
systemctl enable --now cockpit.socket
Step 3: Configure host engine
Deployment and configuration of host engine is started with the following command:
hosted-engine --deploy --4
Very imported to answer No on the question of keycloak. (reason why it fails in Cockpit)
Step 4: Storage
The installation started in step 3, take a moment to complete. Therefor I use it to configure the storage during that period. So I’m ready when he ask for it.
Configure Additional disk (LVM, minimum 55GB size)
mkdir -p /data/
pvcreate /dev/vdb
vgcreate rhvh /dev/vdb
lvcreate -L 55G rhvh -n data
mkfs.ext4 /dev/mapper/rhvh-data
Mount the disk
echo "/dev/mapper/rhvh-data /data ext4 defaults,discard 1 2" >> /etc/fstab
mount -a
Set the permissions
chown 36:36 /data
chmod 0755 /data
Configure NFS share, using the disk above.
Install and enable NFS.
dnf install nfs-utils -y
systemctl enable --now nfs-server
systemctl enable --now rpcbind
Configure NFS
echo "/data *(rw)" >> /etc/exports
Restart the services
systemctl restart rpcbind
systemctl restart nfs-server
exportfs -ra
exportfs -v
Open firewall ports
firewall-cmd --add-service=nfs --permanent
firewall-cmd --reload
Now, when arriving at the point to provide storage information, you fill in nfs. And point it towards <Host IP Address>:/data
When this finish you have your environment ready.
Have fun
References:
Bye bye Oracle VM, welcome Oracle Linux KVM