Pxe+kickstart+apach+dhcp+tftp for unattended installation, centos6.5

Source: Internet
Author: User

Objective: To implement unattended installation

Environment: centos6.5

Components: Default Pxe,kickstart, Apache, TFTP, DHCP

PXE:PXE (Pre-Boot execution Environment, pre-boot execution Environment)

    • is a boot mode, the network card must have the PXE CLIENT,PXE protocol to enable the computer to boot over the network. This protocol is divided into the client side and Server side, while the PXE client is in the ROM of the network card, when the computer boots, the BIOS will put the PXE client into memory execution, and then by the PXE client to be placed on the remote file over the network download to run locally, so run PXE protocol needs to set up DHCP server and TFTP server

Kickstart

    • An unattended installation, you can generate a custom answer parameter file Ks.cfg, when the installation, encountered the need for human action, the installer will go to view the Ks.cfg file, automatic response according to the settings inside, to automate the installation, and automatically restart according to the parameters

Steps

1:centos6.5 installation httpd

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6E/EB/wKiom1WLl-DwB2PLAABQWEIzgRg857.jpg "style=" float: none; "title=" Image.png "alt=" Wkiom1wll-dwb2plaabqweizgrg857.jpg "/>

2: after mounting, copy the contents of the disc to the root directory of HTTP/var/www/html/

    • Cp-r/mnt/cdrom/var/www/html

3: Install TFTP

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6E/E8/wKioL1WLmZyyXAWYAABQL3ryNhI944.jpg "title=" Image1.png "style=" Float:none; "alt=" wkiol1wlmzyyxawyaabql3rynhi944.jpg "/>

4: Configure and turn on services

    • /ETC/XINETD.D/TFTP configuration file

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6E/EB/wKiom1WLl_qwhF-bAAClaJfph34816.jpg "title=" Image2.png "alt=" Wkiom1wll_qwhf-baaclajfph34816.jpg "/>

    • Open service: (TFTP belongs to Super Demon)/etc/init.d/xinetd start

5: Set up PXE-enabled boot program

    • Copy the pxelinux.0 file into the/var/lib/tftpboot/directory

cp/usr/share/syslinux/pxelinux.0/var/lib/tftpboot/#Syslinux is a powerful bootloader and compatible with a variety of media
    • Copy the/image/pxeboot/initrd.img and vmlinux in the ISO image to the/var/lib/tftpboot/ directory

Cp/var/www/html/cdrom/images/pxeboot/{initrd.img,vmlinuz}/var/lib/tftpboot/
    • Copy the/isolinux/*.msg in the ISO image to the/var/lib/tftpboot/ directory

cp/var/www/html/cdrom/isolinux/*.msg/var/lib/tftpboot/
    • Create a new pxelinux.cfg directory in/var/lib/tftpboot/

mkdir/var/lib/tftpboot/pxelinux.cfg
    • Copy isolinux.cfg from the/isolinux directory in the ISO image to the PXELINUX.CFG directory and change the file name to default

Cp/var/www/html/cdrom/isolinux/isolinux.cfg/var/lib/tftpboot/pxelinux.cfg/default

6: Modify the default file

    • /var/lib/tftpboot/pxelinux.cfg/default

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6E/E8/wKioL1WLmdSAu-rsAAON8fLmzbA628.jpg "style=" float: none; "title=" Image3.png "alt=" Wkiol1wlmdsau-rsaaon8flmzba628.jpg "/>

7: Installing DHCP:yum-y Install DHCP

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6E/E8/wKioL1WLmdSizOxFAABZKx4AJSw975.jpg "style=" float: none; "title=" Image4.png "alt=" Wkiol1wlmdsizoxfaabzkx4ajsw975.jpg "/>

8: Modify DHCP configuration file

    • Copy the configuration template file into the DHCP configuration directory

Cp/usr/share/doc/dhcp-4.1.1/dhcpd.conf.sample/etc/dhcp/dhcpd.conf

    • Modify the/etc/dhcp/dhcpd.conf configuration file with the following content:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6E/EB/wKiom1WLmFTTTPPiAAFnz8SXAJ4277.jpg "style=" float: none; "title=" Image5.png "alt=" Wkiom1wlmftttppiaafnz8sxaj4277.jpg "/>

    • Start the DHCP service

9: Generate KS.CF file with Kickstat

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6E/EB/wKiom1WLmJbiJ-YBAALF5kYQAFY993.jpg "title=" Image6.png "alt=" Wkiom1wlmjbij-ybaalf5kyqafy993.jpg "/>

    • Installation: Yum Install System-config-kickstart

    • Startup and Configuration: System-config-kickstart

    • Graphical interface Configuration: Example of the end of the article

    • The saved files are:/var/www/html/ks.cfg


haha And then I silently installed three more virtual machines.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6E/E8/wKioL1WLn2DwJLSrAAD8gpmNUvA796.jpg "title=" 2015-06-25_14-18-30.png "alt=" Wkiol1wln2dwjlsraad8gpmnuva796.jpg "/>

650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>

10: Automatic installation, network type should choose NAT

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6E/EB/wKiom1WLmMGRu-zuAAKCPDx57Ms963.jpg "style=" float: none; "title=" Image7.png "alt=" Wkiom1wlmmgru-zuaakcpdx57ms963.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6E/E8/wKioL1WLmnzCeKDQAAF0PvWTjPI536.jpg "style=" float: none; "title=" Image8.png "alt=" Wkiol1wlmnzcekdqaaf0pvwtjpi536.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6E/EB/wKiom1WLmMGy_3cxAAFsvfx57Yg603.jpg "style=" float: none; "title=" Image9.png "alt=" Wkiom1wlmmgy_3cxaafsvfx57yg603.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6E/E8/wKioL1WLmn2QrYuUAAIIL-D-j7Q487.jpg "style=" float: none; "title=" Image10.png "alt=" Wkiol1wlmn2qryuuaaiil-d-j7q487.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6E/EB/wKiom1WLmMKzy4YNAAFkEdpH7vw671.jpg "style=" float: none; "title=" Image11.png "alt=" Wkiom1wlmmkzy4ynaafkedph7vw671.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6E/E8/wKioL1WLmn2SrcFBAAGiLx8o1iQ379.jpg "style=" float: none; "title=" Image12.png "alt=" Wkiol1wlmn2srcfbaagilx8o1iq379.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6E/EB/wKiom1WLmMLCekjvAAF5XVZ6ldc159.jpg "style=" float: none; "title=" Image13.png "alt=" Wkiom1wlmmlcekjvaaf5xvz6ldc159.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6E/E8/wKioL1WLmn7g-lxzAAJ5OnCo1kk123.jpg "style=" float: none; "title=" Image14.png "alt=" Wkiol1wlmn7g-lxzaaj5onco1kk123.jpg "/>


This article is from the "Call Me boxin" blog, so be sure to keep this source http://boxinknown.blog.51cto.com/10435935/1665546

Pxe+kickstart+apach+dhcp+tftp for unattended installation, centos6.5

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.