Setup and configuration of PXE automatic installation redhat7.0 service

Source: Internet
Author: User
Tags file transfer protocol

First, Brief introduction

PXE (preboot execute environment, pre-boot execution Environment) is Intel Corporationdevelopment of the latest technology, working in Client/server network mode, supportWorkstationsThe image is downloaded from the remote server over the network, which supports booting the operating system over the network, and during the boot process, the terminal requires the server to assign an IP address and thenTFTP(Trivial File Transfer Protocol) ormtftp(Multicast trivial File Transfer Protocol) protocol to download a boot package to native memory execution, completed by this boot package terminal (customer? Basic software settings to boot the terminal operating system that is pre-installed in the server. PXE can boot multiple operating systems, such as:Windows95/98/2000/windows2003/windows2008/winxp/win7/win8,Linuxand so on.

This article uses a simple introduction and configuration PXE automatic installation and initial configuration of Linux system, the Linux version used here is Redhat Enterprise Edition 7.0 as a demonstration.

Second, installation tools and installation environment

installation Environment: Redhat Enterprise Edition 7.0

Required installation package: system-config-kickstart# #自动应答脚本制作工具

Syslinux# #获得pxelinux. 0 File Installation package

DHCP# #分配ip给客户机的服务

Tftp-server# #提供tftp协议的服务

httpd# #安装源共享服务


Three, installation steps and Configuration

(1) Install httpd service

Here use their own configured Yum source for installation, the HTTPD service to open, and to boot from the start, the prompt must be turned off the firewall, or outsiders will not connect to your httpd service.

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/7A/6F/wKioL1ao2mHSDL6rAAB6r-XWLKQ393.png "title=" 3.png " alt= "Wkiol1ao2mhsdl6raab6r-xwlkq393.png"/>

Below, configure the Yum source under the httpd service so that others can connect through the httpd service and download the installation package that is required to install it.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/7A/6F/wKiom1ao24qAeBK2AABDp-Ws_HI243.png "title=" 4.png " alt= "Wkiom1ao24qaebk2aabdp-ws_hi243.png"/>

Here the configuration of the httpd service and the Yum source has been completed.

The Yum.repo content in the Yum source is as follows:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/7A/6F/wKiom1ao3H7Ba8GuAAAZ_CD71gM729.png "title=" 5.png " alt= "Wkiom1ao3h7ba8guaaaz_cd71gm729.png"/>

(2) Install and configure DHCP service 650) this.width=650; "Src=" http://s5.51cto.com/wyfs02/M00/7A/6F/ Wkiom1ao3kwxxezlaabkr0ejus4823.png "title=" 6.png "alt=" Wkiom1ao3kwxxezlaabkr0ejus4823.png "/>

This has been installed successfully, no longer repeat.

Configure the DHCP service below

First copy the template, and then make the changes, as follows:

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/7A/6F/wKioL1ao31HwpwRQAABJuIB6pUY088.png "title=" 7.png " alt= "Wkiol1ao31hwpwrqaabjuib6puy088.png"/>

The/etc/dhcp/dhcpd.conf file is edited as follows:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/7A/6F/wKioL1ao4XXTNt-yAACXs6vCCCI205.png "title=" 8.png " alt= "Wkiol1ao4xxtnt-yaacxs6vccci205.png"/>

Then restart the DHCP service: systemctl restart DHCPD

(3) Configuration of Tftp-server service

First install the Tftp-server software package and configure the/etc/xinetd.d/tftp file 650) this.width=650; src= http://s3.51cto.com/wyfs02/M01/7A/6F/ Wkiom1ao46mbxxhoaab0h0fvxm0396.png "title=" 9.png "alt=" Wkiom1ao46mbxxhoaab0h0fvxm0396.png "/>

This will change the Yes to disable in the/etc/xinetd.d/tftp file to no

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/7A/6F/wKioL1ao5NzQPT1UAAA-CO7eRO0891.png "title=" 1.png " alt= "Wkiol1ao5nzqpt1uaaa-co7ero0891.png"/>

Then restart the TFTP service, note here that it is systemctl restart xinetd

(4) The production process of automatic response script

First install system-config-kickstart650) this.width=650; "Src=" http://s4.51cto.com/wyfs02/M02/7A/6F/ Wkiom1ao6zhziooaaadvu6r13k8196.png "title=" 7.png "alt=" Wkiom1ao6zhziooaaadvu6r13k8196.png "/>

Then launch the System-config-kickstart to make the scripting tool

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/7A/6F/wKioL1ao6tmiZt8XAADsQctBRVY288.png "title=" 8.png " alt= "Wkiol1ao6tmizt8xaadsqctbrvy288.png"/>

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/7A/6F/wKioL1ao6xriamW6AAAzzftmhT8270.png "title=" 10.png "alt=" Wkiol1ao6xriamw6aaazzftmht8270.png "/>

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/7A/6F/wKiom1ao6zXBe5DIAAC0OycADcA800.png "title=" 1.png " alt= "Wkiom1ao6zxbe5diaac0oycadca800.png"/>

Here is the partitioning setup, which is divided into/boot, swap and/partition.

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/7A/6F/wKioL1ao7DOCj92WAACKMHVCOv4089.png "title=" 2.png " alt= "Wkiol1ao7docj92waackmhvcov4089.png"/>

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/7A/6F/wKiom1ao6_zxSMCiAACFr0m23LQ964.png "title=" 3.png " alt= "Wkiom1ao6_zxsmciaacfr0m23lq964.png"/>

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/7A/6F/wKioL1ao7FLhuZ3KAAB86g3yOzQ178.png "title=" 4.png " alt= "Wkiol1ao7flhuz3kaab86g3yozq178.png"/>

The following is the default in the gateway after the settings

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/7A/6F/wKiom1ao7GHA24xaAAC9xSgJkCo258.png "title=" 5.png " alt= "Wkiom1ao7gha24xaaac9xsgjkco258.png"/>

Save the generated ks.cfg file to the/var/www/html/directory, which will be used below, through the httpd service to get


The following is the installation package information added in the/var/www/html/ks.cfg file, where only the basic installation package is installed and the user can choose according to their needs:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/7A/6F/wKiom1ao7guTGf1EAAAwzDQsTzY988.png "title=" 6.png " alt= "Wkiom1ao7gutgf1eaaawzdqstzy988.png"/>

(5) Configuring Pxelinux Services and Documents

The configuration steps are as follows, do not repeat here, remember to first install the Syslinux installation package

Installation commands such as: Yum install syslinux-y

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/7A/6F/wKiom1ao5WmQx8Y4AAAmb3yWyPU700.png "title=" 2.png " alt= "Wkiom1ao5wmqx8y4aaamb3ywypu700.png"/>

Finally, modify the contents of the file inside the default, the main changes are the defaults startup options, startup time, title, installation source and automatic answer script, modified as follows:

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/7A/6F/wKioL1ao57fzvEvRAABEChI3cnE073.png "title=" 3.png " alt= "Wkiol1ao57fzvevraabechi3cne073.png"/>

The following changes are particularly important, note that the address here is the address you configured above

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/7A/6F/wKioL1ao6OGQUKHRAABZkPoVtMg388.png "title=" 6.png " alt= "Wkiol1ao6ogqukhraabzkpovtmg388.png"/>



Through the above installation and configuration, you can let others automatically obtain your information by selecting PXE and automatically perform the installation of the Linux system.

Note: All your services must be turned on normally, the firewall will be shut down, or others will not be able to get information over the network.

At this point, the setup and configuration of the PXE auto-install redhat7.0 service have all been completed.



The above is from the "ptallrights" blog, be sure to keep this out : http://11161122.blog.51cto.com/














This article is from the "11151122" blog, please be sure to keep this source http://11161122.blog.51cto.com/11151122/1739405

Setup and configuration of PXE automatic installation redhat7.0 service

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.