Suchen

Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.

Chapter 5. Converting using Insights

download PDF

You can perform the conversion from CentOS Linux 7 to RHEL 7 by using Red Hat Insights.

5.1. Preparing for a RHEL conversion using Insights

Prepare your system for the pre-conversion analysis by using Red Hat Insights and then performing the conversion to RHEL with the steps below.

Prerequisites

  • You are planning to convert CentOS Linux 7 systems to Red Hat Enterprise Linux (RHEL) 7. Conversions from CentOS Linux 8 and other Linux distributions must be performed in the command-line or Satellite.
  • You have an account and activation key at Red Hat Customer Portal. For more information, see Getting started with activation keys on the Hybrid Cloud Console.
  • You have stopped important applications, database services, and any other services that store data to reduce the risk of data integrity issues.
  • You have temporarily disabled antivirus software to prevent the conversion from failing.
  • You have disabled or adequately reconfigured any configuration management system, such as Salt, Chef, Puppet, Ansible, to not attempt to restore the original system.
  • The sos package is installed. You must use this package to generate an sosreport that is required when opening a support case for the Red Hat Support team.
  • You have enabled Simple Content Access (SCA). Red Hat accounts created after July 15, 2022 have SCA enabled by default.

Procedure

  1. Back up your systems and verify that they can be restored if needed.
  2. Check Known issues and limitations and verify that your system is supported for conversion. Apply workarounds where applicable.
  3. Ensure that the standard CentOS Linux kernel is the booted kernel. If the kernel your system is booted into is not the standard kernel, change the default kernel to the standard kernel and reboot your system to apply the changes. For more information, see Making Persistent Changes to a GRUB 2 Menu Using the grubby Tool.
  4. If you are converting with a firewall or through a proxy server, ensure that you have access to the following connections:

  5. Install the Red Hat client tools:

    1. Download the Red Hat GPG key:

      # curl -o /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release https://security.access.redhat.com/data/fd431d51.txt
    2. Install the client-tools repository file:

      # curl -o /etc/yum.repos.d/client-tools.repo https://cdn-public.redhat.com/content/public/repofiles/client-tools-for-rhel-7-server.repo
    3. Install the client tools packages:

      # yum -y install subscription-manager subscription-manager-rhsm-certificates rhc rhc-worker-script insights-client
  6. Enable Remote Host Configuration, register your systems with Red Hat Subscription Manager (RHSM), and connect your systems with Red Hat Insights:

    # rhc connect --activation-key <activation_key> --organization <organization_ID>

    Replace organization_id and activation_key with the organization ID and activation key from the Red Hat Customer Portal. For more information on Remote Host Configuration, see the Remote Host Configuration (rhc) Knowledgebase article.

Verification

  1. Log in to the Red Hat Hybrid Cloud Console and go to Red Hat Insights > RHEL > Inventory > Systems.
  2. Verify that your CentOS Linux systems appear as expected.
Note

The only Red Hat Insights service you can use with registered CentOS Linux systems is the RHEL conversion. All other Insights services are available only after the conversion to RHEL.

5.2. Reviewing the pre-conversion analysis report using Insights

To assess whether your CentOS Linux systems can be converted to RHEL, run the Pre-conversion analysis for converting to RHEL task. The pre-conversion analysis generates a report that summarizes potential problems and suggests recommended solutions. The report also helps you decide whether it is possible or advisable to proceed with the conversion to RHEL.

Prerequisites

