A method and device for automatically adding and updating PXE service image files

通过自动化方法和微服务架构,实现了PXE服务镜像文件的自动化更新,解决了人工操作繁琐和出错的问题,提高了服务器测试效率和可靠性。

CN115794166BActive Publication Date: 2025-07-08INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211574004.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-08
Publication Date
2025-07-08
Estimated Expiration
2042-12-08

AI Technical Summary

Technical Problem

In the prior art, the update of PXE service image files relies on manual operations, which are cumbersome and prone to errors, resulting in missed configurations and server downtime, and consumes labor and time.

Method used

Using an automated method, the image file monitoring and download module, the PXE service redeployment module and the visual parameter configuration module are used to build the image file update microservice architecture, automatically monitor the image file update and reconfigure the version, startup policy and menu options of the PXE service, and notify the operation and maintenance personnel through graphical or message methods.

Benefits of technology

Significantly reduce manual deployment time and labor, standardize operations, avoid configuration omissions and server downtime, and improve the efficiency of installation system during server testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115794166B_ABST
    Figure CN115794166B_ABST
Patent Text Reader

Abstract

The present invention provides a method and system for automatically adding and updating PXE service image files, belonging to the technical field of PXE service configuration. The steps of the method are as follows: The image file monitoring and downloading module periodically monitors the operating system image files in the first specified path, and when the operating system image files are updated, downloads the new operating system image files to the second specified path of the PXE server; The PXE service redeployment module reconfigures the version deployment, startup policy, and menu options of the PXE service according to the newly downloaded operating system image files; The visualization parameter configuration module notifies the operation and maintenance personnel of the deployed PXE service in a graphical or message manner. The present invention can significantly reduce the time and manpower for manually deploying the image files of the PXE service, standardize the deployment operations, avoid configuration omissions caused by manual deployment, avoid downtime of the PXE service caused by manual deployment, and significantly improve the timeliness of installing the system on the server to be tested.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of PXE service configuration, and particularly relates to a method and device for automatically adding and updating PXE service image files. Background Art

[0002] PXE, short for Preboot Execution Environment, is a pre-boot execution environment.

[0003] UEFI, short for Unified Extensible Firmware Interface, is a unified extensible firmware interface.

[0004] Legacy is the traditional boot mode under BIOS.

[0005] During the testing process of servers, it is necessary to set up multiple servers to be tested and install operating systems on them. To reduce the time spent on installing operating systems on the servers to be tested and improve the testing efficiency, PXE services are usually used to install operating systems in batches. Therefore, multiple versions of operating system image files need to be deployed on the PXE service.

[0006] The common method is to manually download image files from the official website of the operating system, manually mount the image, add menu options, add boot strategies or update the original boot strategies. Moreover, the official website of the operating system will also add, update and fix bugs in its image files. At this time, it is necessary to manually redeploy the image and its configuration of the PXE service. The manual operation path is more, the operation is more cumbersome, and it is easy to miss when manually configuring, which is likely to cause the PXE service to crash, affecting the installation of the operating system on the servers to be tested, and consuming a lot of manpower and time of the operation and maintenance personnel, and it is easy to miss, and it consumes a lot of time and manpower.

[0007] This is the deficiency of the prior art. Therefore, in view of the above-mentioned defects in the prior art, it is very necessary to provide a method and device for automatically adding and updating PXE service image files. Summary of the Invention

[0008] In view of the above-mentioned defects of the existing PXE service relying on manual update of operating system image files, with cumbersome operations and easy errors, the present invention provides a method and device for automatically adding and updating PXE service image files to solve the above technical problems.

[0009] In a first aspect, the present invention provides a method for automatically adding and updating PXE service image files, including the following steps:

[0010] S1. Set up an image file monitoring and downloading module, a PXE service redeployment module, and a visualization parameter configuration module in the PXE server;

[0011] S2. The image file monitoring and downloading module periodically monitors the operating system image file in the first specified path, and when the operating system image file is updated, downloads the new operating system image file to the second specified path in the PXE server;

[0012] S3. The PXE service redeployment module reconfigures the version deployment, startup policy, and menu options of the PXE service according to the newly downloaded operating system image file;

[0013] S4. The visualization parameter configuration module notifies the operation and maintenance personnel of the deployed PXE service in a graphical or message way.

