An operating system pre-installation verification method, system, device and readable storage medium

By verifying the operating system after pre-installation, the problem of unsuccessful pre-installation of the operating system was solved, achieving efficient automated installation and cost savings.

CN115509893BActive Publication Date: 2026-11-27INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211035486.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-26
Publication Date
2026-11-27
Estimated Expiration
2042-08-26

AI Technical Summary

Technical Problem

In existing technologies, the operating system is not verified after pre-installation, leading to server production line shutdowns and wasted human resources.

Method used

Pre-install an operating system on the device to be verified, extract the kickstart configuration file to the PXE server, and restart the device to start PXE to install the operating system. If the installation is successful, the verification is successful.

Benefits of technology

This enabled post-installation verification of the operating system, allowing for timely detection of problems, preventing unsuccessful pre-installation, improving installation efficiency, and saving labor costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115509893B_ABST
    Figure CN115509893B_ABST
Patent Text Reader

Abstract

The application provides an operating system preinstallation verification method, system and device and a readable storage medium. The method comprises the following steps: preinstalling an operating system on a device to be verified; extracting a kickstart configuration file to a PXE server; restarting the device to be verified and starting PXE installation of the operating system; and if the operating system can be normally entered after installation, the verification is successful. The application can verify the operating system after preinstallation, find problems in time and avoid unsuccessful preinstallation of the operating system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and more specifically to an operating system pre-installation verification method, system, apparatus, and readable storage medium. Background Technology

[0002] Currently, customers specify hardware and software configurations for servers, requiring them to pre-install their provided operating system and operating system partitions. The usual approach is to install the operating system according to the customer's requirements. However, because the pre-installed operating system is not verified to be compatible, installation failures occur on the production line when manufacturing servers. This causes production line downtime and wastes human resources.

[0003] Clearly, how to verify the operating system after it has been pre-installed is a problem that we urgently need to solve. Summary of the Invention

[0004] To address the above problems, the present invention aims to provide an operating system pre-installation verification method, system, device, and readable storage medium, which can perform verification after the operating system is pre-installed, promptly identify problems, and avoid unsuccessful operating system pre-installation.

[0005] To achieve the above objectives, this invention provides the following technical solution: an operating system pre-installation verification method, comprising:

[0006] Pre-install the operating system on the device to be verified;

[0007] Extract the kickstart configuration file to the PXE server;

[0008] Reboot the device to be verified and start PXE to install the operating system;

[0009] If you can boot into the operating system normally after installation, then the verification is successful.

[0010] Furthermore, the extraction of the kickstart configuration file to the PXE server includes:

[0011] Add the path to the kickstart configuration file on the device to be verified, based on the current boot mode;

[0012] Obtain the network interface card (NIC) IP address of the PXE server;

[0013] Modify the storage path of the kickstart configuration file according to the PXE server's IP address;

[0014] Store the autox-ks.cfg file, Centos-7.repo file, and image file in the corresponding locations on the PXE server.

[0015] Furthermore, the current boot modes include: legacy mode and UEFI mode.

[0016] Furthermore, storing the autox-ks.cfg file, the Centos-7.repo file, and the image file in the corresponding locations on the PXE server includes:

[0017] Place the autox-ks.cfg file in the / var / ftp / pub / kickstart directory of the PXE server; place the Centos-7.repo file in the / var / ftp / pub directory of the PXE server.

[0018] Store the image file in the / var / ftp / pub / CentOS7.9 directory on the PXE server.

[0019] Furthermore, the process of restarting the device to be verified and starting the PXE operating system installation includes:

[0020] Reboot the device to be verified, and use the F12 key to start the PXE installation to enter the operating system installation process.

[0021] Furthermore, the operating system installation process takes 15 minutes.

[0022] Accordingly, the present invention also discloses an operating system pre-installation verification system, comprising:

[0023] Pre-installed modules are used to pre-install the operating system on the device to be verified;

[0024] The file extraction module is used to extract the kickstart configuration file to the PXE server;

[0025] The PXE installation boot module is used to restart the device to be verified and start the PXE installation operating system.

[0026] The verification module is used to determine whether the operating system can be entered normally after installation. If so, the verification is successful.

[0027] Furthermore, the file extraction module includes:

[0028] The path addition unit is used to add the path of the kickstart configuration file to the device to be verified based on the current startup mode;

[0029] The IP acquisition unit is used to obtain the machine network card IP of the PXE server;

[0030] The path modification unit is used to modify the storage path of the kickstart configuration file according to the IP of the PXE server; the file storage unit is used to store the autox-ks.cfg file, Centos-7.repo file and image file in the corresponding locations on the PXE server.

[0031] Accordingly, this invention discloses an operating system pre-installation verification device, comprising:

[0032] Memory, used to store the operating system pre-installed verification program;

[0033] A processor is configured to implement the steps of the operating system pre-installation verification method as described above when executing the operating system pre-installation verification program.

[0034] Accordingly, the present invention discloses a readable storage medium storing an operating system pre-installation verification program, wherein when the operating system pre-installation verification program is executed by a processor, it implements the steps of the operating system pre-installation verification method described in any of the above descriptions.

[0035] Compared with existing technologies, the advantages of this invention are as follows: This invention discloses an operating system pre-installation verification method, system, device, and readable storage medium. After the operating system pre-installation is complete, the extracted and modified ks file can normally boot PXE, thereby verifying whether the operating system can be successfully installed on the server. This invention can automatically pre-install operating systems on a large number of servers simultaneously, improving installation efficiency, saving labor costs, and avoiding unsuccessful operating system pre-installation.

[0036] Therefore, it is evident that the present invention has outstanding substantive features and significant progress compared with the prior art, and the beneficial effects of its implementation are also obvious. Attached Figure Description

[0037] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0038] Figure 1 This is a flowchart illustrating a specific embodiment of the present invention.

[0039] Figure 2 This is a system structure diagram of a specific embodiment of the present invention.

[0040] In the diagram, 1 is the pre-installed module; 2 is the file extraction module; 3 is the PXE installation and startup module; 4 is the verification module; 5 is the path addition unit; 6 is the IP acquisition unit; 7 is the path modification unit; and 8 is the file storage unit. Detailed Implementation

[0041] The core of this invention is to provide a method for verifying pre-installed operating systems. In existing technologies, the lack of verification regarding the normal installation of pre-installed operating systems leads to installation failures on production lines when using production servers. This results in production line downtime and a waste of human resources.

[0042] The operating system pre-installation verification method provided by this invention first pre-installs the operating system on the device to be verified. Then, it extracts the kickstart configuration file to the PXE server. Finally, it restarts the device to be verified and starts the PXE installation of the operating system. If the operating system can be accessed normally after installation, the verification is successful. Therefore, this invention can perform verification after the operating system is pre-installed, promptly identifying problems and preventing unsuccessful pre-installation.

[0043] To enable those skilled in the art to better understand the present invention, the invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. Obviously, the described embodiments are merely some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0044] Example 1:

[0045] like Figure 1 As shown, this embodiment provides an operating system pre-installation verification method, including the following steps:

[0046] S1: Pre-install the operating system on the device to be verified.

[0047] S2: Extract the kickstart configuration file to the PXE server.

[0048] First, add the path to the kickstart configuration file on the device to be verified according to the current boot mode. The current boot mode includes legacy mode and UEFI mode. Then, obtain the network interface card (NIC) IP address of the PXE server and modify the storage path of the kickstart configuration file accordingly.

[0049] Finally, store the autox-ks.cfg file, Centos-7.repo file, and image file in the corresponding locations on the PXE server. Specifically: store the autox-ks.cfg file in the / var / ftp / pub / kickstart directory on the PXE server; store the Centos-7.repo file in the / var / ftp / pub directory on the PXE server; and store the image file in the / var / ftp / pub / CentOS7.9 directory on the PXE server.

[0050] S3: Reboot the device to be verified and start PXE to install the operating system.

[0051] Restart the device to be verified and start the PXE installation using the F12 key. The entire installation process takes about 15 minutes.

[0052] S4: If the operating system can be accessed normally after installation, the verification is successful.

[0053] This embodiment provides a method for verifying operating system pre-installation. After the operating system pre-installation is complete, the extracted and modified ks file can successfully boot PXE, thus verifying whether the operating system can be installed correctly on the server. This method can automatically pre-install operating systems on a large number of servers simultaneously, improving installation efficiency, saving labor costs, and avoiding unsuccessful operating system pre-installation.

[0054] Example 2:

[0055] Based on Example 1, such as Figure 2 As shown, the present invention also discloses an operating system pre-installation verification system, including: a pre-installation module 1, a file extraction module 2, a PXE installation and startup module 3, and a verification module 4.

[0056] Pre-installed module 1 is used to pre-install the operating system on the device to be verified.

[0057] File extraction module 2 is used to extract the kickstart configuration file to the PXE server.

[0058] Specifically, file extraction module 2 includes: a path addition unit 5, an IP acquisition unit 6, a path modification unit 7, and a file storage unit 8. The path addition unit 5 is used to add the path of the kickstart configuration file to the device to be verified according to the current boot mode; the IP acquisition unit 6 is used to obtain the network interface card IP of the PXE server; the path modification unit 7 is used to modify the storage path of the kickstart configuration file according to the IP of the PXE server; and the file storage unit 8 is used to store the autox-ks.cfg file, the Centos-7.repo file, and the image file in the corresponding locations on the PXE server.

[0059] PXE Installation Boot Module 3 is used to restart the device to be verified and initiate the PXE operating system installation process. Specifically, PXE Installation Boot Module 3 is used to: restart the device to be verified, initiate PXE installation via the F12 key, and enter the operating system installation process.

[0060] Verification module 4 is used to determine whether the operating system can be entered normally after installation. If so, the verification is successful.

[0061] This embodiment provides an operating system pre-installation verification system. After the operating system pre-installation is complete, the extracted and modified ks file can successfully boot PXE, thus verifying whether the operating system can be successfully installed on the server. This system can automatically pre-install operating systems on a large number of servers simultaneously, improving installation efficiency, saving labor costs, and avoiding unsuccessful operating system pre-installation.

[0062] Example 3:

[0063] This embodiment discloses an operating system pre-installation verification device, including a processor and a memory; wherein, when the processor executes the operating system pre-installation verification program stored in the memory, it performs the following steps:

[0064] 1. Pre-install the operating system on the device to be verified.

[0065] 2. Extract the kickstart configuration file to the PXE server.

[0066] 3. Restart the device to be verified and start PXE to install the operating system.

[0067] 4. If you can enter the operating system normally after installation, the verification is successful.

[0068] Furthermore, the operating system pre-installation verification device in this embodiment may also include:

[0069] The input interface is used to acquire pre-installed operating system verification programs imported from external sources and save these programs to the memory. It can also be used to acquire various instructions and parameters transmitted from external terminal devices and transmit them to the processor, allowing the processor to perform corresponding processing using these instructions and parameters. 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, and a hard disk read interface.

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

[0071] The communication unit is used to establish a remote communication connection between the operating system pre-installation verification device and the external server, so that the operating system pre-installation verification 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.

[0072] The keyboard is used to acquire various parameter data or commands input by the user through real-time keystrokes.

[0073] The monitor is used to display relevant information in real time regarding the process of locating a short circuit in the server's power supply line.

[0074] A mouse can be used to assist users in inputting data and simplifying user operations.

[0075] Example 4:

[0076] This embodiment also discloses a readable storage medium, which includes random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable hard disk, CD-ROM, or any other form of storage medium known in the art. The readable storage medium stores an operating system pre-installed verification program, which, when executed by a processor, performs the following steps:

[0077] 1. Pre-install the operating system on the device to be verified.

[0078] 2. Extract the kickstart configuration file to the PXE server.

[0079] 3. Restart the device to be verified and start PXE to install the operating system.

[0080] 4. If you can enter the operating system normally after installation, the verification is successful.

[0081] In summary, this invention enables verification after the operating system is pre-installed, allowing for timely detection of problems and preventing unsuccessful pre-installation of the operating system.

[0082] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. The methods disclosed in the embodiments are described simply because they correspond to the systems disclosed in the embodiments; relevant details can be found in the method section.

[0083] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0084] In the embodiments provided by this invention, it should be understood that the disclosed systems, methods, and approaches can be implemented in other ways. For example, the system embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between systems or units may be electrical, mechanical, or other forms.

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

[0086] In addition, the functional modules in the various embodiments of the present invention can be integrated into one processing unit, or each module can exist physically separately, or two or more modules can be integrated into one unit.

[0087] Similarly, in the various embodiments of the present invention, each processing unit can be integrated into a functional module, or each processing unit can exist physically, or two or more processing units can be integrated into a functional module.

[0088] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.

[0089] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0090] The operating system pre-installation verification method, system, apparatus, and readable storage medium provided by this invention have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this invention. The descriptions of the embodiments above are merely for the purpose of helping to understand the method and core ideas of this invention. It should be noted that those skilled in the art can make various improvements and modifications to this invention without departing from its principles, and these improvements and modifications also fall within the protection scope of the claims of this invention.

Claims

1. A method for verifying pre-installation of an operating system, characterized in that, include: Pre-install the operating system on the device to be verified; Extract the kickstart configuration file to the PXE server; Reboot the device to be verified and start PXE to install the operating system; If you can boot into the operating system normally after installation, then the verification is successful. The step of extracting the kickstart configuration file to the PXE server includes: Add the path to the kickstart configuration file on the device to be verified, based on the current boot mode; Obtain the network interface card (NIC) IP address of the PXE server; Modify the storage path of the kickstart configuration file according to the PXE server's IP address; Store the autox-ks.cfg file, Centos-7.repo file, and image file in the corresponding locations on the PXE server; The current boot modes include: legacy mode and UEFI mode; The step of storing the autox-ks.cfg file, the Centos-7.repo file, and the image file in the corresponding locations on the PXE server includes: Store the autox-ks.cfg file in the / var / ftp / pub / kickstart directory of the PXE server: Store the Centos-7.repo file in the / var / ftp / pub directory of the PXE server; Store the image file in the / var / ftp / pub / CentOS7.9 directory on the PXE server; The extracted and modified ks file can successfully boot PXE, thus verifying whether the operating system can be installed on the server. The process of restarting the device to be verified and starting the PXE operating system installation includes: Reboot the device to be verified, and use the F12 key to start the PXE installation to enter the operating system installation process.

2. The operating system pre-installation verification method according to claim 1, characterized in that, The operating system installation process takes 15 minutes.

3. An operating system pre-installation verification system, characterized in that, include: Pre-installed modules are used to pre-install the operating system on the device to be verified; The file extraction module is used to extract the kickstart configuration file to the PXE server; The PXE installation boot module is used to restart the device to be verified and start the PXE installation operating system. The verification module is used to determine whether the operating system can be entered normally after installation. If so, the verification is successful. The file extraction module includes: The path addition unit is used to add the path of the kickstart configuration file to the device to be verified based on the current startup mode; The IP acquisition unit is used to obtain the machine network card IP of the PXE server; The path modification unit is used to modify the storage path of the kickstart configuration file based on the IP address of the PXE server. The file storage unit is used to store the autox-ks.cfg file, the Centos-7.repo file, and the image file in the corresponding locations on the PXE server; The current boot modes include: legacy mode and UEFI mode; The step of storing the autox-ks.cfg file, the Centos-7.repo file, and the image file in the corresponding locations on the PXE server includes: Store the autox-ks.cfg file in the / var / ftp / pub / kickstart directory of the PXE server: Store the Centos-7.repo file in the / var / ftp / pub directory of the PXE server; Store the image file in the / var / ftp / pub / CentOS7.9 directory on the PXE server; The extracted and modified ks file can successfully boot PXE, thus verifying whether the operating system can be installed on the server. The process of restarting the device to be verified and starting the PXE operating system installation includes: Reboot the device to be verified, and use the F12 key to start the PXE installation to enter the operating system installation process.

4. An operating system pre-installation verification device, characterized in that, include: Memory, used to store the operating system pre-installed verification program; A processor, configured to implement the steps of the operating system pre-installation verification method as described in any one of claims 1 to 2 when executing the operating system pre-installation verification program.

5. A readable storage medium, characterized in that: The readable storage medium stores an operating system pre-installation verification program, which, when executed by a processor, implements the steps of the operating system pre-installation verification method as described in any one of claims 1 to 2.

Citation Information

Patent Citations

  • Method and system for operating system remote installation on basis of PXE

    CN103744695A