Procedure

  1. Log in to the Red Hat Hybrid Cloud Console and go to Red Hat Enterprise Linux > Insights for RHEL > Automation toolkit > Tasks.
  2. Locate the Pre-conversion analysis for converting to RHEL task and click Select systems.
  3. Alternatively, log in to the Red Hat Hybrid Cloud Console, go to Red Hat Enterprise Linux > Insights for RHEL > Inventory > Systems, choose a system you want to convert and click Convert system to RHEL label.
  4. In the Task name field type the name of the task and select the CentOS Linux 7 systems that you want to analyze for conversion. Click Next.
  5. Configure the pre-conversion analysis task with the following settings:

    Do not use the ELS subscription
    Choose this option if you plan to upgrade your RHEL system to version 8 or higher.
    Allow kernel modules outside of RHEL repositories on the system
    Choose this option to allow the pre-conversion analysis to ignore kernel modules that are not part of RHEL repositories.
    Allow outdated kernel on the system
    Choose this option to allow the pre-conversion analysis to ignore when your system is booted from an outdated kernel.
    Allow outdated packages on the system
    Choose this option to allow the pre-conversion analysis to ignore all outdated packages on the system.
  6. Click Run task. The pre-conversion analysis can take up to an hour to complete.

    The pre-conversion analysis utility generates a new report in the Activity tab. Select the report to view a summary of issues found in each system. You can also review further by selecting a system to view each issue and, when applicable, a potential remediation in detail.

    Each issue is assigned a severity level:

    Inhibitor
    Would cause the conversion to fail because it is very likely to result in a deteriorated system state. You must resolve this issue before converting.
    Overridable inhibitor
    Would cause the conversion to fail because it is very likely to result in a deteriorated system state. You must resolve or manually override this issue before converting. For more details about which inhibitors you can override, see the step about configuring the settings of the pre-conversion analysis in this procedure.
    Skipped
    Could not run this test because of a prerequisite test failing. Could cause the conversion to fail.
    Warning
    Would not cause the conversion to fail. System and application issues might occur after the conversion.
    Info
    Informational with no expected impact to the system or applications.
  7. After reviewing the report and resolving all reported issues, click Run task again to rerun the analysis and confirm that there are no issues outstanding.

5.3. Converting to a RHEL system using Insights

After running the Pre-conversion analysis for converting to RHEL task and resolving all reported issues, you can convert your CentOS Linux 7 systems to RHEL 7.

Prerequisites

Procedure

  1. Log in to the Red Hat Hybrid Cloud Console and go to Red Hat Insights > RHEL > Automation toolkit > Tasks.
  2. Locate the Convert to RHEL from CentOS 7 Linux task and click Run task.
  3. Select the CentOS Linux 7 systems that you want to convert to RHEL and click Execute task.

    Note

    The conversion process can take up to an hour to complete.

  4. Go to the Activity tab and select the newly generated conversion report.
  5. Review each system and message:

    • If a system has been successfully converted with no issues, reboot the system and proceed to the next step.
    • If the system was not converted, review the message for more information on the found problems and how to resolve them. Additionally, verify the following:

    • If the conversion timed out without completing, verify that the system is running and retry at another time. If issues persist, contact Support.
  6. After rebooting the system that has been successfully converted, remove third-party packages from the original OS that remained unchanged. These are typically packages that do not have a RHEL counterpart. To get a list of these packages, use:

    # yum list extras --disablerepo="" --enablerepo=<RHEL_RepoID>*

    Replace RHEL_RepoID with your repository.

  7. Optional: Perform an in-place upgrade to RHEL 9 to ensure your system is updated with the latest enhancements, security features, and bug fixes. For more information, see the Upgrading from RHEL 7 to RHEL 8 and Upgrading from RHEL 8 to RHEL 9 guides.
Red Hat logoGithubRedditYoutubeTwitter

Lernen

Testen, kaufen und verkaufen

Communitys

Über Red Hat Dokumentation

Wir helfen Red Hat Benutzern, mit unseren Produkten und Diensten innovativ zu sein und ihre Ziele zu erreichen – mit Inhalten, denen sie vertrauen können.

Mehr Inklusion in Open Source

Red Hat hat sich verpflichtet, problematische Sprache in unserem Code, unserer Dokumentation und unseren Web-Eigenschaften zu ersetzen. Weitere Einzelheiten finden Sie in Red Hat Blog.

Über Red Hat

Wir liefern gehärtete Lösungen, die es Unternehmen leichter machen, plattform- und umgebungsübergreifend zu arbeiten, vom zentralen Rechenzentrum bis zum Netzwerkrand.

© 2024 Red Hat, Inc.