-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit of RHEL 7 ELS article
- Loading branch information
Benjamin Blasco
committed
Jul 1, 2024
1 parent
e4f297a
commit 494b6b0
Showing
1 changed file
with
141 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,141 @@ | ||
--- | ||
title: "Enable Red Hat Enterprise Linux (RHEL) 7 Extended Lifecycle Support (ELS) using BYO Subscriptions" | ||
permalink: /rhel7_els_byos.md/ | ||
--- | ||
|
||
# Enable Red Hat Enterprise Linux (RHEL) 7 Extended Lifecycle Support (ELS) using BYO Subscriptions | ||
|
||
## Some background | ||
|
||
Red Hat Enterprise Linux 7 reached it's end of support phase on June 30, 2024. Red Hat customers customers who have purchased the Extended Lifecycle Support (ELS) add-on from Red Hat are free to use this both on premises, and in the cloud. Additionally, it can be used for both PAYG (marketplace pay-as-you-go) and BYOS (Bring Your Own Subscription) RHEL in the cloud. | ||
|
||
This article describes how to enable RHEL 7 ELS purchased from Red Hat on PAYG RHEL instances in the cloud, but is also applicable to BYOS RHEL on-premises and in the cloud. | ||
|
||
Note: This article *does not* describe how to enable RHEL 7 ELS purchased from Cloud Provider Marketplaces | ||
|
||
### Check the starting status of our host | ||
|
||
Check the status of subscription-manager. PAYG hosts are typically not registered with Red Hat, and should report status "Unknown" | ||
|
||
``` | ||
[root@bblasco-rhel7-els2 ~]# subscription-manager status | ||
+-------------------------------------------+ | ||
System Status Details | ||
+-------------------------------------------+ | ||
Overall Status: Unknown | ||
System Purpose Status: Unknown | ||
``` | ||
|
||
Check the repositories enabled on the host. PAYG instances will use Red Hat Update Infrastructure (RHUI) repositories. | ||
|
||
``` | ||
[root@bblasco-rhel7-els2 ~]# yum repolist | ||
Loaded plugins: amazon-id, product-id, search-disabled-repos, subscription-manager | ||
This system is not registered with an entitlement server. You can use subscription-manager to register. | ||
repo id repo name status | ||
rhel-7-server-rhui-rh-common-rpms/7Server/x86_64 Red Hat Enterprise Linux 7 Server - RH Common from RHUI (RPMs) 243 | ||
rhel-7-server-rhui-rpms/7Server/x86_64 Red Hat Enterprise Linux 7 Server from RHUI (RPMs) 34,476 | ||
rhui-client-config-server-7/x86_64 RHUI Client Configuration Server 7 9 | ||
repolist: 34,728 | ||
``` | ||
|
||
Check whether subscription-manager is managing repositories for the host. PAYG systems using RHUI will have this set to 0 (zero) | ||
``` | ||
[root@bblasco-rhel7-els2 ~]# grep manage_repos /etc/rhsm/rhsm.conf | ||
manage_repos = 0 | ||
``` | ||
|
||
|
||
### Create an activation key with ELS enabled | ||
|
||
Log in to the Red Hat Hybrid Cloud Console at console.redhat.com using your Red Hat ID. | ||
|
||
The shortcut to the Activation Keys page is here: | ||
https://console.redhat.com/insights/connector/activation-keys | ||
|
||
Create an activation key with "Latest release" as the workload: | ||
|
||
ADD SCREENSHOT | ||
|
||
Save the activation key, then click on it and select "Add Repositories". Please note that it may take a long time (at least a minute) to load the complete repository list. You can filter on Label with "rhel-7-server-els" to see all related repositories: | ||
|
||
ADD SCREENSHOT | ||
|
||
Select the "Red Hat Enterprise Linux 7 Server - Extended Life Cycle Support (RPMs)" repository, and any other optional repositories required, then save the changes. | ||
|
||
ADD SCREENSHOT | ||
|
||
![12c878dac10b7882117fc5a351125156.png](:/ae5438e638fd4970823848209ae2447c) | ||
|
||
Finally, note the Organisation ID, as this is required for the registration command. This can be found under your name at the top right of the web page. | ||
|
||
ADD SCREENSHOT | ||
|
||
### Register the system, enable management of repos, and add the ELS repos | ||
|
||
First, register the system using the subscription-manager command. This may not be necessary for BYOS systems already registered with Red Hat. | ||
|
||
``` | ||
sudo -i | ||
[root@bblasco-rhel7-els2 ~]# subscription-manager register --org=<MY_ORG_ID> --activationkey=<MY_ACTIVATION_KEY> | ||
The system has been registered with ID: 7bada824-8ee9-430e-88b3-83ec503f7491 | ||
The registered system name is: bblasco-rhel7-els2 | ||
``` | ||
Check whether subscription-manager is able to manage repositories, and then ensure it is enabled. | ||
|
||
[root@bblasco-rhel7-els2 ~]# grep manage_repos /etc/rhsm/rhsm.conf | ||
manage_repos = 0 | ||
[root@bblasco-rhel7-els2 ~]# | ||
[root@bblasco-rhel7-els2 ~]# subscription-manager config --rhsm.manage_repos=1 | ||
[root@bblasco-rhel7-els2 ~]# | ||
[root@bblasco-rhel7-els2 ~]# grep manage_repos /etc/rhsm/rhsm.conf | ||
manage_repos = 1 | ||
The system has been registered with ID: 7bada824-8ee9-430e-88b3-83ec503f7491 | ||
The registered system name is: bblasco-rhel7-els2 | ||
[root@bblasco-rhel7-els2 ~]# | ||
|
||
Enable the RHEL 7 ELS repository | ||
|
||
``` | ||
[root@bblasco-rhel7-els2 ~]# subscription-manager repos --enable rhel-7-server-els-rpms | ||
Repository 'rhel-7-server-els-rpms' is enabled for this system. | ||
[root@bblasco-rhel7-els2 ~]# | ||
``` | ||
|
||
Check that the repository is now enabled on the host. | ||
``` | ||
[root@bblasco-rhel7-els2 ~]# yum repolist | ||
Loaded plugins: amazon-id, product-id, search-disabled-repos, subscription-manager | ||
Repository rhel-server-rhui-rhscl-7-rpms is listed more than once in the configuration | ||
Repository rhel-7-server-rhui-debug-rpms is listed more than once in the configuration | ||
Repository rhel-7-server-rhui-extras-rpms is listed more than once in the configuration | ||
Repository rhel-server-rhui-rhscl-7-source-rpms is listed more than once in the configuration | ||
Repository rhel-7-server-rhui-extras-debug-rpms is listed more than once in the configuration | ||
Repository rhel-7-server-rhui-source-rpms is listed more than once in the configuration | ||
Repository rhel-7-server-rhui-rh-common-rpms is listed more than once in the configuration | ||
Repository rhel-7-server-rhui-rpms is listed more than once in the configuration | ||
Repository rhel-7-server-rhui-supplementary-debug-rpms is listed more than once in the configuration | ||
Repository rhel-7-server-rhui-optional-rpms is listed more than once in the configuration | ||
Repository rhel-7-server-rhui-optional-debug-rpms is listed more than once in the configuration | ||
Repository rhel-7-server-rhui-extras-source-rpms is listed more than once in the configuration | ||
Repository rhel-7-server-rhui-optional-source-rpms is listed more than once in the configuration | ||
Repository rhel-7-server-rhui-supplementary-rpms is listed more than once in the configuration | ||
Repository rhel-7-server-rhui-rh-common-source-rpms is listed more than once in the configuration | ||
Repository rhel-server-rhui-rhscl-7-debug-rpms is listed more than once in the configuration | ||
Repository rhel-7-server-rhui-rh-common-debug-rpms is listed more than once in the configuration | ||
Repository rhel-7-server-rhui-supplementary-source-rpms is listed more than once in the configuration | ||
repo id repo name status | ||
rhel-7-server-els-rpms/x86_64 Red Hat Enterprise Linux 7 Server - Extended Life Cycle Support (RPMs) 34,476 | ||
rhel-7-server-rhui-rh-common-rpms/7Server/x86_64 Red Hat Enterprise Linux 7 Server - RH Common from RHUI (RPMs) 243 | ||
rhel-7-server-rhui-rpms/7Server/x86_64 Red Hat Enterprise Linux 7 Server from RHUI (RPMs) 34,476 | ||
rhel-7-server-rpms/7Server/x86_64 Red Hat Enterprise Linux 7 Server (RPMs) 34,476 | ||
rhui-client-config-server-7/x86_64 RHUI Client Configuration Server 7 9 | ||
``` |