I'm trying to setup a diskless configuration. This is what I have done so far:
torsson.dmj.nu (192.168.1.3) is the dhcp/tftp/NFSv4-server abba.dmj.nu (192.168.1.14) is the diskless client In /etc/dhcp/dhcpd.conf I have the following for the "client" (among other things): # PXE-Boot, abba option option-150 code 150 = text ; ddns-update-style none ; host abba { hardware ethernet 00:90:dc:07:6e:a7; fixed-address 192.168.1.14; filename "/abba/boot/pxelinux.0"; } And in pxelinux.cfg/default I have the following: label Diskless Gentoo root in NFS kernel bzImage append root=/dev/nfs ip=dhcp init=/bin/sh nfsroot=192.168.1.3:/diskless/abba The kernel (bzImage) loads OK but when it tries to mount the NFS-root I get the following: "Root-NFS: Server returned error -13 while mounting /diskless/abba" And on the server I see this in syslog: "rpc.mountd[6772]: refused mount request from 192.168.1.14 for /diskless/abba (/): not exported" This is how my filesystems are mounted ad exported: torsson# grep diskless /etc/fstab /dev/vg00/lvol11 /var/diskless reiserfs noatime 0 2 /var/diskless/abba /export/diskless/abba none rw,bind 0 0 torsson# mount | grep diskless /dev/mapper/vg00-lvol11 on /var/diskless type reiserfs (rw,noatime) /var/diskless/abba on /export/diskless/abba type none (rw,bind) And this is a part of the /etc/exports /export *(ro,fsid=0,insecure,no_subtree_check,sync) /export/diskless/abba abba.dmj.nu(rw,nohide,insecure,no_root_squash,no_subtree_check,sync) I also have other FS exported like this e.g.: torsson# grep dan /etc/fstab /dev/vg00/lvol05 /home/dan reiserfs noatime 0 2 /home/dan/tmp /export/Queen/tmp none rw,bind 0 0 torsson# mount | grep dan /dev/mapper/vg00-lvol05 on /home/dan type reiserfs (rw,noatime) /home/dan/tmp on /export/Queen/tmp type none (rw,bind) And in exports: /export *(ro,fsid=0,insecure,no_subtree_check,sync) /export/Queen/tmp queen.dmj.nu(rw,no_root_squash,nohide,no_subtree_check,async) And this "client" can mount the export: queen# grep torsson /etc/fstab torsson.dmj.nu:/Queen/tmp /home/dan/tmp_torsson nfs4 proto=tcp,soft,intr 0 0 queen# mount | grep torsson torsson.dmj.nu:/Queen/tmp on /home/dan/tmp_torsson type nfs4 (rw,proto=tcp,soft,intr,addr=192.168.1.3,clientaddr=192.168.1.11) Any idea why the diskless client can not mount it's root-FS? Regards, -- Dan Johansson, <http://www.dmj.nu> *************************************************** This message is printed on 100% recycled electrons! ***************************************************