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/02 Report--
The server installs the system in batch to the workstation.
Through PXE (pre-boot execution environment, booting through the network card, the network card must support PXE technology) technology, the workstation can download the image from the remote server, and thus support booting the operating system through the network. During the startup process, the terminal requires the server to assign an IP address, and then uses the TFTP (trivial file transfer protocol) protocol to download a startup software package to the local memory for execution.
To use the kickstart installation platform, the full architecture is kickstart+DHCP+NFS+TFTP+PXE
Yum install-y dhcp* tftp*
Tftp is a non-independent startup process that relies on other software and / etc/init.d/xinted. This xinet is dedicated to managing non-independent startup services.
Configure TFTP
Modify / etc/xinetd.d/tftp to change disable to no
Server_args =-s / var/lib/tftpboot in the file is the file storage directory
/ etc/init.d/xinetd start
Link / var/lib/tftpboot to the root directory
Ln-s / var/lib/tftpboot /
Cd / tftpboot/
Server is equipped with PXE
To find the file pxelinux.0
Yum install-y syslinux syslinux-devel
Cp / usr/share/syslinux/pxelinux.0 / tftpboot/
Mount the CD and copy it to / data
Mkdir-p / data/centosinstall/
Mount / dev/cdrom / data/centosinstall/
Cp-a / mnt/* / data/centosinstall/
The following two files open the opportunity to find
Cp / data/centosinstall/p_w_picpaths/pxeboot/vmlinuz / tftpboot/
Cp / data/centosinstall/p_w_picpaths/pxeboot/initrd.img / tftpboot/
Configure a boot menu
Mkdir / tftpboot/pxelinux.cfg
Copy menu boot file
Cp / data/centosinstall/isolinux/isolinux.cfg / tftpboot/pxelinux.cfg/default
Vim / tftpboot/pxelinux.cfg/default write
#
Default linux
Prompt 1
Timeout 10
Display boot.msg
F1 boot.msg
F2 options.msg
F3 general.msg
F4 param.msg
F5 rescue.msg
#
Label linux
Kernel vmlinuz
Append ks=nfs:192.168.1.106:/data/centosinstall/ks.cfg ksdevice=eth0 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
Kernel memtest
Append-
The second part is the meaning of loading kernel.
Ks=nfs means to find the file shared remotely after the kernel is loaded; ksdevice specifies which network card starts to install the system.
The first part of F1 to F5 can not be, because the top and bottom are Linux, boot directly automatically load the kernel.
Share this image with NFS
Echo "/ data/centosinstall/ * (ro,sync,insecure,no_root_squash)" > > / etc/exports
/ etc/init.d/nfs restart
After TFTP is configured, since TFTP is a non-independent service, you need to rely on xinetd service to start it. The startup command is as follows:
Chkconfig tftp-- level 35 on & & service xinetd restart
Then create ks.cfg under / data/centosinstall/, this file is equipped with what system, how to partition, which software, or / root/anaconda-ks.cfg cp into ks.cfg, this is the local installation of the system step, this file should be used by the teacher
Touch / data/centosinstall/ks.cfg
Cat > / data/centosinstall/ks.cfg
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.