make-fai-nfsroot problem

Robert LeBlanc leblanc at byu.edu
Tue Mar 8 02:02:26 CET 2005


Ok, I should not be having this issue as I have already set-up FAI a
year ago, but I can not get the FAI nfsroot to finish building. I've
checked the config files and nothing seems out of place, I don't get any
error messages that are helpful in the build even with the verbose
output. It looks as debootstrap is working correctly, but no edits
to /etc/exports or the nfsroot/etc/fstab is being done. Here is part of
the log from make-fai-nfsroot;

Using configuration files from directory /etc/fai
Creating FAI nfsroot can take a long time and will
need more than 250MB disk space in /usr/lib/fai/nfsroot.
/usr/lib/fai/nfsroot already exists. Removing /usr/lib/fai/nfsroot
Creating nfsroot for sarge using debootstrap
Calling debootstrap sarge /usr/lib/fai/nfsroot file:/mirror
I: Retrieving debootstrap.invalid_dists_sarge_Release
I: Validating debootstrap.invalid_dists_sarge_Release
I: Retrieving debootstrap.invalid_dists_sarge_main_binary-i386_Packages
I: Validating debootstrap.invalid_dists_sarge_main_binary-i386_Packages
I: Checking adduser...
I: Checking apt...
I: Checking apt-utils...
I: Checking aptitude...
..
..
..
Setting up console-data (2002.12.04dbs-49) ...

Setting up console-tools (0.2.3dbs-56) ...

Setting up base-config (2.53.7) ...

I: Base system installed successfully.
Creating base.tgz
Mounting cluster0:/mirror to /usr/lib/fai/nfsroot/mnt2.
Can't mount cluster0:/mirror to /usr/lib/fai/nfsroot/mnt2.
No diversion `diversion of /sbin/discover-modprobe by fai', none removed

My /etc/fail.conf is:

# $Id: fai.conf,v 1.79 2004/07/08 12:33:40 lange Exp $

# /etc/fai/fai.conf -- configuration for FAI (Fully Automatic
Installation)

# installserver must be the name seen by the install clients
installserver=cluster0
# the name of the Debian mirror
mirrorhost=$installserver

# Don't use the variable FAI_SOURCES_LIST any more.
# Instead use /etc/fai/sources.list 

# Access to Debian mirror via NFS mounted directory
# If FAI_DEBMIRROR is defined, install clients mount it to $MNTPOINT
FAI_DEBMIRROR=$mirrorhost:/mirror

# if your install server has multiple ethernet device, use this one to
# determine its hostname. Default eth0. Set to the interface to which
# the Beowulf clients are connected.
SERVERINTERFACE=eth1

# LOGUSER: an account on the install server which saves all log-files
# and which can change the kernel that is booted via
# network. Configure .rhosts for this account and PAM, so that root can
# log in from all install clients without password. This account
# should have write permissions for /boot/fai. For example, you can use
# write permissions for the group linuxadm. chgrp linuxadm
# /boot/fai;chmod g+w /boot/fai. If the variable is undefined, this
# feature is disabled
LOGUSER=fai
# use ssh or rsh for copying log files to user fai and for changing
# tftp symbolic link
FAI_REMOTESH=rsh
FAI_REMOTECP=rcp

# set protocol type for saving logs, default is rcp/scp. Set to ftp if
desired.
FAI_LOGPROTO=
# Name of log-server. If undefined, the install server will be used. 
LOGSERVER=
# writable directory on remote server, when using FTP protocol
LOGREMOTEDIR="upload"
# password for login to log server, when using FTP protocol
LOGPASSWD=

# the configuration space on the install server
FAI_CONFIGDIR=/usr/local/share/fai
# the location of the config space, as seen by the install client
# it can also be overwritten with T170 via BOOTP 
FAI_LOCATION=$installserver:$FAI_CONFIGDIR

# the following variables are read only for most users

# mount point where the mirror will be mounted
MNTPOINT=mnt2

# directory on the install server where the nfsroot for FAI is
# created, approx size: 160MB, also defined in bootptab or dhcp.conf
NFSROOT=/usr/lib/fai/nfsroot

# the local configuration directory on the install client
FAI=/fai

# the type of operating system (linux, sunos)
OS_TYPE=`uname -s |  tr /A-Z/ /a-z/`


And my /etc/make-fai-nfsroot.conf is:

# these variables are only used by make-fai-nfsroot(8)
# here you can use also variables defined in fai.conf (like $mirrorhost)

# Add a line for mirrorhost and installserver when DNS is not available
# on the clients. This line(s) will be added to $nfsroot/etc/hosts.
NFSROOT_ETC_HOSTS="192.168.1.1 $mirrorhost"

#FAI_DEBOOTSTRAP="sarge http://$mirrorhost/debmirror/debian"
FAI_DEBOOTSTRAP="sarge file:/mirror"

# your extra packages which will be installed into the nfsroot, space
separated
NFSROOT_PACKAGES="expect"

# this local repository holds your local packages that can be installed
to
# the install clients. Don't forget to create the index file
Packages.gz!
FAI_LOCAL_REPOSITORY="deb file:/fai/files packages/"

# the encrypted root password on all install clients during
# installation process; used when log in via ssh; pw is: fai
FAI_ROOTPW="56hNVqht51tzc"

# this kernel package will be used when booting the install clients
KERNELPACKAGE=/usr/lib/fai/kernel/kernel-image-2.4.27-fai_1_i386.deb

# location of a identity.pub file; this user can log to the install
# clients in as root without a password; only useful with
FAI_FLAGS="sshd"
#SSH_IDENTITY=/home/admin/.ssh/identity.pub

# which of DHCP and/or BOOTP should the server create setups for.
# Default are to create setups for both
FAI_BOOT="dhcp"

# export $NFSROOT to this netgroup or this range of IP addresses
# (eg. FAICLIENTS="192.168.1.0/24") 
FAICLIENTS="192.168.1.0/24"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# following lines should be read only for you when you are using fai on
i386

FAI_DEBOOTSTRAP_OPTS="--arch i386
--exclude=pcmcia-cs,ppp,pppconfig,pppoe,pppoeconf,dhcp-client,exim4,exim4-base,exim4-config,exim4-daemon-light,mailx,at,fdutils,info,modconf,libident,logrotate,exim"

nfssize="250MB"  # size of the nfsroot. Only informational purpose

# FAI needs these packages that are install into the nfsroot
packages="module-init-tools dhcp3-client ssh file rdate hwinfo portmap
bootpc rsync wget rsh-client less dump reiserfsprogs usbutils
ext2resize hdparm smartmontools parted raidtools2 lvm2
dnsutils ntpdate dosfstools cfengine cvs jove xfsprogs xfsdump
sysutils dialog discover mdetect libnet-perl netcat libapt-pkg-perl"

The base of our local mirror is in /mirror.

Thanks for any help or pointers,
Robert LeBlanc
BioAg Computer Support
Brigham Young University



More information about the linux-fai mailing list