PXE + Kickstart Unattended Automatic installation example

Source: Internet
Author: User
Tags file transfer protocol

System version: CentOS 6.5 vsftpd software version: vsftpd-2.2.2-11 TFTP software version: tftp-server-0.49.7 DHCP software version: dhcp-4.1.1-38 System-config-kicksta RT Tool Version: System-config-kickstart-2.8.6.5-1


PXE is a network boot technology, operating mode: C/s mode, allowing clients to download the boot image from a remote host server over the network and load the installation files or the entire system


There are three prerequisites to build PEX network system:

    • The client's network card supports the PEX protocol, and the motherboard supports network boot

    • A DHCP server is required on the network to automatically assign addresses to the client and specify the boot file location

    • The server provides the download of the boot image file via tftp (Trivial file Transfer Protocol, simple Files Transfer Protocol)




Case topology diagram:

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/7C/DC/wKioL1bZcAfSFk6LAABfLHDGRl4107.jpg "title=" Experimental topology diagram. jpg "alt=" wkiol1bzcafsfk6laabflhdgrl4107.jpg "/>

Lab Environment:

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/7C/DE/wKiom1bZjU3T5zeaAABwegCup5A548.jpg "title=" Experimental environment. JPG "alt=" wkiom1bzju3t5zeaaabwegcup5a548.jpg "/>


I. Deploying a PXE installed server

1. Install the appropriate package and install it using the RPM package that comes with the CentOS system tray

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/7C/DE/wKiom1bZi6-B-8X2AAAe0Qk4WaM395.jpg "title=" Install the package. jpg "alt=" wkiom1bzi6-b-8x2aaae0qk4wam395.jpg "/>

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/7C/DD/wKioL1bZjGSzFL0jAABOHxPrQJA653.jpg "title=" View package. jpg "alt=" wkiol1bzjgszfl0jaabohxprqja653.jpg "/>


2. Create the CentOS 6.5 installation source directory under the/var/ftp/directory, and copy the files from the system disk to that directory

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/7C/DE/wKiom1bZiD-DoaGQAAAoWDeh7jM131.jpg "title=" CP system. JPG "alt=" wkiom1bzid-doagqaaaowdeh7jm131.jpg "/>


3. Start the FTP service and note the configuration of the firewall

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/7C/DD/wKioL1bZibbDd57-AABi0aNWh-k367.jpg "title=" Start Ftp.jpg "alt=" Wkiol1bzibbdd57-aabi0anwh-k367.jpg "/>


4. Configure the installation answer file

Open the Kickstart Configurator window from the desktop menu "Applications"-"System Tools"-"Kickstart"

It is then set according to the actual requirements, for example:

650) this.width=650; "src=" http://s4.51cto.com/wyfs02/M00/7C/DF/wKiom1bZpPqBe3voAAE-t4Q-NW8831.jpg "style=" float: none; "title=" kickstart-1.jpg "alt=" Wkiom1bzppqbe3voaae-t4q-nw8831.jpg "/>

650) this.width=650; "src=" http://s4.51cto.com/wyfs02/M00/7C/DF/wKiom1bZpP6DBVG2AADiwe7siZw282.jpg "style=" float: none; "title=" kickstart-2.jpg "alt=" Wkiom1bzpp6dbvg2aadiwe7sizw282.jpg "/>

650) this.width=650; "src=" http://s5.51cto.com/wyfs02/M00/7C/DD/wKioL1bZpX7BPHwqAAEDZIYpy0A189.jpg "style=" float: none; "title=" kickstart-3.jpg "alt=" Wkiol1bzpx7bphwqaaedziypy0a189.jpg "/>

650) this.width=650; "src=" http://s1.51cto.com/wyfs02/M01/7C/DF/wKiom1bZpQvy2z_aAADqg90en7I711.jpg "style=" float: none; "title=" kickstart-4.jpg "alt=" Wkiom1bzpqvy2z_aaadqg90en7i711.jpg "/>

