A PXE boot method, system, device and readable storage medium

By reading the PN of the test machine during the PXE startup process and requesting new startup files and image files, it solves the problem of incorrect OS startup caused by not cleaning the MAC boot file during server testing, achieving a more efficient testing process and reducing costs. Maintenance costs.

CN114860271BActive Publication Date: 2024-10-15INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210586498.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-27
Publication Date
2024-10-15
Estimated Expiration
2042-05-27

AI Technical Summary

Technical Problem

During server production testing, the erroneous OS startup problem caused by not clearing the MAC boot file in time during PXE startup affected the continuity and efficiency of production line testing. Maintenance was also difficult, and manpower was wasted to debug and delete the original MAC configuration file.

Method used

By broadcasting a DHCP request to the LAN after the test machine starts, load the PXE startup file, read the PN to request a new startup file, obtain the configuration file and image file from the TFTP server, enter the specified operating system, and maintain the PN prefixed in advance. CFG files to avoid generating a large number of CFG files with MAC suffixes and reduce OS errors caused by network cards or other abnormalities.

Benefits of technology

It effectively reduces production errors, improves throughput rate and testing efficiency, reduces engineers' maintenance energy and time, and reduces R&D expenses.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114860271B_ABST
    Figure CN114860271B_ABST
Patent Text Reader

Abstract

The present invention proposes a PXE startup method, system, device and readable storage medium, the method comprising: after the test machine is started, broadcasting a DHCP request to the entire local area network; the DHCP server receives the request, allocates an address to the test machine, and specifies its PXE startup file; loads the PXE startup file, reads the test machine PN, and requests a new startup file; the test machine obtains a configuration file from a TFTP server; the test machine receives and reads the configuration file, and obtains a mirror file from the TFTP server after reading; the test machine loads the obtained mirror file and enters a specified operating system. The present invention effectively reduces production errors and improves the pass rate and test efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and more particularly to a PXE boot method, system, device and readable storage medium. Background Art

[0002] With the development of big data, the global demand for servers is increasing. In order to meet the customized needs of different customers, server manufacturers need to switch between different OS during production testing. Each switch requires the generation of a different MAC boot file on the PXE server. If the MAC boot is not cleaned up in time, the next startup will enter the non-preset erroneous OS, causing a series of test exceptions.

[0003] Currently, the common PXE boot is divided into two types: LEGACY and UEFI, depending on the different boot methods of BIOS. The following takes UEFI as an example: 1 The test machine is turned on, and the BIOS polls the network card and broadcasts a DHCP request to the entire LAN; 2 The DHCP server determines that the request is legal and returns an unassigned IP, and specifies the PXE boot file; 3 The test machine receives the IP and requests the PXE boot file; 4 The TFTP server sends the PXE boot file; 5 The test machine receives the PXE boot file and executes it, and requests the PXE boot configuration file from the TFTP server; 6 The TFTP server sends the configuration file; 8 The test machine receives and sends the configuration file and requests the KERNEL and IMAGE images from the TFTP server; 9 The TFTP server sends KERNEL and IMAGE; 10 The test machine loads the KERNEL and starts the IMAGE image; 11 The test machine loads the root file system and enters the operating system.

[0004] When using the existing technology for PXE booting, each time the test machine switches the operating system, the original MAC configuration file must be deleted first, and then a new MAC configuration file is generated. If the test machine changes the network card or other abnormalities occur, resulting in the MAC configuration file not being deleted, it will enter the unexpected operating system, resulting in production line test errors. At the same time, a large number of MAC configuration files are left on the server, which is difficult to maintain, seriously affecting the production line pass rate and production test efficiency, and wasting manpower to debug and manually delete the original MAC configuration file. Summary of the invention

[0005] In view of the above problems, the object of the present invention is to provide a PXE boot method, system, device and readable storage medium, which effectively reduce production errors and improve the pass rate and test efficiency.

[0006] To achieve the above object, the present invention is implemented through the following technical solutions: a PXE startup method, comprising: after the test machine is started, broadcasting a DHCP request to the entire local area network;

[0007] The DHCP server receives the request, assigns an address to the test machine, and specifies its PXE boot file;

