I'm starting BHyVe virtual machine with UEFI firmware from ports using chyves and I have a problem with a boot loader misconfiguration on this particular VM.

I don't want to boot to OS in order to fix the problem with the boot loader. Instead I want to interrupt the boot process and use UEFI Shell (TianoCore?) to do all the necessary tasks before the boot loader or operating system.

The problem is that I don't know the way to invoke UEFI shell on startup in case of successful boot process and I was unable to find the information about it. Is there any way to invoke the UEFI shell in BHyVe?

  • AFAIK, bhyve UEFI firmware uses the UEFI default boot mechanism, i.e. it looks for the file \EFI\BOOT\boot64.efi in the EFI partition of your VM. If this file is not present you should end up in a EFI shell. – fpmurphy Jan 30 '19 at 5:47
  • @fpmurphy You're right, but in case the file is found I can't boot into shell again. :( – NIR Jan 31 '19 at 16:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.