Вы находитесь на странице: 1из 12

MAKE PXE BOOT SERVER IN REDHAT LINUX FOR NETWORK INSTALLATION (FEDORA, REDHAT )

IN REDHAT LINUX FOR NETWORK INSTALLATION (FEDORA, REDHAT ) Objective : We are pepole of IT

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.

Enable Remote Access

Time to make your install data available to other machines on the network. Redhat can be installed over the network using NFS, HTTP and FTP protocols. You can select which of these will be used at install time on the client. If one of the services is not setup on the machine then it will still be available for selection by the client but the install will not work. Therefore, it is either best to enable all three services on your server (so they all work on each client machine) or if you don't enable all three then advertise the fact very well and say which service should be used for your particular install server.

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:

Your install directory is exported

NFS is installed and running

Portmap is running

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 )

IN REDHAT LINUX FOR NETWORK INSTALLATION (FEDORA, REDHAT ) FTP The FTP protocol will only allow

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.

Step By step Procedure

1. Install Red hat 5.0 and Red hat 6.0 in Server Machine.

Locate Free Space

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 )

IN REDHAT LINUX FOR NETWORK INSTALLATION (FEDORA, REDHAT ) Software(rpm package) Requirements : i.

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

You have to find all package in your DVD .

i. open dvd.(or Mount dvd)

ii. open package folder . like that

open dvd.(or Mount dvd) ii. open package folder . like that 2. Install all above rpm

2. Install all above rpm Package individually.

3. Configure your dhcp server.

dvd) ii. open package folder . like that 2. Install all above rpm Package individually. 3.

MAKE PXE BOOT SERVER IN REDHAT LINUX FOR NETWORK INSTALLATION (FEDORA, REDHAT )

IN REDHAT LINUX FOR NETWORK INSTALLATION (FEDORA, REDHAT ) Here we observe that server Ip address

Here we observe that server Ip address is :192.168.6.1 . Range will be 192.168.6.200 to 192.168.6.210. ( Ten Ip address are automatically assigned to 10 clients).

4. Save this File .

5. Restart dhcp service.

6. #service dhcpd restart

7. Installing and enabling tftp service

8. #yum –y install tftp-server

9. #vi /etc/xinetd.d/tftp

8. #yum –y install tftp-server 9. #vi /etc/xinetd.d/tftp 10. #service xinetd restart 11. #mkdir /tftpboot 12.

10. #service xinetd restart 11. #mkdir /tftpboot 12. Copy below the files into tftp directory

#vi /etc/xinetd.d/tftp 10. #service xinetd restart 11. #mkdir /tftpboot 12. Copy below the files into tftp

MAKE PXE BOOT SERVER IN REDHAT LINUX FOR NETWORK INSTALLATION (FEDORA, REDHAT )

IN REDHAT LINUX FOR NETWORK INSTALLATION (FEDORA, REDHAT ) Configuring the MENU This is the method

Configuring the MENU

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:

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 )

IN REDHAT LINUX FOR NETWORK INSTALLATION (FEDORA, REDHAT ) NFS configuration 1. System  Server Settings

NFS configuration

1. System Server Settings NFS

IN REDHAT LINUX FOR NETWORK INSTALLATION (FEDORA, REDHAT ) NFS configuration 1. System  Server Settings
IN REDHAT LINUX FOR NETWORK INSTALLATION (FEDORA, REDHAT ) NFS configuration 1. System  Server Settings

MAKE PXE BOOT SERVER IN REDHAT LINUX FOR NETWORK INSTALLATION (FEDORA, REDHAT )

IN REDHAT LINUX FOR NETWORK INSTALLATION (FEDORA, REDHAT ) Contents of the File will be :-

Contents of the File will be :-

/etc/Export

file.

REDHAT LINUX FOR NETWORK INSTALLATION (FEDORA, REDHAT ) Contents of the File will be :- /etc/Export

# showmount -e

MAKE PXE BOOT SERVER IN REDHAT LINUX FOR NETWORK INSTALLATION (FEDORA, REDHAT )

IN REDHAT LINUX FOR NETWORK INSTALLATION (FEDORA, REDHAT ) Now all services restarted . Now Your

Now all services restarted .

INSTALLATION (FEDORA, REDHAT ) Now all services restarted . Now Your server will be ready for

Now Your server will be ready for Installation.

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 )

MAKE PXE BOOT SERVER IN REDHAT LINUX FOR NETWORK INSTALLATION (FEDORA, REDHAT ) Now to at

Now to at Client Side

Press F9 For Lan Boot

MAKE PXE BOOT SERVER IN REDHAT LINUX FOR NETWORK INSTALLATION (FEDORA, REDHAT ) Now to at

MAKE PXE BOOT SERVER IN REDHAT LINUX FOR NETWORK INSTALLATION (FEDORA, REDHAT )

MAKE PXE BOOT SERVER IN REDHAT LINUX FOR NETWORK INSTALLATION (FEDORA, REDHAT )
MAKE PXE BOOT SERVER IN REDHAT LINUX FOR NETWORK INSTALLATION (FEDORA, REDHAT )
MAKE PXE BOOT SERVER IN REDHAT LINUX FOR NETWORK INSTALLATION (FEDORA, REDHAT )
MAKE PXE BOOT SERVER IN REDHAT LINUX FOR NETWORK INSTALLATION (FEDORA, REDHAT )

MAKE PXE BOOT SERVER IN REDHAT LINUX FOR NETWORK INSTALLATION (FEDORA, REDHAT )

MAKE PXE BOOT SERVER IN REDHAT LINUX FOR NETWORK INSTALLATION (FEDORA, REDHAT )
MAKE PXE BOOT SERVER IN REDHAT LINUX FOR NETWORK INSTALLATION (FEDORA, REDHAT )
MAKE PXE BOOT SERVER IN REDHAT LINUX FOR NETWORK INSTALLATION (FEDORA, REDHAT )

MAKE PXE BOOT SERVER IN REDHAT LINUX FOR NETWORK INSTALLATION (FEDORA, REDHAT )

IN REDHAT LINUX FOR NETWORK INSTALLATION (FEDORA, REDHAT ) Conclusion : The above project are succressfully
IN REDHAT LINUX FOR NETWORK INSTALLATION (FEDORA, REDHAT ) Conclusion : The above project are succressfully

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 :

1.

Jahiruddin Ahamed( Lecturer of Information Technology Of D.I.ET)

2.

Pinaki Chakroborty(System Administrator of D.I.ET)

3.

Md .Rameez Islam(Technical Assistant of D.I.ET).