From owner-freebsd-net@FreeBSD.ORG Sat Jun 28 20:53:29 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C886660A for ; Sat, 28 Jun 2014 20:53:29 +0000 (UTC) Received: from esa-annu.net.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by mx1.freebsd.org (Postfix) with ESMTP id 8B6332731 for ; Sat, 28 Jun 2014 20:53:28 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgEFAMIqr1ODaFve/2dsb2JhbABag19agm6oFAEBAQEBAQaSMIZtSQoBgR91hAMBAQEDAQEBASArIAsFFhgCAg0ZAikBCSYGCAcEARoCBIgNAwkIDahalj8XhkgXgSuEOYhQAQEbNAeCd4FMBZdzhDCSNYNeIS8BAQSBBTk X-IronPort-AV: E=Sophos;i="5.01,568,1400040000"; d="scan'208";a="136360767" Received: from muskoka.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.222]) by esa-annu.net.uoguelph.ca with ESMTP; 28 Jun 2014 16:52:57 -0400 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id D3B5FB40FD; Sat, 28 Jun 2014 16:52:57 -0400 (EDT) Date: Sat, 28 Jun 2014 16:52:57 -0400 (EDT) From: Rick Macklem To: Beeblebrox Message-ID: <1186767237.5285620.1403988777812.JavaMail.root@uoguelph.ca> In-Reply-To: <1403964739522-5924518.post@n5.nabble.com> Subject: Re: PXE boot using Grub bootloader fails at mountroot; no PXE devs. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.91.203] X-Mailer: Zimbra 7.2.6_GA_2926 (ZimbraWebClient - FF3.0 (Win)/7.2.6_GA_2926) Cc: freebsd-net@freebsd.org X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Jun 2014 20:53:30 -0000 Beeblebrox wrote: > I'm using grub2 as the pxe bootloader rather than BTX's pxeboot. > > I get Grub to load kernel and all necessary modules and boot. It goes > as far > as mountroot> and stops. "?" fails to show any pxe devices. If I > recall > correctly, when booting from BTX and upon hitting a mountroot > problem, "?" > is able to show pxe device. The kernel modules {nfscl.ko, > nfsclient.ko, > nfscommon.ko} are loaded through grub.cfg kfreebsd_module entries. > Using the > BTX pxeboot system boots and mounts everything normally. > > At this point, I could only think of two possibilities: A) the > grub.cfg > entry is wrong (which I don't think so since as stated above > mountroot> "?" > shows no available pxe devices). Or B) the more plausible reason is > that I > need to load some other module which will make the pxe devices become > visible to the mountroot process. Grub's normal solution to this > problem > (pxechainloader $path/pxeboot) has been broken for some time > unfortunately. > > I'd like to make sure that I am loading all the necessary modules > through > grub.cfg (for diskless clients) before heading over to the grub mail > list > with this problem. Server-side loaded modules: {nfsd.ko, nfslockd.ko, > nfsserver.ko, nfs_common.ko, acl_nfs4.ko} within kernel: {nfscommon, > nfssvc, > nfs, nfscl, nfslock}. > I suspect it is linked into the kernel, but you'll need krpc.ko as well. Btw, if your kernel is built with "options NFS_ROOT", it expects the structure called nfsv3_diskless to be filled in (FreeBSD's pxeboot does this). If nfsv3_diskless isn't being filled in by pxeboot or similar, you need to build your kernel with: options BOOTP options BOOTP_NFSROOT so that the kernel will use dhcp and NFS to acquire the information instead of expecting it to be filled into nfsv3_diskless. (The code that this uses is in sys/nfs/bootp_subr.c.) rick > As a side comment, under BTX as long as one has "option root-path" in > dhcpd.conf and a correct fsatb entry for "/", none of the below are > needed > in loader.conf - system is able to boot without these and mount ro > (from > fstab): > boot.nfsroot.server="192.168.2.1" > boot.nfsroot.path="/data/amd6" > vfs.root.mountfrom="nfs:192.168.2.1:/data/amd64" > vfs.root.mountfrom="nfs" > > Regards. > > > > ----- > FreeBSD-11-current_amd64_root-on-zfs_RadeonKMS > -- > View this message in context: > http://freebsd.1045724.n5.nabble.com/PXE-boot-using-Grub-bootloader-fails-at-mountroot-no-PXE-devs-tp5924518.html > Sent from the freebsd-net mailing list archive at Nabble.com. > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to > "freebsd-net-unsubscribe@freebsd.org" >