Server := 192.168.0.75 ( yum server , pxe server , dhcp server , ftpserver , kickstart server )
1 step : # yum install syslinux tftp-server xinetd dhcp
2 # mount /dev/sr0 /mnt <====RHEL 6.3 DVD
3 # cd /mnt/isolinux/
4 # cp -rfv * /var/lib/tftpboot/
5 # cd /var/lib/tftpboot/
# ls ============>>> it will show total 35236
-r--r--r-- 1 root root 2048 Apr 22 16:34 boot.cat
-r--r--r-- 1 root root 84 Apr 22 16:34 boot.msg
-r--r--r-- 1 root root 334 Apr 22 16:34 grub.conf
-r--r--r-- 1 root root 30442765 Apr 22 16:34 initrd.img
-r--r--r-- 1 root root 24576 Apr 22 16:34 isolinux.bin
-r--r--r-- 1 root root 954 Apr 22 16:34 isolinux.cfg
-r--r--r-- 1 root root 165080 Apr 22 16:34 memtest
-rw-r--r-- 1 root root 26828 Apr 22 16:35 pxelinux.0
-r--r--r-- 1 root root 1236005 Apr 22 16:34 splash.jpg
-r--r--r-- 1 root root 2215 Apr 22 16:34 TRANS.TBL
-r--r--r-- 1 root root 162860 Apr 22 16:34 vesamenu.c32
-r-xr-xr-x 1 root root 3986992 Apr 22 16:34 vmlinuz
6 tftpboot # mkdir pxelinux.cfg
7 tftpboot# cp isolinux.cfg pxelinux.cfg/default
8 # cp /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot/
9 # restorecon -Rv /var/lib/tftpboot/
10 # vim /etc/xinetd.d/tftp
edit like this
# default: off
# description: The tftp server serves files using the trivial file transfer \
# protocol. The tftp protocol is often used to boot diskless \
# workstations, download configuration files to network-aware printers, \
# and to start the installation process for some operating systems.
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /var/lib/tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
=================================================
11 # service xinetd restart; chkconfig xinetd on
FOR KICK-START ADD the following line
Below like this
[root@network ~]# cat /var/lib/tftpboot/pxelinux.cfg/default
default vesamenu.c32
#prompt 1
timeout 600
display boot.msg
menu background splash.jpg
menu title Welcome to Red Hat Enterprise Linux 6.3!
menu color border 0 #ffffffff #00000000
menu color sel 7 #ffffffff #ff000000
menu color title 0 #ffffffff #00000000
menu color tabmsg 0 #ffffffff #00000000
menu color unsel 0 #ffffffff #00000000
menu color hotsel 0 #ff000000 #ffffffff
menu color hotkey 7 #ffffffff #ff000000
menu color scrollbar 0 #ffffffff #00000000
label linux
menu label ^Install or upgrade an existing system
menu default
kernel vmlinuz
append initrd=initrd.img network ks=ftp:/192.168.0.75/pub/REDHAT/ks.cfg <=== for a kick start.
label vesa
menu label Install system with ^basic video driver
kernel vmlinuz
append initrd=initrd.img xdriver=vesa nomodeset
label rescue
menu label ^Rescue installed system
kernel vmlinuz
append initrd=initrd.img rescue
label local
menu label Boot from ^local drive
localboot 0xffff
label memtest86
menu label ^Memory test
kernel memtest
append -
[root@network ~]#
CONFIGURE THE ks.cfg file like this
[root@network ~]# cat /var/ftp/pub/REDHAT/ks.cfg
#platform=x86, AMD64, or Intel EM64T
#version=DEVEL
# Firewall configuration
firewall --disabled
# Install OS instead of upgrade
install
# Use network installation
url --url="ftp://192.168.0.75/pub/REDHAT/"
# Root password
rootpw --iscrypted $1$CjDlI3aq$4p088wzspihZ2xZ0NZQzO/
# System authorization information
auth --useshadow --passalgo=sha512
# Use graphical install
graphical
firstboot --disable
# System keyboard
keyboard us
# System language
lang en_US
# SELinux configuration
selinux --disabled
# Installation logging level
logging --level=info
# System timezone
timezone Asia/Kolkata
# Network information
network --bootproto=dhcp --device=eth0 --onboot=on
# System bootloader configuration
bootloader --location=mbr
# Partition clearing information
clearpart --all
# Disk partitioning information
part / --fstype="ext4" --size=10240
part swap --fstype="swap" --size=2048
%packages
@kde-desktop
%end
[root@network ~]#
Save the kick-start config file in /var/ftp/pub/REDHAT/
#restart the vsftpd service.
#restart xinetd service.
12# cp -avr /usr/share/doc/dhcp-4.1.1/dhcpd.conf.sample /etc/dhcp/dhcpd.conf
13 # vim /etc/dhcp/dhcpd.conf
subnet 10.254.239.0 netmask 255.255.255.224 {
range 10.254.239.10 10.254.239.20;
option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org;
}
# This declaration allows BOOTP clients to get dynamic addresses,
# which we don't really recommend.
subnet 192.168.0.0 netmask 255.255.255.0 {
range dynamic-bootp 192.168.0.58 192.168.0.59;
#option subnet-mask 255.255.255.0
filename "/pxelinux.0";
next-server 192.168.0.75;
option broadcast-address 10.254.239.31;
option routers rtr-239-32-1.example.org;
}
# A slightly different configuration for an internal subnet.
subnet 10.5.5.0 netmask 255.255.255.224 {
range 10.5.5.26 10.5.5.30;
option domain-name-servers ns1.internal.example.org;
option domain-name "internal.example.org";
option routers 10.5.5.1;
option broadcast-address 10.5.5.31;
default-lease-time 600;
max-lease-time 7200;
}
14 # edit like above this
15 # service dhcpd restart; chkconfig dhcpd on
17 # vim /etc/yum.repos.d/server.repo on
add ftp repo
[Server]
baseurl=ftp://192.168.0.75/pub/REDHAT
enabled=1
gpgcheck=0
~
18 # copy dvd in to pub/REDHAT dir
# cp -avr /mnt/* /var/ftp/pub/REDHAT/
19 # restart vsftpd service
thats its
Good Document thanks .......its work perfectly
ReplyDelete