Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Mar 2019 17:21:41 +0000
From:      Lucian Carata <lc525@cam.ac.uk>
To:        freebsd-hackers@freebsd.org
Subject:   netboot from NFS in an UEFI environment
Message-ID:  <2fafa521-0d34-522b-9a39-0689efbd7f3a@cam.ac.uk>

next in thread | raw e-mail | index | archive | help
I am setting a number of x86_64 FreeBSD machines for running experiments and would like to netboot FreeBSD from an UEFI environment. 

On UEFI, the configuration I have at the moment allows me to pick whether to run iPXE or boot from local drives, depending on choices made centrally (with configuration management tools). When booting iPXE, I would like to chainload a bootloader that netboots a FreeBSD image from NFS. Unfortunatelly, being in UEFI mode, I can't just use boot/pxeboot. 

I've tried chainloading boot/loader.efi but without success. The loader starts but doesn't make much progress:

Setting currdev to net0:
Setting currdev to net0:
Failed to find bootable partition
Press any key to interrupt reboot in 3 seconds
/
can't load 'kernel'

Looking through the source code (stand/efi/loader/main.c) I see that there is an attempt to list devices, with a comment saying "this handle list is only for netboot" -- which shows that at least netbooting on UEFI has been considered, but I'm not sure how to pass the path of the NFS root so that the boot continues.

Any ideas on how to do this (or something equivalent) would be greatly appreciated.

===
Lucian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2fafa521-0d34-522b-9a39-0689efbd7f3a>