Rocky Linux 9.3 fails to boot after V2V Conversion

V2V, VMware to Hyper-V
Rocky 9.3, EFI

SYMPTOMS


SOLUTION

  1. Set the CD/DVD as the first boot device.

    Get-SCVirtualMachine -VMHost 'HYPER-V-2.sj.com' -Name 'Rocky' | Set-SCVirtualMachine -FirstBootDevice 'SCSI,0,1'
  2. Boot from a Rocky installation disc (for example, CD #1 or DVD).

  3. Select Troubleshooting -> Rescue a Rocky Linux System.

  4. Chose 1 continue.


  5. Make the root of your system the root of active system.

    chroot /mnt/sysroot
  6. Use the dracut command to regenerate all initramfs.

    dracut --regenerate-all --force
  7. Update the GRUB configuration.

    grub2-mkconfig -o /boot/grub2/grub.cfg
  8. Exit chroot, reboot the system to apply the changes.

    exit
    reboot

REFERENCE

Boot into Rescue Mode and Enable SSH on Rocky Linux
Rocky 9.x Rebuilding Initial Ramdisk (initrd/initramfs) to solve boot issue