BdsDex: failed to load Boot0001 "UEFI BHYVE SATA DISK BHYVE-OABE-20A5-E582" from PciRoot(0x0)/Pci (0x2, 0x0)/Stat(0x0,0xFFFF,0x0) : Not Found

When you start Debian Linux after you installed Debian with UEFI bhyve on FreeBSD and rebooted FreeBSD, you will get the error message as follows:

BdsDex: failed to load Boot0001 "UEFI BHYVE SATA DISK BHYVE-OABE-20A5-E582" from PciRoot(0x0)/Pci (0x2, 0x0)/Stat(0x0,0xFFFF,0x0) : Not Found

 

Description

It will try other way to start system, but it will failed finally. At the last, it will come to UEFI  Shell.

How to access the Debian Guest VM?
1. Enter exit get out of the UEFI Shell (you will come to BHYVE panel)
2. Choose Boot Maintenance Manager
3. (In the Boot Maintenace Manager ) Choose Boot From File
4. (In File Explorer) NO VOLUME LABEL, [PciRoot(0x0)/ Pci()]  press Enter
5. (Still in the File Explorer) Choose <EFI>
6. (Still in the File Explorer) Choose debian 
7. (Still in the File Explorer) Choose grubx64.efi
8. Then you will get into the system

How can you fix it:
1) Get access inside your Debian Guest VM.
2) as root: cd /boot/efi/
3) mkdir -p EFI/BOOT
4) cp debian/grubx64.efi EFI/BOOT/bootx64.efi
5) reboot

Basically you need to have this file in this path:
/boot/efi/EFI/BOOT/bootx64.efi

And you will be good to go!

 

Comments

Popular posts from this blog

FreeBSD安装SCIM中文输入法(csh/tcsh)

Install Shadowsocks-libev as Client on Debian Linux