Unable to subscribe RHEL 9 Virtual Machine with Red Hat Enterprise Linux for Virtual Datacenters subscription

Solution Verified - Updated

Environment

  • Red Hat Enterprise Linux 9

Issue

  • Although virt-who service is configured and hypervisor is properly subscribed with Red Hat Enterprise Linux for virtual data centers subscription, RHEL 9 VM still gets a temporary virtual data center subscription SKU.
  • Guest has not been reported on any host and is using a temporary unmapped guest subscription.

Resolution

  • A bug has been detected where the RHEL 9 virtual machines are unable to get the virtual subscription SKU from the hypervisors due to subscription-manager not able to collect the system dmidecode data although the hypervisor is subscribed and virt-who is properly configured. The This content is not included.Bugzilla 2094099 has been fixed by the engineering team.

  • This issue is now resolved with the following Red Hat Bugzilla Advisory. To fully resolve this issue please update the subscription-manager package to subscription-manager-1.29.30-1.el9.x86_64 or later.

  • If the update of the subscription-manager package is not immediately possible, then as a workaround, create a custom rhsm facts file, add the system UUID manually and subscribe the VM. Run below commands in the given order in RHEL 9 VM. Add system UUID taken from # dmidecode | grep -i uuid command in place of xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx.

        # subscription-manager clean
    
        # cd /etc/rhsm/facts
    
        # echo "{\"dmi.system.uuid\":\"xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\",\"virt.uuid\":\"xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"}" >redhat.facts
    
        # subscription-manager facts | grep -i uuid
    
        # subscription-manager register
    
        # subscription-manager attach --auto
    
        # subscription-manager status
    

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

The subscription-manager service doesn't capture the dmidecode information from the server which includes the system UUID in subscription facts. Hence, the subscription-manager is unable to map the UUID to the host-guest mapping collected through the virt-who service to get a derived virtual subscription SKU from the hypervisor.

Diagnostic Steps

  • Run below commands and check the subscription status. A temporary SKU is attached to the VM.

     # subscription-manager status
     # subscription-manager list --consumed
    
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.