{"id":12551,"date":"2021-12-07T04:11:49","date_gmt":"2021-12-07T04:11:49","guid":{"rendered":"https:\/\/linuxways.net\/?p=12551"},"modified":"2021-12-07T04:11:49","modified_gmt":"2021-12-07T04:11:49","slug":"elevate-project-migrate-from-centos-7-x-versions-to-rhel-8-x","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/centos\/elevate-project-migrate-from-centos-7-x-versions-to-rhel-8-x\/","title":{"rendered":"Elevate Project &#8211; Migrate from CentOS 7.x versions to RHEL 8.x"},"content":{"rendered":"<p>Upgrading from CentOS 7.x to RHEL 8.x and other RHEL 8.x distributions such as AlmaLinux 8.x, Rocky 8.x , and Oracle 8.x was not possible until a few weeks ago. This is thanks to the AlmaLinux team for releasing<a href=\"https:\/\/almalinux.org\/elevate\"> Elevate<\/a> &#8211; an opensource project that enables seamless migration from CentOS 7.x to any major RHEL 8.x versions.<\/p>\n<p>Just so you know, Elevate only supports CentOS repositories and not other external repositories.<\/p>\n<p>In this guide, we focus on the Elevate project and show you how you can migrate from CentOS 7 to AlmaLinux 8.x.<\/p>\n<h2><strong>Step 1: Perform a full system update<\/strong><\/h2>\n<p>To get started, access the terminal of your CentOS 7 system and perform a complete system upgrade as follows:<\/p>\n<pre><strong>$ sudo yum update -y<\/strong><\/pre>\n<p>Once complete, reboot the system.<\/p>\n<pre><strong>$ sudo reboot<\/strong><\/pre>\n<p>Verify that your system is the latest release as shown.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"582\" height=\"118\" class=\"wp-image-12552\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-572.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-572.png 582w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-572-300x61.png 300w\" sizes=\"auto, (max-width: 582px) 100vw, 582px\" \/><\/p>\n<p>We are now ready to install the Elevate project which will help us migrate from CentOS 7.x to a major RHEL 8.x version.<\/p>\n<h2><strong>Step 2: Install Elevate RPM package on CentOS 7<\/strong><\/h2>\n<p>Next up, you need to download the<strong> elevate-release<\/strong> package as follows:<\/p>\n<pre><strong>$ sudo yum install -y http:\/\/repo.almalinux.org\/elevate\/elevate-release-latest-el7.noarch.rpm<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"901\" height=\"395\" class=\"wp-image-12553\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-573.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-573.png 901w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-573-300x132.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-573-768x337.png 768w\" sizes=\"auto, (max-width: 901px) 100vw, 901px\" \/><\/p>\n<p>Once the <strong>elevate-release<\/strong> package has been installed, you need to install the Leapp package for the operating system you wish to migrate to. Possible leapp packages are:<\/p>\n<ol>\n<li>leapp-data-rocky<\/li>\n<li>leapp-data-almalinux<\/li>\n<li>leapp-data-oraclelinux<\/li>\n<li>leapp-data-centos<\/li>\n<\/ol>\n<p>Since we are upgrading to AlmaLinux, we will run the command:<\/p>\n<pre><strong>$ sudo yum install leapp-upgrade leapp-data-almalinux -y<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"900\" height=\"242\" class=\"wp-image-12554\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-574.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-574.png 900w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-574-300x81.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-574-768x207.png 768w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/strong><\/p>\n<p>Once your preferred leapp package is installed alongside other dependencies, the next step is to perform a dry run of the Upgrade.<\/p>\n<h2><strong>Step 3: Perform a pre-upgrade check<\/strong><\/h2>\n<p>Before performing the upgrade, it\u2019s a prudent idea to simulate the upgrade and confirm if it will be a success or not. At the end of the simulation, a pre-upgrade report will be generated and in case of any issues, a set of recommendations will be provided to fix the problem. The report is logged in the <strong>\/var\/log\/leapp\/leapp-report.txt<\/strong> log file.<\/p>\n<p>So, to initiate the pre-upgrade check run the command:<\/p>\n<pre><strong>$ sudo leapp preupgrade<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"852\" height=\"263\" class=\"wp-image-12555\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-575.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-575.png 852w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-575-300x93.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-575-768x237.png 768w\" sizes=\"auto, (max-width: 852px) 100vw, 852px\" \/><\/strong><\/p>\n<p>As expected, there were some errors encountered during the simulation. To get the cause and the resolutions to the issues, examine the <strong>\/var\/log\/leapp\/answerfile <\/strong> file<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"744\" height=\"497\" class=\"wp-image-12556\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-576.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-576.png 744w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-576-300x200.png 300w\" sizes=\"auto, (max-width: 744px) 100vw, 744px\" \/><\/strong><\/p>\n<p>Usually, running the commands below will fix all the issues hindering the upgrade. These are mandatory, so execute them one after the other.<\/p>\n<pre><strong>$ sudo rmmod pata_acpi<\/strong><\/pre>\n<pre><strong>$ echo PermitRootLogin yes | sudo tee -a \/etc\/ssh\/sshd_config<\/strong><\/pre>\n<pre><strong>$ sudo leapp answer --section remove_pam_pkcs11_module_check.confirm=True<\/strong><\/pre>\n<p>Now, run the simulation once more to confirm that all the issues have been resolved.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"818\" height=\"321\" class=\"wp-image-12557\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-577.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-577.png 818w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-577-300x118.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-577-768x301.png 768w\" sizes=\"auto, (max-width: 818px) 100vw, 818px\" \/><\/p>\n<h2><strong>Step 4: Migrate from CentOS 7 to AlmaLinux<\/strong><\/h2>\n<p>Finally, perform the migration from CentOS 7 to AlmaLinux 8 by running the command shown. This might take a while depending on the packages installed and your internet connection speed.<\/p>\n<pre><strong>$ sudo leapp upgrade<\/strong><\/pre>\n<p>Finally, reboot the system to complete the switch to AlmaLinux<\/p>\n<pre><strong>$ sudo reboot<\/strong><\/pre>\n<p>Boot using the first GRUB menu entry labeled <strong>Elevate-Upgrade-Initramfs.<\/strong><\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"721\" height=\"400\" class=\"wp-image-12558\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-578.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-578.png 721w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-578-300x166.png 300w\" sizes=\"auto, (max-width: 721px) 100vw, 721px\" \/><\/strong><\/p>\n<p>Thereafter, the upgrade process will continue for another half an hour or so. The system will , once again, reboot. This time, you will be presented with the AlmaLinux GRUB menu options.<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"719\" height=\"397\" class=\"wp-image-12559\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-579.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-579.png 719w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-579-300x166.png 300w\" sizes=\"auto, (max-width: 719px) 100vw, 719px\" \/><\/strong><\/p>\n<p>Once you have logged in, confirm that the system has switched to AlmaLinux 8.<\/p>\n<pre><strong>$ cat \/etc\/redhat-release<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"617\" height=\"118\" class=\"wp-image-12560\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-580.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-580.png 617w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-580-300x57.png 300w\" sizes=\"auto, (max-width: 617px) 100vw, 617px\" \/><\/strong><\/p>\n<p>Wonderful! We have succeeded in migrating from CentOS 7.x to AlmaLinux using the Elevate upgrade packages. You can upgrade to other RHEL 8.x distros using different leapp migration data packages.<\/p>\n<p>And that\u2019s it. In case you run into any issues, feel free to provide your feedback and we will sort you out.<\/p>","protected":false},"excerpt":{"rendered":"<p>Upgrading from CentOS 7.x to RHEL 8.x and other RHEL 8.x distributions such as AlmaLinux 8.x, Rocky 8.x , and Oracle 8.x was not possible until a few&hellip;<\/p>","protected":false},"author":1,"featured_media":12772,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,165],"tags":[38,198],"class_list":["post-12551","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-red-hat","tag-centos","tag-red-hat-enterprise-linux-8"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/12551","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=12551"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/12551\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/12772"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=12551"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=12551"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=12551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}