Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Mar 2001 17:19:37 -0800 (PST)
From:      Matt Wilbur <matt@efs.org>
To:        freebsd-questions@freebsd.org
Subject:   PXE booting-unable to mount nfs root (long)
Message-ID:  <Pine.BSF.4.21.0103221714320.78490-100000@donut.efs.org>

next in thread | raw e-mail | index | archive | help
Hello,

(My apologies if you've already seen this.. it didn't seem to post.. 
and no.. I can't seem to shake the crack pipe today :-)

I've been working off and on on getting a cluster of 4.2-REL freebsd
systems to netboot, and am back to trying to get it running ..

I've dug through Alfred Perlstein and Matt Simerson's pages, but I'm
afraid I'm still doing something stupid that's preventing me from getting
an nfs root to mount.  I know, booting x86 systems is a nightmare, but
these systems will be running in different locked lab environments, and
swapping out one disk is MUCH better than swapping out N
(N=16/24/32) system disks ..

Currently I have one test system "crunch", the dhcp/boot server, and a
client system.  We're using 3com 3c905c NICs with their latest MBA flash
(4.30)..(the cluster nodes have fxp's, but i'm hoping that pxe is pxe
..).. Pxeboot loads, reads my loader.conf (where i have it loading
nfs,null,mfs,if_xl modules..), boots the kernel, then panics when it's
unable to nfs mount root.. yet.. my pxeboot is built using NFS to load the
kernel (that part works).. 

I've tried with a GENERIC kernel, as well as with BOOTP options (which
seemed to just make things worse..)  I've popped my laptop on the net,
retrieved an IP from crunches dhcpd, and mounted 192.168.100.1:/d1/newroot
to ensure that I didn't hose up /etc/exports or something... I've also
created a rootfs both by dump/restore of a working system, and by
installing from the 4.2R CD with a different DESTDIR.. same issues.  So
far I'm ignoring swap until I can boot. 
(Is this my stupid mistake?)

Here's what the failure looks like, my config files follow.  This was
typed, so I annoted the stuff I skipped ...:

CLIENT MAC ADDR: 00 01 03 26 2F C5
GUID: 161D2B96-98C0-11D4-AEFA-001083FDBE8C
CLIENT IP: 192.168.100.102 MASK: 255.255.255.0 DHCP IP: 192.168.100.254
PXE Loader 1.00

/*
BTX loads from pxeloader... 
*/

PXE version 2.1, real mode entry point @9d66:00f6
BIOS 639kB/129792kB available memory

FreeBSD/i386 bootstrap loader, Revision 0.8
(matt@crunch, Wed Mar 21 19:32:50 PST 2001)
pxe_open: server addr: 192.168.100.1
pxe_open: server path: /d1/newroot
pxe_open: gateway ip: 0.0.0.0
loading /boot/defaults/loader.conf
/*.... loads mfs, nfs, null, if_xl (and miibus) modules...
finds the kernel and boots ...
fails here:
..... */
afd0: <IOMEGA ZIP 250 ATAPI/51.G> rewritable drive at ata1 as slave
afd0: 239MB (489472 sectors), 239 cyls, 64 heads, 32 S/T, 512 B/S
afd0: 4096KB/s, transfer limit 64 blks, PIO3
afd0: Medium: Unknown media (0x0)
Mounting root from nfs:
panic: nfs_mountroot: socreate(0000): 43

syncing disks
done
(ka-boom)

dhcpd.conf(and no, we don't need no steenking gateway):
option domain-name "foo.com";
option broadcast-address 192.168.100.255;
option subnet-mask 255.255.255.0;
server-name crunch;
server-identifier 192.168.100.1;
default-lease-time 600;
max-lease-time 10800;
option root-path "/d1/newroot";
filename "pxeboot;
subnet 192.168.100.0 netmask 255.255.255.0 {
        next-server 192.168.100.1;
        range 192.168.100.100 192.168.100.200;
        }

crunch:/etc/exports:
/d1 -alldirs,maproot=0

crunch:/d1/newroot/boot/loader.conf:
# -- sysinstall generated deltas -- #
userconfig_script_load="YES"
nfs_load="YES"
mfs_load="YES"
if_xl_load="YES"
null_load="YES"
verbose_loading="YES"
boot_verbose="YES"

crunch:/d1/newroot/boot/loader.rc is the default loader..

Any ideas?
Thanks!
Matt Wilbur




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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