How to configure virt-who for a Red Hat Enterprise Virtualization (RHEV) host
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.
-
After Configuring start and enable the virt-who service.
-
Once done, the RHEV 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.
-
RHEV uses 80 and 443 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.