Satellite integrates pretty well with Red Hat Virtualization (RHV) for the purposes of managing the lifecycle of your virtual machines. Primarily, this allows you to create a new machine in Satellite and have it automatically deployed on your RHV cluster. Since we have already connected Satellite to IdM for Realm and DNS management, this is the next step in having a single tool to manage our environment.
This article will cover Satellite integration with RHV, however similar steps are taken to integrate with VMware, AWS, or even Google Cloud.
Satellite Compute Resource
First, you’ll want to add your RHV cluster to your Satellite server as a Compute Resource. This allows you to use the Deploy On
option while creating a new machine.
- Navigate to
Infrastructure
->Compute Resources
- Click
Create new resource
On the
Compute Resources
tab:Field Value Name Something usefule to you Provider RHV URL https://rhv.lab.rmkra.us/ovirt-engine/api Use APIv4 I recommend yes Username USER@AUTH_METHOD Password PASSWORD Datacenter Select one after clicking Test Connection
Quota ID Default - Fill out the
Locations
andOrganizations
tabs as you see fit - Click
Submit
- Select your new compute resource from the list
- On the
Virtual Machines
tab, ensure you see an accurate list of machines in the cluster. For any machine that may already be managed by Satellite, click the name and then clickAssociate VM
to have it be paired. - Fill out the
Compute Resources
tab as it makes sense to you. This will help when provisioning new machines.
That’s about it. Now trying going to Hosts
-> All Hosts
and create a new machine. Ensure that you tell it to deploy on your RHV cluster. The VM will automatically be created and will start imaging as soon as it boots.
virt-who
If you are using a Red Hat subscription that requires virt-who
, like the Virtual Data Center (VDC) subscription, you’ll need to configure this. virt-who
is a tool that will connect to your virtualization environment and poll the hypervisors for their current virtual machines. This data is then used by Satellite to give VMs entitlements they inherit from their host.
There is a wizard for creating this configuration. It is in Infrastructure
-> Virt-who configurations
. Create a new configuration of type Red Hat Virtualization Hypervisor (rhevm)
. The hypervisor server must be a full url, like https://rhv.lab.rmkra.us:443/ovirt-engine/
. The user name also must be fully qualified, like USER@AUTH_METHOD
. The default settings should be good for the rest.
Once the configuration is created, you can export it and find a Deploy
tab. In that tab are two deployment methods, one uses hammer and the other is a custom script. SSH into your Satellite server and run either of these methods. I used the script.
After virt-who
starts, you should see new entries in Content hosts
that relate to your hypervisors. Attach your subscription to this new entry. If you are not seeing these new entries, first try enabling virt-who
debugging in /etc/sysconfig/virt-who
. If no error messages appear in the log, make sure your hypervisors are not managed hosts as that can cause conflicts. More information can be found in Source 2.
RHV Foreman Provider
You could set this up if you’d like. This integration is less useful. It allows new Hosts to be added in RHV more easily. This can be done from the RHV interface in Administration
-> Providers
. Create a new Foreman/Ansible
provider.
That’s it
Now that RHV and Satellite are connected, you can manage the full lifecycle of virtual machines from the Satellite interface. You can even control the power state of the virtual machines the way you might control a server with IPMI.