CN114860271A - PXE starting method, system and device and readable storage medium - Google Patents

PXE starting method, system and device and readable storage medium Download PDF

Info

Publication number
CN114860271A
CN114860271A CN202210586498.9A CN202210586498A CN114860271A CN 114860271 A CN114860271 A CN 114860271A CN 202210586498 A CN202210586498 A CN 202210586498A CN 114860271 A CN114860271 A CN 114860271A
Authority
CN
China
Prior art keywords
file
starting
pxe
tester
test machine
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210586498.9A
Other languages
Chinese (zh)
Inventor
赵晓强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202210586498.9A priority Critical patent/CN114860271A/en
Publication of CN114860271A publication Critical patent/CN114860271A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2801Broadband local area networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a PXE starting method, a PXE starting system, a PXE starting device and a readable storage medium, wherein the method comprises the following steps: after the test machine is started, broadcasting a DHCP request to the whole local area network; the DHCP server receives the request, performs address allocation on the test machine and specifies a PXE starting file of the test machine; loading a PXE starting file, reading a tester PN, and requesting a new starting file; the test machine acquires a configuration file from the TFTP server; the test machine receives and reads the configuration file, and acquires the image file to the TFTP server after reading; and loading the acquired image file by the tester and entering a specified operating system. The invention effectively reduces production error reporting and improves the first pass rate and the testing efficiency.

Description

