November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Categories

November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

PXE Network Installation with Kick start

Just configured and tested PXE Network Installation . Its Amazing!!

Please bear with my rough notes on this Topic :

>> Mount your CENTOS DVD to /media .

>>>yum -y install dhcp tftp-server syslinux vsftpd system-config-kickstart

>>> Configure DHCP Server as below :

#vi /etc/dhcpd.conf

ddns-update-style interim;

ignore client-updates;

allow booting;

allow bootp;

authoritative;

subnet 192.168.182.0 netmask 255.255.255.0 {

range dynamic-bootp 192.168.182.138 192.168.182.254;

default-lease-time 21600;

max-lease-time 43200;

next-server 192.168.182.137;

filename “pxelinux.0”;

}

>>>> Configure TFTP Server

# vi /etc/xinetd.d/tftp

service tftp

{

socket_type = dgram

protocol = udp

wait = yes

user = root

server = /usr/sbin/in.tftpd

server_args = -s /tftpboot

disable = no

per_source = 11

cps = 100 2

flags = IPv4

}

>>> copy all boot required files to tftp-server’s home directory

#cp -a /media/isolinux/* /tftpboot/

>>> create a new directory at /tftpboot/pxelinux.cfg

>>> # cp /tftpboot/isolinux.cfg /tftpboot/pxelinux.cfg/default

>>> #cp /usr/lib/syslinux/pxelinux.0 /tftpboot/

>>> # service xinetd start

>>>>> Configure FTP server to provide CD Dump.

# cp -vr /media/* /var/ftp/pub

>>> Ensure that anonymous_enable=YES at /etc/vsftpd/vsftpd.conf and start the

VSFTPD service

>>> At Client Machine ,go to BIOS setting and change the boot device priority to

keep “Network boot from xxxx ” at first position

>>> The above Steps will facilitate you with Network Installation in Attended Mode

i.e you have to physically do package selection and other stuff manually .

To configure unattended Network Installation , follow these steps:

1. Go to your PXE Server and check for kickstart file at /root/anaconda-
ks.cfg, uncomment the following lines for Partitions: (Note: you can also edit this

file with system-config-kickstart utility as per your requirements)

clearpart –linux

part /boot –fstype ext3 –size=100

part swap –size=2000

part / –fstype ext3 –size=100 –grow

save this file and copy it to /var/ftp/pub.

#cp /root/anaconda-ks.cfg /var/ftp/pub (Please ensure required permission is

granted for this kickstart file).

2. Go to your Client Machine ,boot again and at boot option give :

linux ks=ftp://192.168.182.137/pub/anaconda-ks.cfg and there you go , your

Installation will be unattended .

NOTE : You can completely make Installation unattended , meaning you don’t even

have to specify the boot option (eg: linux ks=ftp://192.168.182.137/pub/

anaconda-ks.cfg) . Even this can be automated to make your Installation completely

INDEPENDENT from you . For this follow this steps:

1. Edit /tftpboot/pxelinux.cfg/default file and add the following lines :

label linux

kernel vmlinuz

append initrd=initrd.img linux ks=ftp://192.168.182.137/pub/anaconda-ks.cfg

2. Save the above file and Start your Client Machine’s Installation .

ENJOY PXE!!!!!!

Thanks

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>