Saturday, 10 August 2013

PXE boot configuration on Cent-os 6

1. Software Requirement for Pxe-boot NFS, HTTP, TFTP 2. Package Requirement : tftp-server-0.39-1.i386.rpm httpd-2.0.52-9.ent.i386.rpm httpd-manual-2.0.52-9.ent.i386.rpm httpd-devel-2.0.52-9.ent.i386.rpm httpd-suexec-2.0.52-9.ent.i386.rpm syslinux-2.11-1.i386.rpm 3.Before configuring DHCP server, first set the IP for your system, suppose : 192.168.0.155 a. [root@server1 ~]# netconfig b. [root@server1 ~]# service network restart 4. Configuring your DHCP server a.[root@server1 ~]# vi /etc/dhcpd.conf range dynamic-bootp 192.168.0.128 192.168.0.145; allow booting; allow bootp; next-server xxx.xxx.xxx.xxx; # your tftp server ip 192.168.0.155. filename "pxelinux.0"; c. [root@server1 ~]# service dhcpd start d. [root@server1 ~]# chkconfig dhcpd on 5. Edit tftp configuration file a. [root@server1 ~]# vi /etc/xinetd.d/tftp disable = no [root@server1 ~]# service xinetd restart Stopping xinetd: [OK] Starting xinetd: [OK ] cp /usr/lib/syslinux/pxelinux.0 /tftpboot cp /usr/lib/syslinux/menu.c32 /tftpboot cp /usr/lib/syslinux/memdisk /tftpboot cp /usr/lib/syslinux/mboot.c32 /tftpboot cp /usr/lib/syslinux/chain.c32 /tftpboot mkdir /tftpboot/pxelinux.cfg Now create the default pxelinux configuration inside the new file vi /tftpboot/pxelinux.cfg/default default local timeout 100 prompt 1 display msgs/boot.msg F1 msgs/boot.msg F2 msgs/general.msg F3 msgs/expert.msg F4 msgs/param.msg F5 msgs/rescue.msg F7 msgs/snake.msg label local localboot 1 label 0 localboot 1 label 1 kernel pxelinux.cfg//vmlinuz append initrd=pxelinux.cfg//initrd.img ramdisk_size=8419 method=ftp://192.168.0.70/pub ip=dhcp #save file 7.# vi /etc/exports /var/ftp/pub *(ro,sync) 8. # ln -s /var/ftp/pub /tftpboot/RHEL5 9. # vi /etc/httpd/conf/httpd.conf ........................ ........................ Options Indexes AllowOverride None Alias /linux /tftpboot/RHEL5 10. # service nfs restart 11. # service portmap restart 12. # service httpd restart Client Side . Go to BIOS and boot form NET(network) .

No comments:

Post a Comment