PXE starting method, system and device and readable storage medium
Technical Field
The invention relates to the technical field of computers, in particular to a PXE starting method, a PXE starting system, a PXE starting device and a readable storage medium.
Background
With the development of big data, the global demand for servers is getting larger and larger, server manufacturers need to switch among different OSs during production and test in order to meet customized demands of different customers, different MAC boot files need to be generated on a PXE server during each switching, if MAC boot is not cleared in time, a next startup will enter a non-preset wrong OS, and thus a link of tests is abnormal.
The universal PXE starting is divided into LEGACY and UEFI according to different starting modes of BIOS, and the UEFI is taken as an example for explaining that 1, a testing machine is started, the BIOS polls a network card and broadcasts a DHCP request to the whole local area network; 2, the DHCP server judges that the request is legal, returns an unallocated IP and appoints a PXE starting file; 3, the test machine receives the IP and requests a PXE starting file; the 4TFTP server sends a PXE starting file; 5, the test machine receives and executes the PXE starting file, and requests the PXE starting configuration file from the TFTP server; 6TFTP server sends configuration file; the 8 test machine receives the configuration file and requests a KERNEL mirror IMAGE and an IMAGE mirror IMAGE from the TFTP server; the 9TFTP server sends KERNEL and IMAGE; 10, loading KERNEL on a testing machine and starting an IMAGE mirror IMAGE; the 11 tester loads the root file system and enters the operating system.
When the prior art is adopted to start the PXE, the original MAC configuration file needs to be deleted when the test machine switches the operating system once, then a new MAC configuration file is generated, if the test machine changes a network card or other abnormalities, the MAC configuration file is not deleted, an unexpected operating system can be entered, so that the production line test is wrongly reported, a large number of MAC configuration files are left on the server, the maintenance is difficult, the production line straight-through rate and the production test efficiency are seriously influenced, and meanwhile, the manpower is wasted for removing debug and manually deleting the original MAC configuration file.
Disclosure of Invention
In view of the above problems, an object of the present invention is to provide a PXE starting method, system, apparatus and readable storage medium, which effectively reduce production error reporting and improve first pass rate and testing efficiency.
In order to achieve the purpose, the invention is realized by the following technical scheme: a PXE starting method comprises the following steps: after the test machine is started, broadcasting a DHCP request to the whole local area network;
the DHCP server receives the request, performs address allocation on the test machine and specifies a PXE starting file of the test machine;
loading a PXE starting file, reading a tester PN, and requesting a new starting file;
the test machine acquires a configuration file from the TFTP server;
the test machine receives and reads the configuration file, and acquires the image file to the TFTP server after reading;
and loading the acquired image file by the tester and entering a specified operating system.
Further, the broadcasting of the DHCP request to the whole local area network after the test machine is started includes:
the testing machine is started, the BIOS starts to scan each hardware device, searches for a hard disk start item, and the polling network card broadcasts a DHCP request to the whole local area network.
Further, the DHCP server receives the request, performs address allocation on the tester, and specifies a PXE boot file thereof, including:
the DHCP server receives the request, returns an unallocated IP and a lease after judging that the request is legal, and designates a PXE starting file GRUB _ NEW in a DHCP protocol.
Further, the requesting a new start file by loading the PXE start file and reading the tester PN includes:
downloading GRUB source codes from a starting program GITHUB, adding a module for reading SMBIOS in the source codes, acquiring PN of a tester, increasing the corresponding relation between the PN and a configuration file CFG, and generating a NEW GRUB starting file GRUB _ NEW after compiling after specifying the configuration file PN _ CFG when the read PN is a target requirement.
Further, the test machine obtains a configuration file from the TFTP server, including:
a configuration file PN _ CFG is maintained in advance on the TFTP server, and the configuration file PN _ CFG comprises 5280M6_ grub.cfg, 5688M6_ grub.cfg, ali _ grub.cfg and tencent _ grub.cfg;
the test machine receives the IP and sends an acquisition request of a start file GURB _ NEW to the TFTP server;
the TFTP server sends a start file GURB _ NEW to the test;
the tester receives and executes the start file GURB _ NEW, judges the model and then requests an appointed configuration file ali _ grub.cfg to the TFTP server;
the TFTP server sends a configuration file ali _ grub.
Further, the test machine receives and reads the configuration file, and acquires the image file to the TFTP server after reading, including:
the tester receives the configuration file ali _ grub.cfg, and requests KERNEL and IMAGE mirror IMAGEs to the TFTP server after reading;
the TFTP server sends the kernell and IMAGE IMAGEs to the tester.
Further, the loading of the obtained image file by the tester and entering into a specified operating system includes:
loading a KERNEL mirror IMAGE on a testing machine and guiding an IMAGE mirror IMAGE;
the tester loads the root file system and enters the specified operating system.
Correspondingly, the invention also discloses a PXE starting system, which comprises:
the configuration connection unit is used for broadcasting a DHCP request to the whole local area network after the test machine is started;
the starting file specifying unit is used for receiving the request by the DHCP server, carrying out address allocation on the testing machine and specifying a PXE starting file of the testing machine;
the starting file updating unit is used for loading a PXE starting file, reading a tester PN and requesting a new starting file;
the configuration file acquisition unit is used for controlling the test machine to acquire the configuration file from the TFTP server;
the image file acquisition unit is used for controlling the test machine to receive and read the configuration file, and acquiring the image file to the TFTP server after reading;
and the starting unit is used for controlling the test machine to load the obtained image file and enter a specified operating system.
Correspondingly, the invention discloses a PXE starting device, which comprises:
the storage is used for storing a PXE starting program;
a processor configured to implement the steps of the PXE boot method as described in any of the above when executing the PXE boot program.
Accordingly, the present invention discloses a readable storage medium having a PXE boot program stored thereon, wherein the PXE boot program implements the steps of the PXE boot method as described in any of the above when executed by a processor.
Compared with the prior art, the invention has the beneficial effects that: the invention discloses a PXE starting method, a system, a device and a readable storage medium, which can maintain CFG files with a plurality of PN prefixes in advance, do not need to generate a large number of CFG files with MAC as suffixes, do not need to delete the CFG files in advance, and do not cause the problem of entering error OS and the like caused by the exchange of network cards of a tester or other abnormity, thereby effectively reducing production error reporting, improving the first pass rate and the testing efficiency, reducing the maintenance energy and time of engineers, and reducing the research and development cost.
The invention has wide application, and can also use CFG files such as mainboard PN, QN, complete machine SN, etc., and the unique identifier of the tester in the whole SMBIOS can be used as the standard for generating CFG.
Therefore, compared with the prior art, the invention has prominent substantive features and remarkable progress, and the beneficial effects of the implementation are also obvious.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a process flow diagram of an embodiment of the present invention.
FIG. 2 is a system block diagram of an embodiment of the present invention.
In the figure, 1 is a configuration connection unit; 2 is a starting file specifying unit; 3 is a starting file updating unit; 4 is a configuration file acquisition unit; 5 is a mirror image file acquisition unit; and 6 is a starting unit.
Detailed Description
The core of the invention is to provide a PXE starting method, in the prior art, when PXE is started, a tester needs to delete an original MAC configuration file every time the tester switches an operating system, then a new MAC configuration file is generated, if the tester changes a network card or other abnormity, the MAC configuration file is not deleted, and the MAC configuration file enters an unexpected operating system, so that the production line test reports errors, a large number of MAC configuration files are left on a server, the maintenance is difficult, the production line straight-through rate and the production test efficiency are seriously influenced, and meanwhile, manpower is wasted to debug and the original MAC configuration file is manually deleted.
Firstly, a testing machine is started and then broadcasts a DHCP request to the whole local area network; and after receiving the request, the DHCP server allocates an address to the test machine and specifies a PXE starting file of the test machine. At the moment, a PXE starting file is loaded, a tester PN is read, and a new starting file is requested; the test machine acquires a configuration file from the TFTP server; the tester receives and reads the configuration file, and acquires the image file to the TFTP server after reading. And finally, loading the acquired image file by the tester, and entering a specified operating system. Therefore, the invention can maintain a plurality of CFG files with PN as prefixes in advance, does not need to generate a large number of CFG files with MAC as suffixes, does not need to delete the CFG files in advance, and does not cause the performance problems of entering wrong OS and the like caused by the exchange of network cards or other abnormalities of the tester.
For those skilled in the art to better understand the scheme of the present invention, the definitions of the abbreviations and key terms involved in the present invention are explained as follows:
PXE: preboot execution Environment.
GRUB: GRand UnifiedBootloader, multiple boot manager.
And OS: operating system.
MAC: media Access Control Address, LAN Address.
UEFI: a Unified Extensible Firmware Interface.
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The first embodiment is as follows:
as shown in fig. 1, this embodiment provides a PXE starting method, which includes the following steps:
s1: after the tester is started, a DHCP request is broadcast to the whole local area network.
Specifically, the tester is started, the BIOS starts to scan each hardware device, searches for a hard disk start item, and polls the network card to broadcast a DHCP request to the entire local area network.
S2: and the DHCP server receives the request, performs address allocation on the test machine and specifies a PXE starting file of the test machine.
The method comprises the following specific steps: the DHCP server receives the request, returns an unallocated IP and a lease after judging that the request is legal, and designates a PXE starting file GRUB _ NEW in a DHCP protocol.
S3: a new boot file is requested by loading the PXE boot file and reading the tester PN.
By way of example, by loading a boot file GRUB _ NEW and reading the tester PN, please note the configuration file PN _ CFG file to the TFTP server and generate a NEW GRUB boot file GRUB _ NEW.
Specifically, first, a GRUB source code is downloaded from the start program gitub, a module for reading SMBIOS is added to the source code, the PN of the tester is acquired, the correspondence between the PN and the configuration file CFG is increased, and when the read PN is a target requirement, the configuration file PN _ CFG is designated, and then a NEW GRUB start file GRUB _ NEW is generated after compiling.
S4: the tester obtains the configuration file from the TFTP server.
Specifically, the method comprises the following steps:
firstly, a configuration file PN _ CFG is required to be maintained in advance on a TFTP server, and the configuration file PN _ CFG comprises 5280M6_ grub.cfg, 5688M6_ grub.cfg, ali _ grub.cfg and tencent _ grub.cfg.
The test machine receives the IP and sends an acquisition request to start file GURB _ NEW to the TFTP server. At this time, the TFTP server sends a start file, guard _ NEW, to the test; and executing the starting file after the testing machine receives the starting file GURB _ NEW. After the machine type is judged, the specified configuration file ali _ grub.cfg is requested to the TFTP server, and the TFTP server sends the configuration file ali _ grub.cfg to the testing machine.
S5: the tester receives and reads the configuration file, and acquires the image file to the TFTP server after reading.
First, the tester receives the configuration file ali _ grub.cfg, requests the KERNEL and IMAGE IMAGEs to the TFTP server after reading. The KERNEL and IMAGE IMAGEs are then sent by the TFTP server to the tester.
S6: and loading the obtained image file by the tester and entering a specified operating system.
And after receiving the IMAGE file, loading the KERNEL IMAGE by the testing machine and guiding the IMAGE IMAGE. And finally, controlling the tester to load the root file system and enter a specified operating system.
The embodiment provides a PXE starting method, which can maintain a plurality of CFG files with PN as prefixes in advance, does not need to generate a large amount of CFG files with MAC as suffixes, does not need to delete the CFG files in advance, and does not cause performance problems such as OS entering errors caused by exchanging network cards of testers or other abnormalities, thereby effectively reducing production error reporting and improving the pass-through rate and testing efficiency.
Example two:
based on the first embodiment, as shown in fig. 2, the present invention further discloses a PXE boot system, which includes: the system comprises a configuration connection unit 1, a starting file specifying unit 2, a starting file updating unit 3, a configuration file acquiring unit 4, an image file acquiring unit 5 and a starting unit 6.
And the connection unit 1 is configured and used for broadcasting a DHCP request to the whole local area network after the test machine is started.
The configuration connection unit 1 is specifically configured to: the testing machine is started, the BIOS starts to scan each hardware device, searches for a hard disk start item, and the polling network card broadcasts a DHCP request to the whole local area network.
And the starting file specifying unit 2 is used for receiving the request by the DHCP server, carrying out address allocation on the test machine and specifying the PXE starting file.
The start-up file specifying unit 2 is specifically configured to: the DHCP server receives the request, returns an unallocated IP and a lease after judging that the request is legal, and designates a PXE starting file GRUB _ NEW in a DHCP protocol.
And the starting file updating unit 3 is used for loading the PXE starting file, reading the tester PN and requesting a new starting file.
The start file updating unit 3 is specifically configured to: downloading GRUB source codes from a starting program GITHUB, adding a module for reading SMBIOS in the source codes, acquiring PN of a tester, increasing the corresponding relation between the PN and a configuration file CFG, and generating a NEW GRUB starting file GRUB _ NEW after compiling after specifying the configuration file PN _ CFG when the read PN is a target requirement.
And a configuration file acquisition unit 4, configured to control the tester to acquire the configuration file from the TFTP server.
The configuration file obtaining unit 4 is specifically configured to: the test machine receives the IP and sends an acquisition request of a start file GURB _ NEW to the TFTP server; the TFTP server sends a start file GURB _ NEW to the test; the tester receives and executes the start file GURB _ NEW, judges the model and then requests an appointed configuration file ali _ grub.cfg to the TFTP server; the TFTP server sends a configuration file ali _ grub.
And the image file acquisition unit 5 is used for controlling the test machine to receive and read the configuration file, and acquiring the image file to the TFTP server after reading.
The image file obtaining unit 5 is specifically configured to: the tester receives the configuration file ali _ grub.cfg, and requests KERNEL and IMAGE mirror IMAGEs to the TFTP server after reading; the TFTP server sends the kernell and IMAGE IMAGEs to the tester.
And the starting unit 6 is used for controlling the tester to load the obtained image file and enter a specified operating system.
The starting unit 6 is specifically configured to: loading a KERNEL mirror IMAGE on a testing machine and guiding an IMAGE mirror IMAGE; the tester loads the root file system and enters the specified operating system.
The embodiment provides a PXE starting system, which can maintain a plurality of CFG files with PN as prefixes in advance, does not need to generate a large number of CFG files with MAC as suffixes, does not need to delete the CFG files in advance, and does not cause performance problems such as wrong OS entry caused by exchanging network cards of testers or other abnormalities, thereby effectively reducing production error reporting, improving the throughput and testing efficiency, reducing the maintenance effort and time of engineers, and reducing the research and development cost.
Example three:
the embodiment discloses a PXE starting device, which comprises a processor and a memory; wherein, when the processor executes the PXE starting program stored in the memory, the following steps are implemented:
1. after the tester is started, a DHCP request is broadcast to the whole local area network.
2. And the DHCP server receives the request, performs address allocation on the test machine and specifies a PXE starting file of the test machine.
3. A new boot file is requested by loading the PXE boot file and reading the tester PN.
4. The tester obtains the configuration file from the TFTP server.
5. The tester receives and reads the configuration file, and acquires the image file to the TFTP server after reading.
6. And loading the acquired image file by the tester and entering a specified operating system.
Further, the PXE starting apparatus in this embodiment may further include:
the input interface is used for acquiring an externally imported PXE starting program, storing the acquired PXE starting program into the memory, and also used for acquiring various instructions and parameters transmitted by external terminal equipment and transmitting the instructions and parameters to the processor, so that the processor utilizes the instructions and the parameters to perform corresponding processing. In this embodiment, the input interface may 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, and the like.
And the output interface is used for outputting various data generated by the processor to the terminal equipment connected with the output interface, so that other terminal equipment connected with the output interface can acquire 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, and the like.
And the communication unit is used for establishing remote communication connection between the PXE starting device and the external server so that the PXE starting device can mount the image file into the external server. In this embodiment, the communication unit may specifically include, but is not limited to, a remote communication unit based on a wireless communication technology or a wired communication technology.
And the keyboard is used for acquiring various parameter data or instructions input by a user through real-time key cap knocking.
And the display is used for displaying relevant information in the short circuit positioning process of the power supply line of the operation server in real time.
The mouse can be used for assisting a user in inputting data and simplifying the operation of the user.
Example four:
the present embodiments also disclose a readable storage medium, where the readable storage medium includes Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, a hard disk, a removable hard disk, a CD-ROM, or any other form of storage medium known in the art. The readable storage medium stores a PXE boot program, and when executed by a processor, the PXE boot program implements the following steps:
1. after the tester is started, a DHCP request is broadcast to the whole local area network.
2. And the DHCP server receives the request, performs address allocation on the test machine and specifies a PXE starting file of the test machine.
3. A new boot file is requested by loading the PXE boot file and reading the tester PN.
4. The tester obtains the configuration file from the TFTP server.
5. The tester receives and reads the configuration file, and acquires the image file to the TFTP server after reading.
6. And loading the acquired image file by the tester and entering a specified operating system.
In conclusion, the invention effectively reduces production error report and improves the first pass rate and the test efficiency.
In the present specification, the embodiments are described in a progressive manner, and each embodiment focuses on differences from other embodiments, and the same or similar parts between the embodiments are referred to each other. The method disclosed by the embodiment corresponds to the system disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the description of the method part.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided by the present invention, it should be understood that the disclosed system, system and method can be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, systems or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each module may exist alone physically, or two or more modules are integrated into one unit.
Similarly, each processing unit in the embodiments of the present invention may be integrated into one functional module, or each processing unit may exist physically, or two or more processing units are integrated into one functional module.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The detailed description of the PXE boot method, system, apparatus and readable storage medium provided by the present invention is provided above. The principles and embodiments of the present invention have been described herein using specific examples, which are presented only to assist in understanding the method and its core concepts of the present invention. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.

