Rocky Linux 9.3 fails to boot after V2V Conversion
Rocky Linux 9.3 fails to boot after V2V Conversion
V2V, VMware to Hyper-V
Rocky 9.3, EFI
SYMPTOMS


SOLUTION
-
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'
-
Boot from a Rocky installation disc (for example, CD #1 or DVD).

-
Select Troubleshooting -> Rescue a Rocky Linux System.

-
Chose 1 continue.


-
Make the root of your system the root of active system.
chroot /mnt/sysroot
-
Use the
dracutcommand to regenerate all initramfs.dracut --regenerate-all --force
-
Update the GRUB configuration.
grub2-mkconfig -o /boot/grub2/grub.cfg
-
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
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.