Visual installation method, electronic equipment and computer readable storage medium

Through the visual installation method of PXE server, the rapid automatic installation and real-time monitoring of data center servers are realized, and the inefficiency of server installation configuration and problem-solving in the data center is solved, and the installation efficiency and automation are improved.

CN119225753AInactive Publication Date: 2024-12-31ZHEJIANG DAHUA TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411778018.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-05
Publication Date
2024-12-31
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In a data center, how to quickly automate the installation and deployment of servers and quickly obtain relevant information during the installation process to determine the specific location of the problem, especially in units with high data security requirements. Under the restrictions on intranet access, the existing technology is difficult to achieve Achieve efficient installation configuration and problem investigation.

Method used

Provide a visual installation method, connect to the server to be installed through the PXE server, obtain pre-configuration information and hardware information, output installation information in real time to the visual interface, realize the network and mirror configuration of the server, and install it according to the hardware information matching the installation configuration information. , monitor the installation process in real time, and save on-site inspection time.

Benefits of technology

Pre-configuration and real-time monitoring are carried out through the visual interface to quickly obtain installation information, improve installation efficiency, reduce on-site inspection time, quickly determine and solve installation problems, and improve the automation and efficiency of server installation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119225753A_ABST
    Figure CN119225753A_ABST
Patent Text Reader

Abstract

The invention discloses a visual installation method, electronic equipment and a computer readable storage medium, the visual installation method is applied to a PXE server, the PXE server is connected with a to-be-installed server through a switch, the method comprises the steps of obtaining pre-configuration information input through a visual interface, and installing and configuring the to-be-installed server according to the pre-configuration information, the pre-configuration information comprises network configuration information and mirror image configuration information of the server to be installed; acquiring hardware information generated by the to-be-installed server through self-inspection, and sending installation configuration information matched with the hardware information to the to-be-installed server according to the hardware information, so that the to-be-installed server installs the product package according to the installation configuration information; and outputting the installation information of the to-be-installed server to the visual interface. According to the method, the installation efficiency of the product package can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of software installation, and in particular to a visual installation method, an electronic device, and a computer-readable storage medium. Background Art

[0002] With the advent of the big data era, the storage demand for massive data continues to increase, and data centers have become key infrastructure to support the development of the digital economy. How to quickly and automatically install and deploy servers has become an urgent problem to be solved. More and more data centers are far away from office locations, and some units with high data security requirements only allow intranet access. When problems are encountered during the installation and deployment of product packages, how can we quickly obtain relevant information during the installation process and determine the specific location of the problem based on the relevant information? Summary of the invention

[0003] The main technical problem solved by the present application is to provide a visual installation method, an electronic device and a computer-readable storage medium, which can improve the installation efficiency of the software package.

[0004] To solve the above technical problems, the first aspect of the present application provides a visual installation method, which is applied to a PXE server, and the PXE server is connected to a server to be installed through a switch. The method includes: obtaining pre-configuration information input through a visual interface, and installing and configuring the server to be installed according to the pre-configuration information, wherein the pre-configuration information includes network configuration information and mirror configuration information of the server to be installed; obtaining hardware information generated by the server to be installed through self-test, and sending installation configuration information matching the hardware information to the server to be installed according to the hardware information, so that the server to be installed installs a product package according to the installation configuration information; and outputting the installation information of the server to be installed to the visual interface.

[0005] To solve the above technical problem, the second aspect of the present application provides an electronic device, which includes: a memory and a processor coupled to each other, wherein the memory stores program data, and the processor calls the program data to execute the method described in the first aspect.

[0006] In order to solve the above technical problem, the third aspect of the present application provides a computer-readable storage medium on which program data is stored. When the program data is executed by a processor, the method described in the first aspect is implemented.