Claims (10)

1. A PXE starting method is characterized by comprising the following steps:
after the test machine is started, broadcasting a DHCP request to the whole local area network;
the DHCP server receives the request, performs address allocation on the test machine and specifies a PXE starting file of the test machine;
loading a PXE starting file, reading a tester PN, and requesting a new starting file;
the test machine acquires a configuration file from the TFTP server;
the test machine receives and reads the configuration file, and acquires the image file to the TFTP server after reading;
and loading the acquired image file by the tester and entering a specified operating system.
2. The PXE starting method according to claim 1, wherein the broadcasting of the DHCP request to the entire local area network after the tester starts comprises:
the testing machine is started, the BIOS starts to scan each hardware device, searches for a hard disk start item, and the polling network card broadcasts a DHCP request to the whole local area network.
3. The PXE starting method according to claim 2, wherein the DHCP server receives the request, performs address assignment on the tester, and specifies the PXE starting file thereof, including:
the DHCP server receives the request, returns an unallocated IP and a lease after judging that the request is legal, and designates a PXE starting file GRUB _ NEW in a DHCP protocol.
4. The PXE starting method according to claim 3, wherein the requesting a new starting file by loading a PXE starting file and reading a tester PN comprises:
downloading GRUB source codes from a starting program GITHUB, adding a module for reading SMBIOS in the source codes, acquiring PN of a tester, increasing the corresponding relation between the PN and a configuration file CFG, and generating a NEW GRUB starting file GRUB _ NEW after compiling after specifying the configuration file PN _ CFG when the read PN is a target requirement.
5. The PXE starting method of claim 4, wherein the obtaining, by the tester, the configuration file from the TFTP server includes:
a configuration file PN _ CFG is maintained in advance on the TFTP server, and the configuration file PN _ CFG comprises 5280M6_ grub.cfg, 5688M6_ grub.cfg, ali _ grub.cfg and tencent _ grub.cfg;
the test machine receives the IP and sends an acquisition request of a start file GURB _ NEW to the TFTP server;
the TFTP server sends a start file GURB _ NEW to the test;
the tester receives and executes the start file GURB _ NEW, judges the model and then requests an appointed configuration file ali _ grub.cfg to the TFTP server;
the TFTP server sends configuration file ali _ grub.
6. The PXE starting method according to claim 5, wherein the tester receives and reads the configuration file, and the reading obtains the image file to the TFTP server, and the method includes:
the tester receives the configuration file ali _ grub.cfg, and requests KERNEL and IMAGE mirror IMAGEs to the TFTP server after reading;
the TFTP server sends the kernell and IMAGE IMAGEs to the tester.
7. The PXE starting method of claim 6, wherein the loading of the acquired image file by the tester and entry into the designated operating system comprises:
loading a KERNEL mirror IMAGE on a testing machine and guiding an IMAGE mirror IMAGE;
the tester loads the root file system and enters the specified operating system.
8. A PXE starting system, comprising:
the configuration connection unit is used for broadcasting a DHCP request to the whole local area network after the test machine is started;
the starting file specifying unit is used for receiving the request by the DHCP server, carrying out address allocation on the testing machine and specifying a PXE starting file of the testing machine;
the starting file updating unit is used for loading a PXE starting file, reading a tester PN and requesting a new starting file;
the configuration file acquisition unit is used for controlling the test machine to acquire the configuration file from the TFTP server;
the image file acquisition unit is used for controlling the test machine to receive and read the configuration file, and acquiring the image file to the TFTP server after reading;
and the starting unit is used for controlling the test machine to load the obtained image file and enter a specified operating system.
9. A PXE starting device, comprising:
the storage is used for storing a PXE starting program;
a processor configured to implement the steps of the PXE boot method as claimed in any one of claims 1 to 7 when executing the PXE boot program.
10. A readable storage medium, characterized by: the readable storage medium has stored thereon a PXE boot program that, when executed by a processor, performs the steps of the PXE boot method as recited in any one of claims 1 to 7.
CN202210586498.9A 2022-05-27 2022-05-27 PXE starting method, system and device and readable storage medium Pending CN114860271A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210586498.9A CN114860271A (en) 2022-05-27 2022-05-27 PXE starting method, system and device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210586498.9A CN114860271A (en) 2022-05-27 2022-05-27 PXE starting method, system and device and readable storage medium

