Este contenido no está disponible en el idioma seleccionado.
Converting Hosts to RHEL by Using Satellite Conversions Toolkit
Deploy the Satellite conversions toolkit and convert CentOS Linux 7 systems to supportable RHEL systems
Abstract
Providing Feedback on Red Hat Documentation Copiar enlaceEnlace copiado en el portapapeles!
We appreciate your feedback on our documentation. Let us know how we can improve it.
Use the Create Issue form in Red Hat Jira to provide your feedback. The Jira issue is created in the Red Hat Satellite Jira project, where you can track its progress.
Prerequisites
- Ensure you have registered a Red Hat account.
Procedure
- Click the following link: Create Issue. If Jira displays a login error, log in and proceed after you are redirected to the form.
- Complete the Summary and Description fields. In the Description field, include the documentation URL, chapter or section number, and a detailed description of the issue. Do not modify any other fields in the form.
- Click Create.
Chapter 1. Supported Conversion Paths Copiar enlaceEnlace copiado en el portapapeles!
The Satellite conversions toolkit supports the following conversion paths:
- From CentOS Linux 7 on the x86_64 CPU architecture to Red Hat Enterprise Linux 7
Chapter 2. Prerequisites Copiar enlaceEnlace copiado en el portapapeles!
Before you start the conversion process, ensure you have fulfilled the following preconditions:
- You have created a Red Hat account.
- You have purchased a Red Hat cloud subscription for the Satellite conversions toolkit.
Chapter 3. Getting the UUID of your Subscription Manifest Copiar enlaceEnlace copiado en el portapapeles!
You have to know the UUID of your subscription manifest, because you will need it to configure Satellite. If you have received the UUID from your Sales representative, you can skip this procedure.
Prerequisites
Ensure that a manifest has been created with your subscription allocated to the manifest. If the manifest already exists, you are aware of the name of the manifest and you can continue with the procedure below. Otherwise, follow these steps to create a manifest and allocate your subscription:
-
Create a subscription allocation with
Satellite 6.14as the type of subscription management application. For more information, see Creating a subscription allocation for a disconnected Satellite Server. - Add your subscription to the subscription allocation. For more information, see Adding subscriptions to a subscription allocation for a disconnected Satellite Server.
NoteEven if your Satellite is technically connected Satellite Server, you have to follow the procedures that are designated for disconnected Satellite Server. In this scenario, that is the required approach.
-
Create a subscription allocation with
Procedure
- Navigate to Services > Subscriptions and Spend > Manifests in your Red Hat Hybrid Cloud Console.
- Locate the manifest by its name and note the UUID of the manifest.
Chapter 4. Creating an Activation Key Copiar enlaceEnlace copiado en el portapapeles!
You have to create an activation key and enable required repositories for the Satellite conversions toolkit.
Procedure
- Navigate to Services > System Configuration > Activation Keys in your Red Hat Hybrid Cloud Console.
- Click Create activation key.
- Enter a name for your activation key.
- Click Next.
- On the Select Workload screen, select Latest release.
- Click Next.
- Optional: On the Select system purpose screen, select the role, SLA, and usage.
- Click Next.
- Review the information for the new activation key and click Create.
- Click View activation key.
- Click Add repositories.
Select the following repositories:
- Red Hat Satellite 6.14 for RHEL 8 x86_64 (RPMs)
- Red Hat Satellite Maintenance 6.14 for RHEL 8 x86_64 (RPMs)
- Red Hat Satellite Utils 6.14 for RHEL 8 x86_64 (RPMs)
- Click Save changes.
Chapter 5. Preparing a RHEL Machine with the Conversions Toolkit Copiar enlaceEnlace copiado en el portapapeles!
You can deploy the Satellite conversions toolkit by following one of these options:
- Section 5.1, “Preparing a Virtual Machine on Amazon Web Services”
- Section 5.2, “Preparing a Virtual Machine on Google Cloud Platform”
- Section 5.3, “Preparing a Virtual Machine on Microsoft Azure”
- Section 5.4, “Preparing a Virtual Machine on VMware vSphere”
- Section 5.5, “Preparing a QEMU Virtual Machine”
- Section 5.6, “Preparing a Bare-Metal Machine”
Review the hardware requirements for Red Hat Satellite. For more information, see System Requirements in Installing Satellite Server in a Connected Network Environment.
5.1. Preparing a Virtual Machine on Amazon Web Services Copiar enlaceEnlace copiado en el portapapeles!
If you want to deploy the conversions toolkit on a virtual machine on Amazon Web Services (AWS), you can build an image containing Red Hat Enterprise Linux 8 and repositories for the toolkit, and launch the image from the Red Hat Hybrid Cloud Console.
Prerequisites
- You have created an activation key. For more information, see Chapter 4, Creating an Activation Key.
Ensure that the firewall configuration of your cloud environment allows inbound and outbound traffic for the following ports:
- 67/udp
- 68/udp
- 80/tcp
- 443/tcp
- 8000/tcp
- 8140/tcp
- 8443/tcp
- 9090/tcp
Procedure
- Connect your AWS account to the Red Hat Hybrid Cloud Console. For more information, see Connecting an AWS account to the Red Hat Hybrid Cloud Console.
Build a RHEL image with the conversions toolkit.
- Navigate to Services > Inventories > Images in your Red Hat Hybrid Cloud Console.
- Click Create image.
-
On the Image output screen, from the Release menu, select
Red Hat Enterprise Linux (RHEL) 8. -
Ensure that the
x86_64architecture is selected. - Under Select target environments, select Amazon Web Services.
- Click Next.
- Under the Share method, ensure that Use an account configured from Sources. is selected.
- Select your AWS source by name.
- Click Next.
- On the Register screen, under the Registration method, ensure that Automatically register… is selected.
- Select your activation key.
- Click Next.
- On the File system configuration screen, ensure Use automatic partitioning is selected.
- Click Next.
- On the Additional Red Hat packages screen, click Next.
- On the Custom repositories screen, click Next.
- On the Details screen, enter a name for the image and, optionally, a description.
- Click Next.
- Review image details.
- Click Create image.
-
Launch the image on AWS. Red Hat recommends that you select
c3.4xlargeas the instance type. For more information, see Launching a customized RHEL image on AWS.
5.2. Preparing a Virtual Machine on Google Cloud Platform Copiar enlaceEnlace copiado en el portapapeles!
If you want to deploy the conversions toolkit on a virtual machine on Google Cloud Platform (GCP), you can build an image containing Red Hat Enterprise Linux 8 and repositories for the toolkit, and launch the image from the Red Hat Hybrid Cloud Console.
Prerequisites
- You have created an activation key. For more information, see Chapter 4, Creating an Activation Key.
Ensure that the firewall configuration of your cloud environment allows inbound and outbound traffic for the following ports:
- 67/udp
- 68/udp
- 80/tcp
- 443/tcp
- 8000/tcp
- 8140/tcp
- 8443/tcp
- 9090/tcp
Procedure
- Connect your GCP project to the Red Hat Hybrid Cloud Console. For more information, see Connecting GCP project to the Red Hat Hybrid Cloud Console.
Build a RHEL image with the conversions toolkit.
- Navigate to Services > Inventories > Images in your Red Hat Hybrid Cloud Console.
- Click Create image.
-
On the Image output screen, from the Release menu, select
Red Hat Enterprise Linux (RHEL) 8. -
Ensure that the
x86_64architecture is selected. - Under Select target environments, select Google Cloud Platform.
- Click Next.
- Under Select image sharing, ensure that Share image with Google account is selected.
- Select your account type and enter your GCP credentials.
- Click Next.
- On the Register screen, under the Registration method, ensure that Automatically register… is selected.
- Select your activation key.
- Click Next.
- On the File system configuration screen, ensure Use automatic partitioning is selected.
- Click Next.
- On the Additional Red Hat packages screen, click Next.
- On the Custom repositories screen, click Next.
- On the Details screen, enter a name for the image and, optionally, a description.
- Click Next.
- Review image details.
- Click Create image.
-
Launch the image on GCP. Red Hat recommends that you select
e2-standard-8as the machine type. For more information, see Launching a customized RHEL image on the Google Cloud Platform.
5.3. Preparing a Virtual Machine on Microsoft Azure Copiar enlaceEnlace copiado en el portapapeles!
If you want to deploy the conversions toolkit on a virtual machine on Microsoft Azure, you can build an image containing Red Hat Enterprise Linux 8 and repositories for the toolkit, and launch the image from the Red Hat Hybrid Cloud Console.
Prerequisites
- You have created an activation key. For more information, see Chapter 4, Creating an Activation Key.
Ensure that the firewall configuration of your cloud environment allows inbound and outbound traffic for the following ports:
- 67/udp
- 68/udp
- 80/tcp
- 443/tcp
- 8000/tcp
- 8140/tcp
- 8443/tcp
- 9090/tcp
Procedure
- Connect your Microsoft Azure account to the Red Hat Hybrid Cloud Console. For more information, see Connecting Microsoft Azure account to the Red Hat Hybrid Cloud Console.
Build a RHEL image with the conversions toolkit.
- Navigate to Services > Inventories > Images in your Red Hat Hybrid Cloud Console.
- Click Create image.
-
On the Image output screen, from the Release menu, select
Red Hat Enterprise Linux (RHEL) 8. -
Ensure that the
x86_64architecture is selected. - Under Select target environments, select Microsoft Azure.
- Click Next.
- Under the Share method, ensure that Use an account configured from Sources. is selected.
- Select your Microsoft Azure source by name and a resource group.
- Click Next.
- On the Register screen, under the Registration method, ensure that Automatically register… is selected.
- Select your activation key.
- Click Next.
-
On the File system configuration screen, select Manually configure partitions. Allocate at least 20 GB of space for the
/partition. - Click Next.
- On the Additional Red Hat packages screen, click Next.
- On the Custom repositories screen, click Next.
- On the Details screen, enter a name for the image and, optionally, a description.
- Click Next.
- Review image details.
- Click Create image.
-
Launch the image on Microsoft Azure. Red Hat recommends that you select
Standard_D12_v2as the instance size. For more information, see Launching a customized RHEL image on Microsoft Azure.
5.4. Preparing a Virtual Machine on VMware vSphere Copiar enlaceEnlace copiado en el portapapeles!
If you want to deploy the conversions toolkit on a virtual machine on VMware vSphere, you can build an image containing Red Hat Enterprise Linux 8 and repositories for the toolkit, and boot the image.
Prerequisites
- You have created an activation key. For more information, see Chapter 4, Creating an Activation Key.
Procedure
Build a RHEL image with the conversions toolkit.
- Navigate to Services > Inventories > Images in your Red Hat Hybrid Cloud Console.
- Click Create image.
-
On the Image output screen, from the Release menu, select
Red Hat Enterprise Linux (RHEL) 8. -
Ensure that the
x86_64architecture is selected. - Under Select target environments, select VMware vSphere.
- Select the required format for the image.
- Click Next.
- On the Register screen, under the Registration method, ensure that Automatically register… is selected.
- Select your activation key.
- Click Next.
-
On the File system configuration screen, select Manually configure partitions. Allocate at least 20 GB of space for the
/partition. - Click Next.
- On the Additional Red Hat packages screen, click Next.
- On the Custom repositories screen, click Next.
- On the Details screen, enter a name for the image and, optionally, a description.
- Click Next.
- Review image details.
- Click Create image.
- Download the built image from the Red Hat Hybrid Cloud Console.
- Boot the image in a virtual machine on VMware.
5.5. Preparing a QEMU Virtual Machine Copiar enlaceEnlace copiado en el portapapeles!
If you want to deploy the conversions toolkit on a QEMU virtual machine, you can build an image containing Red Hat Enterprise Linux 8 and repositories for the toolkit, and boot the image.
Prerequisites
- You have created an activation key. For more information, see Chapter 4, Creating an Activation Key.
Procedure
Build a RHEL image with the conversions toolkit.
- Navigate to Services > Inventories > Images in your Red Hat Hybrid Cloud Console.
- Click Create image.
-
On the Image output screen, from the Release menu, select
Red Hat Enterprise Linux (RHEL) 8. -
Ensure that the
x86_64architecture is selected. - Under Select target environments, select Virtualization - Guest image.
- Click Next.
- On the Register screen, under the Registration method, ensure that Automatically register… is selected.
- Select your activation key.
- Click Next.
- On the File system configuration screen, ensure Use automatic partitioning is selected.
- Click Next.
-
On the Additional Red Hat packages screen, search for the
firewalldpackage and add it to chosen packages. - Click Next.
- On the Custom repositories screen, click Next.
- On the Details screen, enter a name for the image and, optionally, a description.
- Click Next.
- Review image details.
- Click Create image.
- Download the built image from the Red Hat Hybrid Cloud Console.
- Boot the image in a virtual machine.
5.6. Preparing a Bare-Metal Machine Copiar enlaceEnlace copiado en el portapapeles!
If you want to deploy the conversions toolkit on a bare-metal machine, you can build an image containing Red Hat Enterprise Linux 8 and repositories for the toolkit, and boot the image.
Prerequisites
- You have created an activation key. For more information, see Chapter 4, Creating an Activation Key.
Procedure
Build a RHEL image with the conversions toolkit.
- Navigate to Services > Inventories > Images in your Red Hat Hybrid Cloud Console.
- Click Create image.
-
On the Image output screen, from the Release menu, select
Red Hat Enterprise Linux (RHEL) 8. -
Ensure that the
x86_64architecture is selected. - Under Select target environments, select Bare metal - Installer.
- Click Next.
- On the Register screen, under the Registration method, ensure that Automatically register… is selected.
- Select your activation key.
- Click Next.
- On the File system configuration screen, ensure Use automatic partitioning is selected.
- Click Next.
- On the Additional Red Hat packages screen, click Next.
- On the Custom repositories screen, click Next.
- On the Details screen, enter a name for the image and, optionally, a description.
- Click Next.
- Review image details.
- Click Create image.
- Download the built image from the Red Hat Hybrid Cloud Console.
- Boot the image on your bare-metal machine.
Chapter 6. Installing Satellite Copiar enlaceEnlace copiado en el portapapeles!
Run the conversions toolkit to install Satellite on your RHEL machine.
Prerequisites
- You have prepared a RHEL machine with the conversions toolkit. For more information, see Chapter 5, Preparing a RHEL Machine with the Conversions Toolkit.
Procedure
- Log in to the machine by using SSH.
- Switch to the root user.
If the root has no password, set a password:
# passwdInstall the Satellite conversions toolkit:
# dnf install satellite-convert2rhel-toolkitInstall Satellite by running the following command:
# satellite-convert2rhel-toolkit installUpon a successful installation, the script prints the following message:
Satellite has been successfully installed.-
Configure your DNS records to the Satellite hostname, for example in
/etc/hosts. Satellite is installed with thesatellite.internalhostname.
Chapter 7. Configuring Satellite for Conversions Copiar enlaceEnlace copiado en el portapapeles!
Run the conversions toolkit to configure Satellite for conversions.
Prerequisites
- You have got the UUID of your subscription manifest. For more information, see Chapter 3, Getting the UUID of your Subscription Manifest.
- You have successfully installed Satellite. For more information, see Chapter 6, Installing Satellite.
Procedure
- Log in to the Satellite machine by using SSH.
- Switch to the root user.
Configure Satellite by running the following command:
# satellite-convert2rhel-toolkit configure \ --manifest_uuid Your_Manifest_UUID \ --username 'Your_Red_Hat_Account_Username' \ --password 'Your_Red_Hat_Account_Password'Upon a successful configuration, the script prints the following message:
Satellite has been successfully configured.Log in to the Satellite web UI.
-
Enter the FQDN of your Satellite instance in your web browser:
https://satellite.internal -
Enter the default credentials:
admin/admin
-
Enter the FQDN of your Satellite instance in your web browser:
Even if Satellite configuration has finished, synchronization of repositories from the Red Hat CDN to Satellite is running in the background and will take some time to complete. You can verify the status of the synchronization in the Satellite web UI:
- Navigate to Monitor > Satellite Tasks > Tasks.
-
Click on the Running card. If you can see any
Synchronize repositorytasks, the synchronization is still running. - Optional: Click Refresh Data to update the status of the tasks.
Chapter 8. Registering Hosts for Conversion Copiar enlaceEnlace copiado en el portapapeles!
You have to register your hosts to Satellite before you can convert them to Red Hat Enterprise Linux. You have Satellite generate a registration command that you then execute on each host.
You can run the registration command in bulk by using a configuration management tool, such as Ansible or Puppet, to register a larger amount of hosts.
Prerequisites
- You have configured Satellite for conversions. For more information, see Chapter 7, Configuring Satellite for Conversions.
- Ensure that a time-synchronization tool is installed and enabled on your hosts. Satellite and all hosts must be synchronized with the same NTP server.
- Ensure that the SSL CA file of Satellite is distributed onto your hosts. You can find the location of the SSL CA file by navigating to Administer > Settings > Authentication and locating the value of the SSL CA file setting.
Procedure
-
Optional: Enable reporting to Red Hat Insights. The conversions toolkit disables new hosts from reporting to Insights by setting the global parameter
host_registration_insightstofalse. For more information, see Global Parameters for Registration in Managing Hosts. - In to the Satellite web UI, navigate to Hosts > Register Host.
-
In the Host group field, select the
CentOS 7 convertinghost group. -
In the Activation Keys field, ensure that the
convert2rhel_centos7activation key is present. - Click Generate.
- Copy the generated registration command.
- Log in to a host by using SSH and run the registration command as root.
Verification
- In the Satellite web UI, navigate to Hosts > All Hosts. You can find all hosts that you have registered to Satellite.
Chapter 9. Converting Hosts Copiar enlaceEnlace copiado en el portapapeles!
You can convert your hosts by using the remote execution feature in Satellite.
Prerequisites
- You have configured Satellite. For more information, see Chapter 7, Configuring Satellite for Conversions.
- You have registered your hosts to Satellite. For more information, see Chapter 8, Registering Hosts for Conversion.
Procedure
Run pre-conversion analysis on your hosts.
- In the Satellite web UI, navigate to Monitor > Jobs.
- Click Run Job.
-
In the Job category, select
Convert 2 RHEL. -
In the Job template, select
Convert2RHEL analyze. - Click Next.
-
In the target hosts filter, select Host groups and select the
CentOS 7 convertinghost group. - Click Run on selected hosts.
- Satellite displays the job invocation page.
- Click the name of a host to review the output of the job invocation. For more information, see Reviewing the pre-conversion analysis report in Converting from an RPM-based Linux distribution to RHEL.
- Resolve all issues that are blocking the conversions. You can use remote execution in Satellite to resolve configuration issues. For more information, see Executing a Remote Job in Managing Hosts.
Repeat this step until you resolve all blocking issues.
Run conversion on your hosts.
- In the Satellite web UI, navigate to Monitor > Jobs.
- Click Run Job.
-
In the Job category, select
Convert 2 RHEL. -
In the Job template, select
Convert to RHEL. - Click Next.
-
In the target hosts filter, select Host groups and select the
CentOS 7 convertinghost group. -
In the Restart field, select
yes. -
In the Activation Key field, select the
convert2rhel_rhel7activation key. - Click Run on selected hosts.
Verification
- In the Satellite web UI, navigate to Hosts > All Hosts.
-
Review the values in the OS column. The converted hosts appear with a
RHEL 7.xvalue.
Chapter 10. Next Steps After Conversion Copiar enlaceEnlace copiado en el portapapeles!
If you want to update your hosts, ensure to configure your hosts to consume content from the Red Hat CDN. You can do that by running the following command on your hosts:
# subscription-manager --unregister && \
subscription-manager register \
--activationkey Your_Activation_Key \
--org Your_Red_Hat_Organization_ID
You can run this command on all registered hosts by using the remote execution feature in Satellite. For more information, see Executing a Remote Job in Managing Hosts.
If you want to continue managing your hosts by using Satellite, please contact your Red Hat Sales representative.