Share via

have done inplace uplace upgrades form Redhat Enterprise Linux 7.9 to 8.10. After upgrade not able to bring back server to network. Not able to SSH to server

Jadwani, Prakash 0 Reputation points
2026-06-15T00:46:03.8166667+00:00

have done in-place upgrades form Redhat Enterprise Linux 7.9 to 8.10. After upgrade not able to bring back server to network. Not able to SSH to server. How to fix the issue.

Azure Virtual Machines
Azure Virtual Machines

An Azure service that is used to provision Windows and Linux virtual machines.


1 answer

Sort by: Most helpful
  1. AI answer

    2026-06-15T00:46:18.4633333+00:00

    After an in-place upgrade from RHEL 7.9 to 8.10 on an Azure VM, loss of SSH connectivity is typically due to OS-level issues (network, fstab, cgroups, packages) that occurred during the Leapp upgrade. Use the following approach:

    1. Access the VM for recovery
      Since SSH is unavailable, use Azure-side access methods:
      • Use Azure Serial Console for Linux to log in with a local account and troubleshoot from inside the VM.
      • If the VM is completely unbootable or stuck, restore from the snapshot/backup taken before the upgrade (recommended prerequisite for Leapp upgrades).
    2. Check for Leapp upgrade issues that break boot or mounts
      If the VM boots but networking/SSH is broken, first verify whether the Leapp upgrade hit a known issue:
      • Review the Leapp logs and report:
             sudo less /var/log/leapp/leapp-report.txt
             sudo less /var/log/leapp/leapp-upgrade.log
        
      • If the upgrade failed to mount a device during the process (common cause of boot/network issues), follow the documented fix:
        1. Restore the VM from the snapshot or backup taken before the upgrade.
        2. On the restored VM, check whether the UUID from the error exists and is referenced in /etc/fstab:
                  sudo blkid
                  sudo cat /etc/fstab
          
        3. Comment out or remove the problematic UUID entry in /etc/fstab.
        4. Run the Leapp upgrade again.
      • If the logs show Failed to mount n/a on /sys/fs/cgroup or cgroup2: Unknown parameter 'mode', remove the systemd.unified_cgroup_hierarchy=1 kernel parameter before re-running the upgrade:
        1. Restore the VM from snapshot/backup.
        2. Check for the parameter:
                  cat /proc/cmdline
                  sudo cat /etc/default/grub
          
        3. Remove systemd.unified_cgroup_hierarchy=1 from /etc/default/grub, regenerate grub config as appropriate for the distro, and reboot.
        4. Run the Leapp upgrade again.
    3. Fix conflicts that can break services after upgrade
      Some packages and custom libraries can cause Leapp to misconfigure the system, which may indirectly affect networking or SSH:
      • If Ansible packages were installed on RHEL 7.9, the in-place upgrade is unsupported. Before re-running the upgrade, remove Ansible:
             sudo yum remove ansible ansible-test
        
      • If there is a custom OpenSSL library path (for example /etc/ld.so.conf.d/openssl-1.1.1d.conf), it can cause library mismatches:
             sudo cat /etc/ld.so.conf.d/openssl-1.1.1d.conf
        
        If present, move it away and refresh the linker cache:
             sudo mv /etc/ld.so.conf.d/openssl-1.1.1d.conf /tmp
             sudo ldconfig
        
        Then retry the upgrade.
    4. Verify network and SSH configuration from Serial Console
      Once the VM boots cleanly after a corrected upgrade:
      • Confirm that network interfaces are up and have IP addresses (commands depend on RHEL 8 networking setup).
      • Ensure sshd is installed and enabled, and that firewall rules allow SSH (port 22).
      • Confirm Azure-side NSG rules and public IP configuration are correct (inbound rule for TCP 22, no higher-priority deny).
    5. If upgrade still fails
      If the Leapp upgrade from 7.9 to 8.10 repeatedly fails and leaves the VM in a bad state, use an intermediate target version:
      • Restore from snapshot/backup of RHEL 7.9.
      • Run:
             sudo leapp preupgrade --target 8.8 --no-rhsm
        
        Resolve all inhibitors in /var/log/leapp/leapp-report.txt.
      • Then run the actual upgrade to 8.8. After a successful intermediate upgrade, attempt an upgrade from 8.8 to 8.10 if needed.
    6. Future prevention
      Before repeating the upgrade on this or other VMs:
      • Follow the documented prepare steps for RHEL 7.9 → 8.x on Azure: enable the correct RHUI repos, install leapp-rhui-azure or leapp-rhui-azure-sap as applicable, install leapp-upgrade, update all packages, reboot, disable antivirus and configuration management tools, and then run leapp preupgrade and fix all reported issues before leapp upgrade.

    If the VM cannot be recovered even via Serial Console and no usable backup exists, the remaining option is to build a new RHEL 8.x VM and migrate workloads/data to it.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.