Hi all . Please tell me what this error is and how to boot the system?
(https://files.catbox.moe/cyhj7k.png)
Are you using the secure boot firmware file? I can replicate the error by using the /usr/share/OVMF/OVMF_CODE_4M.secboot.fd file.
Setting it to /usr/share/OVMF/OVMF_CODE_4M.fd works correctly. Also, are you using a GUI for managing the virtual machine?
Hello MaxLPM . Thank you for your answer .
After searching for a solution on the Internet for a long time, I found the answer, here https://record99.blogspot.com/2021/12/bdsdex-failed-to-load-boot0001-uefi-bhyve-sata-disk.html
but I have not yet figured out how to copy bootx64.efi during system installation so that this error does not appear after the system starts.
As for loading, I use this command after which I received the error from the screenshot
$ qemu-system-x86_64 -bios /usr/share/ovmf/OVMF.fd -cdrom artix-base-openrc-20230814-x86_64.iso -m 2048 -smp 2 -enable-kvm
Hm, weird, the qemu command you mentioned works fine on my machine.
What command did you use to install the bootloader?
I didn't install the bootloader from the repository, I built Grub that supports argon2id, you can see it here https://forum.artixlinux.org/index.php/topic,6789.30.html
I had no problems installing the bootloader, I used the command:
sh-5.2# grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub /dev/vda --recheck
The grub-install command you provided works fine for me, even though it doesn't create the bootx64.efi file. Also, I'm pretty sure that /dev/vda gets ignored if --efi-directory is used.
Maybe try running
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub --removable
From the Arch wiki (https://wiki.archlinux.org/title/GRUB#Default/fallback_boot_path):
Edit: just checked, adding --removable creates the /boot/efi/EFI/BOOT/BOOTX64.EFI file, maybe this is what you're looking for?
Hello MaxLPM. Thanks for your answer and help. Your advice worked 100%)) Yes, indeed, after adding
--removable
BOOTX64.EFI was created, I booted again, there was no error and I need to enter a password. After entering the password, the system booted!
I will also make a correction to my test instructions https://forum.artixlinux.org/index.php/topic,6789.30.html
I'll write it here to help others:
# mount /dev/sda1 /boot/efi
# grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub --removable