Make Pxe Boot Server in Redhat Linux For Network Installation (Fedora, Redhat)
Make Pxe Boot Server in Redhat Linux For Network Installation (Fedora, Redhat)
Objective : We are pepole of IT , observe that many problem will be arised for Redhat Installation. Every time
putting dvd , it is very boring situation . To avoid this problem how to install redhat using Network through
FTP,DCHP,NFS.
NFS
The NFS protocol is the only one which will work with the graphical install method of Redhat
when installing your client machine. Therefore, if you want to do graphical (as opposed to text
based) installations then you must enable this service on your server.
To install over NFS you need to meet certain conditions on the server:
To export your install directory edit the /etc/exports file and add an entry for /install to it.
In our example, we would use the folowing line:
/install *(ro)
When you have saved your exports file you must then get your NFS daemon to read its
configuration file again in order to export the directory you just added. Do this by running the
command:
exportfs -r
This gives us the most simple read-only export to all hosts on our network.
MAKE PXE BOOT SERVER IN REDHAT LINUX FOR
NETWORK INSTALLATION (FEDORA, REDHAT )
FTP
The FTP protocol will only allow text installs to be performed by your clients. This may or may
not be ideal for your situation but bear it in mind.
To install over FTP you need to allow FTP access to the directory that you have setup on the
server as the installation directory. This can be either anonymous FTP access or access through a
named account with a password. Anonymous access is probably best unless you have a reason to
protect your install server via a password.
DHCP : -
The Dynamic Host Configuration Protocol (DHCP) is an auto configuration protocol used on IP networks.
Computers that are connected to IP networks must be configured before they can communicate with
other computers on the network. DHCP allows a computer to be configured automatically, eliminating
the need for intervention by a network administrator. It also provides a central database for keeping
track of computers that have been connected to the network. This prevents two computers from
accidentally being configured with the same IP address.
Copy your install media to /install. The following example shows you how to do this for
copying your Redhat CD images to /install:
• Mount your CD
e.g. mount /mnt/cdrom
• Copy the data from CD
e.g. cp -av /mnt/cdrom /install
• Unmount the CD
e.g. umount /mnt/cdrom
• Now swap CDs and repeat from step 1 for each of your CDs you have.
Now copy all files from mnt to /ftp/var/pub in the following directory.
MAKE PXE BOOT SERVER IN REDHAT LINUX FOR
NETWORK INSTALLATION (FEDORA, REDHAT )
Software(rpm package) Requirements :
i. dhcp-4.1.1-12.P1.el6.i686.rpm
ii. dhclient-4.1.1-12.P1.el6.i686.rpm
iii. ftp-0.17-51.1.el6.i686.rpm
iv. nfs4-acl-tools-0.3.3-5.el6.i686.rpm
v. nfs-utils-1.2.2-7.el6.i686.rpm
vi. nfs-utils-lib-1.1.5-1.el6.i686.rpm
vii. tftp-0.49-5.1.el6.i686.rpm
viii. tftp-server-0.49-5.1.el6.i686.rpm
This is the method by which one can do a PXE installation from a package and image archive
served by a local web server, FTP server, or NFS server
As per my setup;
#vim /tftpboot/pxelinux.cfg/default
# /tftpboot/pxelinux.cfg/default:
MAKE PXE BOOT SERVER IN REDHAT LINUX FOR
NETWORK INSTALLATION (FEDORA, REDHAT )
NFS configuration
/etc/Export file.
# showmount -e
MAKE PXE BOOT SERVER IN REDHAT LINUX FOR
NETWORK INSTALLATION (FEDORA, REDHAT )
Now all services restarted .
Now our PXE server is ready. We can go to client box and boot from pxemethod by pressing
F12 bottom.
MAKE PXE BOOT SERVER IN REDHAT LINUX FOR
NETWORK INSTALLATION (FEDORA, REDHAT )
Conclusion :
The above project are succressfully run in Many Lab in Our Organization .
Now we are controlled all hosts Redhat or Fedora Installation through One Server.
Prepared by :