1)Install vsftpd package
yum install vsftpd
chkconfig vsftpd on
2) Make a directory to store Operating System
mkdir /var/ftp/pub/rhel5.2
3)Then copy all cds by typing coommand
cp -vrf /media/press tab/* /var/ftp/pub/rhel5.2/
4)Install dhcp and tftp server
yum install tftp-server dhcp -y
chkconfig tftp on
service xinetd restart
5)Now install two rpms
a) yum install system-config-netboot ##it will create a file tree for pxeboot in /tftpboot/linux-install/
b) yum install system-config-kickstart ##it will create kickstart file.
6) Now we need to configure dhcp
a) cp /usr/share/doc/dhcp-3.0.5/dhcpd.conf.sample /etc/dhcpd.conf
and edit /etc/dhcpd.conf file
allow booting;
allow bootp;
next-server 192.168.12.60; #### ip of the tftpserver i.e where it will find pxe boot loader, pxelinux.0,kernel image,initrd image######
filename "linux-install/pxelinux.0"; #####locate where is pxe boot loader###########
also edit the simple options accordingly like dns ,gateway
7)Service dhcpd restart; chkconfig dhcpd on
8)Run the command system-config-kickstart to create a kickstart file
The command will open a graphical interface. Save this file in /var/www/html/kick/ks.cfg and start the http service. To make this file available at http://IPaddress/kick/.
9)Run the command system-config-netboot and fill the options as
It will as some information about
a)Operating system
b)ftp server ip address and path to get the operating system and c)kickstart file fill url as mentioned above.
this will make pxeboot tree like shown below
pxelinux.0
initrd
vmlinuz
pxelinux.cfg
default
10) Restart all services:-
Service xinetd restart
Service dhcpd restart
Service httpd restart
Service vsftpd restart
This will work
More posts to come
Enjoy
Saturday, March 20, 2010
Subscribe to:
Posts (Atom)
