Services to be used: PXE + dhcp+tftp+ kickstart+ FTP
Kickstart is a no-duty installation method
To perform a PXE + Kickstart installation, you need to prepare the content:
DHCP server is used to assign IP to client;
TFTP server is used to store the PXE files, such as: System boot files;
• FTP server is used to store system installation files;
Kickstart generated by the ks.cfg configuration file;
• Hosts that will be installed with a PXE-supported network card
1. Configure VSFTP for anonymous access: Previously configured, refer to previous articles
[Email protected] root]# vim/etc/vsftpd/vsftpd.conf
2. Installing TFTP
[email protected] root]# yum install tftp tftp-server xinetd-y
Configuring the TFTP server: The default server path is/tftpboot
[Email protected] root]# vim/etc/xinetd.d/tftp
[Email protected] root]#/etc/init.d/xinetd restart
3.DHCP Server configuration:
[Email protected] root]# vim/etc/dhcp/dhcpd.conf
The next-hop address.
Combine Pex to run.
4. Configure the relevant files required to use PXE boot
[Email protected] root]# yum-y install System-config-kickstart
The following records are ready to work. Mount the disc and put the system into the/tftpboot.
1065 Mount/dev/cdrom/media
1066 Mkdir/tftpboot
1067 Mkdir/tftpboot/pxelinux.cfg
1068 cp/usr/share/syslinux/pxelinux.0/tftpboot/
1069 ll/tftpboot/
1070 cp/media/images/pxeboot/initrd.img/tftpboot/
1071 cp/media/images/pxeboot/vmlinuz/tftpboot/
1072 Cp/media/isolinux/isolinux.cfg/tftpboot/pxelinux.cfg/default
1073 chmod 644/tftpboot/pxelinux.cfg/default Set permissions
1074 Vim/tftpboot/pxelinux.cfg/default Modifying a configuration file
1075 Yum Install system-config-kickstart-y installation Configuration Interface
Modify the default label
Temporarily change language
[Email protected] root]# LANG=ZH_CN. UTF-8
[Email protected] root]# echo $LANG
Zh_cn. UTF-8
Start configuring installation options.
[Email protected] root]# System-config-kickstart
Error, install the following dependency package.
[Email protected] root]# yum-y install Glib2-devel
[Email protected] root]# System-config-kickstart
The next step is to configure the
Display settings: Do not install the graphical interface
Package Selection: Install the specified package
Then save to root.
[email protected] root]# CP ks.cfg/var/ftp
Configure the FTP-based Yum source to read packages when used for client installation:
[Email protected] root]# mount/dev/cdrom/var/ftp/pub
Create a new virtual machine: The network mode is: VMNET4
Modify the BIOS boot order to network first, and start after power-up.
It is then installed automatically.
Unattended installation of Linux systems