boot/pxeboot broken in freebsd-12?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

boot/pxeboot broken in freebsd-12?

James Snow-2
Hello -stable,

We have a PXE environemt that builds FreeBSD-11 boxes. We've started
to dip our toes into the 12.x waters, but have had trouble getting
FreeBSD-12 to pxeboot. It would crash and burn like so:

    Startup error in /boot/lua/loader.lua:
    LUA ERROR: cannot open /boot/lua/loader.lua: device not configured

On a whim, I pulled the boot/pxeboot binary from our FreeBSD-11
environment into the new FreeBSD-12 environment, and PXE clients started
coming right up.

Is FreeBSD-12's pxeboot broken or have I missed something?


-Snow

_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: boot/pxeboot broken in freebsd-12?

Warner Losh
On Tue, Mar 19, 2019 at 4:53 PM James Snow <[hidden email]> wrote:

> Hello -stable,
>
> We have a PXE environemt that builds FreeBSD-11 boxes. We've started
> to dip our toes into the 12.x waters, but have had trouble getting
> FreeBSD-12 to pxeboot. It would crash and burn like so:
>
>     Startup error in /boot/lua/loader.lua:
>     LUA ERROR: cannot open /boot/lua/loader.lua: device not configured
>
> On a whim, I pulled the boot/pxeboot binary from our FreeBSD-11
> environment into the new FreeBSD-12 environment, and PXE clients started
> coming right up.
>
> Is FreeBSD-12's pxeboot broken or have I missed something?
>

You need to set the NFS mount point properly. I've been able to boot the
FreeBSD 12.0R installer with PXE (after fixing some issues downstream) and
had that error before I had dnsmasq answering queries properly:

dhcp-vendorclass=BIOS,PXEClient:Arch:00000
dhcp-userclass=FreeBSD,FreeBSD
dhcp-boot=net:BIOS,12.0R-i386-bootonly/boot/pxeboot,10.0.0.5,10.0.0.5
dhcp-boot=net:BIOS,12.0R-i386-bootonly/boot/pxeboot,10.0.0.5,10.0.0.5
dhcp-option=net:BIOS,option:root-path,10.0.0.5:/tftpboot/12.0R-i386-bootonly
dhcp-host=mr_noodle,set:mr_noodle
dhcp-boot=tag:mr_noodle,12.0R-i386-bootonly/boot/pxeboot,10.0.0.5,10.0.0.5
dhcp-option=tag:mr_noodle,option:root-path,10.0.0.5:
/tftpboot/12.0R-i386-bootonly
dhcp-boot=tag:FreeBSD,12.0R-i386-bootonly/boot/pxeboot,10.0.0.5,10.0.0.5
dhcp-option=tag:FreeBSD,option:root-path,10.0.0.5:
/tftpboot/12.0R-i386-bootonly

is what I used in dnsmasq to get the job done. It was likely overkill
(10.0.0.5 was the NFS, ftfpd and other servers for this exercise).

I had to (a) create a blank /etc/fstab in the mdconfig mounted image and
(b) create the proper /etc/resolv.conf in the F4 shell window just after I
hit commit to make things work. And then configure the network by hand
because the installer's config was wrong. So we've had some regression,
just not the regression you are seeing.

Warner
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: boot/pxeboot broken in freebsd-12?

James Snow-2
Thanks Warner...

On Tue, Mar 19, 2019 at 05:14:15PM -0600, Warner Losh wrote:

> You need to set the NFS mount point properly.

I think I have? The 12.0 environment was basically a copy of a
functioning 11.0 PXE environment, and 12 worked fine with 11's pxeboot.

Regardless, turns out neither 12 nor 13 will boot on my hardware under
UEFI, so PXE woes are less of a concern now. I'm running J1900s; they
seem to have a history.


-Snow

_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[hidden email]"