Virtualization with Nutanix

You can use Nutanix AHV virtual machines, with Uyuni by setting up a virtual host manager (VHM).

To begin, you will need to set up a VHM on your Uyuni Server, and inventory the available VM hosts.

VHM Setup

The Virtual Host Manager (VHM) runs on the Uyuni Server.

Ensure you have installed the virtual-host-gatherer-Nutanix package on the Uyuni Server.

To run a VHM, your Uyuni Server must have port 9440 open to access the Nutanix Prism Element API.

Procedure: Creating a Nutanix VHM
  1. In the Uyuni Web UI, navigate to Systems  Virtual Host Managers.

  2. Click Create and select Nutanix AHV.

  3. In the Add a Nutanix AHV Virtual Host Manager section, use these parameters:

    • In the Label field, type a custom name for your VHM.

    • In the Hostname field, type the fully-qualified domain name (FQDN) or host IP address.

    • In the Port field, type the Prism Element API port to use (for example, 9440).

    • In the Username field, type the username associated with the VM host.

    • In the Password field, type the password associated with the VM host user.

  4. Click Create to save your changes and create the VHM.

  5. On the Virtual Host Managers page select the new VHM.

  6. On the Properties page, click Refresh Data to inventory the new VHM.

To see which objects and resources have been inventoried, navigate to Systems  System List  Virtual Systems.

Connecting to the Nutanix Prism API server from a browser using HTTPS can sometimes log an invalid certificate error. If this occurs, refreshing the data from the virtual host manager will fail. A valid SSL certificate (not self-signed) is required on your Nutanix API server. If you’re using a custom CA authority for you Nutanix SSL certificate, please copy the custom CA certificate to /etc-/pki/trust/anchors on the Uyuni Server.. Re-trust the certificate by running the update-ca-certificates command on the command line, and restart the spacewalk services.

After your VHM has been created and configured, Taskomatic will run data collection automatically. If you want to manually perform data collection, navigate to Systems  Virtual Host Managers, select the appropriate VHM, and click Refresh Data.

Uyuni ships with a tool called virtual-host-gatherer that can connect to VHMs using their API, and request information about virtual hosts. virtual-host-gatherer maintains the concept of optional modules, where each module enables a specific VHM. This tool is automatically invoked nightly by Taskomatic. Log files for the virtual-host-gatherer tool are located at /var/log/rhn/gatherer.log.