Migration to AWS fails with the error “Multiple different grub/menu.lst files found”
Challenge
Migration to AWS fails with the error “Multiple different grub/menu.lst files found”
Cause
An Ubuntu Cloud image can be configured so that it can boot using BIOS or UEFI alternatively. Such images have two files named boot/grub/grub.conf. One of them is in section #1 and the other in section #15. The first one is required to boot using BIOS, the second is for UEFI. AWS error message is related to the menu.lst file, but in fact, the problem is with grub.cfg.
Solution
1. Rename /boot/efi/boot/grub/grub.cfg into something like grub.cfg.bak. This will stop AWS from showing “multiple files” error.
2. Run sudo update-grub to ensure that disk configuration in GRUB config is correct. This will keep instances from getting stuck at booting stage in AWS.