[0014] Furthermore, the specific steps of step S1 are as follows:

[0015] S11. Build an image file update microservice architecture for the PXE server based on Spring Boot;

[0016] S12. Configure an image file monitoring and downloading module for the PXE server under the image file update microservice architecture to monitor whether the image file is updated;

[0017] S13. Configure a PXE service redeployment module for the PXE server under the image file update microservice architecture to update the PXE service;

[0018] S14. Configure a visualization parameter configuration module for the PXE server under the image file update microservice architecture to display the PXE service deployment result.

[0019] Furthermore, the specific steps of step S2 are as follows:

[0020] S21. The image file monitoring and downloading module periodically monitors the operating system image file in the first specified path outside the PXE server;

[0021] S22. Determine whether there is a new operating system image file;

[0022] If yes, go to step S23;

[0023] If no, return to step S22;

[0024] S23. Download the new operating system image file and save it in the second specified path located inside the PXE server.

[0025] Furthermore, the specific steps of step S3 are as follows:

[0026] S31. The PXE service redeployment module determines whether there is an option version corresponding to the newly downloaded operating system image file in the menu options of the PXE service;

[0027] If not, go to step S32;

[0028] If so, go to step S33;

[0029] S32. Determine that the newly downloaded operating system image file corresponds to a new operating system, perform new version deployment, configure the startup policy, and configure the menu options for the newly downloaded operating system image file, and then go to step S4;

[0030] S33. Determine that the newly downloaded operating system image file corresponds to an existing operating system, perform updated version deployment, update the startup policy, and update the menu options for the newly downloaded operating system image file.

[0031] Further, the specific steps of step S32 are as follows:

[0032] S321. The PXE service redeployment module performs new version deployment for the newly downloaded operating system image file;

[0033] S322. At the specified temporary path of the PXE server, mount the newly downloaded operating system image file;

[0034] S323. Copy all the files mounted from the specified temporary path of the PXE server to the specified image directory;

[0035] S324. Configure both the kernel and the startup files of the drivers in the new operating system image file under the specified startup policy to complete the startup policy configuration;

[0036] S325. Configure menu options for the new operating system image file, add a new version option, and configure the option content;

[0037] S326. Unmount the newly downloaded operating system image file at the specified temporary path of the PXE server.

[0038] Further, the specific steps of step S33 are as follows:

[0039] S331. The PXE service redeployment module performs updated version deployment for the newly downloaded operating system image file, replacing the version of the existing operating system image file;

[0040] S332. At the specified temporary path of the PXE server, mount the newly downloaded operating system image file;

[0041] S 333. Copy all the mounted files from the specified temporary path of the PXE server to replace the files in the existing version image directory;

[0042] S 334. Configure both the kernel and the startup files of the drivers in the new operating system image file under the specified startup policy, and update the startup policy;

[0043] S 335. Update the menu option content for the new operating system image file, update the version option, and update the option content;

[0044] S 336. Unmount the newly downloaded operating system image file under the specified temporary path of the PXE server.

[0045] Further, in steps S323 and S333, when there are hidden files in the specified temporary path, copy the hidden files separately to the first specified image directory;

[0046] In steps S324 and S334, configure the kernel and driver image files in both the UEFI boot mode and the legacy boot mode to achieve compatibility;

[0047] In steps S325 and S335, configure the version option and the menu option for the UEFI boot mode and the legacy boot mode respectively.

[0048] Further, the specific steps of step S4 are as follows:

[0049] S41. The visualization parameter configuration module receives the deployment result returned by the PXE service redeployment module and judges the notification method;

[0050] When the notification method is the visualization method, go to step S42;

[0051] When the notification method is the message method, go to step S43;

[0052] S42. Notify the operation and maintenance personnel of the deployment result in a graphical way, and end;

[0053] S43. Generate a message for the deployment result and use the message to notify the operation and maintenance personnel.

[0054] In a second aspect, the present invention provides an apparatus for automatically adding and updating PXE service image files, including:

[0055] An automation module setting module, configured to set an image file monitoring and downloading module, a PXE service redeployment module, and a visualization parameter configuration module in the PXE server;

[0056] The mirror file monitoring and downloading module is used to regularly monitor the operating system mirror file in the first specified path, and when the operating system mirror file is updated, download the new operating system mirror file to the second specified path of the PXE server;

