Recover a crashed Linux 8.10 VM

If a RHEL/Oracle Linux 8 VM fails to boot with no bootloader found then try the following:

Virtual Machine – Log into vCenter, select VM and edit the VM settings

You will need to Boot into the Rescue mode.

  1. Mount the correct ISO from the datastore and boot into it.
  2. Select “Troubleshooting” and Rescue Mode
  3. select “1” to continue
  4. chroot /mnt/sysroot
  5. Make sure /etc/resolv.conf has a DNS server entry – use “nameserver 8.8.8.8” if needed

Setup Networking:

  1. ip link set dev ens192 up
  2. ip addr add 10.140.90.233/24 dev ens192
  3. ip route add default via 10.140.90.1
  4. ping google.com to verify network is up.

Re-install grub2-efi boot loader

  1. Check if shim-x64 package is installed (may not actually be installed)
  2. dnf install shim-x64
  3. dnf reinstall grub2-efi
  4. If shim -x64 WAS previously installed then “reinstall” it as well.
  5. exit
  6. exit

VM should boot into Grub2 menu, if not, investigate the config and you may need to run grub2-install -o /boot/efi/EFI/redhat/grub.cfg

-oOo-

You may also like...

Popular Posts