[0007] Different from the prior art, the present application allows the user to configure pre-configuration information on a visual interface, and the server to be installed is installed and configured according to the configuration information of the visual interface of the PXE server. At the same time, during the process of installing the product package on the server to be installed, the installation information of the server to be installed is output to the visual interface in real time, so that the user can quickly obtain the installation information of the server to be installed in the intranet on the visual interface, and the user can quickly determine the specific cause of the occurrence according to the installation information, and solve the problem according to the cause. The user does not need to rush to the site of the server to be installed to troubleshoot the problem, which saves time and improves the efficiency of installation. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them: Figure 1 It is a flowchart of an implementation method of the visual installation method of the present application; Figure 2 It is a schematic diagram of an implementation method of a network connection between a PXE server and a server to be installed in the present application; Figure 3 It is a schematic diagram of an implementation method of a visualization interface of pre-configuration information of a PXE server of the present application; Figure 4 It is a schematic diagram of an implementation method of a visual interface for installing a PXE server of the present application; Figure 5 yes Figure 1 A schematic flow chart of an implementation method of step S200; Figure 6 yes Figure 5 A schematic flow chart of an implementation method of step S210; Figure 7 yes Figure 5 A schematic diagram of a flow chart of an implementation method after step S230; Figure 8 It is a schematic diagram of an implementation method of a visual interface for custom configuration of a PXE server of the present application; Fig. 9 yes Figure 1 A schematic flow chart of an implementation method of step S100; Fig.10 It is a flowchart of an implementation method of the installation and configuration process of the server to be installed in the present application; Fig.11It is a structural schematic diagram of an implementation method of the installation device of the present application; Fig.12 It is a structural schematic diagram of an embodiment of the electronic device of the present application; Fig.13 It is a structural schematic diagram of an implementation method of a computer-readable storage medium of the present application. DETAILED DESCRIPTION

[0009] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments, and different implementation methods can be adaptively combined. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0010] The terms "system" and "network" are often used interchangeably in this article. The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship. In addition, "many" in this article means two or more than two.

[0011] See also Figure 1 and Figure 2, the present application provides a visual installation method, which is applied to a PXE (Pre-boot Execution Environment) server, and the PXE server is connected to the server to be installed through a switch. The present application constructs a local area network between the PXE server and the server to be installed through a switch. The PXE server can communicate with one or more servers to be installed through a switch, and the PXE server is used to install and deploy multiple servers to be installed in the intranet. The method of the present application can be applied to the KS (kickstart, an automated installation method) instruction of the PXE server to automatically install the product package, that is, to achieve the full automatic installation of the product package on the server to be installed through the PXE server through the KS instruction. In addition, the present application does not make specific restrictions on the product package. It should be noted that the PXE server includes a DHCP (Dynamic Host Configuration Protocol) service, a TFTP (Trivial File Transfer Protocol) service, a Mysql database (a relational database) and a Web (network) service. Among them, the DHCP service is used by the PXE server to perform network configuration for the server to be installed; the TFTP service is used for information exchange between the PXE server and the server to be installed and for uploading or downloading files; the MySQL database is used by the PXE server to save the installation information, pre-configuration information, and installation configuration information of the server to be installed; the Web service is used to configure the server to be installed in a visual interface through a network connection and to display information about the entire process of installing the product package on the server to be installed.

[0012] The method of the present application includes: S100: obtaining pre-configuration information input through a visual interface, and installing and configuring the server to be installed according to the pre-configuration information, wherein the pre-configuration information includes network configuration information and mirror configuration information of the server to be installed.

[0013] Specifically, see Figure 3 , Figure 3It is a schematic diagram of an implementation method of a visualization interface of pre-configuration information of a PXE server. Pre-configuration information is pre-set by a user object and is used to install and configure the server to be installed. The pre-configuration information includes two parts. The first part is network configuration information. The network configuration information is used for the communication connection between the PXE server and the server to be installed. The PXE server configures the network for the server to be installed through the DHCP service; the second part is image configuration information. The server to be installed installs the operating system according to the image configuration information. Generally speaking, the network configuration of the server to be installed is performed first, and then the operating system is installed on the server to be installed. The rapid installation and configuration of the server to be installed is realized in a visual way.

[0014] In one embodiment, the step of obtaining the pre-configuration information input through the visual interface in the above step S100 includes: In response to the preconfiguration information of the visualization interface being edited and saved by the object, the preconfiguration information input through the visualization interface is acquired.

[0015] Specifically, see Figure 3 When the user enters the pre-configuration information in the visual interface of the pre-configuration information, more specifically, the user edits the pre-configuration information in the input box and clicks Save. At this time, the saved pre-configuration information will be used for the installation configuration of the server to be installed. Except for the object editing and saving, the whole process is completed automatically.

[0016] In some other implementations, after the user edits and saves the preconfiguration information in the visualization interface, the user may manually select and determine the installation configuration of the preconfiguration information of the server to be installed.