[0057] The PXE service redeployment module is used to reconfigure the version deployment, startup policy, and menu options of the PXE service according to the newly downloaded operating system mirror file;

[0058] The visualization parameter configuration module is used to notify the operation and maintenance personnel of the deployed PXE service in a graphical or message way.

[0059] Furthermore, the automation module setting module includes:

[0060] The microservice framework building unit is used to build a mirror file update microservice architecture for the PXE server based on SpringBoot;

[0061] The monitoring module setting unit is used to configure the mirror file monitoring and downloading module for the PXE server under the mirror file update microservice architecture to monitor whether the mirror file is updated;

[0062] The PXE service redeployment module configuration unit is used to configure the PXE service redeployment module for the PXE server under the mirror file update microservice architecture to update the PXE service;

[0063] The visualization module building unit is used to configure the visualization parameter configuration module for the PXE server under the mirror file update microservice architecture to display the PXE service deployment result;

[0064] The mirror file monitoring and downloading module includes:

[0065] The mirror file monitoring unit is used to regularly monitor the operating system mirror file in the first specified path outside the PXE server;

[0066] The new file judgment unit is used to judge whether there is a new operating system mirror file;

[0067] The mirror file downloading unit is used to download the new operating system mirror file when there is a new operating system mirror file and save it in the second specified path located in the PXE server;

[0068] The PXE service redeployment module includes:

[0069] The version existence judgment unit is used to judge whether there is an option version corresponding to the newly downloaded operating system mirror file in the menu options of the PXE service;

[0070] An image file adding unit, which is used to determine that the newly downloaded operating system image file corresponds to a new operating system when there is no option version corresponding to the newly downloaded operating system image file, and add version deployment, configure startup policies, and configure menu options for the newly downloaded operating system image file;

[0071] An image file version upgrade unit, which is used to determine that the newly downloaded operating system image file corresponds to an existing operating system when there is an option version corresponding to the newly downloaded operating system image file, and update version deployment, update startup policies, and update menu options for the newly downloaded operating system image file;

[0072] The visualization parameter configuration module includes:

[0073] A notification method judgment unit, which is used to judge the notification method after receiving the deployment result returned by the PXE service redeployment module;

[0074] A visualization notification unit, which is used to notify the operation and maintenance personnel of the deployment result in a graphical way when the notification method is the visualization method, and end;

[0075] A message notification unit, which is used to generate a message of the deployment result and use the message to notify the operation and maintenance personnel when the notification method is the message method.

[0076] The beneficial effects of the present invention are as follows.

[0077] The method and device for automatically adding and updating the PXE service image file provided by the present invention can greatly reduce the time and manpower for manually deploying the PXE service image file, standardize the deployment operation, avoid configuration omissions caused by manual deployment, avoid the downtime of the PXE service caused by manual deployment, and thus avoid the problem of affecting the installation of the operating system for the server to be tested, and greatly improve the timeliness of installing the system for the server to be tested during the server testing process.

[0078] In addition, the design principle of the present invention is reliable, the structure is simple, and it has a very wide application prospect.

[0079] Therefore, compared with the prior art, the present invention has prominent substantive features and significant progress, and the beneficial effects of its implementation are also obvious. Description of the Drawings

[0080] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0081] Figure 1It is a schematic flowchart of Embodiment 1 of the method for automatically adding and updating PXE service image files according to the present invention.

[0082] Figure 2 It is a schematic flowchart of Embodiment 2 of the method for automatically adding and updating PXE service image files according to the present invention.

[0083] Figure 3 It is a schematic diagram of the system for automatically adding and updating PXE service image files according to the present invention.

[0084] In the figure, 1 - Automated module setting module; 1.1 - Microservice framework building unit; 1.2 - Monitoring module setting unit; 1.3 - PXE service redeployment module configuration unit; 1.4 - Visualization module building unit; 2 - Image file monitoring and downloading module; 2.1 - Image file monitoring unit; 2.2 - New file judgment unit; 2.3 - Image file downloading unit; 3 - PXE service redeployment module; 3.1 - Version existence judgment unit; 3.2 - Image file adding unit; 3.3 - Image file version upgrading unit; 4 - Visualization parameter configuration module; 4.1 - Notification method judgment unit; 4.2 - Visualization notification unit; 4.3 - Visualization notification unit. Detailed implementation manners

[0085] In order to enable those skilled in the art of the present technology to better understand the technical solutions in the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0086] Embodiment 1:

[0087] As Figure 1 shown, the present invention provides a method for automatically adding and updating PXE service image files, including the following steps:

[0088] S1. Set an image file monitoring and downloading module, a PXE service redeployment module, and a visualization parameter configuration module in the PXE server;

[0089] S2. The image file monitoring and downloading module regularly monitors the operating system image files in the first specified path, and when the operating system image files are updated, downloads the new operating system image files to the second specified path of the PXE server;

[0090] S 3. The PXE service redeployment module reconfigures the version deployment, startup policy, and menu options of the PXE service according to the newly downloaded operating system image file;

[0091] S4. The visualization parameter configuration module notifies the operation and maintenance personnel of the deployed PXE service in a graphical or message way.

[0092] Embodiment 2:

[0093] Taking the Linux operating system as an example, the official website of the Linux operating system will add, update, and fix bugs in its image file. Therefore, it is necessary to redeploy the Linux operating system image file and its configuration of the PXE service.

[0094] Such as Figure 2 As shown, the present invention provides a method for automatically adding and updating the PXE service image file, including the following steps:

[0095] S 1. Set up an image file monitoring and downloading module, a PXE service redeployment module, and a visualization parameter configuration module on the PXE server; the specific steps of step S1 are as follows:

[0096] S 11. Build an image file update microservice architecture for the PXE server based on Spring Boot;

[0097] S 12. Configure an image file monitoring and downloading module for the PXE server under the image file update microservice architecture to monitor whether the image file has been updated;

[0098] S 13. Configure a PXE service redeployment module for the PXE server under the image file update microservice architecture to update the PXE service;

[0099] S 14. Configure a visualization parameter configuration module for the PXE server under the image file update microservice architecture to display the PXE service deployment result;

[0100] S 2. The image file monitoring and downloading module periodically monitors the operating system image file in the first specified path, and when the operating system image file is updated, downloads the new operating system image file to the second specified path of the PXE server; the specific steps of step S 2 are as follows:

[0101] S 21. The image file monitoring and downloading module periodically monitors the operating system image file in the first specified path outside the PXE server; monitors the image file located on the official website of the Linux operating system;

[0102] S 22. Determine whether there is a new operating system image file;

[0103] If yes, go to step S23;

[0104] If no, return to step S22;

[0105] S23. Download a new operating system image file and save it in the second specified path in the PXE server;

[0106] S3. The PXE service redeployment module reconfigures the version deployment, startup policy, and menu options of the PXE service according to the newly downloaded operating system image file; The specific steps of step S3 are as follows:

[0107] S31. The PXE service redeployment module determines whether there is an option version corresponding to the newly downloaded operating system image file in the menu options of the PXE service;

[0108] If no, go to step S32;

[0109] If yes, go to step S33;

[0110] S32. Determine that the newly downloaded operating system image file corresponds to a new operating system, add version deployment, configure the startup policy, and configure the menu options for the newly downloaded operating system image file, and go to step S4; The specific steps of step S32 are as follows:

[0111] S321. The PXE service redeployment module adds version deployment for the newly downloaded operating system image file;

[0112] S322. Mount the newly downloaded operating system image file at the specified temporary path of the PXE server;

[0113] S323. Copy all the mounted files from the specified temporary path of the PXE server to the specified image directory;

[0114] S324. Configure the kernel and driver startup files in the new operating system image file under the specified startup policy to complete the startup policy configuration; For example, configure the kernel startup file vmlinuz and the driver startup file initrd.img under the specified startup policy; Configure the UEFI boot mode to the http service path of tomcat, and copy the traditional boot mode to the tftp service path; The startup policy that is compatible with both the UEFI boot mode and the traditional boot mode;

[0115] S325. Configure the menu options for the newly downloaded operating system image file, add a new version option, and configure the option content; For example, the option content includes the image name, version, kernel, driver, and installation type; The installation type includes automatic and manual. When the installation type is automatic installation, a ks file needs to be automatically added;

[0116] S 326. Unmount the newly downloaded operating system image file under the specified temporary path of the PXE server;

[0117] S 33. Determine whether the newly downloaded operating system image file corresponds to an existing operating system, and perform version deployment, update the startup policy, and update the menu options for the newly downloaded operating system image file; The specific steps of step S 33 are as follows:

[0118] S 331. The PXE service redeployment module performs version deployment for the newly downloaded operating system image file and replaces the version of the existing operating system image file;

[0119] S 332. Mount the newly downloaded operating system image file at the specified temporary path of the PXE server;

[0120] S 333. Copy all the files mounted from the specified temporary path of the PXE server to replace the files under the existing version image directory;

[0121] S 334. Configure the startup files of the kernel and drivers in the new operating system image file under the specified startup policy to update the startup policy; For example, copy the image file, the kernel startup file vmlinuz, and the driver startup file initrd.img to the existing version path for replacement, and update the startup policy and the content of the menu options;

[0122] S 335. Update the content of the menu options for the new operating system image file, update the version options, and update the option content;

[0123] S 336. Unmount the newly downloaded operating system image file under the specified temporary path of the PXE server;

[0124] S4. The visualization parameter configuration module notifies the operation and maintenance personnel of the deployed PXE service in a graphical or message manner; The specific steps of step S4 are as follows:

[0125] S41. The visualization parameter configuration module receives the deployment result returned by the PXE service redeployment module and determines the notification method;

[0126] When the notification method is the visualization method, go to step S42;

[0127] When the notification method is the message method, go to step S43;

[0128] S42. Notify the operation and maintenance personnel of the deployment result in a graphical manner, and end;

[0129] S43. Generate a message for the deployment result and use the message to notify the operation and maintenance personnel.

[0130] In the above-mentioned Embodiment 2, in steps S323 and S333, when there are hidden files in the specified temporary path, the hidden files are copied separately to the specified mirror directory; if there are files in the.tree info format and the.disc info format, they need to be copied separately to the specified mirror directory, rather than together with other files;

[0131] In steps S324 and S334, the kernel and driver image files are configured in both the UEFI boot mode and the legacy boot mode to achieve compatibility;

[0132] In steps S325 and S335, version options and menu options are configured respectively for the UEFI boot mode and the legacy boot mode.

[0133] Embodiment 3:

[0134] As Figure 3 shown, the present invention provides a device for automatically adding and updating PXE service image files, including:

[0135] An automation module setting module 1, which is used to set an image file monitoring and downloading module 2, a PXE service redeployment module 3, and a visualization parameter configuration module 4 in the PXE server; the automation module setting module 1 includes:

[0136] A microservice framework building unit 1.1, which is used to build a microservice architecture for updating image files in the PXE server based on Spring Boot;

[0137] A monitoring module setting unit 1.2, which is used to configure an image file monitoring and downloading module for the PXE server under the microservice architecture for updating image files to monitor whether there is an update to the image file;

[0138] A PXE service redeployment module configuration unit 1.3, which is used to configure a PXE service redeployment module for the PXE server under the microservice architecture for updating image files to update the PXE service;

[0139] A visualization module building unit 1.4, which is used to configure a visualization parameter configuration module for the PXE server under the microservice architecture for updating image files to display the PXE service deployment result;

[0140] An image file monitoring and downloading module 2, which is used to regularly monitor the operating system image file in the first specified path, and when there is an update to the operating system image file, download the new operating system image file to the second specified path of the PXE server; the image file monitoring and downloading module 2 includes:

[0141] The mirror file monitoring unit 2.1 is used to monitor the operating system mirror file under the first specified path outside the PXE server at regular intervals;

[0142] The new file judgment unit 2.2 is used to judge whether there is a new operating system mirror file;

[0143] The mirror file download unit 2.3 is used to download the new operating system mirror file and save it under the second specified path located inside the PXE server when there is a new operating system mirror file;

[0144] The PXE service redeployment module 3 is used to reconfigure the version deployment, startup policy, and menu options of the PXE service according to the newly downloaded operating system mirror file; The PXE service redeployment module 3 includes:

[0145] The version existence judgment unit 3.1 is used to judge whether there is an option version corresponding to the newly downloaded operating system mirror file in the menu options of the PXE service;

[0146] The mirror file new addition unit 3.2 is used to determine that the newly downloaded operating system mirror file corresponds to a new operating system when there is no option version corresponding to the newly downloaded operating system mirror file, and add version deployment, configure startup policy, and configure menu options for the newly downloaded operating system mirror file;

[0147] The mirror file version upgrade unit 3.3 is used to determine that the newly downloaded operating system mirror file corresponds to an existing operating system when there is an option version corresponding to the newly downloaded operating system mirror file, and update version deployment, update startup policy, and update menu options for the newly downloaded operating system mirror file;

[0148] The visualization parameter configuration module 4 is used to notify the operation and maintenance personnel in a graphical or message way about the deployed PXE service; The visualization parameter configuration module 4 includes:

[0149] The notification method judgment unit 4.1 is used to judge the notification method after receiving the deployment result returned by the PXE service redeployment module;

[0150] The visualization notification unit 4.2 is used to notify the operation and maintenance personnel about the deployment result in a graphical way when the notification method is the visualization method, and end;

[0151] The message notification unit 4.3 is used to generate a message about the deployment result and use the message to notify the operation and maintenance personnel when the notification method is the message way.

[0152] Although the present invention has been described in detail by reference to the accompanying drawings and in conjunction with the preferred embodiments, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, those of ordinary skill in the art can make various equivalent modifications or substitutions to the embodiments of the present invention, and these modifications or substitutions should all be within the scope of the present invention. / Any person skilled in the art within the technical scope disclosed by the present invention can easily think of changes or substitutions, which should all be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

Claims

1. An automated method for adding and updating PXE service image files, characterized in that, It includes the following steps: S1. Set up an image file monitoring and downloading module, a PXE service redeployment module, and a visualization parameter configuration module in the PXE server; the specific steps of step S1 are as follows: S11. Build an image file update microservice architecture for the PXE server based on SpringBoot; S12. Configure an image file monitoring and downloading module for the PXE server under the image file update microservice architecture to monitor whether the image file has been updated; S13. Configure a PXE service redeployment module for the PXE server under the image file update microservice architecture to update the PXE service; S14. Configure a visualization parameter configuration module for the PXE server under the image file update microservice architecture to display the PXE service deployment result; S2. The image file monitoring and downloading module periodically monitors the operating system image file in the first specified path, and when the operating system image file is updated, downloads the new operating system image file to the second specified path of the PXE server; the specific steps of step S2 are as follows: S21. The image file monitoring and downloading module periodically monitors the operating system image file in the first specified path outside the PXE server; S22. Determine whether there is a new operating system image file; If yes, go to step S23; If no, return to step S22; S23. Download the new operating system image file and save it in the second specified path located in the PXE server; S3. The PXE service redeployment module reconfigures the version deployment, startup policy, and menu options of the PXE service according to the newly downloaded operating system image file; the specific steps of step S3 are as follows: S31. The PXE service redeployment module determines whether there is an option version corresponding to the newly downloaded operating system image file in the menu options of the PXE service; If no, go to step S32; If yes, go to step S33; S32. Determine that the newly downloaded operating system image file corresponds to a new operating system, add version deployment, configure the startup policy, and configure the menu options for the newly downloaded operating system image file, and go to step S4; S33. Determine that the newly downloaded operating system image file corresponds to an existing operating system, update the version deployment, update the startup policy, and update the menu options for the newly downloaded operating system image file; S4. The visualization parameter configuration module notifies the operation and maintenance personnel of the deployed PXE service in a graphical or message way.

2. The method for automatically adding and updating PXE service image files according to claim 1, characterized in that The specific steps of step S32 are as follows: S321. The PXE service redeployment module adds version deployment for the newly downloaded operating system image file; S322. Mount the newly downloaded operating system image file at the specified temporary path of the PXE server; S323. Copy all the files mounted from the specified temporary path of the PXE server to the specified image directory; S324. Configure both the kernel and driver startup files in the new operating system image file under the specified startup policy to complete the startup policy configuration; S325. Configure menu options for the new operating system image file, add version options, and configure option content; S326. Unmount the newly downloaded operating system image file in the specified temporary path of the PXE server.

3. The method for automatically adding and updating PXE service image files as described in claim 2, characterized in that, The specific steps of step S33 are as follows: S331. The PXE service redeployment module updates the version deployment for the newly downloaded operating system image file and replaces the existing operating system image file version. S332. Mount the newly downloaded operating system image file in the specified temporary path of the PXE server. S333. Copy all the mounted files from the specified temporary path of the PXE server to replace the files in the existing version image directory. S334. Configure both the kernel and driver startup files in the new operating system image file under the specified startup policy and update the startup policy. S335. Update the menu option content for the new operating system image file, update the version option, and update the option content. S336. Unmount the newly downloaded operating system image file in the specified temporary path of the PXE server.

4. The method for automatically adding and updating PXE service image files as claimed in claim 3, wherein In step S323 and step S333, when there are hidden files in the specified temporary path, copy the hidden files separately to the first specified image directory. In step S324 and step S334, configure the kernel and driver image files in both the UEFI boot mode and the legacy boot mode to achieve compatibility. In step S325 and step S335, configure the version option and menu option for the UEFI boot mode and the legacy boot mode respectively.

5. The method for automatically adding and updating PXE service image files as described in claim 4, characterized in that, The specific steps of step S4 are as follows: S41. The visualization parameter configuration module receives the deployment result returned by the PXE service redeployment module and judges the notification method. When the notification method is the visualization method, go to step S42. When the notification method is the message method, go to step S43. S42. Notify the operation and maintenance personnel of the deployment result in a graphical way and end. S43. Generate a message for the deployment result and use the message to notify the operation and maintenance personnel.

6. An apparatus for automatically adding and updating PXE service image files, characterized in that, Including: The automation module setting module (1) is used to set the image file monitoring and download module (2), the PXE service redeployment module (3), and the visualization parameter configuration module (4) in the PXE server. The automation module setting module (1) includes: The microservice framework building unit (1.1) is used to build an image file update microservice architecture for the PXE server based on SpringBoot. The monitoring module setting unit (1.2) is used to configure the image file monitoring and download module for the PXE server under the image file update microservice architecture to monitor whether the image file has been updated. The PXE service redeployment module configuration unit (1.3) is used to configure the PXE service redeployment module for the PXE server under the image file update microservice architecture to update the PXE service. The visualization module building unit (1.4) is used to configure the visualization parameter configuration module for the PXE server under the image file update microservice architecture to display the PXE service deployment result. The mirror file monitoring and downloading module (2) is used to periodically monitor the operating system mirror file in the first specified path, and when the operating system mirror file is updated, download the new operating system mirror file to the second specified path of the PXE server; the mirror file monitoring and downloading module (2) includes: The mirror file monitoring unit (2.1) is used to periodically monitor the operating system mirror file in the first specified path outside the PXE server; The new file judgment unit (2.2) is used to judge whether there is a new operating system mirror file; The mirror file downloading unit (2.3) is used to download the new operating system mirror file and save it in the second specified path located in the PXE server when there is a new operating system mirror file; The PXE service redeployment module (3) is used to reconfigure the version deployment, startup policy and menu options of the PXE service according to the newly downloaded operating system mirror file; the PXE service redeployment module (3) includes: The version existence judgment unit (3.1) is used to judge whether there is an option version corresponding to the newly downloaded operating system mirror file in the menu options of the PXE service; The mirror file new addition unit (3.2) is used to determine that the newly downloaded operating system mirror file corresponds to a new operating system when there is no option version corresponding to the newly downloaded operating system mirror file, and add version deployment, configure startup policy and configure menu options for the newly downloaded operating system mirror file; The mirror file version upgrade unit (3.3) is used to determine that the newly downloaded operating system mirror file corresponds to an existing operating system when there is an option version corresponding to the newly downloaded operating system mirror file, and update version deployment, update startup policy and update menu options for the newly downloaded operating system mirror file; The visualization parameter configuration module (4) is used to notify the operation and maintenance personnel in a graphical or message manner of the deployed PXE service.

7. The apparatus for automatically adding and updating PXE service image files as claimed in claim 6, wherein, The visualization parameter configuration module (4) includes: The notification method judgment unit (4.1) is used to judge the notification method after receiving the deployment result returned by the PXE service redeployment module; The visualization notification unit (4.2) is used to notify the operation and maintenance personnel of the deployment result in a graphical manner when the notification method is the visualization method, and end; The message notification unit (4.3) is used to generate a message of the deployment result and use the message to notify the operation and maintenance personnel when the notification method is the message method.

Citation Information

Patent Citations

  • Bare metal server deployment method

    CN113867746A

  • PXE technology-based operating system installation method and device

    CN115098174A