Wednesday, February 16, 2011

PXE Server Configuration

step1: copy the DVD into /var/ftp/pub

step2: vim /etc/exports
          /var/ftp/pub *(ro,sync)
          /tftpboot *(ro,sync)


step3: configure dhcp server
    vim /etc/dhcpd.conf
    insert the below two lines after
   #ignore-client updates

    allow booting;
    allow bootp;

    insert the below two lines after
    range

    filename "pxelinux.0";
    next-server 192.168.0.254;


step4: install tftp rpm
    vim /etc/xinetd.d/tftp
    disable=no


step5: disable iptables and tcp wrappers

step6: cp /usr/lib/syslinux/pxelinux.0 /tftpboot

step7: cd /tftpboot
    mkdir pxelinux.cfg
    cd /var/ftp/pub/isolinux
    cp * /tftpboot
    cd /tftpboot
    mv isolinux.cfg /tftpboot/pxelinux.cfg/default


step8:  service portmap restart
            service nfs restart
            service vsftpd restart
            service network restart
            service dhcpd restart
            chkconfig tftp on
            chkconfig portmap on
            chkconfig nfs on
            chkconfig vsftpd on
            chkconfig network on
            chkconfig dhcpd on

0 Comments: