Hi,
I have just tried to setup 6.0BETA5 for diskless clients - just for the
sport :-) I have installed the full system into /var/diskless/FreeBSD.
Everything actually went fine, I could boot up, got root mounted and the
home dir.
So, next step was to install X.Org: chroot into /var/diskless/FreeBSD
and install from ports.
Now, boot ends after identifying system resources:
NFS ROOT: 192.168.0.2:/var/diskless/FreeBSD
sis0: link changed to up
nfs_getpages: error 13
exec /sbin/init: error 5
sysctl: unknown oid 'kern.bootp_cookie'
Interface sis0 IP-Address 192.168.0.16 broadcast 192.168.0.255
mount_nfs: can't update /var/db/mounttab for
192.168.0.2:/var/diskless/FreeBSD
nfs server 192.168.0.2:/var/diskless/FreeBSD: not responding
nfs server 192.168.0.2:/var/diskless/FreeBSD: not responding
...
Booting on the hard drive, I have no problem mounting any of the
exported nfs shares.
It appears to me that now, somehow the diskless client looses the root
device or tries to remount it, the 'kern.bootp_cookie' error seems to
suggest that the bootp parameters are nolonger passed correctly to the
next boot stage. But I have no idea why this occurs or what has changed.
The line mount_nfs... obviously occurs if no writable /var is available
when mounting a nfs device. But is not fatal, I had succesfully mounted
shares before installing X despite the error.
Any ideas?
Thanks, Erik
PS: Doing the setup, I wrote my own guide for setting up diskless
clients which quite detailed describes what I have done:
www.daemonsecurity.com/pxe
Setup (linewrapping is mine for this mail):
showmount -e:
Exports list on localhost:
/var/diskless/FreeBSD 192.168.0.0
/var/diskless/192.168.0.16/var 192.168.0.16
/home 192.168.0.0
/etc/exports:
/home -alldirs -network 192.168.0.0 -mask 255.255.255.0
/var/diskless/FreeBSD -ro -mapall=root:wheel -network 192.168.0.0
-mask 255.255.255.0
/var/diskless/192.168.0.16/var 192.168.0.16
/var/diskless/FreeBSD/etc/fstab:
# Device Mount FStype Opt Dump Pass#
192.168.0.2:/var/diskless/FreeBSD / nfs rw 0 0
proc /proc procfs rw 0 0
192.168.0.2:/home /home nfs rw 0 0
192.168.0.2:/var/diskless/192.168.0.16/var /var nfs rw 0 0
I have tried to remove the line for the root device assuming that it
would then not be remounted when the other devices are mounted - no
result. Also I have tried to remove it completly with no result.
/var/diskless/FreeBSD/etc/rc.conf:
Basically, disables mfs var and tmp, cron and sendmail and configures
the console.
--
Ph: +34.666334818 web: http://www.locolomo.org
S/MIME Certificate: http://www.locolomo.org/crt/2004071206.crt
Subject ID: A9:76:7A:ED:06:95:2B:8D:48:97:CE:F2:3F:42:C8:F2:22:DE:4C:B9
Fingerprint: 4A:E8:63:38:46:F6:9A:5D:B4:DC:29:41:3F:62:D3:0A:73:25:67:C2
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"