Skip to main content

Foreman - Enable oVirt and Proxmox Compute Resources

I've recently been looking at virtualization solutions again and I decided to take a closer look at proxmox this time aswell. Now one major requirement for me is integration with foreman/katello since I want to have foreman take control of creating and provisioning vms. By default, there is no option to use proxmox as a compute resource so we'll have to make it available to foreman.

oVirt does have a built-in integration which can ben activated passing the option '--enable-foreman-compute-ovirt' to the installer.

First, we'll search for any proxmox-related packages available in the repositories:
 [archy@katello01 ~]$ sudo dnf -4y --refresh search proxmox  
 ======================== Name & Summary Matched: proxmox ========================  
 rubygem-fog-proxmox.noarch : Module for the 'Fog' gem to support Proxmox VE  
 rubygem-fog-proxmox-doc.noarch : Documentation for rubygem-fog-proxmox  
 rubygem-foreman_fog_proxmox.noarch : Foreman plugin that adds Proxmox VE compute resource using fog-proxmox  
 rubygem-foreman_fog_proxmox-doc.noarch : Documentation for rubygem-foreman_fog_proxmox  
With the information gathered which packages are available, install the required packages:
 [archy@katello01 ~]$ sudo dnf -4y --refresh install rubygem-foreman_fog_proxmox  
Once these modules are installed, enable oVirt and make sure foreman is in a consistent state:
 [archy@katello01 ~]$ sudo foreman-maintain service stop  
 [archy@katello01 ~]$ sudo foreman-installer --scenario katello --enable-foreman-compute-ovirt  
That's it, 'Proxmox' and 'oVirt' should now be options in your compute resource providers.

Feel free to comment and / or suggest a topic.

Comments