Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 3. Preparing for the upgrade
To prevent issues after the upgrade and to ensure that your system is ready to be upgraded to the next major version of RHEL, complete all necessary preparation steps before upgrading.
You must perform the preparation steps described in Preparing a RHEL 9 system for the upgrade on all systems. In addition, on systems that are registered to Satellite Server, you must also perform the preparation steps described in Preparing a Satellite-registered system for the upgrade.
3.1. Preparing a RHEL 9 system for the upgrade Link kopierenLink in die Zwischenablage kopiert!
Before the in-place upgrade to RHEL 10, you must install upgrade-related files and prepare the system for the upgrade. Skipping these required steps could cause serious issues during the upgrade.
If you do not plan to use Red Hat Subscription Manager (RHSM) during the upgrade process, follow instructions in Performing an in-place upgrade without Red Hat Subscription Manager.
Prerequisites
- The system meets conditions listed in Planning an upgrade.
- If the system has been previously upgraded from RHEL 8 to RHEL 9, ensure that all required post-upgrade steps have been completed. For more information, see Performing post-upgrade tasks in the Upgrading from RHEL 8 to RHEL 9 guide.
- Optional: You have reviewed the best practices in The best practices and recommendations for performing RHEL Upgrade using Leapp Knowledgebase article.
- You have ensured that your system has been successfully registered to the Red Hat Content Delivery Network (CDN) or Red Hat Satellite by using RHSM.
- Satellite-registered systems only: You have completed the steps in Preparing a Satellite system for the upgrade to ensure that your system meets the requirements for the upgrade.
Procedure
-
Optional: Unmount non-system OS file systems that are not required for the upgrade and comment them out from the
/etc/fstabfile. For example, this includes file systems containing only data files unrelated to the system itself. This can reduce the amount of time needed for the upgrade process and prevent potential issues related to third-party applications that are not migrated properly during the upgrade by custom or third-party actors. If you are upgrading by using RHSM, verify that the system is registered to an account with Simple Content Access (SCA) enabled:
# subscription-manager status +-------------------------------------------+ System Status Details +-------------------------------------------+ Overall Status: Disabled Content Access Mode is set to Simple Content Access. This host has access to content, regardless of subscription status. System Purpose Status: DisabledEnsure you have appropriate repositories enabled. The following command enables the Base and AppStream repositories for the 64-bit Intel and AMD architectures; for other architectures, see RHEL 9 repositories.
# subscription-manager repos --enable rhel-9-for-x86_64-baseos-rpms --enable rhel-9-for-x86_64-appstream-rpmsNoteOptional: Enable the CodeReady Linux Builder (also known as Optional) or Supplementary repositories. For more information about the content of these repositories, see the Package manifest.
Set the system release version to the source OS version, for example:
# subscription-manager release --set <source_os_version>Replace <source_os_version> with the source OS version, for example
9.6.If you are upgrading by using Red Hat Update Infrastructure (RHUI) on a public cloud, set the expected system release version manually:
# rhui-set-release --set 9.7ImportantIf the
rhui-set-releasecommand is not available on your system, you can set the expected system release version by updating the/etc/dnf/vars/releasefile:# echo "9.7" > /etc/dnf/vars/releasever
If you use the
dnf versionlockplugin to lock packages to a specific version, clear the lock by running:# dnf versionlock clearIf you are upgrading by using Red Hat Update Infrastructure (RHUI) on a public cloud, enable required RHUI repositories and install required RHUI packages to ensure your system is ready for upgrade:
For AWS:
# dnf config-manager --set-enabled rhui-client-config-server-9 # dnf -y install leapp-rhui-awsFor Microsoft Azure:
# dnf config-manager --set-enabled rhui-microsoft-azure-rhel9 # dnf -y install rhui-azure-rhel8 leapp-rhui-azure- For Google Cloud, follow the Leapp RHUI packages for Google Cloud Knowledgebase article.
Ensure that you have up-to-date
leappandleapp-repositorypackages:-
RHEL 9.6: version
0.19.0of theleapppackage and version0.22.0of theleapp-repositorypackage. RHEL 9.7: version
0.20.0of theleapppackage and version0.23.0of theleapp-repositorypackage.The
leapp-repositorypackage contains theleapp-upgrade-el9toel10RPM package.NoteDisconnected systems only:download the following packages from the Red Hat Customer Portal:
-
leapp -
leapp-deps -
python3-leapp -
leapp-upgrade-el9toel10 -
leapp-upgrade-el9toel10-deps leapp-upgrade-el9toel10-fapolicyd-
Include only if you installed the
fapolicydRPM package on your system.
-
Include only if you installed the
-
-
RHEL 9.6: version
Install the
Leapputility:# dnf install leapp-upgradeUpdate all packages to the latest RHEL 9 version and reboot:
# dnf update # reboot-
Optional: Review, remediate, and then remove the
rpmnewandrpmsavefiles. If you use a configuration management system, ensure that it does not interfere with the in-place upgrade process:
-
If your configuration management system has a client-server architecture, such as Puppet, Salt, or Chef, disable the system before running the
leapp preupgradecommand. Do not enable the configuration management system until after the upgrade is complete to prevent issues during the upgrade. If your configuration management system has agentless architecture, do not execute the configuration and deployment file. For example, if your system has Ansible, do not execute an Ansible playbook during the upgrade.
WarningAutomation of the pre-upgrade and upgrade process by using a configuration management system is not supported by Red Hat. For more information, see Using configuration management systems to automate parts of the Leapp pre-upgrade and upgrade process on Red Hat Enterprise Linux.
-
If your configuration management system has a client-server architecture, such as Puppet, Salt, or Chef, disable the system before running the
-
If you are upgrading by using an ISO image, verify that the ISO image contains the target OS version, for example, RHEL 10.0, and is saved to a persistent local mount point to ensure that the
Leapputility can access the image throughout the upgrade process.
3.2. Preparing a Satellite-registered system for the upgrade Link kopierenLink in die Zwischenablage kopiert!
Before you can perform an in-place upgrade to RHEL 10 of a system that is registered to Satellite, you must prepare your system. Perform these steps are performed on the Satellite Server.
Users on Satellite systems must complete the preparatory steps described both in this procedure and in Preparing a RHEL 9 system for the upgrade.
Prerequisites
- You have administrative privileges for the Satellite Server.
- Satellite is on a version in full or maintenance support. For more information, see Red Hat Satellite Product Life Cycle and Which RHEL versions and architectures are supported as client systems managed by Red Hat Satellite server?
Procedure
- Import a subscription manifest with RHEL 9 repositories into Satellite Server. For more information, see the Managing Red Hat Subscriptions chapter in the Managing Content Guide for the particular version of Red Hat Satellite.
Enable and synchronize all required RHEL 9 and RHEL 10 repositories on the Satellite Server with the latest updates for the source and target OS versions. Required repositories must be available in the content view and enabled in the associated activation key.
NoteFor RHEL 10 repositories, enable the target OS version, for example, RHEL 10.0, of each repository. If you enable only the RHEL 10 version of the repositories, the in-place upgrade is inhibited.
For example, for the Intel architecture without an Extended Update Support (EUS) subscription, enable at minimum the following repositories:
Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs)
rhel-9-for-x86_64-appstream-rpms
x86_64 <source_os_version>
Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs)
rhel-9-for-x86_64-baseos-rpms
x86_64 <source_os_version>
Red Hat Enterprise Linux 10 for x86_64 - AppStream (RPMs)
rhel-10-for-x86_64-appstream-rpms
x86_64 <target_os_version>
Red Hat Enterprise Linux 10 for x86_64 - BaseOS (RPMs)
rhel-10-for-x86_64-baseos-rpms
x86_64 <target_os_version>
Replace <source_os_version> and <target_os_version> with the source OS version and target OS version respectively, for example, 9.6 and 10.0.
For other architectures, see RHEL 9 repositories and RHEL 10 repositories.
For more information, see the Importing Content chapter in the Managing Content Guide for the particular version of Red Hat Satellite.
Attach the content host to a content view containing the required RHEL 9 and RHEL 10 repositories.
For more information, see the Managing Content Views chapter in the Managing Content Guide for the particular version of Red Hat Satellite.
Verification
Verify that the correct RHEL 9 and RHEL 10 repositories have been added to the correct content view on Satellite Server.
- In the Satellite web UI, navigate to Content > Lifecycle > Content Views and click the name of the content view.
Click the Repositories tab and verify that the repositories appear as expected.
NoteYou can also verify that the repositories have been added to the content view by using the following commands:
# hammer repository list --search 'content_label ~ rhel-9' --content-view <content_view_name> --organization <organization> --lifecycle-environment <lifecycle_environment> # hammer repository list --search 'content_label ~ rhel-10' --content-view <content_view_name> --organization <organization> --lifecycle-environment <lifecycle_environment>Replace <content_view_name> with the name of the content view, <organization> with the organization, and <lifecycle_environement> with the name of the lifecycle environment..
Verify that the correct RHEL 10 repositories are enabled in the activation key associated with the content view:
- In Satellite web UI navigate to Content > Lifecycle > Activation Keys and click the name of the activation key.
-
Click the Repository Sets tab and verify that the statuses of the required repositories are
Enabled.
Verify that all expected RHEL 9 repositories are enabled in the host. For example:
# subscription-manager repos --list-enabled | grep "^Repo ID" Repo ID: rhel-9-for-x86_64-baseos-rpms Repo ID: rhel-9-for-x86_64-appstream-rpms
3.3. Configuring the upgrade from RHEL 9.7 to RHEL 10.1 with LiveMode Link kopierenLink in die Zwischenablage kopiert!
LiveMode is an alternative method of preparing and booting to the upgrade environment when upgrading from RHEL 9.7 to RHEL 10.1 on the 64-bit Intel architecture. LiveMode uses the standard booting process. The standard booting process can prevent or help diagnose certain problems that occur during the upgrade, such as issues related to the storage initialization. Note that LiveMode requires approximately 700 MB of additional disk space to create and store the upgrade environment before the reboot.
LiveMode is a Technology Preview feature only. Technology Preview features are not supported with Red Hat production service level agreements (SLAs) and might not be functionally complete. Red Hat does not recommend using them in production. These features provide early access to upcoming product features, enabling customers to test functionality and provide feedback during the development process.
For more information about the support scope of Red Hat Technology Preview features, see Technology Preview Features Support Scope.
When using LiveMode, you can also configure the upgrade experience beyond the default specifications. This can be useful when troubleshooting during the upgrade process or if you want to view the upgrade’s progress by using an SSH connection.
If you are using LiveMode without any modifications to the default settings, you do not need to complete any preparation steps for LiveMode before the upgrade. If you want to change the default specifications, you must create and modify a YAML file.
Procedure
-
If you want to modify LiveMode’s default specifications, create a YAML file in the
/etc/leapp/actor_conf.d/file, for examplelivemode.yaml. Enter the desired LiveMode configuration into the YAML file.
Expand Table 3.1. LiveMode configuration Configuration field Value type Default Description additional_packages
List[str]
[]
Additional packages to be installed into the upgrade image.
autostart_upgrade_after_reboot
bool
True
If set to
True, the upgrade starts automatically after the reboot. Otherwise, a manual trigger is required.capture_strace_info_into
str
''
If set to a non-empty string,
leappis executed understraceand results are stored within the provided file path.dracut_network
str
''
Dracut network arguments. Required if the `url_to_load_squashfs_`from option is set to a non-empty string.
setup_network_manager
bool
False
If set to
False, the Leapp tool enables Network Manager in the upgrade image.setup_opensshd_using_auth_keys
str
''
If set to a non-empty string,
opensshdaemon is set up within the upgrade image using the provided authorized keys file.setup_passwordless_root
bool
False
If set to
True, the root account of the upgrade image has an empty password. Use with caution.squashfs_image_path
str
/var/lib/leapp/live-upgrade.img
Desired location of the upgrade image of the minimal target system.
url_to_load_squashfs_image_from
str
''
URL of the desired upgrade image.
The following is an example of a
/etc/leapp/actor_conf.d/livemode.yamlfile:livemode: additional_packages : [ vim ] autostart_upgrade_after_reboot : false setup_network_manager : true setup_opensshd_using_auth_keys : /root/.ssh/authorized_keysThe example file results in the following actions:
-
The Leapp utility installs the
vimpackage into the upgrade environment. - The upgrade does not start automatically after reboot. You must manually restart it. This allows you to manually inspect the system and verify that the upgrade finished as expected and the system is ready for use before starting.
- The Leapp utility attempts to enable NetworkManager inside the upgrade environment by using the source system’s network profiles.
-
The Leapp utility enables the
opensshdservice. If the system establishes network access successfully, you can use SSH to log in to the upgrade environment by using the root account and interact with the system.
-
The Leapp utility installs the