一、问题现象
Centos7采用UEFI启动方式,并将虚拟机迁移方式采用V2V方式从VMware迁移到H3C CAS KVM虚拟化平台,TianoCore无法启动提示:
Failed to open \EFI\BOOT\grubx64.efi - Not Found
Failed to load image \EFI\BOOT\grubx64.efi: Not Found
![](https://www.xxshell.com/wp-content/uploads/2023/05/faild.png?v=1684327194)
二、问题处理
这是因为KVM虚拟化平台有强制引导路径:/boot/efi/EFI/BOOT/grubx64.efi,我们只需要将引导程序复制到这个路径就可以。
1、对虚拟机发送Ctrl+Alt+del组合键,重启虚拟机,然后按ESC,进入虚拟机BIOS,选择Boot Maintenance Manager。
![](https://www.xxshell.com/wp-content/uploads/2023/05/fail2.png?v=1684327908)
2、选择Boot From File,然后选择引导的磁盘;
![](https://www.xxshell.com/wp-content/uploads/2023/05/fail3.png?v=1684328021)
![](https://www.xxshell.com/wp-content/uploads/2023/05/file4.png?v=1684328090)
3、选择EFI→centos→grubx64.efi,然后就可以看到Centos的引导界面了。
![](https://www.xxshell.com/wp-content/uploads/2023/05/5.png?v=1684328231)
![](https://www.xxshell.com/wp-content/uploads/2023/05/6.png?v=1684328262)
![](https://www.xxshell.com/wp-content/uploads/2023/05/7.png?v=1684328269)
![](https://www.xxshell.com/wp-content/uploads/2023/05/8.png?v=1684328369)
4、进入系统后将grubx64.efi文件当到/boot/efi/EFI/BOOT/grubx64.efi重启操作系统;
cd /boot/efi/EFI/centos/
cp grubx64.efi /boot/efi/EFI/BOOT/
![](https://www.xxshell.com/wp-content/uploads/2023/05/9-1024x238.png?v=1684328611)