From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 1 18:50:51 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 05670106566B for ; Thu, 1 Jul 2010 18:50:51 +0000 (UTC) (envelope-from shuvaev@physik.uni-wuerzburg.de) Received: from mailrelay.rz.uni-wuerzburg.de (mailrelay.rz.uni-wuerzburg.de [132.187.3.28]) by mx1.freebsd.org (Postfix) with ESMTP id AD55E8FC0C for ; Thu, 1 Jul 2010 18:50:50 +0000 (UTC) Received: from virusscan.mail (localhost [127.0.0.1]) by mailrelay.mail (Postfix) with ESMTP id 471AB5ACEE for ; Thu, 1 Jul 2010 20:50:49 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by virusscan.mail (Postfix) with ESMTP id 454A25ACC9 for ; Thu, 1 Jul 2010 20:50:49 +0200 (CEST) X-Virus-Scanned: by amavisd-new at uni-wuerzburg.de Received: from mail.physik.uni-wuerzburg.de (wthp192.physik.uni-wuerzburg.de [132.187.40.192]) by mailmaster.uni-wuerzburg.de (Postfix) with ESMTP id 244765CDD7 for ; Thu, 1 Jul 2010 20:50:49 +0200 (CEST) Received: from wep4035.physik.uni-wuerzburg.de ([132.187.37.35]) by mail.physik.uni-wuerzburg.de (Lotus Domino Release 8.5.1FP3) with ESMTP id 2010070120504784-282794 ; Thu, 1 Jul 2010 20:50:47 +0200 Date: Thu, 1 Jul 2010 20:50:47 +0200 From: Alexey Shuvaev To: FreeBSD-Hackers Message-ID: <20100701185047.GA66059@wep4035.physik.uni-wuerzburg.de> References: <1278006337.2438.90.camel@localhost.localdomain> MIME-Version: 1.0 In-Reply-To: <1278006337.2438.90.camel@localhost.localdomain> Organization: Universitaet Wuerzburg User-Agent: Mutt/1.5.20 (2009-06-14) X-MIMETrack: Itemize by SMTP Server on domino1/uni-wuerzburg(Release 8.5.1FP3|May 23, 2010) at 07/01/2010 08:50:48 PM, Serialize by Router on domino1/uni-wuerzburg(Release 8.5.1FP3|May 23, 2010) at 07/01/2010 08:50:48 PM, Serialize complete at 07/01/2010 08:50:48 PM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: Re: Set default pxeboot vfs.root.mountfrom to nfs? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jul 2010 18:50:51 -0000 On Thu, Jul 01, 2010 at 10:45:37AM -0700, Sean Bruno wrote: > On Tue, 2010-06-29 at 15:07 -0700, Garrett Cooper wrote: > > Hi Hackers, > > I realize this is a trivial patch, but it's a minor item that I > > found kind of fascinating (and not thoroughly documented elsewhere > > because many examples are booting mfsroots instead of directly booting > > off nfs roots), but I'm proposing that pxeboot default to > > vfs.root.mountfrom="nfs" to reduce the need for special case > > loader.conf files just for pxe booting (and thus, enable > > out-of-the-box netbooting ^o^!!!). > > Thoughts? > > Thanks! > > -Garrett > > I'll just give this a +1 and move on. > > sean > I don't quite understand the whole point of this patch. I have no "special" loader.conf files and the diskless test machine boots just fine. I suppose dhcp server sends vital information which is understood by pxeboot. On the dhcp/tftp/nfs server: > cat amd64/boot/loader.conf loader_logo="beastie" snd_hda_load="YES" ahci_load="YES" vboxdrv_load="YES" > cat amd64/conf/base/etc/fstab md /tmp mfs -s=128m,rw 0 0 linprocfs /compat/linux/proc linprocfs rw 0 0 > ls /tftpboot/ pxeboot > tail -20 /usr/local/etc/dhcpd.conf #} subnet X.X.X.0 netmask 255.255.255.0 { } group { next-server HOSTNAME; filename "pxeboot"; option root-path "HOSTNAME:/home/jails/amd64"; host HOST1 { fixed-address Y.Y.Y.Y; hardware ethernet xx:xx:xx:xx:xx:xx; } host HOST2 { fixed-address Z.Z.Z.Z; hardware ethernet yy:yy:yy:yy:yy:yy; } }