Large-scale deployment of unattended Centos7

Source: Internet
Author: User
Given a network architecture diagram, you can communicate with each other if there is any problem during the installation process. I have been tossing for several days. 1. install DHCP, tftp, and HTTP. [Root @ test ~] # Yuminstalldhcptftp-serverhttpd2. modify DHCP, tftp, HTTP configuration file [root @ test ~] #

Specify a network architecture

If you have any problems during the installation process, you can communicate with each other. I have been involved for several days.
1. install DHCP, tftp, and HTTP.

[Root @ test ~] # Yum install dhcp tftp-server httpd

2. modify DHCP, tftp, and HTTP configuration files

[Root @ test ~] # Cp/usr/share/doc/dhcp-4.2.5/dhcpd. conf. example/etc/dhcp/dhcpd. conf
Cp: overwrite '/etc/dhcp/dhcpd. Conf '? Y

After modification, the content of the DHCP file is as follows:

Start DHCP service

Install syslinux to generate pxelinux.0, [root @ test ~] # Yum install syslinux

Configure the tftp service

[Root @ test ~] # Rpm-ql tftp-server
/Etc/xinetd. d/tftp
/Usr/lib/systemd/system/tftp. service
/Usr/lib/systemd/system/tftp. socket
/Usr/sbin/in. tftpd
/Usr/share/doc/tftp-server-5.2
/Usr/share/doc/tftp-server-5.2/CHANGES
/Usr/share/doc/tftp-server-5.2/README
/Usr/share/doc/tftp-server-5.2/README. security
/Usr/share/man/man8/in.tftpd.8.gz
/Usr/share/man/man8/tftpd.8.gz
/Var/lib/tftpboot

 

 

 

 

 

,

 

 

 

Configure HTTP service

After modifying the configuration, restart HTTP

[Root @ test conf. d] # systemctl restart httpd. service

Disable selinux and iptables

 

 

Ks file is also modified through the anaconda-ks.cfg, the content is as follows:

 

 

In this case, set the network of the client to start. the following page is displayed:

 

 

 

The above Error is displayed because two nework items are written in the ks file.

 

After waiting, press the up/down key to display the following:

 

The reason for the above problem is that in the default file under the/var/lib/tftpboot/pxelinux. cfg Directory

Menu linux

....

...

Append... inst. stage2 =... ks =... delete all stage2 =...

After the installation, the system will automatically restart (at this time, you can adjust the startup sequence in the BIOS). remember to set it to shutdown after the installation.

After the startup, log on to the interface. after logging on, the following Nic also gets the IP address

This article from "Happy Good" blog, please be sure to keep this source http://wdllife.blog.51cto.com/6615958/1608036

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.