650) this.width=650; "src=" http://s4.51cto.com/wyfs02/M00/7C/DD/wKioL1bZpYngpbIjAAEFBLqdrH8086.jpg "style=" float: none; "title=" kickstart-5.jpg "alt=" Wkiol1bzpyngpbijaaefblqdrh8086.jpg "/>

650) this.width=650; "src=" http://s5.51cto.com/wyfs02/M01/7C/DD/wKioL1bZpY_Sb_ckAAEJMANurdY218.jpg "style=" float: none; "title=" kickstart-6.jpg "alt=" Wkiol1bzpy_sb_ckaaejmanurdy218.jpg "/>


5. Start and configure the TFTP service

First, you need to modify the configuration file under TFTP

650) this.width=650; "src=" http://s5.51cto.com/wyfs02/M01/7C/DD/wKioL1bZjpGBvmjjAAARxAG4WZA325.jpg "style=" float: none; "title=" vimtftp.jpg "alt=" Wkiol1bzjpgbvmjjaaarxag4wza325.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/7C/DE/wKiom1bZjhbhixsZAABRNa689Fg797.jpg "style=" float: none; "title=" modifies the TFTP configuration file. jpg "alt=" wkiom1bzjhbhixszaabrna689fg797.jpg "/>


Then start the service and note the firewall with the port number "port 69th of UDP protocol"

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/7C/DE/wKiom1bZju_BEV4qAABbmtum4II816.jpg "title=" Start Tftp.jpg "alt=" Wkiom1bzju_bev4qaabbmtum4ii816.jpg "/>


Finally, copy the Linux kernel and initialize the image files to the root directory of TFTP.

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/7C/DD/wKioL1bZkdfzMtYcAAAvQLPEdFg936.jpg "title=" Copy the kernel file. jpg "alt=" wkiol1bzkdfzmtycaaavqlpedfg936.jpg "/>


4. Prepare the PXE bootstrapper and boot menu files

PXE Network installation Boot program is "pxelinux.0", provided by the package "Syslinux", a system is installed by default, if not installed, you can use the RPM package on the CD to install, and then copy "pxelinux.0" to the TFTP root directory

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/7C/DE/wKiom1bZkvbyxR74AAAxdKi-Ac4083.jpg "title=" Syslinux.jpg "alt=" Wkiom1bzkvbyxr74aaaxdki-ac4083.jpg "/>


The default boot menu file is "default" and should be placed in the PXELINUX.CFG subdirectory of the TFTP root directory (manually created)

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/7C/DD/wKioL1bZlODRblscAAAsh2xb8rM063.jpg "title=" Create a boot menu. jpg "alt=" wkiol1bzlodrblscaaash2xb8rm063.jpg "/>

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/7C/DF/wKiom1bZqJXzkoXuAAA1Hkvmqkc791.jpg "title=" Configure the default file contents. jpg "alt=" wkiom1bzqjxzkoxuaaa1hkvmqkc791.jpg "/>


6. Configure and start the DHCP service

650) this.width=650; "src=" http://s2.51cto.com/wyfs02/M00/7C/DD/wKioL1bZl-3yHCxLAAA_idymgIY593.jpg "style=" float: none; "title=" vimdhcp.jpg "alt=" Wkiol1bzl-3yhcxlaaa_idymgiy593.jpg "/>

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/7C/DF/wKiom1bZmADj-WLdAACh7qVSm2M591.jpg "title=" DHCP configuration. jpg "alt=" wkiom1bzmadj-wldaach7qvsm2m591.jpg "/>

Start the DHCP service, notice that the firewall

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/7C/DF/wKiom1bZrg6yVFkxAABSVAs7j7o544.jpg "title=" Start Dhcp.jpg "alt=" Wkiom1bzrg6yvfkxaabsvas7j7o544.jpg "/>


This allows the PXE installation server to be deployed


Second, the server is not installed system physical network connection, and then power on to complete the automatic installation

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/7C/DE/wKioL1bZryjyiejdAAEvDT4_Xpg452.jpg "title=" automatically installs. jpg "alt=" wkiol1bzryjyiejdaaevdt4_xpg452.jpg "/>


PXE + Kickstart Unattended Automatic installation example

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.