1 mount the system files you need to install to/mnt first:
# mount-t cifs-o username=administrator,passwd=abcde//192.168.1.99/iso/mnt/
2 1-1 into the mounted/mnt directory, RPM installation Dhcp,tftp,kickstart:
#rpm-IVH *kickstart*
#rpm-IVH xinetd-2.3.14-10.el5.i386.rpm (TFTP service)
#rpm-IVH dhcp-3.0.5-23.el5.i386.rpm
RPM dhcp-devel-3.0.5-23.el5.i386.rpm
1-2 configuration dhcpd:
# cp/usr/share/doc/dhcp-3.0.5/dhcpd.conf.sample/etc/dhcpd.conf
# vi/etc/dhcpd.conf
Ddns-update-style Interim;
Ignore client-updates;
FileName "pxelinux.0";
Next-server 192.168.1.22;(write here, otherwise the system will not recognize the Linux kernel)
Subnet 192.168.1.0 netmask 255.255.255.0 {
Option routers 192.168.1.22;
Option Subnet-mask 255.255.255.0;
Option Nis-domain "domain.org";
Option Domain-name "domain.org";
Option Domain-name-servers 192.168.1.1;
Option time-offset-18000; # Eastern Standard Time
Range DYNAMIC-BOOTP 192.168.1.128 192.168.1.229;
Default-lease-time 21600;
Max-lease-time 43200;
# We want the nameserver to appear at a fixed address
Host NS {
Next-server 192.168.1.22;
Hardware Ethernet 12:34:56:78:AB:CD;
Fixed-address 192.168.1.22;
}
}
#/etc/init.d/dhcpd
1-3 Configuring TFTP:
# vi/etc/xinetd.d/tftp
Set Disable to No
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/58/07/wKioL1SoqI7Bv3LDAAFcYeNp8Ek149.jpg "title=" 1.png " alt= "Wkiol1soqi7bv3ldaafcyenp8ek149.jpg"/>
#/etc/init.d/xinetd Start
# Netstat-a | grep tftp
UDP 0 0 *:tftp *:* off (0.00/0/0
#cd/MNT/CENTOS5/ISOLINUX;CP */tftpboot/;mkdir pxelinux.cf
The Isolinux.cfg CP is then renamed to the newly created directory PXELINUX.CF: Default
#vi/tftpboot/pxelinux.cfg/default
Default Linux
Prompt 0
Timeout 1
Display Boot.msg
F1 boot.msg
F2 options.msg
F3 general.msg
F4 param.msg
F5 rescue.msg
Label Linux
Kernel Vmlinuz
Append ks=http://192.168.1.22/ks/ks.cfg initrd=initrd.img
Label text
Kernel Vmlinuz
Append initrd=initrd.img Text
Label KS
Kernel Vmlinuz
Append KS initrd=initrd.img
Label Local
Localboot 1
Label Memtest86
"Default" 24L, 397C
We will open the defined Ks.cfg file via HTTP access, so we need to install httpd (the installation httpd step over)
1-4 Configure kickstart below:
# System-config-kickstart
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/58/0B/wKiom1Sor0mRm0GQAAHtbtPL62o282.jpg "title=" 1.png " alt= "Wkiom1sor0mrm0gqaahtbtpl62o282.jpg"/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/58/08/wKioL1SosJvR3M9RAAGWtDsEt-g543.jpg "title=" 1.png " alt= "Wkiol1sosjvr3m9raagwtdset-g543.jpg"/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/58/0B/wKiom1SosB7xeMzuAAHSHweZMm4084.jpg "title=" 1.png " alt= "Wkiom1sosb7xemzuaahshwezmm4084.jpg"/>
Other options can be selected according to your needs. Here we save the configured ks.cfg file to the/var/www/html/ks directory.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/58/08/wKioL1SosTygu3_nAAFMYcG9bCo443.jpg "title=" 1.png " alt= "Wkiol1sostygu3_naafmycg9bco443.jpg"/> In
Under/var/www/html/ks View the Ks.cfg file:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/58/0B/wKiom1SosPmSOUtJAAGhMo8SmK4785.jpg "title=" 1.png " alt= "Wkiom1sospmsoutjaaghmo8smk4785.jpg"/>
Below we copy the system disk File to NFS connection:/VAR/WWW/HTML/CENTOS5
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/58/08/wKioL1SosfTynJ0HAAG-jeIBlt8658.jpg "title=" 1.png " alt= "Wkiol1sosftynj0haag-jeiblt8658.jpg"/>
Vi/etc/exports
/VAR/WWW/HTML/CENTOS5 * (rw)
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/58/08/wKioL1SoskmiKAoqAABve2ojdEY466.jpg "title=" 1.png " alt= "Wkiol1soskmikaoqaabve2ojdey466.jpg"/>
Start the NFS and Pormap services: Then start the installation via the Client network card (verify that SELinux and the firewall are turned off or the client will not be connected to the TFTP service):
This article is from the "King Good Handsome" blog, please be sure to keep this source http://dawang.blog.51cto.com/4927689/1598896
Kickstart unattended Installation