1. TFTP
Yum install xinetd tftp-server-y: xinetd: Super Process
VIM/ETC/XINETD.D/TFTP: Writing TFTP configuration files
Disable = No: Shutdown prohibition option to start TFTP
Service xinetd Start Services
Chkconfig xinetd on Join boot entry
Yum Install syslinux-y Installation
cp/usr/share/syslinux/pxelinux.0/var/lib/tftpboot/Copy the boot file to/var/lib/tftpboot
Cd/misc/cd/isolinux:
CP vmlinuz initrd.img/var/lib/tftpboot/: Copy the kernel and the driver to the/VAR/LIB/TFTP
Cd/var/lib/tftpboot Enter
mkdir pxelinux.cfg Creating a configuration file for kernel-driven boot files
CD PXELINUX.CFG entry
Vim default to create the defaults configuration file
Default auto automatically defaults with auto
Prompt 0 (0: Cancel user wait, 1: User waits)
Label Auto
Kernel Vmlinuz
Append initrd=initrd.img devfs=nomount ramdisk_size=8192
Label Linux text
Kernel Vmlinuz
Append text initrd=initrd.img devfs=nomount ramdisk_size=8192
Label Linux Rescue First Aid mode
Kernel Vmlinuz
Append rescue initrd=initrd.img Devfs=nomount ramdisk_size=8192
2. DHCP
Yum Install Dhcp-y
Cp/usr/share/doc/dhcp-4.1.1/dhcpd.conf.sample/etc/dhcp/dhcpd.conf
Vim dhcpd.conf
Subnet 192.168.100.0 netmask 255.255.255.0 {
Range 192.168.100.150 192.168.100.200;
Option Subnet-mask 255.255.255.0;
Option routers 192.168.100.1;
Option Domain-name-servers 192.168.100.1;
Option Domain-name "lan.com";
Default-lease-time 21600;
Max-lease-time 43200;
Next-server 192.168.100.100; Server IP containing the specified file
FileName "pxelinux.0"; Specify the Startup file
}
Service DHCPD Start
Chkconfig DHCPD on
3. FTP
Yum Install Vsftpd-y
cp-rv/misc/cd/*/var/ftp/pub Copy all installation files of the system to FTP public files
Service VSFTPD Start
Chkconfig vsftpd on
Turn off SELinux
Vim/etc/selinux/config
Selinux=disabled
Reboot
4, Kickstart automatic response
Yum Install System-config-kickstart-y graphical interface
System-config-kickstart start
Post-Installation scripts
Rm-f/etc/yum.repos.d/*
Echo ' [Base]
Name=rhel
Baseurl=ftp://192.168.100.100/pub
Enabled=1
Gpgcheck=0 ' >/etc/yum.repos.d/rhel6.repo
CP Ks.cfg/var/ftp/pub/ks.cfg
Vim/var/lib/tftpboot/pxelinux.cfg/default
Default Auto
Prompt 0
Label Auto
Kernel Vmlinuz
Append ks=ftp://192.168.100.1/pub/ks.cfg initrd=initrd.img devfs=nomount ramdisk_size=8192 Specifies the location of the KS (to be replaced)
If you want to dive into the Linux system novice, you can also download a software center in Germany trial.
: Http://www.nfs-wuxi.com/cx/appCenter/open/softcenter
LINUX-PXE Batch Machine