Why does Red Hat Enterprise Linux 7.2 anaconda fail to stat the kickstart downloaded from NFS source ?

Solution Verified - Updated -

Issue

  • Need to install Red Hat Enterprise Linux 7.2 using Kickstart file hosted on NFS server.
  • The command to create a virtual machine is as follows.
#  virt-install    --name=test    --graphics vnc    --vcpus=6 --ram=4096    --disk path=/images/tesst.img,bus=virtio,size=20,format=qcow2,sparse=true    --location=nfs:192.168.122.1:/images/install7.2    --extra-args="ks=nfs:192.168.122.1:/images/install7.2/ks_test.cfg lang=en_US keymap=us"    --network bridge=virbr0,model=virtio    --os-type=linux    --os-variant=rhel7    --virt-type kvm    --hvm    --noreboot
  • The kickstart is downloaded but fails to get read by anaconda as follows.
[   11.227525] dracut-initqueue[536]: cp: cannot stat '/run/install/repo/ks_test.cfg/ks_test.cfg': Not a directory
[   11.228573] dracut-initqueue[536]: Warning: failed to fetch kickstart from nfs:192.168.122.1:/images/install7.2/ks_test.cfg 
  • Is it a bug?

Environment

  • Red Hat Enterprise Linux 7.2
  • Anaconda
  • NFS
  • Kickstart

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.