Friday, April 15, 2011

Adding kickstart file in the remote boot screen itself

Edit the following file:


#vim /tftpboot/pxelinux.cfg/default

Add the follwoing line in the file:

label ks
kernel vmlinuz
append initrd=initrd.img ks=nfs:192.168.0.254:/var/ftp/pub/ks.cfg

Adding another OS in this file (example: rhel6):

label 6
kernel rhel6/vmlinuz
append initrd=rhel6/initrd.img ks=nfs:192.168.0.254:/var/ftp/pub/rhel6/ks.cfg

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