How to configure virt-who for a Red Hat Enterprise Virtualization (RHEV) host

Solution Verified - Updated

Environment

  • Red Hat Enterprise Linux
  • Red Hat Subscription Management(RHSM)
  • Red Hat Customer Portal
  • RHEV Hypervisors

Issue

  • How do I setup virt-who on an RHEV host?
  • I am following How to configure "virt-who" service to use "Virtual Data Center" subscriptions, I want to apply the same to an RHEV Hypervisor?

Resolution

Configure virt-who on any Virtual System running on any Hypervisors in the environment.

Note: One Virt-who configuration is sufficient to perform the host-guest mapping for the entire environment.

  • Configure virt-who (for virt-who version 0.14+): On the Virtual system, edit the /etc/virt-who.d/ file to identify the location of the RHEV hosts:

        # vi /etc/virt-who.d/virt-who.conf
    
           [rhev]
           type=rhevm
           server=https://rhevm.example.com:443/ovirt-engine
           username=admin@internal
           password=password
           owner=org ID (From the Command # subscription-manager identity)
           hypervisor_id=hostname
    

Note: Please do not change the parameters [rhev], type=rhevm, and hypervisor_id=hostname, because they are the default values which is to be used. For RHEV-M version 4.0, please use the RHEV URL/FQDN (to login the RHEV portal)

Do not provide hypervisor details in the template.conf file present in the "/etc/virt-who.d" directory because when the virt-who package is updated, it will clear all the data present in it.

For more KB articles/solutions related to Virt-who and Virtual Datacenter (VDC) Subscriptions Issues, please refer to the Consolidated Troubleshooting Article for Virt-who and Virtual Datacenter (VDC) Subscriptions Issues

Root Cause

Virtual Datacenter subscriptions require host-guest mapping to enable the derived SKU (unlimited subscriptions).

Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.