Shashikant shah

Thursday 30 August 2012

PXE SERVER RHEL-5.5


                                                       PXE  Configuration

1.Disable firewall, SELinux

  1. server IP – 192.168.0.10 Subnet- 255.255.255.0

  2. Hostname – shashi.example.com

# yum install vsftpd, xinetd, tftp-server, dhcp*

# service vsftpd start

# service vsftpd restart

# service xinetd start

# service xinetd restart

# chkconfig - -level 345 vsftpd on

# chkconfig - -level 345 xinetd on

# chkconfig - -level 345 tftp on

# cp /usr/share/doc/dhcp-3.0.5/dhcpd.conf.sample /etc/dhcpd.conf

# vim /etc/dhcpd.conf

ddns-update-style interim;
ignore client-updates;


allow booting;
allow bootp;
class "pxeclients" {
match if substring(option vendor-class-identifier, 0, 9) = "PXEClient";
next-server 192.168.0.10;
filename "linux-install/pxelinux.0";

}

subnet 192.168.0.0 netmask 255.255.255.0 {

# --------- default gateway
option routers 192.168.1.1;
option subnet-mask 255.255.255.0;

range dynamic-bootp 192.168.0.11 192.168.0.20;
default-lease-time 21600;
max-lease-time 43200;
}

# :wq (save)

# service dhcpd restart


# service - -level 345 dhcpd on

# /etc/xinetd.d/
vim tftp
disable = no


# pxeos -a -i "shashi" -p FTP -D 0 -s 192.168.0.10 -L /pub/ shashi

  • a – add a new operating system description.

  • i - set short description not allowed with the Operating System

  • p – specify protocol

  • D – 1,0 (specify whether the configuration is diskless or not, zero specifies that it is not a
diskless configuration.
  • s – server name or ip adress

  • L – specify the directory on the server machine.

  • <os-identifier> - <os-identifier>Specify the unique Operating System identifier, which is used as the directory name in the /tftpboot/linux-install/directory


After execution pxeos command, the initrd.img and vmlinuz files required are transferred from
/var/ftp/pub/rhel5.3/images/pxeboot/ to /tftpboot/linux-install/shashi

No comments:

Post a Comment