Linux Cloud Automation Operations Basics (PXE automated installation deployment)

Source: Internet
Author: User

Need packages:
System-config-kickstart # #自动应答脚本制作工具
Syslinux # #获得pxelinux. 0 File Installation package
DHCP # #分配ip给客户机的服务
Tftp-server # #提供tftp协议的服务
HTTPD # #安装源共享服务

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/9D/79/wKioL1mAhyajyUr1AAAhv6-Kr08694.png "title=" Screenshot from 2017-08-01 20-42-22.png "alt=" Wkiol1mahyajyur1aaahv6-kr08694.png "/>


Automatic installation principle:

1. The client starts from its own PXE network card and requests IP from the DHCP server in the network

2.DHCP server returned to client IP

3. The client requests the files from the TFTP server in the network

4. The client obtains the bootstrap file after the execution boot file completes the boot

5. Then read the configuration file and load the kernel and file system via the TFTP server

6. Enter the installation screen, which can be installed by selecting HTTP mode

From here, we're not hard to get. 4 elements required to implement a PXE network installation

1. The client's network card must be a PXE NIC

2. The network must have HTTP,DHCP and TFTP server, of course, the two servers can be the same physical host

3. The installation must support the network installation.

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M00/9D/79/wKiom1mAiPiyvd6pAAEF_x9MFcw260.png "style=" float : none; "title=" screenshot from 2017-08-01 20-45-59.png "alt=" Wkiom1maipiyvd6paaef_x9mfcw260.png "/>


1 mount the rhel7.2 image under ISO to/var/www/html/rhel7.2

2 Configuring/etc/yum.repos.d/rhel7.2.repo




650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M01/9D/79/wKioL1mAiPnw47GFAAFjrD-eODM769.png "style=" float : none; "title=" screenshot from 2017-08-01 20-49-38.png "alt=" Wkiol1maipnw47gfaafjrd-eodm769.png "/>

3. Configure the System-config-kickstart Auto-answer scripting tool

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M00/9D/79/wKiom1mAic7hJIQ5AACDyJqjoTs219.png "style=" float : none; "title=" screenshot from 2017-08-01 21-10-52.png "alt=" Wkiom1maic7hjiq5aacdyjqjots219.png "/>

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M00/9D/79/wKioL1mAic6DXhVrAAChZozeDsQ406.png "style=" float : none; "title=" screenshot from 2017-08-01 20-58-39.png "alt=" Wkiol1maic6dxhvraachzozedsq406.png "/>

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/9D/79/wKiom1mAidHRBBhzAACnF6NSDqQ703.png "style=" float : none; "title=" screenshot from 2017-08-01 20-57-44.png "alt=" Wkiom1maidhrbbhzaacnf6nsdqq703.png "/>

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/9D/79/wKioL1mAidLBCsWfAABfkmiPOlU411.png "style=" float : none; "title=" screenshot from 2017-08-01 20-54-54.png "alt=" Wkiol1maidlbcswfaabfkmipolu411.png "/>

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M02/9D/79/wKiom1mAidLh0m0xAABMv4Q_0Qw057.png "style=" float : none; "title=" screenshot from 2017-08-01 20-54-28.png "alt=" Wkiom1maidlh0m0xaabmv4q_0qw057.png "/>

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M02/9D/79/wKioL1mAidSwvtYnAACJpKkzQAQ793.png "style=" float : none; "title=" screenshot from 2017-08-01 20-54-23.png "alt=" Wkiol1maidswvtynaacjpkkzqaq793.png "/>

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/9D/79/wKioL1mAidWQwcjhAABO_1iS4z4530.png "style=" float : none; "title=" screenshot from 2017-08-01 20-54-10.png "alt=" Wkiol1maidwqwcjhaabo_1is4z4530.png "/>

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/9D/79/wKiom1mAidiyfzplAABsFz-LNbM380.png "style=" float : none; "title=" screenshot from 2017-08-01 20-53-55.png "alt=" Wkiom1maidiyfzplaabsfz-lnbm380.png "/>

4vim/var/www/html/ks.cfg Configuring the Auto Answer Script package


650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M00/9D/79/wKiom1mAimfAGYp8AACnF6NSDqQ431.png "title=" Screenshot from 2017-08-01 20-57-44.png "alt=" Wkiom1maimfagyp8aacnf6nsdqq431.png "/>

5. After configuring the Ks.cfg file, enter 172.25.254.28/ks.cfg in the browser and the following interface indicates the HTTP shared service succeeded

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M01/9D/79/wKiom1mAio_StEDhAAChZozeDsQ680.png "title=" Screenshot from 2017-08-01 20-58-39.png "alt=" Wkiom1maio_stedhaachzozedsq680.png "/>

6. . Configuring TFTP The service prepares the file under Tftpboot and configures the boot kernel program

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/9D/79/wKioL1mAixqDJnszAACDyJqjoTs752.png "title=" Screenshot from 2017-08-01 21-10-52.png "alt=" Wkiol1maixqdjnszaacdyjqjots752.png "/>

7. Experimental testing

650) this.width=650; "class=" Transparent "alt=" https://s2.51cto.com/wyfs02/M00/9D/35/ Wkiol1l7shughvgxaacyljqbn3c153.png "src=" https://s2.51cto.com/wyfs02/M00/9D/35/ Wkiol1l7shughvgxaacyljqbn3c153.png "/>

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/9D/79/wKiom1mAi6rB9v3oAArTtFAmjag014.png "style=" float : none; "title=" screenshot from 2017-08-01 21-19-55.png "alt=" Wkiom1mai6rb9v3oaarttfamjag014.png "/>

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M00/9D/79/wKiom1mAi7HSrADaAA71IntNA58074.png "style=" float : none; "title=" screenshot from 2017-08-01 21-24-37.png "alt=" Wkiom1mai7hsradaaa71intna58074.png "/>

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M00/9D/79/wKioL1mAi7jhMdurAAvFCy4W2B8627.png "style=" float : none; "title=" screenshot from 2017-08-01 21-54-48.png "alt=" Wkiol1mai7jhmduraavfcy4w2b8627.png "/>


This article is from the "13122425" blog, please be sure to keep this source http://13132425.blog.51cto.com/13122425/1952803

Linux Cloud Automation Operations Basics (PXE automated installation deployment)

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.