How to enable RHUI repositories on AWS Marketplace instances that can not use auto-registration version 2

Solution Verified - Updated -

Environment

AWS. Access to Red Hat hosts, such as subscription.rhsm.redhat.com or cdn.redhat.com, is impossible due to firewall rules that can't be changed to allow the Red Hat IP addresses published in this article.

Issue

An AWS instance launched from a RHEL 9.7+ or 10.1+ image has no Red Hat repositories. Only a "RHUI client" repository is enabled.

Resolution

If you really can't update your firewall rules to allow connections to Red Hat services, run the following command to enable RHUI repositories again:

$ sudo rhui-reenable

Note: if you manage to start using Red Hat repositories from RHSM, you can disable RHUI repositories using a similar command:

$ sudo rhui-disable

Root Cause

When the instance was started, Red Hat repositories from RHUI were disabled automatically. Red Hat repositories from RHSM were supposed to be made available by registering the system, but the registration process failed due to firewall rules.

Diagnostic Steps

The output from dnf repolist does not show any Red Hat repositories—typically BaseOS and AppStream—neither from RHUI nor RHSM.

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.

Comments