FAI via PXE: dracut mounts nfsroot from DHCP server instead of FAI server (and fails)

Frank Thommen f.thommen at dkfz-heidelberg.de
Wed Sep 30 15:31:14 CEST 2015


Dear all,

in our setup, FAI server and DHCP server are on two different machines. 
   When booting a FAI client via PXE, dracut tries to mount nfsroot from 
the DHCP server (111.222.333.66) instead of using the FAI server 
(111.222.333.73).

fai.conf is as follows:

$ cat /etc/fai/fai.conf
# See fai.conf(5) for detailed information.

# Account for saving log files and calling fai-chboot.
#LOGUSER=fai
LOGUSER=fai

# URL to access the fai config space
# If undefined, use default nfs://<install server>/$FAI_CONFIGDIR
#FAI_CONFIG_SRC=nfs://yourservername/path/to/config/space
FAI_CONFIG_SRC=nfs://111.222.333.73/srv/fai/config/

$


and the pxelinux config like this:

$ cat /srv/tftp/fai/pxelinux.cfg/AABBCCDDEE
# generated by fai-chboot for host 129.206.77.72 with IP 129.206.77.72
default fai-generated

label fai-generated
kernel vmlinuz-3.2.0-4-686-pae
append initrd=initrd.img-3.2.0-4-686-pae ip=dhcp  root=/dev/nfs 
nfsroot=/srv/fai/nfsroot aufs  FAI_FLAGS=verbose,sshd,createvt 
FAI_ACTION=install rd.debug
$


Dracut's rdsosreport.txt created with the rd.debug option can be found 
on http://pastebin.com/zBVDPkzA (too big for the maillist, will expire 
in a month from now).

How can I tell dracut to use the FAI server instead of the DHCP server 
for mounting nfsroot (and config space).  fai.conf's manpage doesn't 
give me a hint and I could not find this case in the FAI documentation 
(http://fai-project.org/fai-guide/).

Any hint is highly appreciated.

Thanks in advance
Frank


More information about the linux-fai mailing list