How do I resolve the "ClientError: BLSC-style GRUB found" error when I use VM Import/Export?

1 minute read
3

When I import a Red Hat Enterprise Linux 8 (RHEL 8) virtual machine (VM) image in VM Import/Export, I receive the "ClientError: BLSC-style GRUB found, but unable to detect default kernel" error. Or, I receive the error when I export a RHEL 8 Amazon Machine Image (AMI).

Resolution

By default, the GRUB_ENABLE_BLSCFG parameter in the /etc/default/grub file is set to true. When this parameter 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, set the parameter to false. Then, rebuild the grub configuration file.

Complete the following steps:

  1. Open the /etc/default/grub file with a text editor, such as vi.
  2. Set the GRUB_ENABLE_BLSCFG parameter to false.
  3. Run the following command to rebuild the grub config file:
    grub2-mkconfig -o /boot/grub2/grub.cfg
AWS OFFICIAL
AWS OFFICIALUpdated 6 months ago
2 Comments

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

AWS
replied 2 years ago

Article says to set this value to false

  • GRUB_ENABLE_BLSC

But my grub file has

  • GRUB_ENABLE_BLSCFG

I wasn't sure if I should add the first param or edit the one that was a close match. I set the close match "GRUB_ENABLE_BLSCFG" to false and now I'm able to export my ami

replied 8 months ago