In the UEFI boot mode, you must modify the boot file. Otherwise, BMSs provisioned using the VM image may fail to start after they are forcibly restarted.
After the OS is installed, do not restart the VM immediately. Press Ctrl + Alt + F2 to enter the CLI and perform the operations in this section to modify the boot file.
Run the find / -name "boot/efi/EFI" command to locate the boot file. Replace boot/efi/EFI/BOOT/BOOTAA64.EFI with boot/efi/EFI/$os_version/grubaa64.efi.
For example, $os_version for CentOS 7.4 is centos. Replace boot/efi/EFI/BOOT/BOOTAA64.EFI with boot/efi/EFI/centos/grubaa64.efi.
The location of grubaa64.efi varies depending on the OS. For details, see Table 1.
Run the find / -name "boot/efi/EFI" command to locate the boot file. For example, the boot file of EulerOS 2.5 is located in /boot/efi/EFI. Replace /boot/efi/EFI/BOOT/BOOTX64.EFI with /boot/efi/EFI/$os_version/grubx64.efi.
For example, $os_version for EulerOS 2.5 is euleros. Replace /boot/efi/EFI/BOOT/BOOTX64.EFI with /boot/efi/EFI/euleros/grubx64.efi.
The location of grubx64.efi varies depending on the OS. For details, see Table 2.