oVirt is a project that aims to provide a distributed / clustered virtualization solution for a huge scale.
If for some reason you don't want to use the ovirt-node images provided by ovirt.org, you can install any EL8 (or EL9 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, add some repositories to the host:
[root@ovirtnode01 ~]# cat >/etc/yum.repos.d/CentOS-Stream-Extras.repo <<'EOF'
[cs8-extras]
name=CentOS Stream $releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=8-stream&arch=$basearch&repo=extras&infra=$infra
#baseurl=http://mirror.centos.org/$contentdir/8-stream/extras/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=https://www.centos.org/keys/RPM-GPG-KEY-CentOS-Official
EOF
[root@ovirtnode01 ~]# cat >/etc/yum.repos.d/CentOS-Stream-Extras-common.repo <<'EOF'
[cs8-extras-common]
name=CentOS Stream $releasever - Extras common packages
mirrorlist=http://mirrorlist.centos.org/?release=8-stream&arch=$basearch&repo=extras-extras-common
#baseurl=http://mirror.centos.org/$contentdir/8-stream/extras/$basearch/extras-common/
gpgcheck=1
enabled=1
gpgkey=https://www.centos.org/keys/RPM-GPG-KEY-CentOS-SIG-Extras
EOF
Next, add the '8-stream' variable to '/etc/yum/vars/':
[root@ovirtnode01 ~]# echo "8-stream" > /etc/yum/vars/stream
Ensure package consistency with the newly added repos:
[root@ovirtnode01 ~]# dnf -4y --refresh --nobest distro-sync
Last repo(s) to install are included in the 'centos-release-ovirt45' package, so we have to install that:
[root@ovirtnode01 ~]# dnf -4y --refresh install centos-release-ovirt45
With the repos all set up, install the 'cockpit-ovirt-dashboard'-package which pulls in all required dependencies:
[root@ovirtnode01 ~]# dnf -4y --refresh install cockpit-ovirt-dashboard
Due to the dependency of python3.9, you will have to install some python-packages additionally in order to make everything run smooth:
[root@ovirtnode01 ~]# pip3.9 install netaddr==0.7.19 jmespath==1.0.1
With all packages installed, enable and start cockpit.serivce and make sure it's allowed through firewalld:
[root@ovirtnode1 ~]# systemctl enable --now libvirtd.service tuned.service cockpit.socket
[root@ovirtnode1 ~]# firewall-cmd --permanent --add-service cockpit
[root@ovirtnode1 ~]# firewall-cmd --reload
The host is now ready and you can proceed to add it to the cluster.
Sources:
https://www.ovirt.org/download/
https://www.ovirt.org/download/install_on_rhel.html
Feel free to comment and / or suggest a topic.
Comments
Post a Comment