ATIX AG
  • Services
    • Consulting
      • Linux Platform Operations​
      • Infrastructure Automation
      • Container Platforms and Cloud
      • DevOps Processes, Tooling and Culture
      • Cloud Native Software Development
    • Products
      • orcharhino
        • About orcharhino
        • Support
        • orcharhino operation
      • Hangar
        • About Hangar
        • Hangar Roadmap
        • Hangar Community
    • Technologies
      • Ansible
      • AWX and Ansible Automation Platform
      • Docker
      • Foreman
      • GitLab
      • Istio
      • Kubernetes
      • Linux Distributions
      • OpenShift
      • Puppet
      • OpenVox
      • Rancher
      • Rundeck
      • SaltStack
      • SUSE Manager
      • Terraform
  • Trainings
    • Ansible Training
    • Container Training
    • Docker Training
    • Git Training
    • Go Training (Golang)
    • Istio Training
    • Kubernetes Training
    • OpenShift Training
    • orcharhino Training
    • Puppet Trainings
    • Terraform Training
  • Events
    • Webinars
  • Blog
  • Company
    • About Us
    • References
    • Corporate values
    • Social engagement
    • Newsroom
    • Newsletter
    • Contact us
  • Career
  • Search
  • Menu Menu

Install OLVM and configure it as a compute resource for orcharhino

Oracle Linux Virtualization Manager (OLVM) is an open source virtualization platform based on oVirt. It offers a flexible and powerful solution for managing virtualization resources. But what if you could use this power even more efficiently? This is exactly where orcharhino comes into play! With orcharhino as your central control center, you can manage your OLVM infrastructure even more seamlessly and automatically thanks to official support.

In this guide, we will show you step by step how to set up OLVM as a “hosted engine” for test purposes and integrate it into orcharhino. This allows you to combine the strengths of both systems and maximize your efficiency when managing and provisioning virtual machines.

oVirt vs OLVM

OLVM is based on oVirt, but in contrast to the oVirt project, Oracle has carefully selected the packages and dependencies under Oracle Linux, provided them with clean version pinning and improved the Ansible role (installer script) in many places. In our tests, this led to a successful installation without bugs or error messages. Tests on other Enterprise Linux distributions and even the official “oVirt Node ISOs” have shown that it can be done differently and can be very complicated. Even with manual hacks such as manual appliance installation of the latest version, fixing outdated yum package sources, workarounds for various bugs and many hours of troubleshooting, oVirt simply would not install. This may be due to the fact that oVirt has not been actively developed for some time.

