LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Need to setup NFS based OS installation server. (https://www.linuxquestions.org/questions/linux-newbie-8/need-to-setup-nfs-based-os-installation-server-4175509363/)

Anna23 06-27-2014 05:32 AM

Need to setup NFS based OS installation server.
 
Hi,

I am trying to setup a NFS based install server through which I can install Fedora to my client PCs.

I don't want to use DVD/CD anymore.

Can someone help me with the procedure.

-Thx

kbnuts 06-27-2014 06:37 AM

make your directory
put your iso contents in it.
edit /etc/exports and put contents like
/isodir *(ro)

However what you really want (imo) is to setup a pxe server. there's a few youtube videos to help but you need tftp server, dhcp and syslinux (basically you run dhcp on your box so it can point other machines to the pxe server)
that way you turn the thing on, write an automated anaconda kickstart file and you're laughing.

Anna23 06-27-2014 06:59 AM

Thanks kbnuts for quick reply..

I am done with PXEboot and DHCP stuffs, actually I am looking for automated KS file.
My client will use 192.168.1.100 and Server IP is 192.168.0.99. ISO is at /data/network-install/ISO.
Could you help me with KS file.
Appreciate all who help me on this. :)

-Thx

canussie 06-27-2014 09:45 AM

You should really look into using cobbler. Cobbler can make installing/automating installations VERY simple.

notsure 06-27-2014 09:55 AM

kickstart is a GUI based app that will create your ks.cfg file. It's in CentOS so I'll assume Fedora has it.

However, you need to initially boot the system with a CD/DVD/USB and point the install to the ks file.

It sounds like you want cobbler as stated above.

--edit replaced PXE with cobbler after I searched for what cobbler was :)

canussie 06-27-2014 09:56 AM

cobbler manages dhcp/pxe/kickstart ect. Does the lot.

kbnuts 06-27-2014 09:59 AM

as to the ks file just alter the anaconda.ks.cfg you have in /root/ and copy it over.
Change the install location for cdrom to be
ks=nfs:192.168.0.99:/data/network-install/ks.cfg
method=nfs:192.168.0.99:/data/network-install/ISO
for network stuff
ip=192.168.1.100
netmask=255.255.255.0
gateway=whateverthegatewayis

don't forget to uncomment/edit the hard drive stuff.

The documentation on the hundreds of options you have are here: http://fedoraproject.org/wiki/Anaconda/Kickstart
You can run allsorts in the %post as well (it reads normal bash here if needed)
For example my pxe server at home names each server with two random swear words because I'm all grown up.


All times are GMT -5. The time now is 12:20 AM.