[0008] By loading the PXE boot file and reading the test machine PN, request a new boot file;

[0009] The test machine obtains the configuration file from the TFTP server;

[0010] The test machine receives and reads the configuration file, and then obtains the image file from the TFTP server;

[0011] The test machine loads the acquired image file and enters the specified operating system.

[0012] Further, after the test machine is started, it broadcasts a DHCP request to the entire local area network, including:

[0013] When the test machine is turned on, the BIOS starts scanning various hardware devices, searching for hard disk boot items, and polling the network card to broadcast DHCP requests to the entire LAN.

[0014] Further, the DHCP server receives the request, allocates an address to the test machine, and specifies its PXE boot file, including:

[0015] The DHCP server receives the request, determines that it is legitimate, and returns an unassigned IP and lease, while specifying the PXE boot file GRUB_NEW in the DHCP protocol.

[0016] Further, the method of loading the PXE boot file and reading the test machine PN to request a new boot file includes:

[0017] Download the GRUB source code from the startup program GITHUB, add a module for reading SMBIOS to the source code, obtain the PN of the test machine, add the correspondence between PN and the configuration file CFG, and when the read PN meets the target requirement, specify the configuration file PN_CFG, and generate a new GRUB startup file GRUB_NEW after compilation.

[0018] Further, the test machine obtains a configuration file from the TFTP server, including:

[0019] The configuration files PN_CFG are maintained in advance on the TFTP server. The configuration files PN_CFG include 5280M6_grub.cfg, 5688M6_grub.cfg, ali_grub.cfg and tencent_grub.cfg.

[0020] The test machine receives the IP and sends a request to the TFTP server for the startup file GURB_NEW;

[0021] The TFTP server sends the startup file GURB_NEW to the test;

[0022] The test machine receives and executes the startup file GURB_NEW. After determining the machine model, it requests the specified configuration file ali_grub.cfg from the TFTP server.

[0023] The TFTP server sends the configuration file ali_grub.cfg to the test machine.

[0024] Further, the test machine receives and reads the configuration file, and obtains the image file from the TFTP server after reading, including:

[0025] The test machine receives the configuration file ali_grub.cfg, reads it, and requests the KERNEL and IMAGE images from the TFTP server;

[0026] The TFTP server sends the KERNEL and IMAGE images to the test machine.

[0027] Further, the test machine loads the acquired image file and enters the specified operating system, including:

[0028] The test machine loads the KERNEL image and boots the IMAGE image;

[0029] The test machine loads the root file system and enters the specified operating system.

[0030] Correspondingly, the present invention also discloses a PXE boot system, comprising:

[0031] Configure the connection unit to broadcast DHCP requests to the entire LAN after the test machine is started;

[0032] The boot file specifying unit is used for the DHCP server to receive the request, allocate an address to the test machine, and specify its PXE boot file;

[0033] The boot file update unit is used to request a new boot file by loading the PXE boot file and reading the test machine PN;

[0034] A configuration file acquisition unit is used to control the test machine to obtain the configuration file from the TFTP server;

[0035] The image file acquisition unit is used to control the test machine to receive and read the configuration file, and obtain the image file from the TFTP server after reading;

[0036] The startup unit is used to control the test machine to load the acquired image file and enter the specified operating system.

[0037] Accordingly, the present invention discloses a PXE boot device, comprising:

[0038] A memory, used for storing a PXE boot program;

[0039] A processor is used to implement the steps of the PXE boot method as described in any one of the above items when executing the PXE boot program.

[0040] Accordingly, the present invention discloses a readable storage medium, on which a PXE boot program is stored. When the PXE boot program is executed by a processor, the steps of the PXE boot method described in any one of the above items are implemented.

[0041] Compared with the prior art, the beneficial effects of the present invention are as follows: the present invention discloses a PXE boot method, system, device and readable storage medium, which can maintain several CFG files with PN as prefix in advance, without generating a large number of CFG files with MAC as suffix, nor deleting CFG files in advance, and will not cause the wrong OS to be entered due to the test machine switching network card or other abnormalities, effectively reducing production errors, improving the pass rate and test efficiency, reducing engineers' maintenance energy and time, and reducing R&D costs.

