How to configure virt-who for a Microsoft Hyper-V host with RHSM?
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-whoservice to useVirtual Data Centersubscriptions, 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.
-
After Configuring start and enable the virt-who service.
# systemctl start virt-who -
Once done, the Hyper-V hypervisors will be available on the This content is not included.Red Hat Hybrid Cloud Console inventory.
-
Use the below command to register RHEL guests VMs and access the repos directly:-
# subscription-manager register # yum repolist -v -
Track the subscription usage in This content is not included.Subscription Watch service available in Hybrid Cloud Console.
-
HyperV uses 5985 and 5986 ports for virt-who configuration.
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).
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.