[0017] In one embodiment, see Figure 3 , network configuration information includes IP (Internet Protocol) address, subnet mask and gateway; image configuration information includes operating system, CPU (Central Processing Unit) architecture and BIOS (Basic Input Output System) startup method.

[0018] Specifically, network configuration information can be divided into two parts according to type: intranet and extranet. When configuring the intranet, configure the available intranet IP segment, for example, the IP segment starting with 192.168 belongs to the intranet IP. When configuring the extranet, configure the available extranet IP segment, for example, the IP segment starting with 17.15 belongs to the extranet IP. Of course, the IP segment can also be other, not limited to the above examples. The IP address, subnet mask and gateway can be configured together. Operating systems include CentOS (Community Enterprise Operating System) and Euler system, etc. The operating systems in the visual interface are not limited to these, and the user can select the corresponding operating system for the server to be installed; CPU architectures include X86 and ARM (Advanced RISC Machine), etc. The CPU architectures in the visual interface are not limited to these, and the user can select the corresponding CPU architecture for the server to be installed; BIOS boot modes include legacy (a traditional computer boot mode) and UEFI (Unified Extensible Firmware Interface), etc. The BIOS boot modes in the visual interface are not limited to these, and the user can select the corresponding BIOS boot mode for the server to be installed.

[0019] It is understandable that, according to the network configuration information of the visual interface in the PXE server, the PXE server selects an unused IP address from the IP segment through the DHCP service, and assigns it to the server to be installed together with the subnet mask and gateway, and different servers to be installed are assigned different IP addresses. According to the image configuration information of the visual interface in the PXE server, the server to be installed installs the operating system according to the operating system, CPU architecture and BIOS boot mode.

[0020] S200: Acquire hardware information generated by the server to be installed through self-checking, and send installation configuration information matching the hardware information to the server to be installed according to the hardware information, so that the server to be installed installs the product package according to the installation configuration information.

[0021] Specifically, after the server to be installed completes the network configuration and the operating system configuration, the server to be installed will perform a hardware self-test, and after completing the hardware self-test, generate and report hardware information to the PXE server. Therefore, the PXE server can obtain the hardware information generated by the server to be installed through the self-test. The PXE server also stores installation configuration information that matches the hardware information. The installation configuration information is used to install the product package on the server to be installed. It should be noted that since the CPU, memory, disk, network card and other configurations of different servers to be installed may be different, the hardware information of the self-test of different servers to be installed may also be different. Different hardware information requires different installation configurations when installing product packages. The installation configuration information sent to the server to be installed should match the hardware information. If it does not match, the installation is likely to fail.

[0022] S300: Outputting installation information of the server to be installed to a visual interface.

[0023] Specifically, see Figure 4 , Figure 4 This is a schematic diagram of an implementation of the visualization interface of the installation information of the present application. The installation information refers to the information of the entire process from the hardware self-check of the server to be installed to the server to be installed finally completing the installation of the product package according to the installation configuration information. The server to be installed will report the installation information in real time during the entire process. The user can obtain the installation information of all servers to be installed on the visualization interface of the PXE server, and the visualization interface facilitates the user to understand the installation process of each server to be installed.

[0024] Different from the prior art, the present application allows the user to configure pre-configuration information on a visual interface, and the server to be installed is installed and configured according to the configuration information of the visual interface of the PXE server. At the same time, during the process of installing the product package on the server to be installed, the installation information of the server to be installed is output to the visual interface in real time, so that the user can quickly obtain the installation information of the server to be installed in the intranet on the visual interface, and the user can quickly determine the specific cause of the occurrence according to the installation information, and solve the problem according to the cause. The user does not need to rush to the site of the server to be installed to troubleshoot the problem, which saves time and improves installation efficiency.

[0025] In one embodiment, see Figure 4 The installation information includes the stage of the current installation of the server to be installed, the status of the stage, and the installation log.

[0026] Specifically, the current stage of installing the server to be installed is unique, but the server to be installed includes multiple installation stages, which makes it convenient for the user to understand the specific stage of the server to be installed; the status of the current stage of installing the server to be installed is unique, but the installation status of the server to be installed includes multiple installation stages, which makes it convenient for the user to understand the specific status of the installation stage of the server to be installed; the installation log is updated in real time according to the installation progress of the server to be installed.

