In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article is about how to use kickstart to install the unattended operating system. I think it is very practical, so I share it with you. I hope you can get something after reading this article. Let's take a look at it.
Linux-based watchkeeping
1. Required system services, DHCP server, tftp, (vsftp,nfs,http)
Experimental requirements: a linux server, a client without a system installed-the motherboard supports pxe, and the VMware virtual machine can also be used to build the environment.
Second, the experimental steps
First of all, the server needs to build its own yum source.
1.yum-y install dhcp-install DHCP server
2.cp / usr/share/doc/dhcp-4.2.5/dhcpd.conf.example / etc/dhcp/dhcpd.conf-copy the DHCP sample file, and you will be prompted whether to overwrite it or not, and click directly to make sure it is ok.
3. Modify the DHCP configuration file, location / etc/dhcp/dhcpd.conf
4.vim / etc/dhcp/dhcpd.con
In the first part, that is to write the local IP segment, the second part writes the local subnet mask, the third part writes the address pool, such as 1.1.1.1 1.1.1.10 indicates that it is sent from 1 to 10 is an IP, and the fourth part writes the local broadcast address.
, add in the last row
Next-server IP;- means that after the client receives the DHCP, the client is assigned to go to the IP to get the file. Note that both paragraphs need a semicolon at the end.
Filename "/ pxelinux.0"; means to find this file
Vi editor needless to say!
Systemctl restart dhcpd-restart the dhcp server
5. Install and configure tftp server
Yum-y install tftp-server installs tftp server
Yum-y install xintet*
Vim / etc/xinetd.d/tftp-explain why it is not modified in the tftp configuration file. Tftp is in a nested xinetd service. Just start up and modify the xinetd configuration file.
Change the original yes to no, which means startup. Just restart tftp after saving the file.
Systemctl restart tftp.service
Systemctl restart xinetd.service
Even if this step is complete, the next step is to copy the boot files needed by the system to the tftp root directory
First enter your own image mount point
[root@localhost pxeboot] # pwd
/ mnt/cdrom/images/pxeboot
Cp initrd.img vmlinuz / var/lib/tftpboot/ copy these two files to the tftp directory
Then create a new file called pxlinux.cfg under / var/lib/tftpbppt
Mkdir / var/lib/tftpboot/pxelinux.cfg
Cp / mnt/cdrom/isolinux/isolinux.cfg / var/lib/tftpboot/pxelinux.cfg/default
Cp / mnt/cdrom/isolinux/vesamenu.c32 / var/lib/tftpboot/
.
|-- initrd.img
|-- pxelinux.cfg
|-- default |-- vesamenu.c32-- vmlinuz
This is the final file tree.
After copying the files, the next step is to install syslinux.
Yum-y install syslinux
Copy the files from syslinux to the tftp directory
Cp / usr/share/syslinux/pxelinux.0 / var/lib/tftpboot/
To install nfs, you will use nfs here, because this is the easiest
Yum-y install nfs*
Systemctl restart nfs
Modify nfs configuration file
Vim / etc/exports
Start nfs
Exportfs-avr
Showmount-e to see if the mount is successful.
Modify the startup configuration file
Vim / var/lib/tftpboot/pxelinux.cfg/default
Copy the ks file and edit
Cp / root/anaconda-ks.cfg / mnt/ks.cfg
Finally, turn off the firewall.
Systemctl stop firewall
Setenforce 0
At this point, the configuration is over
Find a client to do the experiment.
If you have any questions, please point out that you have a la carte for the first time
The above is how to use kickstart for unattended installation of the operating system, the editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
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.