I have a running fedora 33 system that boots using EFI.
To test how to migrate (relocate) a system from hardware to VM I have done a clonezilla backup then did a restore of that image into my VM, but am having a boot problem.
When I try to boot from the installed image virtual HDD I get a black screen that hangs.
I can easily boot the from the live image and I verified the data was all restored properly but it just won’t boot from the disk.
I suspect the issue is the boot mode, since I am using QEMU/KVM vmm which I think only boots with MBR mode but the image was of an EFI booting machine.
So far I have tried (in a chrooted system)
- reinstalling the latest kernel
- running grub2-mkconfig twice, once with the output to /boot/efi/EFI/fedora/grub.cfg and once with the output to /boot/grub2/grub.cfg
- running dracut to recreate the initramfs file. I had to reinstall the 5.8.15 kernel used by the live image in order to use dracut.
- generated new UUIDs for each file system just in case the original which was copied from the original install interfered, then made the appropriate changes in /etc/fstab.
Nothing so far gets past the hang seen above.
I have no clue on how to switch the boot mode from EFI to MBR so I am stuck. A reinstall in MBR mode would negate a satisfactory migration from metal to VM.
I have also tried the same with VirtualBox but although I could get it to boot clonezilla I could not get VB to recognize the USB containing the image so I could not do the restore and that test was not successful either.