[0027] In an application scenario, the installation configuration information includes the system disk selection script path, rpm (Red-Hat Package Manager) installation package information, data disk selection script path, and product package path. The installation phases of the server to be installed are hardware self-check, system disk selection, rpm installation package selection, data disk formatting and mounting, and product package installation. Among them, the hardware self-check can be referred to above; the system disk selection means that the server to be installed requests the system disk script according to the system disk selection script path in the installation configuration information sent by the PXE server, calls the script to automatically generate the system disk partition file, and completes the system disk selection; rpm installation selection means that the server to be installed automatically selects the software package according to the rpm installation package information in the installation configuration information sent by the PXE server; data disk formatting and mounting means that the server to be installed calls the data disk selection script to complete the data disk formatting and mounting according to the data disk selection script path in the installation configuration information sent by the PXE server; product package installation means that the server to be installed installs the product package according to the product package path in the installation configuration information sent by the PXE server. The user can see the current stage of the server to be installed in real time on the visual interface. Of course, the stage of the server to be installed is not limited to the above example.

[0028] In one application scenario, the installation status includes working, successful, and failed. That is to say, at each installation stage of the server to be installed, one of the three states of working, successful, and failed will be displayed, which is convenient for the user to grasp the real-time status of the server to be installed in real time. The user can see the status of each stage in real time on the visual interface. When an installation anomaly occurs, the server to be installed where the anomaly occurs can be quickly located through the visual interface. Furthermore, different states can also be displayed in different colors, for example, working is displayed in yellow, success is displayed in green, and failure is displayed in red.

[0029] In one application scenario, the installation log includes all logs of the installation phase of the server to be installed, and is updated in real time. The user can view the installation log in real time through a visual interface. When an installation fails, the user can view the error code of the installation failure through the installation log, so as to quickly determine the cause of the failure.

[0030] In one embodiment, see Figure 4 The installation information also includes a first link 101 and a second link 102. The first link 101 is used to view the log, and the second link 102 is used to export the log.

[0031] Specifically, the user can directly view the log by clicking the first link 101 on the visualization interface, without searching in the folder, and can also export the log by clicking the second link 102 on the visualization interface. The exported log can be a compressed file, without searching in the folder, and it is also convenient for the user to copy it to other devices. When it is necessary to go to the site of the server to be installed to solve the problem, the exported installation log can be viewed. Therefore, the visualization interface makes it more convenient and intuitive for the user to obtain the installation log of the server to be installed.

[0032] Of course, in some other implementations, only one of the first link 101 and the second link 102 may be provided. Although the convenience is reduced, the user can still check the installation log in the visual interface.

[0033] In one embodiment, see Figure 4 The method of the present application also includes: outputting the unique identifier of the server to be installed, the operating system, the network configuration information, the installation start time, the installation end time and the third link 103 to the visualization interface, wherein the third link 103 is used to view the hardware information.

[0034] Specifically, the unique identifier is used to identify different servers to be installed, the operating system is used to display the operating system installed on the server to be installed, the network configuration information is used to display the IP address of the server to be installed, the installation start time is used to display the time when the installation of the server to be installed starts, and the installation end time is used to display the time when the installation of the server to be installed ends. The user can obtain a large amount of information about the server to be installed on the visual interface to facilitate the status of the server to be installed. At the same time, a third link 103 is also provided on the visual interface. The user can click the third link 103 on the visual interface to view the hardware information of the corresponding server to be installed. Especially when the installation of the server to be installed fails, the user can view the hardware information of the server to be installed by clicking the third link 103, and analyze the cause of the installation failure through the hardware information, without going to the site or logging in to the backend to obtain the hardware information of the server to be installed, which can improve the efficiency of problem solving. Of course, in some other implementations, the content displayed on the visual interface can be added or deleted according to actual conditions.

[0035] In one embodiment, see Figure 5In the above step S200, the step of sending the installation configuration information matching the hardware information to the server to be installed according to the hardware information includes: S210: Determine whether the product package can be installed on the server to be installed according to the hardware information.

[0036] Specifically, the hardware information of different servers to be installed may be different. When the PXE server obtains the hardware information of the server to be installed, it will make a judgment, and execute step S220 if it can be installed, and execute step S230 if it cannot be installed. In this way, problems can be discovered in advance through hardware information, avoiding installation failure caused by direct installation.

[0037] S220: If it is determined that the product package can be installed on the server to be installed, a step of sending installation configuration information matching the hardware information to the server to be installed is performed based on the hardware information.

[0038] Specifically, if it is determined that the installation is possible, the PXE server will send the installation configuration information matching the hardware information to the server to be installed, and the server to be installed can be installed according to the installation configuration information. During the installation process, the server to be installed will upload the installation information to the PXE server in real time, so that the installation information can be displayed on the visual interface.

[0039] S230: If it is determined that the product package cannot be installed on the server to be installed, a message prompting that the hardware self-test of the server to be installed has failed is generated on the visual interface.

[0040] Specifically, if it is determined that the installation cannot be performed, a prompt window or message can be generated on the visual interface to remind the user that the hardware self-test of the server to be installed has failed. This allows the user to promptly discover that the problem is caused by hardware information failure without spending time investigating. The user can then solve the problem based on the failed hardware information.

[0041] In one embodiment, see Figure 6 The above step S210 includes: S211: Check whether there is installation configuration information matching the hardware information.

[0042] Specifically, after obtaining the hardware information of the server to be installed, the PXE server queries the matching installation configuration information. There is a matching relationship between the hardware information and the installation configuration information, wherein the matching relationship means that the server to be installed can be installed successfully according to the matching installation configuration information. However, this matching relationship is preset, that is, it is possible that the corresponding preset installation configuration information cannot be found according to the hardware information of the server to be installed, that is, the matching relationship has not been established in advance.

[0043] S212: In response to finding that there is installation configuration information matching the hardware information, it is determined that the product package can be installed on the server to be installed.

[0044] Specifically, if matching installation configuration information can be found in the PXE server according to the hardware information of the server to be installed, the PXE server determines that the product package can be installed on the server to be installed.

[0045] S213: Otherwise, it is determined that the product package cannot be installed on the server to be installed.

[0046] Specifically, if matching installation configuration information cannot be found in the PXE server according to the hardware information of the server to be installed, the PXE server determines that the product package cannot be installed on the server to be installed.

[0047] In one embodiment, see Figure 7 and Figure 8 , Figure 8 It is a schematic diagram of an implementation of a visualization interface of a custom configuration of the present application, and after the above step S230, it also includes: S240: Acquire the target configuration information 104 input by the user through the visual interface, associate the target configuration information with the hardware information, and save it.

[0048] Specifically, after the information prompting that the hardware self-test of the server to be installed has failed is generated on the visual interface, the user can determine the reason why the hardware self-test has failed based on the prompt information and the installation information in the visual interface, and input the target configuration information 104 for solving the problem on the visual interface. In an application scenario, the target configuration information 104 is uploaded to the PXE server by clicking the upload link, and the target configuration information 104 is associated with the hardware self-test information of the server to be installed that has failed the hardware self-test and saved, so that it is convenient for other servers to be installed that have the same hardware information to use in the future.

[0049] S250: Return to the step of obtaining hardware information generated by the server to be installed through self-test.

[0050] Specifically, in step S240, the hardware information of the server to be installed that fails the hardware self-check has been associated, and the nature of the target configuration information is the same as the installation configuration information, with the only difference being that the target configuration information is input by the user through the visual interface after the installation of the server to be installed fails, while the installation configuration information is preset. That is, the present embodiment can ensure that the user can quickly set the countermeasures through the visual interface after determining the countermeasures to solve the installation failure through the custom-configured visual interface, so that the efficiency of solving the problem is greatly improved. At the same time, the custom-configured visual interface can enable the servers to be installed with different hardware information to be installed through custom configuration by the user object, and will not be limited by the original installation configuration information of the PXE server.

[0051] In one embodiment, the above-mentioned target configuration information at least includes a system disk selection script, an rpm installation package file, a data disk selection script, and a detection script. Specifically, the user can judge according to the cause of the installation failure, and select at least one of them to upload the corresponding file to establish the target configuration information. Of course, in some other embodiments, the target configuration information can also include other content. The present application does not limit the specific content of the target configuration information, as long as the user can input it on the visual interface.

[0052] In one embodiment, see Fig. 9 The network configuration information includes the intranet configuration information and the extranet configuration information. The specific process of configuring the network can also be divided into two steps, which can be referred to below; the above step S100 includes: S101: Performing intranet configuration for the service to be installed according to the intranet configuration information.

