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--
Deployment of PXE remote installation server in Linux
Hang the CD in the mnt directory
1 yum-y install vsftpd dhcp tftp-server syslinux
2 centos7 installation source preparation
Mkdir / var/ftp/centos7
Cp-rf / mnt/ / var/ftp/centos7
Systemctl start vsftpd
3 enable tftp service
Vim / etc/xinetd.d/tftp
Change disable=yes to disable=no
Systemctl start tftp
Systemctl enable tftp
4 prepare Linux kernel, initialize image file, boot menu file
Cd / mnt/images/pxeboot
Cp vmlinuz initrd.img / var/lib/tftpboot
Cp / usr/share/syslinux/pxelinux.0 / var/lib/tftpboot
Mkdir / var/lib/tftpboot/pxelinux.cfg
Vim / var/lib/tftpboot/pxelinux.cfg/default
Default auto
Prompt 1
Label auto
Kernel vmlinuz
Append initrd=initrd.img method= ftp://192.168.1.20/centos7
Label linux text
Kernel vmlinuz
Append text initrd=initrd.img method= ftp://192.168.1.20/centos7
Label linux rescue
Kernel vmlinuz
Append rescue initrd=initrd.img method= ftp://192.168.1.20/centos7
Note: the three boot portals defined in the above configuration record are graphical installation (default), text installation and rescue mode. Prompt is used to set whether to wait for the user to choose. 1 means to choose, and 0 means no selection. 192.168.1.20/centos7 represents the server address and installation source location.
5 configure to enable DHCP service
Cp/ usr/share/doc/dhcp-/dhcpd.conf.example / etc/dhcp/dhcpd.conf
Vim / etc/dhcp/dhcpd.conf
Add next-server 192.168.1.20; / / specify the TFTP server address
Filename "pxelinux.0"; / / specify the file name of the PXE bootstrapper
Fill in the network segment, address pool, gateway and DNS according to the actual situation.
Systemctl restart dhcpd
Systemctl enable dhcpd
Note: turn off the firewall
Systemctl stop firewalld
Systemctl disable firewalld
6 installation
The installation memory must be greater than 2G, or the following error message will appear:
/ sbin/dmsquash-live-root: line 273: printf: write error: No space left on device
Press enter directly after the prompt string boot to enter the default graphic installation entry, execute linux text to enter the text installation entry, execute Linux rescue to enter rescue mode
7 implement unattended installation of Kickstart
Yum-y install system-config-kickstart
Partition is divided into sizes according to their own needs.
Save the auto answer file
Edit the answer file and add the required script
% packages
@ ^ gnome-desktop / / this is to copy the package script in anaconda-ks.cfg
% end
Start the auto answer file
Cp / root/ks.cfg / var/ftp/centos7
Vim / var/lib/tftpboot/pxelinux.cfg/default
Add ks= ftp://192.168.1.20/centos7/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.