Kickstart installation of a Red Hat Enterprise Linux 7.0 with NFS returns error code: 32

Solution Verified - Updated -

Environment

Red Hat Enterprise Linux 7.0

Issue

Kickstart file refering to a NFS drive as installation source fails with :

13:15:21,498 INFO program: Running... mount -t nfs -o 192.168.10.10,nolock /data/ins-trees/rhel-server-7.0-x86_64/:ro /mnt/install/source
13:15:21,888 INFO program: mount.nfs: Failed to resolve server /data/ins-trees/rhel-server-7.0-x86_64/: Name or service not known
13:15:21,888 DEBUG program: Return code: 32

Resolution

Edit your kickstart file and remove the --opts argument

Root Cause

NFS settings has "--opts" set as argument:

nfs --server=192.168.10.10 --dir=/data/ins-trees/rhel-server-7.0-x86_64/ --opts=ro

A private BZ has been opened for this issue : BZ #1121008

Anaconda does a wrong interpretation of the NFS parameters :

"192.168.10.10,nolock"  => considered as options
/ks/rhel-7/ISO/image => considered as server
ro : considered as folder

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.