bhyve UEFI configuration does not save new entries; boot of VM not possible
I've installed Debian into a VM via an iso-Image.
After a reboot I only get to the bhyve UEFI Shell.
If I add the Debian EFI boot partition via the bhyve UEFI boot manager (after 'exit' from the shell) I can boot once. But after I shut down the VM and reboot, the entry is gone again and I have to readd it.
This happens every time I try to reboot the VM, or shut it down and restart. The added boot entry is never saved. I always have to go through the bhyve UEFI boot manager to add the entry again.
#6 Updated by Sascha Karsubke about 4 years ago
- File Screenshots FreeNAS VM Boot Problem.zip added
I’m sorry, but it doesn’t. I reinstalled Debian again with one of the standard full CD images, but nothing changed, though I’d been surprised if it had.
As long as the VM is running, or only restartet, it’s working.
As soon as I stop the VM the boot-loader forgets about the VM-HDD-Image (DISK Device) and I have to re-enter/re-select it in the UEFI boot manager and adjust the boot order.
I attached some screenshots. Maybe that helps getting the problem.
#9 Updated by Marcelo Araujo almost 4 years ago
- Status changed from Screened to Closed: Third party to resolve
There is a way to fix it doing a workaround inside your Debian VM.
The root cause of this problem is because Debian places the EFI firmware in a very strange location, CentOS and other UEFI compatible OS does it in the right way.
How you can 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
Basically you need to have this file in this path:
And you will be good to go!
Sorry my delay to check this issue.