Apologies if this isn't quite the right forum, I couldn't decide between networking, installation or misc for this posting.
The situation: I have a Gentoo server up and working. DHCP, tftp and NFS are all demonstratably working using it. The box is sync'd up to the current recommended portage (emerge sync|system|world, as of about a week ago) running kernel 2.6.8. I've installed the root filesystem et-al for the diskless client and have it exported via NFS. When I turn on my diskless client (PXE boot) it successfully gets its IP address, downloads and runs the kernel (also 2.6.8), but when it comes to mounting its root filesystem it panics with the following error;
- VFS: Cannot open root device "nfs" or unknown block(0,255)
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on unknown block(0,255)
- # cat /diskless/pxelinux.cfg/default
DEFAULT /bzImage
APPEND ip=dhcp root=/dev/nfs nfsroot=192.168.1.25:/diskless/192.168.1.170
The client kernel I am loading does appear to have NFS compiled in
- # grep -i NFS /usr/src/linux/.config
CONFIG_NFS_FS=y
CONFIG_NFS_V3=y
CONFIG_NFS_V4=y
CONFIG_NFS_DIRECTIO=y
# CONFIG_NFSD is not set
- # cat /etc/exports
# /etc/exports: NFS file systems being exported. See exports(5).
/diskless/192.168.1.170 192.168.1.170(sync,rw,no_root_squash,no_all_squash)
/opt 192.168.1.0/24(sync,rw,no_root_squash,no_all_squash)
/usr 192.168.1.0/24(sync,rw,no_root_squash,no_all_squash)
/home 192.168.1.0/24(sync,rw,no_root_squash,no_all_squash)
Is there some issue with the 2.6 kernel series not being able to use an NFS root filesystem? Since the nfsroot.txt file is still there in the kernel source I would assume not. The only thing I can think of is that I did use udev on the server and client, devfs support was not compiled in. I did try compiling a client kernel with devfs support but it made no difference.
I'm completely out of ideas, any and all help appreciated!
Thanks
Steven




