How to migrate CentOS 7 to AlmaLinux 8 using ELevate Repo

by time news

2023-09-22 08:30:00

CentOS 7 reaches the end of its useful life June 30, 2024, which marks the end of CentOS project after what CentOS 8 was prematurely discontinued on December 31 in favor of CentOS Stream.

Fortunately, you can migrate from CentOS 7 a AlmaLinux 8 or any major Enterprise 8.x RHEL distribution, such as Oracle Linux 8 , Rocky Linux 8 o CentOS Stream 8, using Elevate Project .

table of Contents

What is elevate? Step 1: Upgrade CentOS 7 system Step 2: Install Elevate Repository on CentOS 7 Step 3: Install Leapp utility on CentOS 7 Step 4: Migrate CentOS 7 to AlmaLinux 8

What is Elevate?

Elevate is a utility developed by AlmaLinux designed to facilitate migration from CentOS 7 or any major version of RHEL-based distributions of 7.x a 8.x and of 8.x a 9.x. Provides the tool Leap which starts the actual upgrade process from one version to another.

[También te puede interesar: Cómo migrar de CentOS 8 a AlmaLinux 8  y Cómo migrar de CentOS 8 a Rocky Linux 8 ]

The update of CentOS 7 For any major RHEL-based distribution, follow the instructions below, as illustrated in the diagram below.

Migrate CentOS 7 to AlmaLinux 8

If you are looking to change CentOS 7 a AlmaLinux 8 , then you have come to the right place. In this guide, we will guide you on how to migrate from CentOS 7 a AlmaLinux 8 using Elevate Project .

Preliminary step

As is always recommended before migrating to any major version, it is wise to have a backup of your files in case something goes wrong during the upgrade. So, take some time and backup all important files.

Step 1: Update CentOS 7 system

To take off, log in to your instance CentOS 7 and update the system to the latest version by running the following yum command .

$ sudo yum update

Update CentOS 7 Linux

Once the update is complete, verify that CentOS 7 has been updated to the latest version as follows.

$ cat /etc/redhat-release $ cat /etc/os-liberación

You should get the following as a result confirming that CentOS 7 has been updated to the latest version.

CentOS Linux version 7.9.2009 (Core)

Check CentOS 7 Linux

Step 2: Install Elevate Repository on CentOS 7

The next step is to enable the repository by Elevate in your system CentOS 7 by running the following command:

$ sudo yum install -y

Enable elevated repository in CentOS 7

To confirm that Elevate has been installed successfully, run the following “raise-release”… rpm command.

$ rpm -qi elevate-release

You should get the following output which provides complex details about the package high launch including version, release, architecture, installation date, and more.

Confirm elevate the repository

Step 3: Install Leapp utility on CentOS 7

The repository by Elevate provides the utility Leap which facilitates the actual migration of distributions of Red Hat Enterprise Linux 7.x to any version from Enterprise Linux 8.x.

For example, to migrate from CentOS 7 a AlmaLinux 8 install the following software packages.

$ sudo yum install -y leapp-upgrade leapp-data-almalinux

Install Leapp on CentOS 7

Step 4: Migrate CentOS 7 to AlmaLinux 8

Once the migration packages have been installed successfully, run the upgrade checklist pre-flight using the following command:

$ sudo leapp upgrade

The utility performs a series of checks to confirm whether the system is ready to switch to AlmaLinux 8 . CentOS 7 has some inherent issues that prevent the migration from happening, as seen in the bug report below.

Run the pre-flight check update

The report prior to update is generated and saved to the file /var/log/leapp/leapp-report.txt . From here, you can see all the issues preventing migration to AlmaLinux .

In our case, we ran into a couple of problems. First, our system had two cores; something that makes migration to AlmaLinux 8 . Your system must have a single core.

To check the number of installed kernels, run the command:

$ rpm -q kernel

Check installed kernel

If your system has several kernels, as is our case, delete all of them and keep only one using the following command.

$ sudo package-cleanup –oldkernels –count=1

Once again, check the number of cores present in your system as follows.

$ rpm -q kernel

Check installed kernel

To troubleshoot the remaining issues, run the following commands, which enable remote login using the protocol SSH .

$ sudo echo PermitRootLogin yes | sudo tee -a /etc/ssh/sshd_config

Then run the following command to remove the module pam_pkcs11 in settings of PAM

$ sudo leapp answer –section remove_pam_pkcs11_module_check.confirm=True

Finally, disable the module stain_acpi .

$ sudo rmmod pata_acpi

This time, we only have one core left, which is great!

After fixing all the issues, go ahead and perform the migration. CentOS 7 a AlmaLinux 8 by running the following command:

$ sudo leapp upgrade

This is a long process and takes quite a bit of time. Upon successful execution of the command, a report will be generated and this time, everything indicates that everything went as planned.

Actualice CentOS 7 to AlmaLinux 8

Then reboot your system.

$ reboot

On the menu of GRUB you will find the entry ‘ Elevate-Update ‘. Press TO ENTER .

Choose the ELevate upgrade

The update to AlmaLinux 8 It will continue and the system will reboot a few times.

Upgrade to AlmaLinux 8

Finally, the login screen will appear. Provide your password and click ‘ Log in ‘ or press TO ENTER to log in.

Log in to AlmaLinux 8

In the terminal, check the version of AlmaLinux using the following command.

$ cat /etc/redhat-release

Check AlmaLinux version

Alternatively, run the command.

$ cat /etc/os-release

Check AlmaLinux version

The result confirms that we have successfully changed or migrated from CentOS 7 a Almalinux 8.7 .

Conclusion

In this guide, we have demonstrated how to migrate from CentOS 7 a AlmaLinux 8 using the project Elevate which is an application that helps simplify the switch from Enterprise 7.x to Enterprise 8.x systems.

#migrate #CentOS #AlmaLinux #ELevate #Repo

You may also like

Leave a Comment