How to Upgrade from RHEL 6 to RHEL 8

[‘

n

Red Hat Enterprise Linux 7 (RHEL 7) is the first major release that offers in-place upgrades from the earlier RHEL major release (RHEL 6) to a new major release of RHEL 7 operating system.

n

Warning: Make sure to back up your entire system to avoid any data loss and also before you perform an upgrade on the live system, you should clone the system and do the upgrade procedure on the clone. This will allow you to prepare for an upgrade without risking the production system.

n

This article describes instructions on how to upgrade from Red Hat Enterprise Linux 6.10 to Red Hat Enterprise Linux 8 using the redhat-upgrade-tool and Leapp utilities.

n

The upgrade process involves two-stages.

n

    n

  • Upgrade your system from RHEL 6.10 to RHEL 7.6.
  • n

  • Upgrading from RHEL 7.6 to RHEL 8.
  • n

n

Upgrading from RHEL 6 to RHEL 7

n

The following RHEL 6 to RHEL 7 upgrade instruction is fully supported if your RHEL system using the latest RHEL 6.10 release. If not, update your system to have the latest RHEL 6.10 packages installed using the yum command as shown.

n

# yum update -yrn# rebootrn

n

Update RHEL System
Update RHEL System

n

Next, you need to enable the Extras repository to subscribe your system to the repository containing the upgrade tools.

n

# subscription-manager repos --enable rhel-6-server-extras-rpmsrn# subscription-manager repos --enable rhel-6-server-optinal-rpmsrn

n

Enable Red Hat Extras Repository
Enable Red Hat Extras Repository

n

Now you need to install Preupgrade Assistant tools that check your system for anything that might unfortunately affect the success of your upgrade.

n

# yum -y install preupgrade-assistant preupgrade-assistant-ui preupgrade-assistant-el6toel7 redhat-upgrade-toolrn

n

Install PreUpgrade Assistant
Install PreUpgrade Assistant

n

Once installed, you can run the Preupgrade Assistant to check the in-place upgrade possibility limitations of the system. A short summary of results is printed on the screen and detailed reports are saved to the /root/preupgrade directory as result.html by default.

n

# preupg -vrn

n

This takes a few minutes to complete.

n

Run PreUpgrade Assistant
Run PreUpgrade Assistant

n

Open results.html file in a browser and resolve the issues pointed by the Preupgrade Assistant during the assessment. Then re-run preupg command to scan the system again, and if there are no new problems found, proceed further as explained below.

n

Now download the latest RHEL 7.6 ISO image file from the RedHat Download Center using a Red Hat Subscription or a Red Hat Evaluation Subscription.

n

Once you’ve downloaded RHEL 7.6 ISO, run the following command to upgrade to RHEL 7.6 using the Red Hat upgrade tool and reboot after the upgrade process is completed. Make sure to specify the location of an ISO image in the below command.

n

# redhat-upgrade-tool --iso rhel-server-7.6-x86_64-dvd.iso --cleanup-postrn# rebootrn

n

Upgrade RHEL 6 to RHEL 7
Upgrade RHEL 6 to RHEL 7

n

RHEL Upgrade Process
RHEL Upgrade Process

n

To finish the installation, you must reboot the system to start installing upgrades. The upgrade is a time-consuming process and it depends on your system’s configuration and amount of data it downloads.

n

RHEL Upgrade Boot Menu
RHEL Upgrade Boot Menu

n

Installing RHEL Updates
Installing RHEL Updates

n

If everything goes as well, the system will reboot to Red Hat Enterprise Linux 7, and you can begin checking that the system works properly.

n

Booting to RHEL 7.6
Booting to RHEL 7.6

n

Verify RHEL Upgrade
Verify RHEL Upgrade

n

Also, check that your system is properly registered to Red Hat subscription. To verify it, type:

n

# yum repolistrn

n

Check Red Hat Subscription Repositories
Check Red Hat Subscription Repositories

n

If no RHEL 7 repositories found, you need to resubscribe your RHEL 7 system to Red Hat subscription using the following commands.

n

# subscription-manager remove --allrn# subscription-manager unregisterrn# subscription-manager registerrn# subscription-manager attach --autorn

n

Finally, upgrade all your new RHEL 7 packages to their latest version.

n

# yum update -yrn# rebootrn

n

Updating RHEL 7
Updating RHEL 7

n

Now you proceed further to perform an in-place upgrade from Red Hat Enterprise Linux 7.6 to Red Hat Enterprise Linux 8 using our following guide:

n

n

‘]