PXE distribution and installation CentOS6.5

Source: Internet
Author: User

I. kickstart flowchart

650) this. width = 650; "style =" background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; border-top: 0px; border-right: 0px; padding-top: 0px "title =" image "border =" 0 "alt =" image "src =" http://img1.51cto.com/attachment/201411/6/8287762_1415262044zAFK.png "" 981 "height =" 669 "/>

2. Preparations before installation

1. Disable iptables

Service iptables stop

Chkconfig iptables off

2. Disable Selinux

Sed-I's/enabled/disabled/g'/etc/sysconfig/selinux

 

III. Install and configure the server

Yum-y install tftp-server dhcp vsftpd syslinux

Vim/etc/dhcpd. conf

650) this. width = 650; "style =" background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; border-top: 0px; border-right: 0px; padding-top: 0px "title =" image "border =" 0 "alt =" image "src =" http://img1.51cto.com/attachment/201411/6/8287762_1415262044TFH0.png "" 651 "height =" 287 "/>

Attach a CD image file

Mount/dev/cdrom/media

Cp-r/media/*/var/ftp/pub

 

Load the TFTP service at startup

Vim/etc/xinetd. d/tftp

Disable = no

650) this. width = 650; "style =" background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; border-top: 0px; border-right: 0px; padding-top: 0px "title =" image "border =" 0 "alt =" image "src =" http://img1.51cto.com/attachment/201411/6/8287762_141526204514bk.png "" 826 "height =" 349 "/>

 

Load FTP files

Cp/var/ftp/pub/images/pxeboot/{vmlinuz, initrd. img}/var/lib/tftpboot/
Cp/var/ftp/pub/isolinux/{boot.msg,vesamenu.c32,splash.jpg}/var/lib/tftpboot/
Cp/usr/share/syslinux/pxelinux.0/var/lib/tftpboot/

Mkdir/var/lib/tftpboot/pxelinux. cfg
Cp/var/ftp/pub/isolinux. cfg/var/lib/tftpboot/pxelinux. cfg/default

 

Copy ks files

Cp anaconda-ks.cfg/var/ftp/pub/ks. cfg

Modify the ks. cfg file

650) this. width = 650; "style =" background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; border-top: 0px; border-right: 0px; padding-top: 0px "title =" image "border =" 0 "alt =" image "src =" http://img1.51cto.com/attachment/201411/6/8287762_14152620455a2r.png "" 1004 "height =" 512 "/>

 

650) this. width = 650; "style =" background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; border-top: 0px; border-right: 0px; padding-top: 0px "title =" image "border =" 0 "alt =" image "src =" http://img1.51cto.com/attachment/201411/6/8287762_1415262046UF30.png "" 776 "height =" 484 "/>

 

Start the service

Service dhcpd restart

Service xinetd restart

Service vsftpd restart

 

Test ..

Start the VM and press esc

 

650) this. width = 650; "style =" background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; border-top: 0px; border-right: 0px; padding-top: 0px "title =" image "border =" 0 "alt =" image "src =" http://img1.51cto.com/attachment/201411/6/8287762_14152620464tvZ.png "" 586 "height =" 366 "/>

Select the first item

650) this. width = 650; "style =" background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; border-top: 0px; border-right: 0px; padding-top: 0px "title =" image "border =" 0 "alt =" image "src =" http://img1.51cto.com/attachment/201411/6/8287762_1415262047ZlB6.png "" 659 "height =" 495 "/>

View server logs

650) this. width = 650; "style =" background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; border-top: 0px; border-right: 0px; padding-top: 0px "title =" image "border =" 0 "alt =" image "src =" http://img1.51cto.com/attachment/201411/6/8287762_1415262047lnOd.png "" 1165 "height =" 135 "/>

PXE distribution and 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.