Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-38255

Azure Gen1 VMs upgraded from RHEL 7 > RHEL 8 > RHEL 9 fail to boot

    • None
    • Important
    • 1
    • rhel-sst-upgrades
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • Leapp: 9.6 & 10.0
    • None
    • None
    • x86_64
    • None

      What were you trying to do that didn't work?

      Upgrade from RHEL 8 to RHEL 9 after RHEL 7>8 upgrade on a Gen1 VM in Azure.

      Please provide the package NVR for which bug is seen:

      leapp-0.16.0-2.el8.noarch

      How reproducible:

      Every time a system is upgraded from RHEL 7>8>9

      Steps to reproduce

      1. Upgrade from RHEL 7 to RHEL 8
      2. Upgrade from RHEL 8 to RHEL 9

      Expected results

      System should be able to boot from the new RHEL 9 kernel

      Actual results

      The old RHEL 7 boot entries from /boot/efi/EFI/redhat/grub.cfg are copied to /boot/grub2/grub.cfg, so the grub menu only shows RHEL 7 kernels (which are no longer installed) and the system fails to boot. 

      Additional information

      Background:
      
      After upgrade from RHEL 7 > RHEL 8 (successful) > RHEL 9, server fails to boot and grub menu only shows RHEL 7 kernels even though there are no RHEL 7 kernels installed anymore.
      
      This affects Gen1 Azure VMs, meaning that they're set up with both /boot and /boot/efi, but it always boots in BIOS/Legacy mode (confirmed with Azure support that all Gen1 VMs always boot in Legacy/BIOS and this cannot change). 
      
      Suspect that because on UEFI systems in RHEL 9 the /boot/efi/EFI/redhat/grub.cfg is just a small file that loads /boot/grub2/grub.cfg, leapp is copying /boot/efi/EFI/redhat/grub.cfg to /boot/grub2/grub.cfg during the upgrade. Prior to the upgrade to RHEL 9 the content in this file isn't used during boot at all because it's in Legacy/BIOS boot mode. However I don't see anything in the leapp logs that indicates that this is happening.
      

       

       

              leapp-notifications leapp-notifications
              rhn-support-lagordon Kaitlin Gordon
              David Kubek David Kubek
              RHEL Upgrades QE Team RHEL Upgrades QE Team
              Miriam Portman Miriam Portman
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated: