How to configure virt-who for a Microsoft Hyper-V host with RHSM?

Solution Verified - Updated

Environment

  • Red Hat Enterprise Linux
  • Red Hat Subscription Management(RHSM)
  • Red Hat Customer Portal
  • Microsoft Hyper-V Hypervisors

Issue

  • How do I setup virt-who on a Microsoft Hyper-V host?
  • I am following How to configure virt-who service to use Virtual Data Center subscriptions, I want to apply the same to a Microsoft Hyper-V Hypervisor?

Resolution

Configure virt-who on any Virtual System running on any Hypervisors on 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 RHEL guest, edit the /etc/virt-who.d/ file to identify the location of the Microsoft Management Console(HyperV):

     # vi /etc/virt-who.d/virt-who.conf
     
          [hyperv]
          type=hyperv
          server=hyperv.domain.com
          username=administrator  (Local administrator account and password)
          password=administrator_password
          owner=org ID (From the Command # subscription-manager identity)
          hypervisor_id=hostname
    

Note: Avoid changing the parameters [hyperv], type=hyperv, and hypervisor_id=hostname, because they are the default values which is to be used.

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.