How to Upgrade CentOS 7 to Rocky Linux 8 | Holhol24
Yes, you will have learn it proper. You will now have the ability to improve CentOS 7 to Rocky Linux 8. Since CentOS 8 is lifeless, there is not any level migrating CentOS 7 to CentOS 8.
Now, no longer handiest you’ll be able to improve CentOS 7 to Rocky Linux 8, however you’ll be able to additionally improve CentOS 7 to different EL 8 derivatives akin to AlmaLinux, CentOS Stream, Oracle, and Rocky Linux.
Thanks to the ELevate, an initiative and a device that permits migration between primary variations of RHEL derivatives.
Here, we will be able to see improve CentOS 7 to Rocky Linux 8.
Take System Backup
Before you continue, I extremely suggest you’re taking a machine backup or snapshots for restoration in case of problems after the improve. In addition to this, it’s possible you’ll do that improve process on a digital device or take a look at device ahead of appearing it on a reside server.
Upgrade CentOS 7 to Rocky Linux 8
Update CentOS 7
First, convey up your machine to the most recent launch of CentOS 7 (7.9.2009).
yum replace -y
Then, reboot the machine to finish the replace.
reboot
Check the OS launch publish the reboot.
cat /and many others/redhat-release
Output:
CentOS Linux launch 7.9.2009 (Core)
Install Elevate
First, set up the Elevate launch package deal to configure the venture repo and set up the GPG key.
yum set up -y http://repo.almalinux.org/raise/elevate-release-latest-el7.noarch.rpm
Then, set up the leapp applications and migration records for Rocky Linux.
yum set up -y leapp-upgrade leapp-data-rocky
Perform Pre-check
Initiate the pre-upgrade verify with the under command. This verify will resolve the potential for an OS improve and record doable issues it is important to repair ahead of upgrading.
NOTE: No applications might be put in on the pre-upgrade verify segment.
leapp preupgrade
In the tip, you’re going to get a abstract record with doable problems one thing like under.
. . . . . . ============================================================ UPGRADE INHIBITED ============================================================ Upgrade has been inhibited because of the next issues: 1. Inhibitor: Detected loaded kernel drivers that have been got rid of in RHEL 8. Upgrade can't continue. 2. Inhibitor: Possible issues of faraway login the use of root account 3. Inhibitor: Missing required solutions within the solution document Consult the pre-upgrade record for main points and conceivable remediation. ============================================================ UPGRADE INHIBITED ============================================================ Debug output written to /var/log/leapp/leapp-preupgrade.log ============================================================ REPORT ============================================================ A record has been generated at /var/log/leapp/leapp-report.json A record has been generated at /var/log/leapp/leapp-report.txt ============================================================ END OF REPORT ============================================================ Answerfile has been generated at /var/log/leapp/answerfile
In addition, you’ll be able to get extra details about the reported improve blockers (Risk Factor: top (inhibitor) and really helpful answers within the /var/log/leapp/leapp-report.txt
document. Apart from the blockers, the document may also include different RISKs starting from data to top, which you’ll be able to overview and continue additional.
For the above 3 issues (you’re going to get by way of default), run the under instructions to mend them and continue with the improve.
rmmod pata_acpi echo PermitRootLogin sure | tee -a /and many others/ssh/sshd_config leapp solution --section remove_pam_pkcs11_module_check.ascertain=True
Upgrade to Rocky Linux 8
Now, get started an improve with the under command. This improve will take a while to finish.
leapp improve
Output:
. . .
. . .
The downloaded applications had been stored in cache till the following a hit transaction.
You can take away cached applications by way of executing 'dnf blank applications'.
==> Processing segment `InterimPreparation`
====> * efi_interim_fix
Adjust EFI boot access for first reboot
====> * upgrade_initramfs_generator
Creates the improve initramfs
====> * add_upgrade_boot_entry
Add new boot access for Leapp supplied initramfs.
A reboot is needed to proceed. Please reboot your machine.
Debug output written to /var/log/leapp/leapp-upgrade.log
============================================================
REPORT
============================================================
A record has been generated at /var/log/leapp/leapp-report.json
A record has been generated at /var/log/leapp/leapp-report.txt
============================================================
END OF REPORT
============================================================
Answerfile has been generated at /var/log/leapp/answerfile
After the a hit improve, reboot the machine.
reboot
The machine will now boot into the ELevate-Upgrade-Initramfs
kernel and proceed the improve. If you wish to have, you’ll be able to additionally take the server console and observe the improve.
Post Migration Checkouts
After the migration is finished, check the present OS model.
cat /and many others/redhat-release
Output:
Rocky Linux launch 8.4 (Green Obsidian)
Also, verify if the server nonetheless has the stays of CentOS and EL 7 applications.
rpm -qa | grep centos rpm -qf | grep el7
Conclusion
That’s All. I am hoping you will have effectively upgraded your CentOS 7 machine to Rocky Linux 8. Share your comments within the feedback part.