Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Windows system installation PXE+TFTP+HTTP installation CentOS 4.7 experience

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

As the CD installation system has been very inconvenient, U disk installation is relatively convenient, but when multiple computers are installed at the same time, it is also difficult to cope with, the network installation method provides a good choice to solve these problems. I was just going to learn CentOS, so I thought of it to try my hand. The average machine can now support PXE network boot.

After a random search in du Niang, I found that there are indeed a lot of introductions to implement this way under liunx, and it seems that fewer people use this way to implement this way under windows (it seems that windows has been used for too long), but I still found a few articles as references.

1. Tools:

1. TFTPD64: comes with PXE and DHCP server.

2. EasyWebServer: a small and easy to use WEB service tool.

2. Raw materials:

1 、 syslinux-4.05.zip

2. CentOS 4.7 installs the iso file

3 、 UltraISO

3. Concrete implementation:

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

\ PXE

\ PXE\ centos-inst "used to store the content needed for PXE boot"

\ PXE\ centos-inst\ pxelinux.cfg "for storing PXE boot configuration files"

\ PXE\ centos-iso "used to store all the contents extracted from the centos installation image"

2. Use UltraISO to extract all the contents of the iso file of CentOS 4.7 to the directory "\ PXE\ centos-iso". It is said that it may be problematic to extract it directly with a compression tool. (I didn't seem to have a problem extracting the iso file directly when I installed the windows system.)

3. Copy a copy of vmlinuz, vesamenu.c32, initrd.img and boot.msg under the directory "isolinux" in the extracted iso file to the directory "\ PXE\ centos-inst". And put the "pxelinux.0" file in the "core" directory in syslinux-4.05.zip into the directory "\ PXE\ centos-inst".

4. Create a "default" file under the "\ PXE\ centos-inst\ pxelinux.cfg" directory, and copy the following contents into it:

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 specifies the location of the installation source. Http, https, ftp and nfs are supported. The settings are as follows:

HTTP Server inst.repo= http://host/pathHTTPS Server inst.repo= https://host/pathFTP Server inst.repo= ftp://username:password@host/pathNFS Server inst.repo=nfs: [options:] server:/path [a]

It needs to be set up according to the specific conditions of setting up the server.

Note: the client must use no less than 2GB of memory when installing centos4.7 on the pxe network.

5. TFTP64 settings (provide PXE service, DHCP service):

Click the "Settings" settings window:

Check TFTP Sever, Syslog Server, DHCP Server in the "GLOBAL" option

"TFTP" option BaseDirectory: select the "c:\ pxe\ centos-inst" directory and check "Allow"\ "As virtual root"

Under the "DHCP" option, enter BootFile: "pxelinux.0"; IP pool start address actually fill in according to the network address of your local area network; Def.router (Opt3) fill in the address of the PXE server, here is the address of the TFTP server. Mask (Opt1) is filled in according to the actual local area network situation. The rest can be left out and remain the default.

6. EasyWebServer is a very convenient http server, and it is very easy to build.

After opening the main interface, right-click "Settings" in the window and select "Settings" in the menu to enter the settings interface:

Modify the home directory: C:\ pxe\ centos-iso for OK

All the preparatory work has been completed. Open TFTP64, EasyWebServer, and then open the client pxe network startup to start the Centos 4.7 installation.

When you get here, just follow the installation wizard. Try unmanned installation at a later stage.

Attachment: http://down.51cto.com/data/2366686

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report