From owner-freebsd-questions@FreeBSD.ORG  Wed Dec  7 17:44:07 2005
Return-Path: <owner-freebsd-questions@FreeBSD.ORG>
X-Original-To: freebsd-questions@freebsd.org
Delivered-To: freebsd-questions@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 2D8F216A426
	for <freebsd-questions@freebsd.org>;
	Wed,  7 Dec 2005 17:44:06 +0000 (GMT) (envelope-from chris@xecu.net)
Received: from mss1.myactv.net (mss1.myactv.net [24.89.0.26])
	by mx1.FreeBSD.org (Postfix) with SMTP id 2ED7043D6B
	for <freebsd-questions@freebsd.org>;
	Wed,  7 Dec 2005 17:44:05 +0000 (GMT) (envelope-from chris@xecu.net)
Received: (qmail 10070 invoked from network); 7 Dec 2005 17:44:04 -0000
Received: from stat-153-127-112.myactv.net (HELO ?192.168.1.86?)
	(24.153.127.112)
	by new.mss1.myactv.net with SMTP; 7 Dec 2005 17:44:04 -0000
Message-ID: <43971F62.1030006@xecu.net>
Date: Wed, 07 Dec 2005 12:44:02 -0500
From: Christopher McGee <chris@xecu.net>
User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Erik Norgaard <norgaard@locolomo.org>
References: <43971551.30306@xecu.net> <439718D8.10704@locolomo.org>
In-Reply-To: <439718D8.10704@locolomo.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Cc: freebsd-questions@freebsd.org
Subject: Re: Pxeboot for nfs installation woes.
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
	<mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions>
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
	<mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 07 Dec 2005 17:44:07 -0000

Erik Norgaard wrote:

> Christopher McGee wrote:
>
>> Hi all, I have a lot of servers on order, so I want to be able to 
>> just network boot them as a jumpstart into the installation (which 
>> will then be scripted).  I am most of the way there.  I have tested 
>> my NFS shares and if I boot a boxe off a cd, I can do the nfs 
>> installation without fail.  I have setup pxeboot, and if I am far 
>> enough along that when I boot off the network, it tftp's the files it 
>> needs, boots through menus, loads the generic kernel, mounts an nfs 
>> root, then errors.  The errors are "exec /sbin/init: error 70".  One 
>> error for each attempt at an init file.  Then it gives me an "init: 
>> not found in path /sbin/init:/sbin/oinit......"  Then it panics and 
>> reboots.  There is so much I've done, I'm not sure what specifics 
>> anyone might need to offer some assistance.
>
>
> 1st: I have done it but with ftp install rather than nfs, see here:
>
>    http://www.daemonsecurity.com/pxe/
>
> I used no cd's to bootstrap or anything.
>
> 2nd: One of the first things done in the bootstrapping is to load the 
> loader.conf, in this you can override any settings of paths to the 
> init program.
>
> For installation usually sysinstall is used, which can be scripted - I 
> assume you are refering to this? - you can set the path with an option 
> in loader.conf, for example:
>
> init_path="/stand/sysinstall"
>
> The option may contain a colon separated list of files and they are 
> checked in order, the first found is run. Check the path to your init 
> or sysinstall on the nfs-client.
>
> Cheers, Erik
>
That is the how-to that I started with, however it jumps around a bit 
becaues they are also showing how to do diskless clients.  Basically I 
have this:

/tftpboot is a link to /usr/local/export/freebsd
I have put the entire cd in /usr/local/export/freebsd
copied pxeboot to /usr/local/export/freebsd
setup nfsserver:/usr/local/export/freebsd as the root_path on the dhcp 
server.  It appears to try to mount that share as the rootpath.
the nfsserver is exporting /usr -alldirs

After the kernel boots there is a line that says:  NFS ROOT: 
192.168.1.98:/usr/local/export/freebsd and then it errors.  If that is 
path to the root of the cd, this should work correct?

Chris