If for some reason you don't want to use the ovirt-node images provided by ovirt.org, you can install any EL8 (or EL7 for that matter) host to be a hypervisor and add them to the cluster as needed. In order to have it working as expected, there are a few things that have to be taken care of.
First, disable the default enabled virt module since we will be replacing the packages with more current versions from the advanced virtualization repository from CentOS:
[root@ovirt01 ~]# dnf -y module disable virt
Next, we need create a repo file for the advanced-virtualization since this will be required for oVirt to work properly. Choose a CentOS mirror that's close to you:
[root@ovirt01 ~]# cat << EOF >> /etc/yum.repos.d/advanced-virtualization.repo
[advanced-virtualization]
name=Advanced Virtualization for CentOS $releasever
baseurl=http://merlin.fit.vutbr.cz/mirrors/centos/\$releasever/virt/\$basearch/advanced-virtualization
enabled=1
gpgcheck=0
EOF
Although we are not using CentOS, we currently still have to use the advanced-virtualization repos from CentOS because they're not yet built by AlmaLinux or RockyLinux. This will change in the rather soon future since both distros are working on getting it ready.
Once the advanced-virtualization repo is added, install the latest ovirt release. For me it's 4.4
[root@ovir01 ~]# dnf -y install http://resources.ovirt.org/pub/yum-repo/ovirt-release44.rpm
Make sure the installed repositories are correct and working as expected:
[root@ovirt01 ~]# dnf makecache
Now we can install the packages required to bootstrap the cluster:
[root@ovirt01 ~]# dnf -y install qemu-kvm libvirt libguestfs-tools virt-install cockpit cockpit-ovirt-dashboard
Enable the Libvirt and Cockpit service:
[root@ovirt01 ~]# systemctl enable --now libvirtd.service
[root@ovirt01 ~]# systemctl enable --now cockpit.socket
From here on out the host can be added to oVirt's hosts. If this is your first Node in the cluster, you can follow the official guide from here on out to get your cluster up and running using the cockpit webinterface.
Feel free to comment and / or suggest a topic.
Comments
Post a Comment