[0042] The present invention has a wide range of applications, and can also use CFG files such as mainboard PN, QN, and whole machine SN. The unique identification of the test machine in the entire SMBIOS can be used as a standard for generating CFG.

[0043] It can be seen that compared with the prior art, the present invention has outstanding substantive features and significant progress, and the beneficial effects of its implementation are also obvious. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0045] Attached Figure 1 It is a method flow chart of a specific implementation mode of the present invention.

[0046] Attached Figure 2 It is a system structure diagram of a specific implementation mode of the present invention.

[0047] In the figure, 1 is a configuration connection unit; 2 is a startup file specifying unit; 3 is a startup file updating unit; 4 is a configuration file obtaining unit; 5 is a mirror file obtaining unit; and 6 is a startup unit. DETAILED DESCRIPTION

[0048] The core of the present invention is to provide a PXE boot method. In the prior art, when performing PXE boot, each time the test machine switches the operating system, it is necessary to first delete the original MAC configuration file and then generate a new MAC configuration file. If the test machine changes the network card or other abnormalities occur, resulting in the MAC configuration file not being deleted, the test machine will enter an unexpected operating system, thereby causing production line test errors. At the same time, a large number of MAC configuration files are left on the server, which is difficult to maintain, seriously affecting the production line pass rate and production test efficiency, and wasting manpower to debug and manually delete the original MAC configuration file.

[0049] The PXE startup method provided by the present invention is that, first, after the test machine is started, it broadcasts a DHCP request to the entire local area network; after receiving the request, the DHCP server allocates an address to the test machine and specifies its PXE startup file. At this time, by loading the PXE startup file and reading the test machine PN, a new startup file is requested; the test machine obtains the configuration file from the TFTP server; the test machine receives and reads the configuration file, and after reading, obtains the mirror file from the TFTP server. Finally, the test machine loads the obtained mirror file and enters the specified operating system. It can be seen that the present invention can maintain several CFG files with PN as the prefix in advance, without generating a large number of CFG files with MAC as the suffix, nor does it need to delete the CFG files in advance, and there will be no problems such as entering the wrong OS due to the test machine switching network card or other abnormalities.

[0050] In order to enable those skilled in the art to better understand the scheme of the present invention, the abbreviations and key terms involved in the present invention are defined as follows:

[0051] PXE: Preboot Execute Environment, pre-boot execution environment.

[0052] GRUB: GRand Unified Bootloader, multi-boot manager.

[0053] OS:Operating Sstem, operating system.

[0054] MAC: Media Access Control Address, local area network address.

[0055] UEFI: Unified Extensible Firmware Interface, unified extensible firmware interface.

[0056] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0057] Embodiment 1:

[0058] like Figure 1 As shown, this embodiment provides a PXE boot method, including the following steps:

[0059] S1: After the test machine is started, it broadcasts a DHCP request to the entire LAN.

[0060] Specifically, when the test machine is turned on, the BIOS starts scanning various hardware devices, searching for hard disk boot items, and polling the network card to broadcast DHCP requests to the entire LAN.

[0061] S2: The DHCP server receives the request, assigns an address to the test machine, and specifies its PXE boot file.

[0062] This step is as follows: the DHCP server receives the request, determines that it is legal, and returns an unallocated IP and lease, and specifies the PXE boot file GRUB_NEW in the DHCP protocol.

[0063] S3: Request a new boot file by loading the PXE boot file and reading the test machine PN.

[0064] As an example, by loading the startup file GRUB_NEW and reading the test machine PN, the configuration file PN_CFG file is requested from the TFTP server, and a new GRUB startup file GRUB_NEW is generated.

[0065] Specifically, first, download the GRUB source code from the startup program GITHUB, add a module for reading SMBIOS in the source code, obtain the PN of the test machine, add the correspondence between PN and the configuration file CFG, and when the read PN is the target requirement, specify the configuration file PN_CFG, and generate a new GRUB startup file GRUB_NEW after compilation.

[0066] S4: The test machine obtains the configuration file from the TFTP server.

[0067] Specifically:

