The CentOS 8 I was using at home reached the end of its support life on December 31, 2021. I decided to migrate to RHEL 8 as the successor. This article records the process.
RHEL as a Migration Target #
On January 20, 2021 (US time), Red Hat announced a revision of its “Red Hat Developer” program for developers, expanding free access to Red Hat Enterprise Linux (RHEL) from a single machine/user to up to 16 systems.
Previously, only 1 system was allowed (no sharing). After the revision, individual developers can use RHEL for up to 16 systems (including production environments) for free.
For small-scale setups, both development and production can run on RHEL.
Also, when using CentOS, a migration tool called Convert2RHEL is provided, so it may be possible to migrate to RHEL without a full reinstallation.
Preparation for Migrating to RHEL #
To use RHEL, the following preparations are needed:
- Register for the free “Red Hat Developer Program”
- Obtain a subscription number
Running the Convert2RHEL Utility #
Once prepared, simply follow the steps and run it. Searching online will turn up several detailed explanations, so here I only provide a brief overview.
Backup #
Take a backup first.
Getting Convert2RHEL #
Get the latest version from git. This time, I used the following: https://github.com/oamg/convert2rhel/releases/download/v0.25/convert2rhel-0.25-1.el8.noarch.rpm
Update the OS to the latest #
sudo dnf update -y
sudo rebootRunning convert2rhel #
convert2rhel --org organization_ID --activationkey activation_keyTroubleshooting #
The following error appeared and I could not proceed:
CRITICAL - Couldn’t download the subscription-manager-initial-setup-addon package. This means we will not be able to do a complete rollback and may put the system in a broken state. Check to make sure that the CentOS Linux repositories are enabled and the package is updated to its latest version. If you would rather ignore this check set the environment variable ‘CONVERT2RHEL_UNSUPPORTED_INCOMPLETE_ROLLBACK’.
It seems that the subscription-manager-initial-setup-addon package could not be downloaded, preventing a rollback.
This time, I chose to remove it.
dnf remove subscription-manager-initial-setup-addonDependencies resolved.
=============================================================================================================================
Package Architecture Version Repository Size
=============================================================================================================================
Removing:
subscription-manager-initial-setup-addon x86_64 1.28.13-3.el8_4 @appstream 45 k
Removing unused dependencies:
rhsm-gtk x86_64 1.28.13-3.el8_4 @appstream 1.1 M
rhsm-icons noarch 1.28.21-3.el8 @baseos 6.3 k
usermode-gtk x86_64 1.113-2.el8 @appstream 251 k
Transaction Summary
=============================================================================================================================
Remove 4 Packages
Freed space: 1.4 M
Is this ok [y/N]:Conversion Complete #
Since this is a modest machine, it took about 2 hours, but the conversion completed successfully.