Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I want to configure the ks.cfg file under PXE server So I will able to install linux from PXE server
PXE server include the files ( initrd.img & vmlinuz ) and the ks.cfg

My default ks.cfg was taken from the original initrd.img ( from ISO file )

And now I need to edit the ks.cfg in order to use this file by the PXE server

My question is – what need to change in the ks.cfg in order to work with PXE server For example

I guess all


in the original ks.cfg need to change to


and need to add this lines also

     nfs --server=xxx.xxx.xxx.xxx --dir=/RedHat-DIR
     network --device eth0 --bootproto dhcp --nodns

There are maybe other changes but I need help

I also performed this:

 [root@pxe ~]# mkdir /var/www/html/ks 
 [root@pxe ~]# cp ks.cfg /var/www/html/ks/linux-ks.cfg 
 [root@pxe ~]# chmod 644 /var/www/html/ks/linux-ks.cfg 
share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.