PXE Server RHEL 6.2 64 Bit
[root@localhost ~]# yum install http* *tftp* dhcp* system-config-kickstart*
[root@localhost ~]# vim /etc/sysconfig/selinux
SELINUX=disabled
[root@localhost ~]# iptables -F
[root@localhost ~]# /etc/init.d/iptables stop
[root@localhost ~]# chkconfig iptables off
[root@localhost ~]# /etc/init.d/httpd restart
[root@localhost ~]# chkconfig httpd on
[root@localhost ~]# mkdir /var/www/html/abc/
[root@localhost ~]# cp -rv /media/RHEL_6.2\ x86_64\ Disc\ 1/* /var/www/html/abc/
Configure DHCP Server
[root@localhost ~]# cp /usr/share/doc/dhcp-4.1.1/dhcpd.conf.sample /etc/dhcp/dhcpd.conf
[root@localhost ~]# vim /etc/dhcp/dhcpd.conf
#######################################################################################################
# dhcpd.conf
#
# option definitions common to all supported networks...
option domain-name "example.org";
#option domain-name-servers ns1.example.org, ns2.example.org;
default-lease-time 600;
max-lease-time 7200;
# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
log-facility local7;
# This is a very basic subnet declaration.
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.10 192.168.0.20;
next-server 192.168.0.4;
filename "pxelinux.0";
# option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org;
}
# which we don't really recommend.
########################################################################################################
[root@localhost ~]# chkconfig dhcpd restart
[root@localhost ~]# chkconfig dhcpd on
Install kickstart
[root@localhost ~]# system-config-kickstart
[root@localhost ~]# cp /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot/
[root@localhost ~]# chkconfig tftp on
[root@localhost ~]# /etc/init.d/xinetd restart
[root@localhost ~]# chkconfig xinetd on
[root@localhost ~]# mkdir /var/pxe
[root@localhost ~]# ln -s /var/www/html/abc /var/pxe/
[root@localhost ~]# cp /var/www/html/abc/images/pxeboot/* /var/lib/tftpboot/
[root@localhost ~]# cp -r /var/www/html/abc/isolinux/* /var/lib/tftpboot/
[root@localhost ~]# mkdir /var/lib/tftpboot/pxelinux.cfg
[root@localhost ~]# cp /var/www/html/abc/isolinux/isolinux.cfg /var/lib/tftpboot/pxelinux.cfg/default
[root@localhost ~]# vim /var/lib/tftpboot/pxelinux.cfg/default
label vesa
menu label Created By Rajeev RHEL 6.2 64 Bit
kernel vmlinuz
append initrd=initrd.img linux ks=http://192.168.0.4/abc/pxe.cfg
Comments
Post a Comment