Modifying the Boot File (UEFI Boot Mode)
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.
ARM Image
Run the find / -name "boot/efi/EFI" command to locate the boot file path and replace the ARM image boot file boot/efi/EFI/$os_version/grubaa64.efi with boot/efi/EFI/BOOT/BOOTAA64.EFI.
For example, for CentOS 7.4 whose $os_version is centos, replace boot/efi/EFI/BOOT/BOOTAA64.EFI with boot/efi/EFI/centos/grubaa64.efi.

The path of the ARM image boot file grubaa64.efi varies depending on the OS. Table 1 lists the file paths for different OSs.
x86 Image
Run the find / -name "boot/efi/EFI" command to locate the boot file path, for example, /mnt/sysimage/boot/efi/EFI for EulerOS 2.5. Replace the x86 image boot file /mnt/sysimage/boot/efi/EFI/BOOT/BOOTX64.EFI with /mnt/sysimage/boot/efi/EFI/$os_version/grubx64.efi.
For example, for EulerOS 2.5 whose $os_version is euleros, replace /mnt/sysimage/boot/efi/EFI/BOOT/BOOTX64.EFI with /mnt/sysimage/boot/efi/EFI/euleros/grubx64.efi.

The path of the x86 image boot file grubx64.efi varies depending on the OS. Table 2 lists the file paths for different OSs.
| OS | File Path |
|---|---|
| CentOS | /mnt/sysimage/boot/efi/EFI/centos/grubx64.efi |
| EulerOS | /mnt/sysimage/boot/efi/EFI/euleros/grubx64.efi |
| SUSE | /mnt/sysimage/boot/efi/EFI/sles/grubx64.efi |
| Ubuntu | /mnt/sysimage/boot/efi/EFI/ubuntu/grubx64.efi |
| Red Hat | /mnt/sysimage/boot/efi/EFI/redhat/grubx64.efi |
Last Article: XenServer 7.1
Next Article: Configuring the VM Environment
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.