CentOS installed on UEFI system does not boot after bare metal recovery


OS does not boot because there is not boot entry when bare metal recovery is done.

In the UEFI system, a boot entry is created in the NVRAM of each machine.
Therefore, if the configuration changes, booting can not be done because there is no boot entry.

Steps to reproduce:

1) Create virtual machine A.
2) Install CentOS7.x on virtual machine A.
3) Back up the virtual machine A.
4) Create virtual machine B.
5) Perform Bare Metal Recovery on Virtual Machine B.
6) Virtual machine B will not boot.

This is a symptom peculiar to UEFI, not a problem on the AIP side.
If only HDD is replaced and bare metal recovery, OS can be booted.

The OS which does not boot after bare metal recovery is as follows.

- CentOS6.x
- RHEL6.x
- CentOS7.5 or earlier

*RHEL7.x does creates a boot entry automatically after bare metal recovery,  so no workaround is necessary.


1) Boot CentOSBE and check the partition where the entry is stored after bare metal recovery.

# parted -l
Model: Msft Virtual Disk (scsi)
Disk /dev/sda: 17.2GB
Sector size (logical/physical): 512B/4096B Partition Table: gpt Disk Flags:

Number  Start   End     Size    File system  Name                  Flags
 1      1049kB  211MB   210MB   fat16        EFI System Partition  boot
 2      211MB   1285MB  1074MB  xfs
 3      1285MB  17.2GB  15.9GB  

In this case, there is an EFI partition on /dev/sda1.

2) Execute the following command to create a boot entry.

For CentOS7.5 or earlier

# efibootmgr --create --label CentOS --disk /dev/sda1 --loader /EFI/centos/shimx64.efi

For CentOS6.x / RHEL 6.x

# efibootmgr --create --label CentOS --disk /dev/sda1 --loader /EFI/redhat/grub.efi

3) Reboot CentOSBE and boot the OS.

Target Products

- ActiveImage Protector 2016 R2 / 2018 for Linux

Tags: NJKB-97
Last update:
2020-04-03 06:32
Average rating:0 (0 Votes)

You cannot comment on this entry

Chuck Norris has counted to infinity. Twice.