[0068] First, you need to maintain the configuration file PN_CFG on the TFTP server in advance. The configuration file PN_CFG includes 5280M6_grub.cfg, 5688M6_grub.cfg, ali_grub.cfg, and tencent_grub.cfg.

[0069] The test machine receives the IP and sends a request to the TFTP server to obtain the startup file GURB_NEW. At this time, the TFTP server sends the startup file GURB_NEW to the test; the test machine executes the startup file after receiving the startup file GURB_NEW. After determining the model, it requests the specified configuration file ali_grub.cfg from the TFTP server, and the TFTP server sends the configuration file ali_grub.cfg to the test machine.

[0070] S5: The test machine receives and reads the configuration file, and then obtains the image file from the TFTP server.

[0071] First, the test machine receives the configuration file ali_grub.cfg, reads it, and requests the KERNEL and IMAGE images from the TFTP server. Then, the TFTP server sends the KERNEL and IMAGE images to the test machine.

[0072] S6: The test machine loads the acquired image file and enters the specified operating system.

[0073] After receiving the image file, the test machine loads the KERNEL image and boots the IMAGE image. Finally, the test machine is controlled to load the root file system and enter the specified operating system.

[0074] This embodiment provides a PXE boot method, which can maintain several CFG files with PN as the prefix in advance. There is no need to generate a large number of CFG files with MAC as the suffix, nor is there a need to delete CFG files in advance. There will be no problems such as entering the wrong OS due to the test machine switching network cards or other abnormalities, which effectively reduces production errors and improves the pass rate and test efficiency.

[0075] Embodiment 2:

[0076] Based on Example 1, Figure 2 As shown, the present invention also discloses a PXE boot system, including: a configuration connection unit 1, a boot file specifying unit 2, a boot file updating unit 3, a configuration file acquiring unit 4, a mirror file acquiring unit 5 and a boot unit 6.

[0077] Configure connection unit 1 to broadcast a DHCP request to the entire LAN after the test machine is started.

[0078] The configuration connection unit 1 is specifically used for: when the test machine is turned on, the BIOS starts scanning various hardware devices, searching for hard disk startup items, and polling the network card to broadcast a DHCP request to the entire local area network.

[0079] The startup file specifying unit 2 is used for the DHCP server to receive the request, allocate an address to the test machine, and specify its PXE startup file.

[0080] The boot file specifying unit 2 is specifically used for: the DHCP server receives the request, judges it as legal and returns an unallocated IP and lease, and specifies the PXE boot file GRUB_NEW in the DHCP protocol.

[0081] The startup file updating unit 3 is used to request a new startup file by loading the PXE startup file and reading the test machine PN.

[0082] The startup file update unit 3 is specifically used to: download the GRUB source code from the startup program GITHUB, add a module for reading SMBIOS in the source code, obtain the PN of the test machine, add the correspondence between PN and the configuration file CFG, and when the read PN is the target requirement, specify the configuration file PN_CFG, and generate a new GRUB startup file GRUB_NEW after compilation.

[0083] The configuration file acquisition unit 4 is used to control the test machine to acquire the configuration file from the TFTP server.

[0084] The configuration file acquisition unit 4 is specifically used for: the test machine receives the IP and sends a request to obtain the startup file GURB_NEW to the TFTP server; the TFTP server sends the startup file GURB_NEW to the test; the test machine receives the startup file GURB_NEW and executes it, and after determining the machine model, requests the TFTP server for the specified configuration file ali_grub.cfg; the TFTP server sends the configuration file ali_grub.cfg to the test machine.

[0085] The image file acquisition unit 5 is used to control the test machine to receive and read the configuration file, and obtain the image file from the TFTP server after reading.

[0086] The image file acquisition unit 5 is specifically used for: the test machine receives the configuration file ali_grub.cfg, and after reading it, requests the TFTP server for KERNEL and IMAGE images; the TFTP server sends the KERNEL and IMAGE images to the test machine.

[0087] The startup unit 6 is used to control the test machine to load the acquired image file and enter the specified operating system.

[0088] The startup unit 6 is specifically used for: the test machine loads the KERNEL image and boots the IMAGE image; the test machine loads the root file system and enters the specified operating system.