[0053] Specifically, firstly, the intranet of the server to be installed is configured, and the intranet configuration enables communication connection between the server to be installed and the PXE server.

[0054] S102: Install the operating system of the server to be installed according to the image configuration information.

[0055] Specifically, this step is to install the operating system on the server to be installed. For details, please refer to the above and will not be repeated here.

[0056] And, the method of the present application also includes: In response to the server to be installed completing the installation of the product package, the server to be installed is configured for the external network according to the external network configuration information.

[0057] Specifically, after the installation of the product package is completed, the external network configuration of the server to be installed is performed through the network configuration information of the external network in the visual interface, so that the server to be installed can be accessed across network segments.

[0058] In one embodiment, the method further comprises: In response to the server to be installed completing the installation of the product package, the detection result sent by the server to be installed is obtained, and the detection result is output to the visual interface, wherein the server to be installed generates the detection result after detecting the function of the product package.

[0059] Specifically, after the product package is installed on the server to be installed, the detection items will be tested according to the KS instructions. The detection items include the number of CPU cores, memory size, number of disks, disk capacity, data disk mount point, disk read and write test, number of network cards and functional test of the product package, etc. During the test, you can choose to test some or all of the above. After the test, the server to be installed will report the test results to the PXE server, and the PXE server will display the test results on the visual interface. By performing the test after the product package is installed, possible problems can be detected in advance to avoid problems when using the functions of the product package later, which will affect the functions of the server to be installed.

[0060] In one application scenario, see Figure 4 The installation phase of the server to be installed also includes detection item detection. By displaying the results of the detection item detection, the user can understand the functional test results of the product package.

[0061] It should be noted that this application is related to the above Figure 3 , Figure 4 and Figure 8 The layout of the visualization interface and the presentation of the specific content are not specifically limited, as long as it is convenient for the user to grasp the information of the installation process of the product package. At the same time, in some implementations, it is necessary to log in to the management account (Admin) to enter the above visualization interface.

[0062] In order to more clearly illustrate the solution of this application, an application scenario is provided. Fig.10 , Fig.10It is a flowchart of an implementation method of the installation and configuration process of the server to be installed in the present application. The whole process includes the steps of using objects, PXE servers and multiple objects of the server to be installed. Among them, S1, the object inputs the pre-configuration information through the visual interface of the PXE server and saves the pre-configuration information; S2, the PXE server allocates the IP of the intranet to the server to be installed; S3, the server to be installed installs the operating system according to the mirror configuration information; S4, the server to be installed performs a hardware self-check and reports the hardware information to the PXE server; S5, the PXE server determines whether it can be installed based on the hardware information, and if it can be installed, jumps to S7, and if it cannot be installed, jumps to S6; S6, the object inputs the target configuration information and the self-check fails in the visual interface The hardware information is associated and returned to S4; S7, the PXE server sends the installation configuration information matching the hardware information to the server to be installed; S8, the server to be installed automatically selects the system disk according to the system disk selection script; S9, the server to be installed automatically selects the software package according to the rpm installation package information; S10, the server to be installed formats and mounts the data disk and selects the data disk; S11, the server to be installed installs the product package; S12, the server to be installed configures the external network IP; S13, the server to be installed performs detection item detection and detects the functionality of the product package. It can be understood that the installation information of the above steps S4~S13 can be displayed on the visual interface.

[0063] See also Fig.11 The present application also provides an installation device 200, which includes an installation configuration module 210, a sending module 220 and an output module 230 connected in sequence.

[0064] The installation configuration module 210 is used to obtain pre-configuration information input through the visual interface, and install and configure the server to be installed according to the pre-configuration information, wherein the pre-configuration information includes network configuration information and mirror configuration information of the server to be installed.

[0065] The sending module 220 is used to obtain hardware information generated by the server to be installed through self-checking, and send installation configuration information matching the hardware information to the server to be installed according to the hardware information, so that the server to be installed installs the product package according to the installation configuration information.

[0066] The output module 230 is used to output the installation information of the server to be installed to the visual interface.

[0067] Among them, the installation device 200 executes the method steps in any of the above-mentioned implementation modes when working. The detailed method steps can be found in the above-mentioned related content and will not be repeated here.

