PXE boot server

      //    PXE boot server

step 1:- Required RPM

  #yum install -y syslinux xinetd dhcp tftp-server

syslinux :- it handle special boot file that remote machine need to boot

tftp-server :- PXE compliment ftp server that handle passing the core boot file to remote machine

step 2:- configure tftp server with xinetd

  #vim /etc/xinet.d/tftp

  disable = no

  server = /usr/sbin/in.tftpd

  server_args = -s /var/lib/tftpboot

step 3:- configure dhcp

  #cp /usr/share/doc/dhcp-4.0-*/dhcp.conf.sample /etc/dhcp/dhcp.conf

  #vim /etc/dhcp/dhcpd.conf

  ddns-update-style none;       # Use this to enble / disable dynamic dns updates globally.

  option space PXE;

  subnet netmask {


     option domain-name-servers;

  option domain-name “example.com”;

  filename “pxelinux.0”;

  option routers;

  #  option broadcast-address;

  #  option broadcast-address;

  default-lease-time 100;

     max-lease-time 7200;


step 4:- make up the actual system that boots the remote machine into the initial menu.

  #cp /usr/share/syslinux/prelinux.0 /var/lib/tftpboot/         //actual kernel that is passed to the client to begin boot process

  #cp /usr/share/syslinux/vesamenu.c32 /var/lib/tftpboot/        //this is enable 32-bit color image to be userd for boor menu

  #cp /usr/share/syslinux/memdisk /var/lib/tftpboot/        //optional

  #cp /usr/share/syslinux/mboot.c32 /var/lib/tftpboot/        //optional

  #cp /usr/share/syslinux/chain.c32 /var/lib/tftpboot/        //optional

step 5:- copy the kernel image and initrd image from any CD-DVD source to main directory in /var/lib/tftpboot/

  first copy whole dvd into pub

  #cp /media/centos6/* /var/ftp/pub/c6/

  then copy kernel file and initrd into tftpboot dir.

  #cp /var/ftp/pub/cp/image/pxeboot/vmlinuz /var/lib/tftpboot

  #cp /var/ftp/pub/cp/image/pxeboot/initrd.img /var/lib/tftpboot

step 6:- configure main file

  #mkdir /var/lib/tftpboot/pxelinux.cfg

  #vim /var/lib/tftpboot/pxelinux.cfg/default

  default vesamenu.c32

  timeout 600

  menu title ********* configure by bipin patel ********

  label 1

      menu label ^Install Centos 6        // where “^” is define hotkey

      kernel /vmlinuz

      append initrd=/initrd.img noipv6

  label 2

      menu label Boot from ^Local drive



About bpn4it

Feel Free in Linux. Bipin Patel bpn4it@gmail.com Ahmadabad, Gujarat, India
This entry was posted in Bipin hands-on. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s