Publications (1)

Publication Number Publication Date
CN114860271A true CN114860271A (en) 2022-08-05

Family

ID=82641798

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210586498.9A Pending CN114860271A (en) 2022-05-27 2022-05-27 PXE starting method, system and device and readable storage medium

Country Status (1)

Country Link
CN (1) CN114860271A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116032914A (en) * 2022-12-09 2023-04-28 中国电子科技集团公司第三十研究所 Automatic production and debugging method and system for network equipment
CN117555605A (en) * 2024-01-11 2024-02-13 北京开源芯片研究院 Operating system starting method and device, electronic equipment and readable storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116032914A (en) * 2022-12-09 2023-04-28 中国电子科技集团公司第三十研究所 Automatic production and debugging method and system for network equipment
CN117555605A (en) * 2024-01-11 2024-02-13 北京开源芯片研究院 Operating system starting method and device, electronic equipment and readable storage medium
CN117555605B (en) * 2024-01-11 2024-04-05 北京开源芯片研究院 Operating system starting method and device, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN114860271A (en) PXE starting method, system and device and readable storage medium
CN109194617B (en) Automatic parsing and packaging method and device for XML (extensive markup language) message
CN106919485B (en) System based on hardware testing tool configured on server
CN110830234B (en) User traffic distribution method and device
CN110753088B (en) System deployment method and device
CN109358876A (en) A kind of version synchronization method and device, equipment, storage medium
CN110635944A (en) Cluster network configuration method and device, electronic equipment and storage medium
CN112272246A (en) Out-of-band network IP automatic configuration method and device, electronic equipment and storage medium
CN115061885A (en) Complete machine aging automatic test method and device, electronic equipment and storage medium
CN112187574A (en) Method, system and storage medium for network stress testing using virtual machines
CN111078305A (en) Information acquisition method and device, server and information management system
CN111124437A (en) Bare computer resource configuration information acquisition method, system and equipment based on OpenStack
CN113626276B (en) Method, system, terminal and storage medium for identifying type of server HBA card
CN113904926A (en) Pre-boot execution environment checking method, system, terminal and storage medium
CN114500280B (en) Firmware upgrading method and device and computer readable storage medium
CN115333933B (en) Automatic management method, medium and equipment for servers on machine room
CN116303200A (en) PCIE equipment positioning management method, system, terminal and storage medium
CN109286692A (en) A kind of method of configuration server IPMI static ip address
CN108345476A (en) A kind of method and apparatus of batch processing hardware configuration information
CN114253573A (en) PCIe device firmware batch upgrading method, system, terminal and storage medium
CN112003727A (en) Multi-node server power supply testing method, system, terminal and storage medium
CN111858308A (en) Method, system, terminal and storage medium for acquiring test data of diskless system
CN111475398A (en) Server NIC diagnosis method, system, terminal and storage medium
CN101452390A (en) Network boot method and system, and system boot method and apparatus
CN111694587A (en) Server PNOR firmware upgrading method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination