From owner-freebsd-stable@FreeBSD.ORG Tue Jun 29 15:20:35 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 600171065673 for ; Tue, 29 Jun 2010 15:20:35 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-jnhn.mail.uoguelph.ca (esa-jnhn.mail.uoguelph.ca [131.104.91.44]) by mx1.freebsd.org (Postfix) with ESMTP id 0E7A58FC0A for ; Tue, 29 Jun 2010 15:20:34 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAMKrKUyDaFvI/2dsb2JhbACfQ3HAGYUkBJEb X-IronPort-AV: E=Sophos;i="4.53,505,1272859200"; d="scan'208";a="82116780" Received: from darling.cs.uoguelph.ca ([131.104.91.200]) by esa-jnhn-pri.mail.uoguelph.ca with ESMTP; 29 Jun 2010 11:20:32 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by darling.cs.uoguelph.ca (Postfix) with ESMTP id 2054594014A; Tue, 29 Jun 2010 11:20:34 -0400 (EDT) X-Virus-Scanned: amavisd-new at darling.cs.uoguelph.ca Received: from darling.cs.uoguelph.ca ([127.0.0.1]) by localhost (darling.cs.uoguelph.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2cUw6ejQbDVN; Tue, 29 Jun 2010 11:20:33 -0400 (EDT) Received: from muncher.cs.uoguelph.ca (muncher.cs.uoguelph.ca [131.104.91.102]) by darling.cs.uoguelph.ca (Postfix) with ESMTP id 4001B9400CF; Tue, 29 Jun 2010 11:20:33 -0400 (EDT) Received: from localhost (rmacklem@localhost) by muncher.cs.uoguelph.ca (8.11.7p3+Sun/8.11.6) with ESMTP id o5TFbTl00616; Tue, 29 Jun 2010 11:37:29 -0400 (EDT) X-Authentication-Warning: muncher.cs.uoguelph.ca: rmacklem owned process doing -bs Date: Tue, 29 Jun 2010 11:37:29 -0400 (EDT) From: Rick Macklem X-X-Sender: rmacklem@muncher.cs.uoguelph.ca To: Daniel Braniss In-Reply-To: Message-ID: References: <20100625152027.GA78442@mail.ulgsm.ru> <20100626113418.GA80299@mail.ulgsm.ru> <20100628061601.GA51359@mail.ulgsm.ru> <20100628102703.GA78354@mail.ulgsm.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-stable@freebsd.org, alexs@ulgsm.ru Subject: Re: diskless boot, nfs server behind router X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jun 2010 15:20:35 -0000 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