Unable to subscribe RHEL 9 Virtual Machine with Red Hat Enterprise Linux for Virtual Datacenters subscription
Environment
- Red Hat Enterprise Linux 9
Issue
- Although
virt-who serviceis configured andhypervisor is properly subscribedwith Red Hat Enterprise Linux for virtual data centers subscription, RHEL 9 VM still gets atemporary 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
dmidecodedata 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-managerpackage tosubscription-manager-1.29.30-1.el9.x86_64or 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 UUIDmanually and subscribe the VM. Run below commands in the given order in RHEL 9 VM. Add system UUID taken from# dmidecode | grep -i uuidcommand in place ofxxxxxxx-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
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.