[0089] This embodiment provides a PXE boot system that can maintain several CFG files with PN as the prefix in advance. There is no need to generate a large number of CFG files with MAC as the suffix, nor is there a need to delete CFG files in advance. There will be no problems such as entering the wrong OS due to the test machine switching network cards or other abnormalities. This effectively reduces production errors, improves the pass rate and test efficiency, reduces engineers' maintenance energy and time, and reduces R&D costs.

[0090] Embodiment three:

[0091] This embodiment discloses a PXE boot device, including a processor and a memory; wherein the processor implements the following steps when executing a PXE boot program stored in the memory:

[0092] 1. After the test machine is started, it broadcasts a DHCP request to the entire LAN.

[0093] 2. The DHCP server receives the request, assigns an address to the test machine, and specifies its PXE boot file.

[0094] 3. Request a new boot file by loading the PXE boot file and reading the test machine PN.

[0095] 4. The test machine obtains the configuration file from the TFTP server.

[0096] 5. The test machine receives and reads the configuration file, and then obtains the image file from the TFTP server.

[0097] 6. The test machine loads the acquired image file and enters the specified operating system.

[0098] Furthermore, the PXE boot device in this embodiment may further include:

[0099] The input interface is used to obtain the PXE boot program imported from the outside and save the obtained PXE boot program to the memory, and can also be used to obtain various instructions and parameters transmitted by the external terminal device and transmit them to the processor so that the processor can use the above various instructions and parameters to carry out corresponding processing. In this embodiment, the input interface can specifically include but is not limited to a USB interface, a serial interface, a voice input interface, a fingerprint input interface, a hard disk reading interface, etc.

[0100] The output interface is used to output various data generated by the processor to the terminal device connected thereto, so that other terminal devices connected to the output interface can obtain various data generated by the processor. In this embodiment, the output interface may specifically include but is not limited to a USB interface, a serial interface, etc.

[0101] The communication unit is used to establish a remote communication connection between the PXE boot device and the external server so that the PXE boot device can mount the image file to the external server. In this embodiment, the communication unit may specifically include but is not limited to a remote communication unit based on wireless communication technology or wired communication technology.

[0102] The keyboard is used to obtain various parameter data or instructions input by the user by tapping the keycaps in real time.

[0103] The display is used to display the relevant information of the server power supply line short circuit locating process in real time.

[0104] The mouse can be used to assist users in inputting data and simplify user operations.

[0105] Embodiment 4:

[0106] This embodiment also discloses a readable storage medium, and the readable storage medium mentioned here includes random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, register, hard disk, removable hard disk, CD-ROM or any other form of storage medium known in the technical field. The readable storage medium stores a PXE boot program, and when the PXE boot program is executed by the processor, the following steps are implemented:

[0107] 1. After the test machine is started, it broadcasts a DHCP request to the entire LAN.

[0108] 2. The DHCP server receives the request, assigns an address to the test machine, and specifies its PXE boot file.

[0109] 3. Request a new boot file by loading the PXE boot file and reading the test machine PN.

[0110] 4. The test machine obtains the configuration file from the TFTP server.

[0111] 5. The test machine receives and reads the configuration file, and then obtains the image file from the TFTP server.

[0112] 6. The test machine loads the acquired image file and enters the specified operating system.

[0113] In summary, the present invention effectively reduces production errors and improves the first pass rate and test efficiency.

[0114] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the method disclosed in the embodiment, since it corresponds to the system disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0115] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0116] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, systems and methods can be implemented in other ways. For example, the system embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of systems or units, which can be electrical, mechanical or other forms.

[0117] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0118] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, or each module may exist physically separately, or two or more modules may be integrated into one unit.

[0119] Similarly, each processing unit in each embodiment of the present invention may be integrated into one functional module, or each processing unit may exist physically, or two or more processing units may be integrated into one functional module.

[0120] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0121] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0122] The PXE boot method, system, device and readable storage medium provided by the present invention are introduced in detail above. Specific examples are used herein to illustrate the principle and implementation mode of the present invention. The description of the above embodiments is only used to help understand the method and core idea of ​​the present invention. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.

Claims

