Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Jun 2010 11:37:29 -0400 (EDT)
From:      Rick Macklem <rmacklem@uoguelph.ca>
To:        Daniel Braniss <danny@cs.huji.ac.il>
Cc:        freebsd-stable@freebsd.org, alexs@ulgsm.ru
Subject:   Re: diskless boot, nfs server behind router 
Message-ID:  <Pine.GSO.4.63.1006291130250.28831@muncher.cs.uoguelph.ca>
In-Reply-To: <E1OTFDh-000OrT-LR@kabab.cs.huji.ac.il>
References:  <20100625152027.GA78442@mail.ulgsm.ru>  <Pine.GSO.4.63.1006252008340.8512@muncher.cs.uoguelph.ca>  <20100626113418.GA80299@mail.ulgsm.ru> <Pine.GSO.4.63.1006261020100.15701@muncher.cs.uoguelph.ca> <20100628061601.GA51359@mail.ulgsm.ru> <20100628102703.GA78354@mail.ulgsm.ru> <Pine.GSO.4.63.1006281011180.8202@muncher.cs.uoguelph.ca> <E1OTFDh-000OrT-LR@kabab.cs.huji.ac.il>

next in thread | previous in thread | raw e-mail | index | archive | help


On Mon, 28 Jun 2010, Daniel Braniss wrote:

>>
>>
>> On Mon, 28 Jun 2010, alexs@ulgsm.ru wrote:
>>
>>>
>>>
>>> kernel built with:
>>> options     BOOTP          # Use BOOTP to obtain IP address/hostname
>>> options     BOOTP_NFSROOT  # NFS mount root file system using BOOTP info
>>> options     BOOTP_NFSV3
>>>
>> Try building a kernel without the above options, but with
>> options NFS_ROOT
>> specified. I think that's what most pxeboot users do and it was what
>> I had assumed when I looked at the code.
>>
>> If that doesn't fix the problem...I haven't got a solution for you, rick
>
> I use:
> options         BOOTP_NFSV3             # Use NFS v3 to NFS mount root
>

Here's the critical snippet of code:
#if defined(BOOTP_NFSROOT) && defined(BOOTP)
 	bootpc_init();		/* use bootp to get nfs_diskless filled in */
#elif defined(NFS_ROOT)
 	nfs_setup_diskless();
#endif

Just fyi, as you can see, unless you have BOOTP_NFSROOT and BOOTP options, 
it does things the NFS_ROOT way and basically ignores BOOTP_NFSV3.
(At least thats the way it looks to me. I've been tricked by convoluted
code before:-)

> but the best advice I can give, on the server run tcpdump/wireshark
> it is very enlighting.
>
Yes, that might tell us why the case with BOOTPxxx options doesn't
work through the gateway, although I'm afraid that the packets that
tell us why it doesn't get past the gateway might not be getting to
the server. I suggested ways to capture them in the other reply.

Btw, thanks for your help testing the NFSv3 pxeboot stuff among other
things you've tested, rick




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.63.1006291130250.28831>