-
-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to boot Debian (UEFI) #336
Comments
|
"BOOT FAILED. EFI Hard drive" |
|
Debian's EFI filename doesn't match what bhyve UEFI expects. The workaround is to rename the file. See https://blog.tkrn.io/freenas-11-boot-failed-efi-misc-device-fix-debian/ |
|
This sounds like it's related to efi variables. Many Linux distributions don't use the default filename for the EFI filename (for perfectly good reasons), and use EFI variables to store the correct path. Unfortunately bhyve loses this on restart as it doesn't store the efivars anywhere. Hopefully bhyve will fix this some day. It's been known for at least 18 months.
|
|
Issue still persists ... |
|
Type this in a shell when install is finished and before rebooting. I installed debian bullseye with gnome. Runs great. mkdir /target/boot/efi/EFI/BOOT/ got it from a howto link below copy of my .conf file |
|
Fixed in #449 with FreeBSD 14 |
Does this mean no additional config required in vm-bhyve to make Debian work? |
|
You only need "uefi_vars=yes" in the config file of the vm. |
|
Anyone getting debian booting with "uefi_vars"? |
|
Yes, do you have 14 release or higher? |
|
Got it. (FreeBSD 15 4594eb454891 / Debian 12.4.0 amd64) Followed instructions https://npulse.net/en/blog/125-bhyve-uefi-drops-into-efi-shell-linux-wont-boot-easy-workaround
Maybe |
|
uefi_vars works fine. If you can boot your os from the eufi bootmenu then uefi_vars"yes" should just work. But you do need to adjust the UEFI boot settings. Just choosing the right EFI file and booting it won't fix anything. You need to add the boot option, then the boot order and then you save those settings. Like in a regular bios. uefi_vars="yes" just makes sure those settings are actually saved for the next reboot. If you don't have that then the settings are not saved. If it doesn't work: FreeBSD 15 is beta software. It's not production ready. ;-) |
|
I misunderstood uefi_vars at first. Thanks! |
I was able to install it, and the first reboot went well (still running under "vm install ...")
But as soon as I try to start it "vm start..." it's not able to boot with UEFI.
This is my config:
loader=uefi
cpu=8
memory=2G
wired_memory="yes"
network0_type="virtio-net"
network0_switch="public"
disk0_type="ahci-hd"
disk0_name="disk0.img"
graphics="yes"
xhci_mouse="yes"
graphics_res="1024x768"
graphics_wait="yes"
uuid="4440a308-0f66-11ea-99b9-6045cb9a0b3b"
network0_mac="58:9c:fc:02:b6:8c"
The text was updated successfully, but these errors were encountered: