Solved Debian install via Bhyve: BdsDxe: failed to load Boot0001 error

Hello, I successfully installed Debian by following the official bhyve documenation. I created a ZFS dataset, and used this to start bhyve:

Code:
# bhyve -c 4 -m 4G -w -H \
-s 0,hostbridge \
-s 3,ahci-cd,/path/to/debian-install.iso \
-s 4,virtio-blk,/dev/zvol/zroot/debianvm \
-s 5,virtio-net,tap0 \
-s 29,fbuf,tcp=0.0.0.0:5900,w=800,h=600,wait \
-s 30,xhci,tablet \
-s 31,lpc -l com1,stdio \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \
debianvm

The process was completed via TigerVNC, and the Debian installation went fine.

After the installation was complete, I removed the "ahci-cd" line to prevent booting from the CD:
Code:
-s 3,ahci-cd,/path/to/debian-install.iso \  <- I removed this

Everything works fine until I reboot my main FreeBSD machine running bhyve. After the reboot, when I connect via TigerVNC, I encounter this error, and the session becomes unresponsive.

Code:
BdsDxe: failed to load Boot0001 "UEFI Misc Device" from PciRoot(0x0)/Pci(0x4,0x0): Not Found

>>Start PXE over IPv4.

Does anyone have any hints or ideas about what might be causing this problem?
 
Yes. You don't set a efi var file. Copy /usr/local/share/ed2k-bhyve/BHYVE_UEFI_VARS.fd somewhere and use this file for your VM, like: -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd, "The_place_where_there_is_the_debian_File_UEFI_VARS"\

You need to reinstall debian.
 
Back
Top