此内容没有您所选择的语言版本。
Chapter 4. Preparation for a RHEL conversion using Lightspeed
Before running the pre-conversion analysis by using Red Hat Lightspeed and performing the conversion, you must first complete all necessary preparation steps.
4.1. Prerequisites 复制链接链接已复制到粘贴板!
You have a RHEL subscription. You can obtain a subscription using one of the following methods:
- Get a no-cost RHEL Developer Subscription for Individuals. The Developer Subscription is limited to sixteen servers.
- Start a 60-day free trial for a RHEL subscription. You can cancel this trial at any time.
- Contact the Red Hat Sales team for assistance. If you plan to convert a large number of servers, Red Hat recommends coordinating with the Sales team.
4.2. Preparing for a RHEL conversion using Lightspeed 复制链接链接已复制到粘贴板!
Prepare your system for the pre-conversion analysis by using Red Hat Lightspeed 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
sospackage is installed. You must use this package to generate ansosreportthat 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
- Back up your systems and verify that they can be restored if needed.
- Check Known issues and limitations and verify that your system is supported for conversion. Apply workarounds where applicable.
- 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 Menu Using the grubby Tool.
If you are converting with a firewall or through a proxy server, ensure that you have access to the following connections:
- https://cdn.redhat.com
- https://cdn-public.redhat.com
- https://subscription.rhsm.redhat.com - required only for systems with firewalls
- https://*.akamaiedge.net - required only for systems with firewalls
- https://cert.console.redhat.com
Install the Red Hat client tools:
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
# curl -o /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release https://security.access.redhat.com/data/fd431d51.txtCopy to Clipboard Copied! Toggle word wrap Toggle overflow Install the
client-toolsrepository 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
# curl -o /etc/yum.repos.d/client-tools.repo https://cdn-public.redhat.com/content/public/repofiles/client-tools-for-rhel-7-server.repoCopy to Clipboard Copied! Toggle word wrap Toggle overflow Install the
client toolspackages:yum -y install subscription-manager subscription-manager-rhsm-certificates rhc rhc-worker-script insights-client
# yum -y install subscription-manager subscription-manager-rhsm-certificates rhc rhc-worker-script insights-clientCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Enable Remote Host Configuration, register your systems with Red Hat Subscription Manager (RHSM), and connect your systems with Red Hat Lightspeed:
rhc connect --activation-key <activation_key> --organization <organization_ID>
# rhc connect --activation-key <activation_key> --organization <organization_ID>Copy to Clipboard Copied! Toggle word wrap Toggle overflow 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
- Log in to the Red Hat Hybrid Cloud Console and go to Red Hat Lightspeed > RHEL > Inventory > Systems.
- Verify that your CentOS Linux systems appear as expected.
The only Red Hat Lightspeed service you can use with registered CentOS Linux systems is the RHEL conversion. All other Lightspeed services are available only after the conversion to RHEL.
4.3. Preparing for a RHEL conversion with a proxy server 复制链接链接已复制到粘贴板!
If you are using a proxy server with your operating system, before running the pre-conversion analysis by using Red Hat Lightspeed to perform the conversion, you must complete the following procedure.
Prerequisites
The
http_proxyenvironment variable is set:export http_proxy='http://<proxy_hostname>:<proxy_port>'
# export http_proxy='http://<proxy_hostname>:<proxy_port>'Copy to Clipboard Copied! Toggle word wrap Toggle overflow Where http://<proxy_hostname>:<proxy_port> is your proxy server.
The repository for client tools is set:
curl -o /etc/yum.repos.d/client-tools-for-rhel-7-server.repo https://ftp.redhat.com/redhat/client-tools/client-tools-for-rhel-7-server.repo
# curl -o /etc/yum.repos.d/client-tools-for-rhel-7-server.repo https://ftp.redhat.com/redhat/client-tools/client-tools-for-rhel-7-server.repoCopy to Clipboard Copied! Toggle word wrap Toggle overflow You have the Red Hat GPG public key to verify the downloaded client tools packages:
curl -o /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release https://security.access.redhat.com/data/fd431d51.txt
# curl -o /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release https://security.access.redhat.com/data/fd431d51.txtCopy to Clipboard Copied! Toggle word wrap Toggle overflow -
The
yumcommand is configured to use HTTP proxy. For more information, see the Red Hat Knowledgebase solution How to enable Proxy Settings for Yum Command on RHEL?. The following packages are installed:
-
subscription-manager -
subscription-manager-rhsm-certificates -
insights-client -
rhc -
rhc-worker-script.
-
Procedure
Edit the
/etc/systemd/system/rhcd.service.d/proxy.conffile for the Remote Host Configuration (RHC) daemon to use your proxy server:[Service] Environment="HTTP_PROXY=http://<proxy_hostname>:<proxy_port>" Environment="HTTPS_PROXY=http://<proxy_hostname>:<proxy_port>"
[Service] Environment="HTTP_PROXY=http://<proxy_hostname>:<proxy_port>" Environment="HTTPS_PROXY=http://<proxy_hostname>:<proxy_port>"Copy to Clipboard Copied! Toggle word wrap Toggle overflow Where http://<proxy hostname>:<proxy port> is your proxy server.
Reload the RHC daemon to apply new configuration:
systemctl daemon-reload
# systemctl daemon-reloadCopy to Clipboard Copied! Toggle word wrap Toggle overflow Edit the
/etc/insights-client/insights-client.conffile for the Lightspeed to use your proxy server:[insights-client] proxy=http://<proxy_hostname>:<proxy_port>
[insights-client] proxy=http://<proxy_hostname>:<proxy_port>Copy to Clipboard Copied! Toggle word wrap Toggle overflow Where http://<proxy_hostname>:<proxy_port> is your proxy server.
Edit the
/etc/rhsm/rhsm.conffile to configure the Red Hat Subscription Manager to use a proxy server:proxy_hostname = <proxy_hostname> proxy_port = <proxy_port> proxy_scheme = http
proxy_hostname = <proxy_hostname> proxy_port = <proxy_port> proxy_scheme = httpCopy to Clipboard Copied! Toggle word wrap Toggle overflow Where <proxy_hostname> and <proxy_port> are parameters of you proxy server.
Register your system with the Red Hat Subscription Manager and Lightspeed:
rhc connect --activation-key <activation_key> --organization <organization_ID>
# rhc connect --activation-key <activation_key> --organization <organization_ID>Copy to Clipboard Copied! Toggle word wrap Toggle overflow Where the <activation_key> and the <organization_ID> are the activation key and organization ID from the Red Hat Customer Portal. For more information on Remote Host Configuration, see the link: Remote Host Configuration (rhc) Knowledgebase article.
Verification
- Log in to the Red Hat Hybrid Cloud Console and go to Red Hat Lightspeed > RHEL > Inventory > Systems.
- Verify that your CentOS Linux systems appear as expected.
Next steps
- Proceed to review the pre-conversion analysis report using Lightspeed.
- You can start conversion to a RHEL system using Lightspeed.
The only Red Hat service you can use with registered CentOS Linux systems is the RHEL conversion. All other Lightspeed services are available only after the conversion to RHEL.