Posts

Showing posts with the label UEFI

Booting bhyve Debian/Ubuntu Linux VM with UEFI Firmware on FreeBSD

Preparing the Host First, load the bhyve kernel module: # kldload vmm   Then, create a tap interface for the network device in the virtual machine to attach to. In order to for the network device to participate in the network, also create a bridge interface containing the tap interface and the physical interface as members. In this example, the physical interface is em0: # ifconfig tap0 create # sysctl net.link.tap.up_on_open=1 net.link.tap.up_on_open: 0 -> 1 # ifconfig bridge0 create # ifconfig bridge0 addm em0 addm tap0 # ifconfig bridge0 up Using ZFS with bhyve Guests A ZFS volume can be created by: # zfs create -V88G -o volmode=dev zroot/linuxdisk0   If you want to destroy ZFS file. # zfs list   For example the ZFS file you want to destroy is  win10disk0: # zfs destroy  zroot/linuxdisk0 Preparing for the Installation Download Debian/Ubuntu Linux iso. Install VNC client # pkg install tightvnc   In order to make use of the UEFI support in bhyve, ...

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

Image
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...