[0068] The installation device 200 may be a device having data processing and storage functions.

[0069] See also Fig.12 , Fig.12 It is a structural diagram of an embodiment of an electronic device of the present application, wherein the electronic device 40 includes a memory 401 and a processor 402 coupled to each other, wherein the memory 401 stores program data (not shown), and the processor 402 calls the program data to implement the method in any of the above embodiments. For descriptions of related contents, please refer to the detailed description of the above method embodiments, which will not be repeated here.

[0070] See also Fig.13 , Fig.13 It is a structural diagram of an embodiment of a computer-readable storage medium of the present application. The computer-readable storage medium 50 stores program data 500. When the program data 500 is executed by a processor, the method in any of the above embodiments is implemented. For descriptions of related contents, please refer to the detailed description of the above method embodiments, which will not be repeated here.

[0071] It should be noted that the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present implementation scheme.

[0072] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0073] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of each implementation method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.

[0074] The above description is only an implementation method of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly used in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A visual installation method, characterized in that: Applied to a PXE server, the PXE server is connected to a server to be installed via a switch, and the method comprises: Acquire pre-configuration information input through a visual interface, and install and configure the server to be installed according to the pre-configuration information, wherein the pre-configuration information includes network configuration information and mirror configuration information of the server to be installed; Acquire hardware information generated by the server to be installed through self-checking, and send installation configuration information matching the hardware information to the server to be installed according to the hardware information, so that the server to be installed installs the product package according to the installation configuration information; The installation information of the server to be installed is output to a visual interface.

2. The method according to claim 1, characterized in that: The step of sending installation configuration information matching the hardware information to the server to be installed according to the hardware information includes: Determining whether the product package can be installed on the server to be installed according to the hardware information; If it is determined that the product package can be installed on the server to be installed, executing the step of sending installation configuration information matching the hardware information to the server to be installed according to the hardware information; If it is determined that the product package cannot be installed on the server to be installed, a message prompting that the hardware self-test of the server to be installed has failed is generated on the visual interface.

3. The method according to claim 2, characterized in that The step of determining whether the product package can be installed on the server to be installed according to the hardware information includes: Query whether there is the installation configuration information matching the hardware information; In response to querying that the installation configuration information matching the hardware information exists, determining that the product package can be installed on the server to be installed; Otherwise, it is determined that the product package cannot be installed on the server to be installed.

4. The method according to claim 3, characterized in that After the step of generating information on the visual interface indicating that the hardware self-test of the server to be installed has failed, the method further includes: Acquire target configuration information input by the user through the visual interface, and associate the target configuration information with the hardware information and save it; Return to the step of obtaining the hardware information generated by the server to be installed through self-test.

5. The method according to claim 1, characterized in that The installation information includes the stage of the current installation of the server to be installed, the status of the stage, and the installation log.

6. The method according to claim 5, characterized in that The installation information further includes a first link and a second link, the first link is used to view the log, and the second link is used to export the log; and, The method further comprises: The unique identifier of the server to be installed, the operating system, the network configuration information, the installation start time, the installation end time and the third link are output to the visualization interface, wherein the third link is used to view the hardware information.

7. The method according to claim 1, characterized in that The network configuration information includes intranet configuration information and extranet configuration information; the step of installing and configuring the server to be installed includes: According to the intranet configuration information, perform intranet configuration on the service to be installed; Installing the operating system of the server to be installed according to the image configuration information; And, the method further comprises: In response to the server to be installed completing the installation of the product package, the server to be installed is configured for external network according to the external network configuration information.

8. The method according to claim 1, characterized in that The method further comprises: In response to the server to be installed completing the installation of the product package, obtaining the detection result sent by the server to be installed, and outputting the detection result to the visualization interface, wherein the server to be installed generates the detection result after detecting the function of the product package.

9. An electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein the processor is configured to execute a computer program stored in the memory to implement the visual installation method according to any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program can be executed by a processor to implement the steps in the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Method, server and system for monitoring installation state of operating system in batches

    CN107800580A

  • Distributed cluster deployment method, server and storage device

    CN110784546A

  • Automatic management method and device for bare metal server and medium

    CN111782283A

  • Operation system batch deployment method and device, computer equipment and storage medium

    CN115878195A

  • Hardware matching checking method and device in Linux operating system installation stage, medium and equipment

    CN116610371A