Below are the steps to configure a Kick
Start Server(192.168.0.254) ::
1:: mkdir -p /data/network-install/RPM
mkdir /data/network-install/kickstart/
2:: copy entire DVD contents
cp -r /media/* /data/network-install/RPM/
3:: configure httpd.conf as below then start httpd service and verify http://192.168.0.254/network-install/RPM/
NameVirtualHost 192.168.0.254
<VirtualHost 192.168.0.254>
ServerName 192.168.0.254
DocumentRoot /data/
</VirtualHost>
<Directory /data/network-install>
Options +Indexes
AllowOverride AuthConfig
order allow,deny
allow from all
</Directory>
4:: disable firewall and SELinux of configure to work accordingly
5:: yum install system-config-kickstart
6:: run system-config-kickstart command to configure and save ks.cfg file into /data/network-install/kickstart/ folder
http server == 192.168.0.254
http path == /network-install/RPM/
install method == text
configure disk partition accordingly
if u want to stop cups , sendmail service in off condition the use below commands in % post script section
chkconfig cups off
chkconfig sendmail off
now it is ready for Kick Start installation.............
insert DVD and boot the server. Give below command to start kickstart installation
linux ks=http://192.168.0.254/network-install/kickstart/ks.cfg
If you have not configured ks.cfg file and just configured a http server then insert DVD and give below command to start installation:
linux askmethod
when prompt comes for Web site name == 192.168.0.254
when prompt comes for Directory == /network-install/RPM/
==========================================================================
If you want to configure PXE boot Installation Server on the same server then follow below steps:
1:: install below packages using yum command ::
tftp-server-*
dhcp-*
xinetd-*
system-config-netboot
syslinux
2:: run below command ::
cp /usr/lib/syslinux/menu.c32 /tftpboot/
cp /usr/lib/syslinux/pxelinux.0 /tftpboot/
cp /media/images/pxeboot/initrd.img /tftpboot/rhel5/
cp /media/images/pxeboot/vmlinuz /tftpboot/rhel5/
3:: create a file "/tftpboot/pxelinux.cfg/default" and write below lines into the file::
timeout 100
default menu.c32
menu title $$$$$$Boot Menu$$$$$$
label 1
menu label ^ 1) RHEL5
kernel rhel5/vmlinuz
append initrd=rhel5/initrd.img ks=http://192.168.0.254/network-install/kickstart/ks.cfg ksdevice=eth0
4:: configure dhcpd.conf
Allow booting;
Allow bootp;
authoritative;
ddns-update-style ad-hoc;
subnet 192.168.0.0 netmask 255.255.255.0 {
option routers 192.168.0.100;
option subnet-mask 255.255.255.0;
option domain-name "example.com";
option domain-name-servers 192.168.0.254;
default-lease-time 2600;
max-lease-time 4800;
range dynamic-bootp 192.168.0.10 192.168.0.150;
filename "pxelinux.0";
next-server 192.168.0.254;
}
5:: vi /etc/xinetd.d/tftp
# Open the xinetd settings to enable tftp server.
# at line 14 set the parameter to no from yes.
Disable=no
service xinetd restart
now power on a server on which you want to install RHEL 6. Select boot from network option when prompt comes to select boot media or use BIOS options to boot from network.
1:: mkdir -p /data/network-install/RPM
mkdir /data/network-install/kickstart/
2:: copy entire DVD contents
cp -r /media/* /data/network-install/RPM/
3:: configure httpd.conf as below then start httpd service and verify http://192.168.0.254/network-install/RPM/
NameVirtualHost 192.168.0.254
<VirtualHost 192.168.0.254>
ServerName 192.168.0.254
DocumentRoot /data/
</VirtualHost>
<Directory /data/network-install>
Options +Indexes
AllowOverride AuthConfig
order allow,deny
allow from all
</Directory>
4:: disable firewall and SELinux of configure to work accordingly
5:: yum install system-config-kickstart
6:: run system-config-kickstart command to configure and save ks.cfg file into /data/network-install/kickstart/ folder
http server == 192.168.0.254
http path == /network-install/RPM/
install method == text
configure disk partition accordingly
if u want to stop cups , sendmail service in off condition the use below commands in % post script section
chkconfig cups off
chkconfig sendmail off
now it is ready for Kick Start installation.............
insert DVD and boot the server. Give below command to start kickstart installation
linux ks=http://192.168.0.254/network-install/kickstart/ks.cfg
If you have not configured ks.cfg file and just configured a http server then insert DVD and give below command to start installation:
linux askmethod
when prompt comes for Web site name == 192.168.0.254
when prompt comes for Directory == /network-install/RPM/
==========================================================================
If you want to configure PXE boot Installation Server on the same server then follow below steps:
1:: install below packages using yum command ::
tftp-server-*
dhcp-*
xinetd-*
system-config-netboot
syslinux
2:: run below command ::
cp /usr/lib/syslinux/menu.c32 /tftpboot/
cp /usr/lib/syslinux/pxelinux.0 /tftpboot/
cp /media/images/pxeboot/initrd.img /tftpboot/rhel5/
cp /media/images/pxeboot/vmlinuz /tftpboot/rhel5/
3:: create a file "/tftpboot/pxelinux.cfg/default" and write below lines into the file::
timeout 100
default menu.c32
menu title $$$$$$Boot Menu$$$$$$
label 1
menu label ^ 1) RHEL5
kernel rhel5/vmlinuz
append initrd=rhel5/initrd.img ks=http://192.168.0.254/network-install/kickstart/ks.cfg ksdevice=eth0
4:: configure dhcpd.conf
Allow booting;
Allow bootp;
authoritative;
ddns-update-style ad-hoc;
subnet 192.168.0.0 netmask 255.255.255.0 {
option routers 192.168.0.100;
option subnet-mask 255.255.255.0;
option domain-name "example.com";
option domain-name-servers 192.168.0.254;
default-lease-time 2600;
max-lease-time 4800;
range dynamic-bootp 192.168.0.10 192.168.0.150;
filename "pxelinux.0";
next-server 192.168.0.254;
}
5:: vi /etc/xinetd.d/tftp
# Open the xinetd settings to enable tftp server.
# at line 14 set the parameter to no from yes.
Disable=no
service xinetd restart
now power on a server on which you want to install RHEL 6. Select boot from network option when prompt comes to select boot media or use BIOS options to boot from network.