How do I resolve the “ClientError: BLSC-style GRUB found, but unable to detect default kernel” error when I use Import/Export?

1 minute read
2

When I use the ImportImage task to import a Red Hat Enterprise Linux 8 (RHEL 8) virtual machine (VM) image in AWs Import/Export, I receive an error. Or, I receive an error when I use the ExportImage task to export a RHEL 8 Amazon Machine Image (AMI) in Import/Export.

Resolution

By default, the GRUB_ENABLE_BLSC is set to true in the /etc/default/grub file. When this variable is set to true, GRUB2 uses blscfg files and entries from the /boot/loader file instead of menuentry entries in the grub.cfg file.

To resolve the ClientError: BLSC-style GRUB found error on import or export, set the GRUB_ENABLE_BLSC parameter to false in the /etc/default/grub file. Then, rebuild the grub configuration file.

1.    Open the /etc/default/grub file with a text editor, such as vi.

2.    Make sure that the GRUB_ENABLE_BLSC parameter is set to false.

3.    Run the following command to rebuild the grub config file:

$ grub2-mkconfig -o /boot/grub2/grub.cfg
AWS OFFICIAL
AWS OFFICIALUpdated 7 months ago
1 Comment

Thanks. I had this issue today and the solution provided here worked!

AWS
replied 5 months ago