1. A PXE boot method, characterized in that: include: After the test machine starts, it broadcasts a DHCP request to the entire LAN; The DHCP server receives the request, assigns an address to the test machine, and specifies its PXE boot file; Load the PXE boot file, read the test machine PN, and request a new boot file; The test machine obtains the configuration file from the TFTP server; The test machine receives and reads the configuration file, and then obtains the image file from the TFTP server; The test machine loads the acquired image file and enters the specified operating system; The DHCP server receives the request, allocates an address to the test machine, and specifies its PXE boot file, including: The DHCP server receives the request, determines it is legitimate, and returns an unassigned IP and lease, and specifies the PXE boot file GRUB_NEW in the DHCP protocol; The step of loading the PXE boot file, reading the test machine PN, and requesting a new boot file includes: Download the GRUB source code from the startup program GITHUB, add a module for reading SMBIOS to the source code, obtain the PN of the test machine, add the correspondence between PN and the configuration file CFG, and when the read PN meets the target requirement, specify the configuration file PN_CFG, and generate a new GRUB startup file GRUB_NEW after compilation.

2. The PXE boot method according to claim 1, characterized in that: After the test machine is started, it broadcasts a DHCP request to the entire LAN, including: When the test machine is turned on, the BIOS starts scanning various hardware devices, searching for hard disk boot items, and polling the network card to broadcast DHCP requests to the entire LAN.

3. The PXE boot method according to claim 1, characterized in that: The test machine obtains the configuration file from the TFTP server, including: The configuration files PN_CFG are maintained in advance on the TFTP server. The configuration files PN_CFG include 5280M6_grub.cfg, 5688M6_grub.cfg, ali_grub.cfg and tencent_grub.cfg. The test machine receives the IP and sends a request to the TFTP server for the startup file GURB_NEW; The TFTP server sends the startup file GURB_NEW to the test; The test machine receives and executes the startup file GURB_NEW. After determining the machine model, it requests the specified configuration file ali_grub.cfg from the TFTP server. The TFTP server sends the configuration file ali_grub.cfg to the test machine.

4. The PXE boot method according to claim 3, characterized in that: The test machine receives and reads the configuration file, and obtains the image file from the TFTP server after reading, including: The test machine receives the configuration file ali_grub.cfg, reads it, and requests the KERNEL and IMAGE images from the TFTP server; The TFTP server sends the KERNEL and IMAGE images to the test machine.

5. The PXE boot method according to claim 4, characterized in that: The test machine loads the acquired image file and enters the specified operating system, including: The test machine loads the KERNEL image and boots the IMAGE image; The test machine loads the root file system and enters the specified operating system.

6. A PXE boot system, characterized in that: include: Configure the connection unit to broadcast DHCP requests to the entire LAN after the test machine is started; The boot file specifying unit is used for the DHCP server to receive the request, allocate an address to the test machine, and specify its PXE boot file; The boot file update unit is used to request a new boot file by loading the PXE boot file and reading the test machine PN; A configuration file acquisition unit is used to control the test machine to obtain the configuration file from the TFTP server; The image file acquisition unit is used to control the test machine to receive and read the configuration file, and obtain the image file from the TFTP server after reading; The startup unit is used to control the test machine to load the acquired image file and enter the specified operating system; The startup file specifying unit is specifically used for: The DHCP server receives the request, determines it is legitimate, and returns an unassigned IP and lease, and specifies the PXE boot file GRUB_NEW in the DHCP protocol; The startup file updating unit is specifically used for: Download the GRUB source code from the startup program GITHUB, add a module for reading SMBIOS to the source code, obtain the PN of the test machine, add the correspondence between PN and the configuration file CFG, and when the read PN meets the target requirement, specify the configuration file PN_CFG, and generate a new GRUB startup file GRUB_NEW after compilation.

7. A PXE boot device, characterized in that: include: A memory, used for storing a PXE boot program; A processor, configured to implement the steps of the PXE boot method according to any one of claims 1 to 5 when executing the PXE boot program.

8. A readable storage medium, characterized in that: The readable storage medium stores a PXE boot program, and when the PXE boot program is executed by the processor, the steps of the PXE boot method according to any one of claims 1 to 5 are implemented.