Sep
15
2008

PXE Boot Config Enterprise Linux

Configuring a PXE boot server

Install required packages:

# yum install bind dhcp system-config-netboot tftp-server

Setup dhcpd:

# vi /etc/dhcpd.conf
ddns-update-style interim;
ignore client-updates;

subnet 10.10.10.0 netmask 255.255.255.0 {

option routers 10.10.10.1;
option subnet-mask 255.255.255.0;
option domain-name-servers 10.10.10.1;
option time-offset 7200;
range dynamic-bootp 10.10.10.10 10.10.10.15;
default-lease-time 21600;
max-lease-time 43200;
next-server 10.10.10.1;
option subnet-mask 255.255.255.0;
option broadcast-address 10.10.10.255;
filename “linux-install/pxelinux.0”;
}

Copy the vmlinuz, initrd.img to /tftpboot/linux-install directory.

Create a default:

# cat /tftpboot/linux-install/pxelinux.cfg/default
timeout 100
default el5u1
prompt 1
display boot.msg
label el5u1
kernel vmlinuz
append initrd=initrd.img
#

Set the boot message:

# cat /tftpboot/linux-install/pxelinux.cfg/boot.msg
Press “Enter” to start or auto 100 seconds …
#

Set disable=no in /etc/xinetd.d/tftp (enable tftp)

Setup the services:
# service xinetd restart
# service dhcpd restart
# touch /etc/named.conf
# service named restart
# service iptables stop (or allow tftp connection in the iptables config)

Share
Written by in: linux,network,sysadm | Tweet This

No Comments »

RSS feed for comments on this post. TrackBack URL


Leave a Reply

Powered by WordPress | Theme: Aeros 2.0 by TheBuckmaker.com