I am currently trying to install nixos21.11 on real hardware. However, the installer crashes right after the graphical menu. The menu stays there forever, and if I press any button, I get thrown right back to the UEFI boot menu. No errors, not even a tiny bit of console output. I does not matter which option I choose, the behavior never changes. I have the following hardware:
I am using the IPMI web console to install, this works fine with other operating systems (fedora 34, 35 and also debian). I also tested the nixos iso (works perfectly fine inside a VM) and even the boot stick on another system.
After some more investigation - it can boot if I set the bios options to only allow legacy (BIOS mode).
However all other linux distros I have tried so far work fine in UEFI mode (I currently have fedora iot 35 installed). I can also use my nixos boot stick inside a UEFI virtual machine just fine. I am not sure where to even start debugging this. I do need UEFI for the NVMe drive.
I tried the 21.05 iso I still had laying around (is there an official place to get the older releases?). It has the exact same behaviour as the 21.11 iso sadly.
it certainly a commit! You’ll have to bisect the build , and generate installation iso’s until you find the culprit. It’s not going to be quick because you’ll have to boot on bare metal.
This is a chance the nixos has never worked on your motherboard bios and the other distro’s have either patched or worked around a quirky or broken bios.
We really need a bare metal build farm, to test all things like this, there’s only so much you can do with qemu virtual machines. It’s been done in the past, especially in the embedded space.
Without this hardware i can’t debug, as all my machines have been fine with UEFI so far.
I do have SoL on this motherboard.
Pressing “e” crashes/instantly closes the installer menu and brings me back to the uefi boot menu. Same if I try to press “t” for the text boot menu. The graphical menu never shows up in Serial mode, but otherwise everything behaves the same.
I think it might be the menu that is causing problems. It probably never gets as far as starting the actual boot sequence.
Anywas, I will probably will sell this board. Already had a lot of other problems with it (its very very picky with RAM and the IPMI software needs java versions that can only be found on archive sites at this point).
Since it sounds like the problem is in the GRUB boot menu, if you want to give it another try before you sell the board, you could try creating a custom live image that used systemd-boot instead of GRUB. (boot.loader.systemd-boot.enable = true;) But most other distros use GRUB as well, so even if that worked it wouldn’t explain why other distros worked for you but NixOS didn’t.
I just tried that (amazing how easy it is to build a custom ISO), same problem. However the boot screen looks absolutely identical. Is that one line enought to switch to systemd-boot?
boot.loader.systemd-boot.enable = true; for ISO won’t do anything. You can try doing this instead: NixOS 23.11 manual | Nix & NixOS
Use any working Linux LiveCD ISO and after installing nixos-install-tools follow the usual installation process. systemd-boot is used by default for UEFI installation, so if the issue is really with GRUB, it should work out-of-the-box
I assume that my board does not even support secure boot. It has no options whatsoever inside the UEFI that would allow me to enable/disable secure boot. I searched the manual very thoroughly because I also assumed the issues could be caused by secure boot, however I could not find anything.
I have the exact same problem with a Zimaboard and NixOS 22.11 USB key. The key works well on other computers, just on that one any option I select in the “NixOS boot selection” after the BIOS boot device selection prompt, immediately brings me back to the BIOS boot device selection prompt. I wasn’t able to figure out a way to extract an error message. I’ve tried changing a few options in the BIOS, but no luck. I’ve tried NixOS unstable, same.
A USB key with Debian or Arch Linux works just fine on the same miniPC. Did you manage to work around the problem in that thread?
Have just been through this issue with identical behaviour as described in OP.
What solved the issue for me (believe it or not) is booting the media from the BIOS boot selection menu.
So, if the NixOS install media is the default boot device - freezes at menu as described.
If the NixOS install media is manually selected after invoking the BIOS boot menu - works as intended.
Motherboard in question is a Chinese “X99” board with 6 core Xeon.
I realize this is a very old thread but I report the same behavior with 23.05 on a device I have (a GPD Win 3 handheld gaming computer). I second the call to develop some sort of automated testing for this.
I’m no longer in a position to test it but at one point I had a Windows installation on the internal drive, and the behavior I saw at that time was consistent with @ahen’s report about manual selection vs. default boot device. I actually managed to get into the installer once when I had it in that state, but, alas, did not succeed in completing the install.
I’m going to play around some more and report back.