Setup of Nutanix AHV Virt_who for Red Hat Satellite
In this article, I intend to walk through the basics of setting up an virt-who config to be used to leverage the Nutanix API from Red Hat Satellite, thereby adding the capability to bring in all of our AHV hosts into Satellite, as well as all the RHEL VMs.
This tutorial will directly reference the Red Hat Satellite with AHV Integration Guide provided from Nutanix Portal. A link to the guide has been provided below.
So to begin this tutorial, I’m going to make the following assumptions about your environment. Before you dig into this guide, please review these assumtions, and make sure you are in a state that matches the below.
Assumptions
- You have a fully functioning and configured Red Hat Satellite 6.
- You have the following details regarding your Satellite server
- Org Name as it was registered in Satellite
- FQDN of the Satellite Server
- Username/Password of a user in Satellite (Preferably a service account)
- Credentials to Prism Central or Prism Element
- Finally – You have a subscription setup and allocated to the Satellite server.
To begin, we need to install the Nutanix virt-who agent on Satellite. (or any RHEL VM that is registered to either the Satellite server or to the Red Hat Portal.)
- Download the Nutanix virt-who agent from the Nutanix Support Portal here.
- Log into the system in which you are using.. (I used our Satellite server.)
- Upload the .rpm that you downloaded from the Nutanix Portal
- Install the Nutanix virt-who agent by running:
$ yum install rpm-file
- Next we need to create a Nutanix virt-who configuration file that included the details about the AHV cluster.
- Change directory to the /etc/virt-who.d/ directory
- Create a new file. This file can be named any way you like, however it needs to end with a .conf extension.
- Below is an example configuration file:
[ahv] type=ahv hypervisor_id=hostname owner=RedHatAHVOrg01 #env=Library server=ip.addr.of.prism prism_central=true update_interval=1800 username=satellitesvcaccount encrypted_password= rhsm_hostname=satellite.domain.net rhsm_username=virt_whosvc rhsm_encrypted_password= rhsm_prefix=/rhsm #internal_debug=true
- After saving this file, you should now be able to test your configuration to make sure everything is working.
- The agent can be run in on of the following modes:
- One shot mode to report the VM-to-host mapping to Satellite one time only.
- $ virt-who -o
- Continuous mode
- $ virt-who
- One shot mode to report the VM-to-host mapping to Satellite one time only.
At this point everything should be working. You may see some warnings. Some may require some additional configuration to resolve, others may be benign. You’ll have to sort through any warnings and decide if they need additional remediation or not.