Prerequisites

  • An existing orcharhino installation (version 6 or higher)
  • Oracle Linux VMs can be provisioned in orcharhino (https://docs.orcharhino.com/or/docs/sources/guides/oracle_linux.html)
  • a logical network for the oVirt environment in orcharhino
  • DNS and DHCP provided by orcharhino for oVirt
  • 200 GB free disk space, SSD recommended
  • Basic knowledge of Linux and virtualization technologies

Configure orcharhino and prepare for OLVM installation

We create a new entry for the nested KVM host on which the oVirt Hosted Engine appliance will later run. The OLVM installer already requires DNS entries and DHCP leases during installation.

orcharhino GUI: Hosts → Create Host

After the installation, we start the VM and log in as root via SSH.

Installation of OLVM as a hosted engine

As mentioned at the beginning, oVirt could not be installed in our tests either as a “Node ISO” or on a fresh CentOS / Rocky Linux / Alma Linux 8 or 9. We therefore advise against installing the upstream product and recommend the oVirt-based OLVM. Oracle offers Enterprise Support for this on request.

Oracle Linux Virtualization Manager – Oracle Linux Virtualization Manager Documentation

ssh root@engine-appliance

Prepare storage: As an example, we create an NFS share on the Engine host with this bash script:

#!/bin/bash
# Install NFS utilities
dnf install nfs-utils -y
# Enable necessary services
systemctl enable nfs-server
systemctl enable rpcbind
# Add kvm group with GID 36 and vdsm user with UID 36 to the kvm group
groupadd kvm -g 36
useradd vdsm -u 36 -g kvm
# Create /storage directory and set permissions
mkdir /storage
chmod 0755 /storage
chown 36:36 /storage/
# Configure NFS exports
echo "/storage *(rw)" > /etc/exports
# Restart NFS-related services
systemctl restart rpcbind
systemctl restart nfs-server
# Export the NFS file systems
exportfs
echo "NFS storage setup completed."

We choose the “Self-Hosted Engine Deployment” installation method, in which the engine is installed as a VM on the same KVM host as the Oracle Linux Virtualization Manager. In our case, this is a nested VM, as we are also virtualizing the KVM host. This installation is well suited for test purposes where performance is not the main focus. For production environments with many VMs, the “standalone engine” variant is recommended.

  • Since we are installing the complete appliance and nested VMs on the same virtualized KVM host, the appliance VM needs at least 200 GB of disk so that the hosted-engine installation does not fail later. In addition, the VM CPU must be set to “host passthrough” to enable hardware-accelerated nested virtualization.

Instructions: Getting Started

  • The graphical installer via Cockpit has been deprecated since version 4.5 and should not be used.

During the installation (hosted-engine --deploy --4) some values are queried. the following non-defaults should be entered:

RAM: 8192
FQDN: engine-appliance.ovirt.orcharhino.atix-training.de [FQDN of the VM as in orcharhino]
MAC: [MAC address of the engine-appliance VM from the orcharhino GUI]
storage path: engine-appliance.ovirt.orcharhino.atix-training.de:/storage [NFS-Share Pfad]

The installer takes quite a while, as it is a large Ansible role.

The successful installation is finally acknowledged with “Hosted Engine successfully installed”. Optionally, we can save the status as a snapshot via the orcharhino GUI.

Connection tests:

# SSH auf die orchahrino VM (Port 2222)
ssh root@ -p 2222
# SSH weiter auf die engine-appliance VM (IP oder hostname)
ssh engine-appliance
# SSH weiter auf auf die neue engine-VM
ssh engine

We should be able to log in to the new Engine VM with the assigned root-PW.

  • To save time later, an SSH configuration like this is a good idea:

$ cat ~/.ssh/config 
Host hetzner
 HostName 
 User root
 IdentityFile 
Host orchahrino
 HostName 
 Port 2222
 User root
 IdentityFile 
Host engine-appliance
 HostName engine.ovirt.orchahrino.atix-training.de
 User root
 IdentityFile 
 ProxyJump root@orchahrino

Configure oVirt Engine

After the hosted-engine installer has run, we need to set up our environment in order to access the OLVM web GUI for further configuration.

One approach is a SOCKS5 proxy in conjunction with dynamic port forwarding.

    • proxy.pac file:

        • Example:

      function FindProxyForURL(url, host){
        if ( dnsDomainIs(host,"engine-appliance.ovirt.orchahrino.atix-training.de") ) {
            return "SOCKS5 127.0.0.1:8443" ;
        }
        alert("no proxy used");
        return "DIRECT";
      }
      
      

      Firefox konfigurieren: Settings → General → Network Settings → Settings → Automatic Proxy Configuration URL-> file:///home/alex/proxy.pac → reload → OK
      Das funktioniert auch unter Google Chrome.

    • SSH Dynamic Port Forwarding:
# Connection offen lassen
ssh engine-appliance -D 8443

      • Call up engine URL in the browser: https://engine-appliance.ovirt.orchahrino.atix-training.de/ovirt-engine/

Administration Portal → log in with admin@ovirt and the selected password
Data Center, Host and Storage Domain should be listed.

orcharhino: Configure oVirt Compute Resource

To activate the oVirt plugin for orcharhino, we log in via SSH:

# orchahrino-installer --enable-foreman-compute-ovirt

In the orcharhino GUI under Administer → About in the “Available Providers” tab, oVirt should now show the status “installed”:

Now we can connect the engine in orcharhino via oVirt Compute Resource:

Provisioning virtual machines on oVirt – orcharhino documentation

To do this, we navigate to Infrastructure > Compute Resources in the orcharhino GUI and click on Create Compute Resource.

The compute resource is now ready for use:

With the next “create Host” we can now use oVirt as a compute resource.

party popper oVirt is now part of the orcharhino ecosystem! party popper

You might also like
Five reasons why the premiere of the orcharhino Summit was a complete success
orcharhinoOffline installation of Openshift using orcharhino
The Tentacles of orcharhino – Deploying with Many Subnets
orcharhinoWhat can you actually do with the Foreman REST API?
Recap of the orcharhino Summit 2023
orcharhinoMigrating CentOS 8 to Rocky Linux 8 or AlmaLinux 8 using orcharhino
Alexander Pozdnyshev
+ postsBio
  • Alexander Pozdnyshev
    https://atix.de/en/blog/author/alexander/
    Oracle Linux Manager is EOL – Guide to migration
  • Alexander Pozdnyshev
    https://atix.de/en/blog/author/alexander/
    Terraform vs. OpenTofu: Which solution is right for your company?
Expertise that Drives your IT Forward

🛠️ Boost your skills?
Learn from those who do it every day. Professional training for modern IT.
👉 Browse trainings »

ISO Certified Certificate
Newsletter
Never miss anything again. Sign up for the ATIX newsletter!
Sign up now
Blog
  • Blog Start Page
  • ATIX Insights
  • Cloud Native
  • Container Plattformen und Cloud
  • DevOps
  • Hangar
  • Infrastructure Automation
  • Linux Platform Operations
  • orcharhino
Privacy & Legal

Privacy Policy

Imprint

Terms and Conditions

B2B

Twitter     Facebook    LinkedIn    Xing     Youtube     mastodon=

© Copyright – ATIX AG

Scroll to top