On Thu, Feb 04, 2021 at 10:07:43AM -0800, Konstantin Olchanski wrote: > > Here we go. Conversion from CentOS-8 to RHEL-8 in 5 easy steps. > > > > Instructions for converting CentOS to RHEL are posted here: > > https://urldefense.proofpoint.com/v2/url?u=https-3A__access.redhat.com_articles_2360841&d=DwIDAw&c=gRgGjJ3BkIsb5y6s49QqsA&r=gd8BzeSQcySVxr0gDWSEbN-P-pgDXkdyCtaMqdCgPPdW1cyL5RIpaIYrCn8C5x2A&m=IBWdeVmMPbkgwCr8Ir6R307eFH3-2aZ9vYnQ7mEhhHM&s=Hhj0voUDSXlQKw63jIuVJYcerY5Bmru62tOJwbHKuMk&e= > > > > convert2rhel-0.15-1.el8.noarch.rpm from github is not signed > > To be continued...
Updated version of convert2rhel is out. RPM still not signed. [root@daqlabpc ~]# rpm -vh --upgrade convert2rhel-0.16-1.el8.noarch.rpm ... [root@daqlabpc ~]# convert2rhel ... WARNING - By continuing you accept this EULA. Continue with the system conversion? [y/n]: y ... Running the 'rpm -Va' command which can take several minutes. ... ... ... (no kidding. but it is a slow computer) [02/07/2021 10:01:17] TASK - [Convert: List third-party packages] ******************************* WARNING - Only packages signed by CentOS Linux are to be reinstalled. Red Hat support won't be provided for the following third party packages: certbot-1.11.0-1.el8.noarch Fedora Project @epel ganglia-3.7.2-33.el8.x86_64 Fedora Project @epel zfs-release-1-8.1.noarch N/A @@commandline ... Continue with the system conversion? [y/n]: y ... WARNING - The following packages will be removed... Package Vendor/Packager Repository ------- --------------- ---------- centos-logos-80.5-2.el8.x86_64 CentOS Buildsys @AppStream centos-logos-httpd-80.5-2.el8.noarch CentOS Buildsys @AppStream rhn-client-tools-2.8.16-13.module_el8.1.0+211+ad6c0bc7.x86_64 CentOS Buildsys @AppStream python3-rhn-client-tools-2.8.16-13.module_el8.1.0+211+ad6c0bc7.x86_64 CentOS Buildsys @AppStream python3-rhnlib-2.8.6-8.module_el8.1.0+211+ad6c0bc7.noarch CentOS Buildsys @AppStream ... Continue with the system conversion? [y/n]: y ... [02/07/2021 10:04:34] TASK - [Convert: Subscription Manager - Download packages] **************** Successfully downloaded the subscription-manager package. Successfully downloaded the subscription-manager-rhsm-certificates package. Successfully downloaded the python3-subscription-manager-rhsm package. Successfully downloaded the dnf-plugin-subscription-manager package. Successfully downloaded the python3-syspurpose package. ... [02/07/2021 10:04:49] TASK - [Convert: Subscription Manager - Replace] ************************** Removing non-RHEL subscription-manager packages. Upon continuing, we will uninstall the following subscription-manager pkgs: Package Vendor/Packager Repository ------- --------------- ---------- dnf-plugin-subscription-manager-1.27.16-1.el8.x86_64 CentOS Buildsys @BaseOS python3-subscription-manager-rhsm-1.27.16-1.el8.x86_64 CentOS Buildsys @BaseOS subscription-manager-1.27.16-1.el8.x86_64 CentOS Buildsys @BaseOS subscription-manager-rhsm-certificates-1.27.16-1.el8.x86_64 CentOS Buildsys @BaseOS Continue with the system conversion? [y/n]: y ... [02/07/2021 10:05:50] TASK - [Convert: Install RHEL certificates for RHSM] ********************** Installing RHEL certificate to the system. [02/07/2021 10:05:50] TASK - [Convert: Subscription Manager - Subscribe system] ***************** Building subscription-manager command ... ... activation key not found, username and password required ... Username: hah...@hahaha.example.com (email address as usename will not work!) ... Password: letmein ... Registering system by running subscription-manager command ... Registering to: subscription.rhsm.redhat.com:443/subscription HTTP error (401 - Unauthorized): Invalid username or password. To create a login, please visit https://urldefense.proofpoint.com/v2/url?u=https-3A__www.redhat.com_wapps_ugc_register.html&d=DwIBAg&c=gRgGjJ3BkIsb5y6s49QqsA&r=gd8BzeSQcySVxr0gDWSEbN-P-pgDXkdyCtaMqdCgPPdW1cyL5RIpaIYrCn8C5x2A&m=rPpmkxaspgfc9oWErBJ6ENXC7F1bGr0WF49JwjMUCNg&s=CT3gIQCVO3HZE3pYHadDsBlSsh0IytjibeQ9PyxBbjY&e= ... Username: enter user name from "you are logged in as", no the email address ... Password: letmein ... Registering system by running subscription-manager command ... Registering to: subscription.rhsm.redhat.com:443/subscription The system has been registered with ID: ... The registered system name is: daqlabpc.triumf.ca ... Manually select subscription appropriate for the conversion ... Enter number of the chosen subscription: 1 (the only one available) ... Attaching subscription with pool ID ... ... ... ... (takes a long time) [02/07/2021 10:13:23] TASK - [Convert: Get RHEL repository IDs] ********************************* RHEL repository IDs to enable: rhel-8-for-x86_64-baseos-rpms, rhel-8-for-x86_64-appstream-rpms [02/07/2021 10:13:23] TASK - [Convert: Subscription Manager - Check required repositories] ****** Verifying needed RHEL repositories are available ... ... Needed RHEL repos are available. ... WARNING - The following packages will be removed... centos-linux-repos-8-2.el8.noarch CentOS Buildsys @BaseOS centos-linux-release-8.3-1.2011.el8.noarch CentOS Buildsys @BaseOS Continue with the system conversion? [y/n]: y ... WARNING - ******************************************************** WARNING - The tool allows rollback of any action until this point. WARNING - By continuing all further changes on the system will need to be reverted manually by the user, if necessary. WARNING - ******************************************************** Continue with the system conversion? [y/n]: y ... Conflict of kernels: One of the installed kernels has the same version as the latest RHEL kernel. ... ... reinstalling 2139 items ... [02/07/2021 10:53:00] TASK - [Convert: List remaining non-Red Hat packages] ********************* Listing packages not signed by Red Hat The following packages were left unchanged. centos-gpg-keys-8-2.el8.noarch CentOS Buildsys @BaseOS ... [02/07/2021 10:53:08] TASK - [Final: rpm files modified by the conversion] ********************** Running the 'rpm -Va' command which can take several minutes. It can be disabled by using the --no-rpm-va option. The 'rpm -Va' output has been stored in the /var/log/convert2rhel/rpm_va_after_conversion.log file Comparison of modified rpm files from before and after the conversion: ... [02/07/2021 10:54:53] TASK - [Final: Non-interactive mode] ************************************** For the non-interactive use of the tool, run the following command: convert2rhel -u username -p letmein --pool ... -y WARNING - In order to boot the RHEL kernel, restart of the system is needed. [root@daqlabpc ~]# [root@daqlabpc ~]# more /etc/redhat-release Red Hat Enterprise Linux release 8.3 (Ootpa) [root@daqlabpc ~]# ... reboot ... [root@daqlabpc ~]# uname -a Linux daqlabpc.triumf.ca 4.18.0-240.10.1.el8_3.x86_64 #1 SMP Wed Dec 16 03:30:52 EST 2020 x86_64 x86_64 x86_64 GNU/Linux Looks like success... -- Konstantin Olchanski Data Acquisition Systems: The Bytes Must Flow! Email: olchansk-at-triumf-dot-ca Snail mail: 4004 Wesbrook Mall, TRIUMF, Vancouver, B.C., V6T 2A3, Canada