Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Apr 2002 20:42:14 -0600 (CST)
From:      Eduardo Viruena Silva <mrspock@esfm.ipn.mx>
To:        <freebsd-questions@freebsd.org>
Subject:   Error while booting in diskless system.
Message-ID:  <20020406202443.R62960-100000@Gina.esfm.ipn.mx>

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

Hello FreeBSD gurus!

I have a problem with a diskless system.
I'm using FreeBSD 4.5-RELEASE, please take a look:


1. I made a new directory where the diskless root file system
   is going to be installed.

	mkdir -p /usr/diskless/rootfs


2. With /stand/sysinstall, I made:

	in Options:

		InstallRoot ->  /usr/diskless/rootfs

	in Configure/Distribution:

		Distributions	->      bin
					crypto
					src/sys

   and let the installation start.

3. Diskless Kernel configuration:

	chroot /usr/diskless/rootfs
	cd /sys/i386/conf
	config diskless
	cd ../../compile/diskless
	make depend
	make
	make install
	exit

   diskless configuration include:

	options MFS
	options BOOTP
	options BOOTP_COMPAT
	options BOOTP_NFSROOT

   and it is the same that the one I'm working with.



4. Diskless /etc configuration

	chroot /usr/diskless/rootfs
	cd /
	passwd root
	   [change root's password]
	newaliases

    in /etc/hosts, I added a line with the sever IP address:

	echo 192.168.123.176  server >>  /etc/hosts

    in /etc/fstab, add two lines to mount / and /usr file systems

	# Device                Mountpoint   FStype  Options Dump Pass#
	server:/usr/diskless/rootfs     /    nfs     rw      1    1
	server:/usr/diskless/rootfs/usr /usr nfs     rw      2    2

    finally, copy your /etc file to /conf/default/

	mkdir -p /conf/default
	cp -r etc /conf/default
	exit


5.  Server isc-dhcpd configuration

	I installed isc-dhcp3-3.0.1.r4 from the ports.
	cd /usr/local/etc

    This is my /usr/local/etc/dhcpd.conf file:

	ddns-update-style none;

	default-lease-time 600;
	max-lease-time 7200;

	subnet 192.168.123.0 netmask 255.255.255.0 {
	option domain-name-servers 148.204.102.3;
	option domain-name "esfm.ipn.mx";
	option routers 192.168.123.254;
	option broadcast-address 192.168.123.255;
	default-lease-time 600;
	max-lease-time 7200;

	host Paula {
		fixed-address 192.168.123.176;
		hardware ethernet 00:01:03:BE:A4:C5;
		option root-path "192.168.123.112:/usr/diskless/rootfs";
		filename "pxeboot";
		}
	}

6.  Server TFTP service configuration

	I removeed the comment char ('#') in the line:

tftp   dgram   udp     wait    nobody  /usr/libexec/tftpd      tftpd /tftpboot

	in /etc/inetd.conf and restarted inetd:

		killall -HUP inetd

	I create the /tftpboot directory.  I did not like it to be in
	my root directory, I made in /usr and made a link:

		cd /
		mkdir -p usr/tftpboot
		ln -s usr/tftpboot

	Copy pxeboot inside...

		cp /boot/pxeboot /tftpboot


7. My diskless client load its kernel, it finds /boot directory,
   loads /boot/loader.conf starts booting, indentifies all
   the devices plugged to my computer, finally when it
   tries to mount the nfs root file system, it issues these
   messages:


Sending DHCP Discovery packet from interface fxp0 (00:03:47:co:b9:21)
Received DHCP Offer packet on fxp0 from 192.168.123.176 (accepted) (no root path
)
Sending DHCP Request packet from interface fxp0 (00:03:47:co:b9:21)
Received DHCP Ack packet on fxp0 from 192.168.123.176 (accepted) (got root path)

fxp0 at 192.168.123.112 server 192.168.123.176 boot file pxeboot
subnet mask 255.255.255.0 router 192.168.123.254 rootfs 192.168.123.176:/usr/dis
kless/rootfs
Adjusted itnterface fxp0
Mounting root from nfs:server:/usr/diskless/rootfs
no such device 'rootfs'
setrootbyname failed
NFS ROOT: 192.168.123.176:/usr/diskless/rootfs
nfs_getpages: error 13
exec /sbin/init: error 5
init: not found in path /sbin/init:/sbin/oinit:/sbin/init.bak:/stand/sysinstall
panic: no init

syncing disks
done
Uptime: 7s
Automatic reboot in 15 seconds - press a key on the console to abort
--> Press a key on the console to reboot,
--> or switch off the system now.



Do you have any idea of what is happening here?

What I do not understand is:  if I change the FreeBSD version to
4.3-RELEASE it works perfectly...

Some friends of my report the same problem with FreeBSD 4.5-RELESE
and not with FreeBSD-4.3 RELEASE.

Any ideas?


Thanks in advance.

	-Eduardo.


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?20020406202443.R62960-100000>