Skip to content

Commit be2240c

Browse files
author
Mauricio
authored
Document RHEL 9 to RHEL 10.1 upgrade process
Added upgrade path information from RHEL 9 to RHEL 10.1 and updated prerequisites for the upgrade process.
1 parent 3b88a4b commit be2240c

1 file changed

Lines changed: 134 additions & 0 deletions

File tree

support/azure/virtual-machines/linux/leapp-upgrade-process-rhel-7-and-8.md

Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ For more information about performing a Leapp upgrade on custom, golden, or PAYG
2525

2626
- [Upgrading from RHEL 8 to RHEL 9](https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html/upgrading_from_rhel_8_to_rhel_9/index)
2727

28+
- [Upgrading from RHEL 9 to RHEL 10](https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/10/html/upgrading_from_rhel_9_to_rhel_10/index)
29+
2830
## Prerequisites
2931

3032
- Make a backup of the Linux VM or a snapshot of the OS disk.
@@ -141,6 +143,56 @@ You can perform an in-place upgrade from RHEL 8 to the following RHEL 9 minor ve
141143

142144
8. RHEL 9 no longer supports the legacy network-scripts package, which was deprecated in RHEL 8. Before upgrading, migrate your custom network scripts and create a NetworkManager dispatcher script to run your existing custom scripts. For more information, see [Migrating custom network scripts to NetworkManager dispatcher scripts](https://access.redhat.com/solutions/6900331).
143145

146+
### [RHEL 9.7 to RHEL 10.1](#tab/rhel9-rhel10)
147+
148+
You can perform an in-place upgrade from RHEL 9 to the following RHEL 10 minor versions.
149+
150+
| Source OS version| Target version |
151+
|------------------|--------------------|
152+
| RHEL 9.7 | RHEL 10.1 |
153+
154+
> [!NOTE]
155+
> For more information, see [Supported in-place upgrade paths for Red Hat Enterprise Linux](https://access.redhat.com/articles/4263361).
156+
157+
158+
> [!NOTE]
159+
> If you locked the VM to a minor release, remove the version lock. For more information, see [Switch a RHEL 9.x VM back to non-EUS](/azure/virtual-machines/workloads/redhat/redhat-rhui#switch-a-rhel-server-to-non-eus-repositories).
160+
161+
162+
163+
1. If you restricted packages to a specific version using the `dnf-command(versionlock)` command, remove the restriction:
164+
165+
```bash
166+
sudo dnf versionlock clear
167+
```
168+
169+
2. To ensure your system is ready for the upgrade, enable required RHUI repositories and install required RHUI packages:
170+
171+
```bash
172+
sudo dnf config-manager --set-enabled rhui-microsoft-azure-rhel9
173+
sudo dnf -y install rhui-azure-rhel9 leapp-rhui-azure
174+
```
175+
3. Install the Leapp utility:
176+
177+
```bash
178+
sudo dnf install leapp-upgrade
179+
```
180+
4. Update all packages to the latest RHEL 8 version:
181+
182+
```bash
183+
sudo dnf update
184+
```
185+
5. Reboot the VM:
186+
187+
```bash
188+
sudo reboot
189+
```
190+
6. To prevent upgrade failures, temporarily disable your antivirus software.
191+
192+
7. Before running the `leapp preupgrade` command, disable any configuration management systems with a client-server architecture (such as Puppet, Salt, or Chef) or an agentless architecture (such as Ansible).
193+
194+
8. 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[Performing post-upgrade](https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html-single/upgrading_from_rhel_8_to_rhel_9/index#performing-post-upgrade-tasks-on-the-rhel-9-system_upgrading-from-rhel-8-to-rhel-9)
195+
144196
---
145197

146198
## Leapp pre-upgrade process
@@ -168,6 +220,20 @@ sudo leapp preupgrade --target <target_os_version> --no-rhsm
168220
169221
Replace `<target_os_version>` with the target OS version, for example, `9.4` or `9.5`.
170222
223+
### [RHEL 9.7to RHEL 10.1](#tab/rhel9-rhel10)
224+
225+
> [!NOTE]
226+
> If you use the sudo command, you must use the `-r unconfined_r -t unconfined_t` options when entering each leapp command.
227+
228+
Run the following `leapp preupgrade` command:
229+
230+
```bash
231+
sudo leapp preupgrade --target <target_os_version> --no-rhsm
232+
```
233+
234+
Replace `<target_os_version>` with the target OS version, for example, `10.1`.
235+
236+
171237
---
172238
173239
Check the report located in the `/var/log/leapp/leapp-report.txt` file and resolve any identified issues manually. Some problems come with recommended fixes. Inhibitor issues must be resolved before you can proceed with the upgrade. For detailed information about the various issues that might appear in the report, see [Troubleshooting Red Hat OS upgrade issues](troubleshoot-red-hat-os-upgrade-issues.md).
@@ -229,6 +295,33 @@ Continue the Leapp upgrade process after the Leapp pre-upgrade report shows no e
229295
sudo reboot
230296
```
231297

298+
### [RHEL 9.7to RHEL 10.1](#tab/rhel9-rhel10)
299+
300+
301+
1. Run the following `leapp upgrade` command:
302+
303+
```bash
304+
sudo leapp upgrade --target <target_os_version> --no-rhsm
305+
```
306+
307+
> [!NOTE]
308+
> - Replace `<target_os_version>` with the target OS version, for example, `10.1`.
309+
> - If you want to perform an automatic reboot, which is needed during the upgrade process, add the `--reboot` option to the `leapp upgrade` command.
310+
311+
2. If the `--reboot` option wasn't included in the previous command, monitor the Serial Console. Once the upgrade process shows that a reboot is required to continue the process as follows, manually reboot the VM:
312+
313+
314+
```output
315+
====> * add_upgrade_boot_entry
316+
Add new boot entry for Leapp provided initramfs.
317+
A reboot is required to continue. Please reboot your system.
318+
```
319+
320+
```bash
321+
sudo reboot
322+
```
323+
324+
232325
---
233326
234327
Once the upgrade is finished, check if the system is in the desired state.
@@ -401,8 +494,49 @@ Once the VM is successfully upgraded, perform the following tasks:
401494
> [!IMPORTANT]
402495
> Removing this data might limit Microsoft and Red Hat Support's ability to investigate and troubleshoot post-upgrade problems.
403496
497+
498+
### [RHEL 9.7to RHEL 10.1](#tab/rhel9-rhel10)
499+
500+
501+
1. Delete all remaining Leapp packages, including the *`snactor`* package, from the exclude list in the */etc/dnf/dnf.conf* configuration file. These Leapp packages are installed during the in-place upgrade.
502+
503+
```bash
504+
sudo dnf config-manager --save --setopt exclude=''
505+
```
506+
507+
2. Remove all remaining RHEL 8 packages, including any remaining Leapp packages.
508+
509+
1. Locate remaining RHEL 8 packages.
510+
511+
```bash
512+
sudo rpm -qa | grep -e '\.el[789]' | grep -vE '^(gpg-pubkey|libmodulemd|katello-ca-consumer)' | sort
513+
```
514+
515+
2. Remove remaining RHEL 8 packages from your RHEL 9 VM:
516+
517+
```bash
518+
sudo dnf remove $(rpm -qa | grep \.el[789] | grep -vE 'gpg-pubkey|libmodulemd|katello-ca-consumer')
519+
```
520+
521+
3. Remove remaining Leapp dependency packages:
522+
523+
```bash
524+
sudo dnf remove leapp-deps-el10 leapp-repository-deps-el10
525+
```
526+
527+
4. (Optional) Remove all remaining upgrade-related data from the system:
528+
529+
```bash
530+
sudo rm -rf /var/log/leapp /root/tmp_leapp_py3 /var/lib/leapp
531+
```
532+
533+
> [!IMPORTANT]
534+
> Removing this data might limit Microsoft and Red Hat Support's ability to investigate and troubleshoot post-upgrade problems.
535+
536+
404537
---
405538

406539
[!INCLUDE [Third-party disclaimer](../../../includes/third-party-disclaimer.md)]
407540

408541
[!INCLUDE [Azure Help Support](../../../includes/azure-help-support.md)]
542+

0 commit comments

Comments
 (0)