Windows System Erection pxe+tftp+http Install CentOS 4.7 Experience

Source: Internet
Author: User

Since the CD-ROM installation system is already very inconvenient, USB stick installation is relatively convenient, but when the multi-machine installation is also a bit difficult to cope with, the network installation method to solve these problems provide a good choice. Just want to learn about CentOS, think of it to try hackers. A typical machine can now support PXE network booting.

In the degree Niang in a disorderly search, found in the LIUNX implementation of this way of introduction really a lot, windows use this kind of way to implement seems to be a lot less (seems to be using Windows too long), but also found a few as a reference.

First, tools:

1, TFTPD64: With PXE, DHCP service side.

2, Easywebserver: Small and useful Web services tools.


Second, raw materials:

1, Syslinux-4.05.zip;

2, CentOS 4.7 installation ISO file;

3, UltraISO;


Third, the specific implementation:

1. Create the following directory under the root directory of any partition with sufficient storage space:

\pxe

\pxe\centos-inst "for storing content required for PXE boot"

\pxe\centos-inst\pxelinux.cfg "for storing PXE boot profiles"

\pxe\centos-iso "for storing all content extracted from the CentOS installation image"


2. Use UltraISO to extract all of the contents of the CentOS 4.7 iso file into the directory "\pxe\centos-iso" below. It is said that it may be problematic to extract it directly with the compression tool. (I did not see a problem when I was installing the Windows system directly to unzip the ISO file)


3. Copy the Vmlinuz, VESAMENU.C32, Initrd.img and boot.msg under the "Isolinux" directory in the extracted ISO file to the directory "\pxe\centos-inst" below. The "pxelinux.0" file in the "core" directory in Syslinux-4.05.zip is also placed under the directory "\pxe\centos-inst".


4, in the "\pxe\centos-inst\pxelinux.cfg" directory to build a "default" file, the contents of the copy in:

Default Vesamenu.c32

Prompt 1

Timeout 600


Display Boot.msg


Label Linux

Menu Label ^install System

Menu default

Kernel Vmlinuz

Append initrd=initrd.img ip=dhcp INST.REPO=HTTP://192.168.134.1/


Label VESA

Menu Label Install system with ^basic video driver

Kernel Vmlinuz

Append initrd=initrd.img ip=dhcp inst.xdriver=vesa nomodeset inst.repo=http://192.168.134.1/


Label Rescue

Menu Label ^rescue installed system

Kernel Vmlinuz

Append initrd=initrd.img Rescue


Label Local

Menu label Boot from ^local Drive

Localboot 0xFFFF


Where Inst.repo is the location of the specified installation source. can support HTTP, HTTPS, FTP, NFS, set up as follows:

HTTP Server inst.repo=http://host /path
https Server inst.repo=https://host /path
FTP Server inst.repo=ftp://username:Password@Host/Path
Server for NFS inst.repo=nfs:[options:]server:/path [A]

You need to set up the server according to the specific circumstances.

Note: The client must use not less than 2G of memory when the PXE network is installed centos4.7.


5. Settings for TFTP64 (PXE service, DHCP service):

650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M01/96/A5/wKioL1kj93XS3G-uAACGJRgzWIc706.png-wh_500x0-wm_ 3-wmp_4-s_4088754305.png "title=" 1.png "alt=" Wkiol1kj93xs3g-uaacgjrgzwic706.png-wh_50 "/>

Click the "Settings" Settings window:

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M01/96/A5/wKiom1kj-AzBT7dLAAB2Zh9V8k0182.png-wh_500x0-wm_ 3-wmp_4-s_4196239387.png "title=" 2.png "alt=" Wkiom1kj-azbt7dlaab2zh9v8k0182.png-wh_50 "/>

TFTP Sever, Syslog server, DHCP server are selected in the "GLOBAL" option;

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M01/96/A6/wKioL1kj-OTyyuzxAADks3zFkEw779.png-wh_500x0-wm_ 3-wmp_4-s_2955437162.png "title=" 3.png "alt=" Wkiol1kj-otyyuzxaadks3zfkew779.png-wh_50 "/>

TFTP option basedirectory: Select the "c:\pxe\centos-inst" directory and tick "allow" \ "as virtual root"

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M02/96/A6/wKioL1kj-puiXhnvAADigq1d4zE867.png-wh_500x0-wm_ 3-wmp_4-s_2929611915.png "title=" 4.png "alt=" Wkiol1kj-puixhnvaadigq1d4ze867.png-wh_50 "/>

Under "DHCP" option Bootfile Input: "pxelinux.0"; IP pool start address is actually filled in according to the network address of its local area networks; Def.router (OPT3) fills in the address of the PXE server, which is the address of the TFTP server. Mask (OPT1) is filled out according to the actual LAN situation. Other can not fill, keep the default.


6, Easywebserver is a very convenient HTTP server, building is also very simple.

After opening the main interface, click "Settings" in the "right button" selection menu in the window to enter the settings screen:

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M02/96/A7/wKioL1kj_4TzwvJnAACRNwDJCVY003.png-wh_500x0-wm_ 3-wmp_4-s_2254815700.png "title=" 11.png "alt=" Wkiol1kj_4tzwvjnaacrnwdjcvy003.png-wh_50 "/>

Modify the Home directory: C:\pxe\centos-iso is OK


All preparatory work is completed. Open TFTP64, Easywebserver, and then turn on the client PXE network to start the CentOS 4.7 installation.

650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M01/96/A7/wKioL1kkAjSB4CGAAAAUWctENAk201.png-wh_500x0-wm_ 3-wmp_4-s_2130656483.png "style=" Float:none; "title=" 21.png "alt=" Wkiol1kkajsb4cgaaaauwctenak201.png-wh_50 "/>

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M01/96/A6/wKiom1kkAjWx34_6AAENSgpuWU4227.png-wh_500x0-wm_ 3-wmp_4-s_3715854685.png "style=" Float:none; "title=" 22.png "alt=" Wkiom1kkajwx34_6aaensgpuwu4227.png-wh_50 "/>

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M02/96/A7/wKioL1kkApXRUVFNAAHE4saO2lg712.png-wh_500x0-wm_ 3-wmp_4-s_3132049037.png "title=" 23.png "alt=" Wkiol1kkapxruvfnaahe4sao2lg712.png-wh_50 "/>

When you get there, follow the installation wizard. Later try unattended installation.


Windows System Erection pxe+tftp+http Install CentOS 4.7 Experience

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.