Subject: Re: Diskless/PXE booting
To: Matthias Drochner <M.Drochner@fz-juelich.de>
From: Daniel Carosone <dan@geek.com.au>
List: port-i386
Date: 01/13/2004 06:44:04
--svExV93C05KqedWb
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Mon, Jan 12, 2004 at 01:57:17PM +0100, Matthias Drochner wrote:
> It seems that the client tries to load a file "pxeboot_ia32.bin"
> from the NFS root as kernel.

Yeah, because it's been told to.

> I see 3 ways to fix it:
> 1. (easy, but not very flexible) Put "netbsd" as filename
>    into "dhcpd.conf" and symlink "pxeboot_ia32.bin" to "netbsd"
>    on your TFTP server.

Yuck. :)

> 2. Tell the DHCP server to pass "pxeboot_ia32.bin" to the ROM
>    only, and "netbsd" to the second stage loader:
>          if substring (option vendor-class-identifier, 0, 9) = "PXEClient" {
>              filename "pxeboot_ia32.bin";
>          } else {
>              option root-path "/export/mutt/root";
>              filename "nfs:netbsd";
>          }

Or just do it the way the docs suggest, without the if, as a separate stanza:

class "pxe-clients-ia32" {
        match if substring (option vendor-class-identifier, 0, 20)
                = "PXEClient:Arch:00000";
        filename "pxeboot_ia32.bin";
}

You might want this inside your "group" , as a peer of the "host", or
outside - I'm not sure and perhaps either works (I just wonder what
the effect of the deny unknown clients might be in this case).

> 3. Use a "pxeboot_ia32.bin" from -current (which ignores filenames
>    not starting with either "nfs:" or "tftp:").

Interesting info, thanks!

--
Dan.

--svExV93C05KqedWb
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)

iD8DBQFAAvkEEAVxvV4N66cRAkWWAJ4yqAiYyG5Txs83Xor8SOE6B/axiACglUyP
Xgj+Ky9gCr1wDOBLoxn49jA=
=5bqK
-----END PGP SIGNATURE-----

--svExV93C05KqedWb--