netbsd diskless

NFS setup,

/export/client/root     CLIENT_IP(rw,no_root_squash,subtree_check)
/export/client/swap     CLIENT_IP(rw,no_root_squash,subtree_check)
/export/client/usr      CLIENT_IP(ro,root_squash,subtree_check)
/export/client/home     CLIENT_IP(rw,root_squash,subtree_check)

prepare,

tar --numeric-owner -xvpzf /tftpboot/netbsd3/i386/binary/sets/kern-GENERIC_TINY.tgz

configure,

vi /export/client/root/etc/myname

blood

vi /export/client/root/etc/ifconfig.nfe0

inet 10.1.1.9/24 up

vi /export/client/root/etc/hosts

CLIENT_IP               CLIENT_SHORT
GATEWAY_IP              gw

vi /export/client/root/etc/fstab

#SERVER_IP:/export/client/swap   none  swap  sw,nfsmntpt=/swap
SERVER_IP:/export/client/root   /     nfs   rw 0 0
SERVER_IP:/export/client/usr    /usr  nfs   ro 0 0
SERVER_IP:/export/client/home   /home nfs   rw 0 0

vi /export/client/root/etc/rc.conf

rc_configured=yes
sshd=yes

finish up,

mv /export/client/root/usr/* /export/client/usr/

check,

showmount -e localhost

Nethence | Pub | Lab | Pbraun | SNE Russia | xhtml