- Newest
- Most votes
- Most comments
Upgrading your AWS EC2 instance running Red Hat Enterprise Linux (RHEL) from version 8 to version 9 involves several steps. Below is a step-by-step guide to help you perform the upgrade:
Step 1: Prepare Your Instance Backup Your Data: Ensure you have a backup of your data. You can create a snapshot of your EBS volumes or use AMI to create an image of your instance. https://docs.aws.amazon.com/prescriptive-guidance/latest/backup-recovery/new-ebs-volume-backups.html
Check for Updates: Make sure your current RHEL 8 system is up to date.
sudo dnf update -y
sudo reboot
Step 2: Install the Upgrade Tool
- Install Leapp: Leapp is the tool used for upgrading RHEL system
sudo dnf install leapp-upgrade -y
Step 3: Perform Pre-Upgrade Checks
- Check Upgrade Inhibitors: Leapp performs pre-upgrade checks to identify any issues that might inhibit the upgrade.
sudo leapp preupgrade
Review Report: Review the pre-upgrade report located at /var/log/leapp/leapp-report.txt. Address any issues mentioned in the report.
Step 4: Execute the Upgrade
- Perform the Upgrade: Start the upgrade process. This will upgrade your system to RHEL 9
sudo leapp upgrade
Reboot: After the upgrade command finishes, reboot your instance.
sudo reboot
Step 5: Post-Upgrade Steps 1 Verify Upgrade: Check the RHEL version to ensure the upgrade was successful.
cat /etc/redhat-release
Update System: After the upgrade, update the system again to ensure all packages are up to date.
sudo dnf update -y
Additional Notes: Custom Configurations: If you have any custom configurations or third-party repositories, ensure they are compatible with RHEL 9. Downtime: Schedule a maintenance window, as the upgrade process will involve downtime. By following these steps, you should be able to upgrade your AWS EC2 instance running RHEL 8 to RHEL 9 smoothly.
Refrences
https://www.redhat.com/en/resources/leapp-explained-detail
Hi VIGNESH T
-
Upgrading an RHEL 8 system to RHEL 9 on AWS EC2 involves using the Leapp utility and following these steps:
-
Backup: Take a snapshot of your EC2 instance or create an AMI (Amazon Machine Image) as a fallback option in case of any issues during the upgrade.
-
Verify Current Version: Confirm your RHEL version using the command cat /etc/os-release.
Enable RHEL 9 Upgrade Repo:
Install the Leapp RHUI package for AWS:
sudo dnf config-manager --set-enabled rhui-client-config-server-8
Update System: Ensure your current system is fully updated:
sudo dnf upgrade -y
NOTE:
Red Hat subscription is recommended for a smooth upgrade process, especially for resolving dependencies. Refer to Red Hat documentation for upgrade without subscription if needed. Schedule the upgrade during a maintenance window as the process will cause downtime for the EC2 instance.
For More follow the link
This one also not working.
I want upgrade my os without subcription. please guide to fix.
[root@ip-172-100-1-100 ~]# sudo dnf config-manager --set-enabled rhui-client-config-server-8 Updating Subscription Management repositories. Unable to read consumer identity
This system is not registered with an entitlement server. You can use subscription-manager to register.
[root@ip-172-100-1-100 ~]#
leapp
should be available in the RHEL8 Appstream RHUI repo:
[root@ip-172-31-4-151 ~]# yum list leapp*
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered with an entitlement server. You can use subscription-manager to register.
Red Hat Enterprise Linux 8 for x86_64 - AppStream from RHUI (RPMs) 64 kB/s | 4.5 kB 00:00
Red Hat Enterprise Linux 8 for x86_64 - AppStream from RHUI (RPMs) 61 MB/s | 64 MB 00:01
Red Hat Enterprise Linux 8 for x86_64 - BaseOS from RHUI (RPMs) 63 kB/s | 4.1 kB 00:00
Red Hat Enterprise Linux 8 for x86_64 - BaseOS from RHUI (RPMs) 71 MB/s | 70 MB 00:00
Red Hat Ansible Engine 2 for RHEL 8 (RPMs) from RHUI 66 kB/s | 4.0 kB 00:00
RHUI Client Configuration Server 8 25 kB/s | 1.5 kB 00:00
RHUI Client Configuration Server 8 21 kB/s | 3.7 kB 00:00
Available Packages
leapp.noarch 0.17.0-1.el8 rhel-8-appstream-rhui-rpms
leapp-deps.noarch 0.17.0-1.el8 rhel-8-appstream-rhui-rpms
leapp-rhui-aws.noarch 1.0.11-1.el8 rhui-client-config-server-8
leapp-upgrade-el8toel9.noarch 0.20.0-2.el8 rhel-8-appstream-rhui-rpms
leapp-upgrade-el8toel9-deps.noarch 0.20.0-2.el8 rhel-8-appstream-rhui-rpms
[root@ip-172-31-4-151 ~]#
Red Hat Update Infrastructure (RHUI) is maintained by Red Hat in each AWS region, and your RHEL EC2 instance will have access to the repositories to get updates. This is included in the price you pay (whether that's on-demand or reserved instance) for your RHEL EC2.
For more info on the message This system is not registered with an entitlement server. You can use subscription-manager to register. see this document from Red Hat (needs a login) https://access.redhat.com/solutions/291813
And also the foot of this AWS Knowledge base document https://repost.aws/knowledge-center/ec2-yum-rhel-errors
Relevant content
- asked a year ago
- asked 2 years ago
- asked 5 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated a year ago
this one is not working facing this issue, I want to upgrade the OS without subscription.
[root@ip-172-100-1-100 ~]# sudo dnf install leapp-upgrade -y Updating Subscription Management repositories. Unable to read consumer identity
This system is not registered with an entitlement server. You can use subscription-manager to register.
RHUI Client Configuration Server 8 50 kB/s | 1.5 kB 00:00 All matches were filtered out by exclude filtering for argument: leapp-upgrade Error: Unable to find a match: leapp-upgrade [root@ip-172-100-1-100 ~]#
I want repository for red hat 8 for upgrade to 9
you will need to go through the redhat documentation :- Red Hat typically requires a valid subscription to access their repositories and tools, including leapp which is used for in-place upgrades.