Home >Backend Development >PHP Tutorial >Set up a PXE environment to batch deploy Redhat6 (win mode)_PHP tutorial

Set up a PXE environment to batch deploy Redhat6 (win mode)_PHP tutorial

WBOY
WBOYOriginal
2016-07-12 08:51:391214browse

Build a PXE environment to batch deploy Redhat6 (win mode)

1. Introduction to PXE

PXE (preboot execute environment) was developed by Intel The latest technology, working in Client/Server network mode, supports the workstation to download the Set up a PXE environment to batch deploy Redhat6 (win mode)_PHP tutorial from the remote server through the network, and thus supports the startup process of the operating system from the network. During the startup process, the terminal requires the server to assign an IP address, and then uses The TFTP (trivial file transfer protocol) protocol downloads a startup software package into the local memory and executes it. The startup software package completes the basic software settings of the terminal and boots the terminal operating system pre-installed in the server.

2. Detailed explanation of startup steps

1. Power on the server and start from DHCP The server gets the IP address and loads it (PXEClient).

2. Obtain the network boot program (pxelinux.0) through the TFTP server.

3. The boot program reads the configuration file (the file name of pxelinux.cfg in this example is: default).

4. The boot program loads the file system initialization (initrd) program, kernel initial Set up a PXE environment to batch deploy Redhat6 (win mode)_PHP tutorial (vmlinuz), and automatic response program (ks.cfg).

5. According to the network installation method specified in the automatic response file, install the Linux system through FTP.

3. Use tools

A. Set up a PXE environment to batch deploy Redhat6 (win mode)_PHP tutoriald64

B. Xlight FTP server

4. Agreement in this example

A. pxe environment server address: 192.168.2.120

B. pxe client allocation address: 192.168.2.240 - 192.168.2.250

C. Directory structure

D:pxe: PXE environment software directory.

D:pxeSet up a PXE environment to batch deploy Redhat6 (win mode)_PHP tutoriald64: Set up a PXE environment to batch deploy Redhat6 (win mode)_PHP tutorial software directory.

D:pxeSet up a PXE environment to batch deploy Redhat6 (win mode)_PHP tutoriald64pxe :pxe startup file directory

D:pxeSet up a PXE environment to batch deploy Redhat6 (win mode)_PHP tutoriald64pxepxelinux.cfg :pxe configuration file directory (TFTP working directory).

D:pxexlight: Xlight FTP software directory.

D:pxesrc : Redhat 6.5 CD Set up a PXE environment to batch deploy Redhat6 (win mode)_PHP tutorial directory (FTP working directory).

5. TFTP tool configuration

A. DHCP configuration

Mainly configure the DHCP address pool. There are the following things to pay attention to.

Note: The pxelinux.0 file is stored in the root directory of the TFTP working directory, so there is no need to add a path (as shown in the picture)

Set up a PXE environment to batch deploy Redhat6 (win mode)_PHP tutorial

B. TFTP configuration

Just specify the TFTP working directory.

Set up a PXE environment to batch deploy Redhat6 (win mode)_PHP tutorial

6. Xlight FTP server configuration

A. Configure FTP server IP and port

Set up a PXE environment to batch deploy Redhat6 (win mode)_PHP tutorial

B. Create an FTP user and set the FTP working directory

I have not set a password. I personally feel that there is no need to set a password. You can set it if you wish.

Set up a PXE environment to batch deploy Redhat6 (win mode)_PHP tutorial

7. PXE boot configuration file modification

File location: D:pxeSet up a PXE environment to batch deploy Redhat6 (win mode)_PHP tutoriald64pxepxelinux.cfgdefault

Purpose of modification: increase KS .CONF file configuration allows PXE to load KS.CONF (automatic answer file) and start automatically installing Redhat.

Set up a PXE environment to batch deploy Redhat6 (win mode)_PHP tutorial

8. KS.CONF configuration

Follow the Red Hat kickstart specifications and pay attention to the installation mode and select FTP installation

Set up a PXE environment to batch deploy Redhat6 (win mode)_PHP tutorial

9. Download the integrated environment

The blog couldn't upload the attachment, so I uploaded it to my website.

Download address: http://www.hy2009.net/soft/pxe-win.rar

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1128995.htmlTechArticleBuilding a PXE environment to batch deploy Redhat6 (win mode) 1. Introduction to PXE PXE (preboot execute environment) is developed by Intel Corporation The latest technology developed, working in Client/Server network mode, supports work...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn