Install centos in PXE (1)

Source: Internet
Author: User

Kickstart is not added in this article. It is a manual installation of network-heavy installation, so that you can better understand the principles of PXE installation.

The server environment in this article is centos6.4, and the client can be any version of centos5 and 6. Note that for 32-bit installation, you must copy 32-bit isolinux, instead of 64-bit. When centos5 is installed, centos5 isolinux is used, and centos6 is not used. I personally think it should be a major version, and the directory structure of the installation is changed.


I. Brief Introduction to principles

The non-optical drive server is started through the PXE Nic. The IP address obtained from the DHCP server is downloaded through TFTP and the pxelinux.0 file is found. find vmlinuz and intrd according to the configuration file in CFG. IMG guides centos to the installation interface, and then selects NFS to install the system.

2. Build the environment

Non-virtual machines, directly in the physical environment server: centos6.4 IP: 10.50.1.7

Iii. installation and configuration

Install the software Yum-y install DHCP * NFS * TFTP *

  1. Tfpt Configuration

    Vim/etc/xinetd. d/TFTP

Service tftp

{


Disable = No # This line does not exist by default. The default value is disable = yes.

Socket_type = dgram

Protocol = UDP

Wait = Yes

User = root

Server =/usr/sbin/in. tftpd

Server_args =-u nobody-S/tftpboot # Add-u nobody here

Disable = yes #/tftpboot is also defined by yourself. Remember to create it

Per_source = 11

CPIs = 100 2

Flags = IPv4

}

Restart the xinetd service xinetd restart

Start chkconfig TFTP on

2. Configure NFS

Mount System image Mount-o loop/system_iso/CentOS-6.4-x86_64-bin-DVD1.iso/systemabc first

Echo "/tftpboot">/etc/exports

Echo "/systemabc">/etc/exports

Exportfs-

Service NFS restart

Showmount-e 127.0.0.1


3. hdpc Configuration

Ddns-Update-style interim;

Ignore client-updates;

Allow booting;

Allow BOOTP;

Subnet 10.50.0.0 netmask 255.255.248.0 {

Option routers 10.50.0.1;

Option subnet-mask quota limit 248.0;

Option domain-name-servers 10.50.1.7;

Option time-offset-18000;

Range dynamic-BOOTP 10.50.0.21 10.50.0.50;

Default-lease-time 21600;

Max-lease-time 43200;

Next-server 10.50.1.7;

Filename "/pxelinux.0 ";

}


4. PXE Configuration

Mkdir/tftpboot/pxelinux. cfg

CP-A/systemabc/isolinux/*/tftpboot

MV/tftpboot/isolinux. cfg/tftpboot/pxelinux. cfg/Default


4. Press F11 (F12) to select start from Network

Go to the Enable menu and select 1,

Select nfs-based Installation

10.50.1.7

/Systemabc

Then you can manually set and install the system.



This article is from the IT puppet blog, please be sure to keep this source http://zjqin.blog.51cto.com/4559261/1546595

Install centos in PXE (1)

Related Article

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.