In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
First of all, we need to install the TFTP server based on UDP protocol for later network transmission of simple files.
Import the boot file and kernel file that need to be provided to the client in the TFTP root path, and the PXE bootstrap file pxelinux.0 (provided by the syslinux program), start the menu configuration settings, create the pxelinux.cfg directory, rename the isolinux.cfg boot image file to default, install the dhcp service, in order to dynamically assign the IP address to the client and transfer the PXE bootstrap file to the client based on UDP, install vsftpd In order to provide the source package for the client to install the operating system after a successful PXE boot, install kickstart, guide the path to the script file for automatic deployment in the default default file, and perform test results on the client
The main experimental process:
Experiment 1: using Centos7 to realize unattended automatic installation
1, install dhcp,vsftpd
Mount / dev/sr0 / media/cdrom
Yum-y install dhcp vsftp vsftp-server
Cat / usr/share/doc/dhcp-4.2.5/dhcpd.conf.example > / etc/dhcp/dhcpd.conf
Vim / etc/dhcp/dhcpd.conf
Systemctl start dhcpd
Ss-unl # to see if port 67 is listening
Rpm-ql tftp-server
2. Modify the vsftpd configuration file
The Ls / var/lib/tftpboot # tftp file accesses the root directory, now there are no files
Vim / etc/xinetd.d/tftp
Systemctl start tftp.socket # socket is required to enable tftp in 7
Ss-unl # to see if port 69 is listening
3. Install httpd,sysylinux
Yum-y install httpd syslinux
Mkdir-pv / var/www/html/centos/7/x86-64
Systemctl start httpd # access Test
4. Modify the warehouse path and ks.cfg
Rpm-ql syslinux
Cp / usr/share/syslinux/pxelinux.0 / var/lib/tftpboot/
Cd / var/www/html/centos/7/x86-64/images/pxeboot/
Cp .img vmlinuz / var/lib/tftpboot/
Cd / usr/share/syslinux/
Cp chain.c32 menu.c32 memdisk mboot.c32 / var/lib/tftpboot/
Cd / var/lib/tftpboot/
Cp / usr/share/syslinux/vesamenu.c32. /
Mkdir pxelinux.cfg
Ls
Cd prelinux.cfg
Vim default
Summary
Solinux.bin: CD boot program. You need to specify the file path in the options of mkisofs. This file belongs to the SYSLINUX project.
The configuration file of isolinux.cfg:isolinux.bin, when the CD starts (that is, run isolinux.bin), it will automatically find the isolinux.cfg file.
Vesamenu.c32: it is the installation graphical interface after CD boot. It also belongs to the SYSLINUX project. The menu.c32 version is a plain text menu.
Memtest: memory detection, this is an independent program
Splash.jgp: background image of CD boot interface
Vmlinuz is the kernel image
Initrd.img is ramfs (first cpio, then gzip compression)
Delete the two lines of the domain name when modifying the dhcp main configuration file, and automatically find her by default when you install the machine, which will lead to a timeout.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.