Skip to content
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

mfsbsd img file not working in UEFI mode #110

Open
Gitrrrr opened this issue Jun 23, 2020 · 8 comments
Open

mfsbsd img file not working in UEFI mode #110

Gitrrrr opened this issue Jun 23, 2020 · 8 comments

Comments

@Gitrrrr
Copy link

Gitrrrr commented Jun 23, 2020

UEFI_Mfsbsd
mfsbsd boot is not working in UEFI mode. it is working fine for me in legacy mode using memdisk.
ipxe file

kernel http://$server/cobbler/ks_mirror/$distro/boot/loader.efi
initrd http://$server/cobbler/ks_mirror/$distro/boot/mfsbsd-amd64.img
boot
Note i tried this (#100) but not worked for me.

@victor-sudakov
Copy link

ipxe file

kernel http://$server/cobbler/ks_mirror/$distro/boot/loader.efi
initrd http://$server/cobbler/ks_mirror/$distro/boot/mfsbsd-amd64.img
boot

This is probably not the correct way to boot mfsBSD via iPXE. You should run
sanboot http://$server/cobbler/ks_mirror/$distro/boot/mfsbsd-amd64.img

because the sanboot command is designed for fetching hdd and iso images.

Anyway, loader.efi is not a kernel. If you want to use it, you probably should run chain loader.efi in your ipxe file.

and then loader.efi would fetch and load the kernel and mfsroot. But only with NFS.

@Gitrrrr
Copy link
Author

Gitrrrr commented Dec 25, 2020

@victor-sudakov Thanks for correcting me.

@victor-sudakov
Copy link

victor-sudakov commented Dec 26, 2020

@Gitrrrr look

The way it should work (though it does not):

  1. Create an msfBSD tar image cd mfsbsd && make tar
  2. tar -x -C /tftpboot -f mfsbsd-12.2-RELEASE-p1-amd64.tar
  3. make /tftpboot available over TFTP and over NFS
  4. cp /boot/loader.efi /tftpboot/
  5. Configure your DHCP server to provide next-server and root-path as 192.168.1.1:/tftpboot and "loader.efi" as bootfile.

loader.efi will be fetched to the host by the PXE boot, and should do the rest of the job. However in my case, it loads the kernel, tries to load mfsroot and then freezes, and then reboots in a minute or so. Or maybe it's not loader.efi that freezes, but "/mfsroot" and several seconds of rotating "/" is the last thing I can see.

IMG_20201226_143220

@victor-sudakov
Copy link

Can you please tell me how to enable some debug output to see what's happening after the "/mfsroot" message?

@tuxjz
Copy link

tuxjz commented Nov 5, 2023

I know it is old issue, but if someone find it useful, I have successfully booted mfsbsd-se-13.2-RELEASE-amd64.img using:
sanboot --no-describe mfsbsd-se-13.2-RELEASE-amd64.img on R720xd via UEFI iPXE boot.

@gopiio
Copy link

gopiio commented Jan 12, 2024

@tuxjz could you be able to share the working config?

@tuxjz
Copy link

tuxjz commented Jan 15, 2024

Can you please elaborate on what part of config you are interested in?
We use custom build iPXE, booted from TFTP, then load menu from HTTPS and then it is only sanboot with no-describe option as mentioned above:
sanboot --no-describe mfsbsd-se-13.2-RELEASE-amd64.img

@gopiio
Copy link

gopiio commented Jan 25, 2024

Can you please elaborate on what part of config you are interested in? We use custom build iPXE, booted from TFTP, then load menu from HTTPS and then it is only sanboot with no-describe option as mentioned above: sanboot --no-describe mfsbsd-se-13.2-RELEASE-amd64.img

Thanks @tuxjz . Finally, I managed to get it to work. I am not using ipxe. I was totally stuck on it. My PXE server is based on debian. I was using dnsmasq for DHCP and TFTP. My issue was I couldn't find a way to pass the dhcp-option root-path. In order to get it working, I had to disable dnsmasq and went with isc-dhcp-server, tftpd server and loaded loader.efi.....it worked!!! mfsbsd image worked out of the box, without any customization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants