A method for automatic deployment of a bare-metal server operating system
By communicating with the bare-metal server's BMC management port through the system platform, the system automatically scans and modifies IP addresses, generates operating system combination templates, solves the problems of deployment errors and low efficiency in large-scale deployments of bare-metal servers, and achieves efficient and accurate automated deployment.
Patent Information
- Application Number
- CN202310075830.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-07
- Publication Date
- 2025-11-28
- Estimated Expiration
- 2043-02-07
AI Technical Summary
Existing bare-metal server operating system deployment methods are prone to accidental operation on other business servers, and large-scale deployments are labor-intensive and cannot be performed simultaneously.
The system platform establishes communication with the bare-metal server BMC management port, automatically scans and modifies IP addresses, generates operating system combination templates, and automatically deploys and configures them to ensure that the installation is performed while the server is powered on.
It achieves automated deployment without human intervention, supports multiple operating systems, ensures deployment accuracy, avoids impact on running business servers, and improves deployment efficiency.
Smart Images

Figure CN116048641B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of server deployment, in particular to a method for automatic deployment of operating system of bare machine server. BACKGROUND
[0002] With the continuous expansion of Internet technology, the number of servers is also increasing, and IT operation and maintenance has become an important part of IT service content. From the initial development of several servers to a large data center, manual work alone cannot meet the requirements of technology, business and management, and other aspects, so standardized, automated, architecture optimization and process optimization, and other factors that reduce the cost of IT services are increasingly valued by people. How to automatically deploy and install a stable system in batches is the first step to achieve automation.
[0003] The existing method for deploying the operating system of a bare machine server is to connect the automatic deployment platform and the bare machine server to the same network, start the DHCP server, send a temporary IP address to the bare machine server, and send the operating system ISO file to the target bare machine server through the network.
[0004] However, this technology requires starting the DHCP server, and if the DHCP server is started in the same business environment, it will cause other servers to obtain the temporary IP address of the DHCP server, resulting in incorrect deployment of the operating system to other business servers, affecting the normal operation of the business. If the bare machine server is networked separately, manual redeployment of the network environment is required, which is a large workload and cannot achieve simultaneous deployment of the operating system for a large number of bare machine servers.
[0005] Therefore, a method for automatic deployment of the operating system of a bare machine server is needed to ensure that the bare machine server can normally enter the operating system after deployment. SUMMARY
[0006] In view of the deficiencies of the prior art, the present application provides a method for automatic deployment of the operating system of a bare machine server.
[0007] To achieve the above purpose, the present application provides the following technical solution: a method for automatic deployment of the operating system of a bare machine server, comprising the following steps:
[0008] S1: open the network communication protocol and port between the BMC management port of the bare machine server and the system platform, and realize mutual communication between the system platform and the BMC management port of the target bare machine server.
[0009] S2: Add the factory default IP and username and password of the target bare machine server on the system platform WEB page. The system platform automatically scans the default IP address of the target bare machine server. The system platform automatically judges whether there is a planned and unallocated IP address.
[0010] S3: Modify the default IP address of the target bare machine server to the planned and unallocated IP address in the scanning order.
[0011] S4: The system platform automatically includes the target bare machine server into the platform for supervision. Upload the operating system ISO file to be deployed and installed on the system platform WEB page. Configure the component sub-templates of different system versions on the system platform WEB page.
[0012] S5: The system platform automatically combines the operating system combination template according to the component sub-templates of different system versions. Select the deployed target bare machine server that has been included in the system platform WEB page. Select the operating system combination template that has been configured on the system platform WEB page.
[0013] S6: The system platform automatically judges whether the target bare machine server to be deployed is in the running state. The system platform automatically counts the target bare machine servers that are running. The WEB page pop-up window reminds to restart the target bare machine server to be deployed that is running.
[0014] S7: Manually select whether to restart. If "no", automatically end the deployment. The system platform marks the deployment failure reason "the target bare machine server to be deployed is running". If "yes", continue the deployment. The system platform automatically re-packages the uploaded ISO file + the drivers, patches, and scripts in the combination template, and generates a new packaged ISO file.
[0015] S8: The system platform mounts the new packaged ISO file to the bare machine server BMC virtual media for installation. The system platform automatically judges whether there is an error during the deployment. If "yes", end the deployment. The system platform marks the deployment failure reason.
[0016] S9: After the automatic deployment according to the predetermined script, the system platform sends a command to automatically restart the target bare machine server. The system platform detects that the target bare machine server enters the operating system interface. End the deployment. The system platform marks the deployment success.
[0017] Preferably, the S8 installs the operating system, drivers, patches, application software, and configures the IP address and computer name.
[0018] Preferably, the S2 automatically scans the default IP address of the target bare machine server, and modifies the default IP address of the target bare machine server to the planned and unallocated IP address.
[0019] Preferably, the automatic uploading of the ISO file + template in the drive, patch, and script is re-packaged and a new ISO file is generated.
[0020] Preferably, after the packaging, the system platform mounts the newly packaged ISO file to the bare machine server BMC virtual media for deployment, and the deployment process is automatically pushed and installed by the system platform, including installing the operating system, drive, patch, application software, and configuring the IP address and computer name.
[0021] Compared with the prior art, the present application provides a method for automatic deployment of a bare machine server operating system, which has the following beneficial effects:
[0022] 1. The method for automatic deployment of a bare machine server operating system can support deployment of different types of operating systems (such as Windows, Linux, Esxi, etc.), and a standardized ISO operating system template is generated by a unified interface setting, which is automatically deployed by the system without human intervention, thereby accelerating the deployment time.
[0023] 2. The method for automatic deployment of a bare machine server operating system automatically analyzes, judges, and compares the deployment target bare machine server before and after deployment to ensure the accuracy of the deployed bare machine server and avoid misoperation to the running business server, and to ensure that the bare machine server can normally enter the operating system after deployment. BRIEF DESCRIPTION OF DRAWINGS
[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed in the embodiment description. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor on the basis of these drawings.
[0025] Fig. 1 The system platform monitoring flowchart of the present application;
[0026] Fig. 2 The combined operating system combination template generation flowchart of the present application;
[0027] Fig. 3 The system platform deployment flowchart of the present application. DETAILED DESCRIPTION
[0028] With reference to the drawings of the embodiments of the present application, the technical solutions in the embodiments of the present application will be described clearly and completely. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all the embodiments of the present application. Based on the embodiments of the present application, all the other embodiments obtained by those of ordinary skill in the art without creative work fall within the scope of the present application.
[0029] In the present application, unless otherwise explicitly specified and limited, the terms "mounting", "connection", "connecting", "fixing" and the like should be understood in a broad sense, for example, can be fixed connection, can also be detachable connection, or integral; can be mechanical connection, can also be electrical connection; can be directly connected, can also be indirectly connected through an intermediate medium, can be the internal communication of two elements or the interaction relationship between two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances.
[0030] Please refer to Figs. 1-3 The present application provides a technical solution: a method for automatic deployment of a bare machine server operating system, comprising the following steps:
[0031] S1: opening the network communication protocol and port between the BMC management port of the bare machine server and the system platform, realizing the mutual communication between the system platform and the target bare machine server BMC management port.
[0032] S2: adding the factory default IP and username and password of the target bare machine server on the WEB page of the system platform, the system platform automatically scans the default IP address of the target bare machine server, and the system platform automatically judges whether there is a planned and unallocated IP address.
[0033] S3: automatically modifying the default IP address of the target bare machine server to the planned and unallocated IP address according to the scanning order.
[0034] S4: the system platform automatically includes the target bare machine server into the platform for supervision, uploading the operating system ISO file to be deployed and installed on the WEB page of the system platform, and configuring the component sub-template of different system versions on the WEB page of the system platform.
[0035] S5: the system platform automatically combines and generates an operating system combination template according to the component sub-template of different system versions, selects the target bare machine server to be deployed which has been included in the platform on the WEB page of the system platform, and selects the operating system combination template which has been configured on the WEB page of the system platform.
[0036] S6: The system platform automatically determines whether the target bare machine server to be deployed is in a booting state. The system platform automatically counts the target bare machine server that is booting. A WEB page pop-up window reminds that the target bare machine server to be deployed that is booting needs to be restarted.
[0037] S7: Manually select whether to restart. If no, automatically end the deployment, and the system marks the deployment failure reason as "the target bare machine server to be deployed is booting". If yes, continue the deployment. The system platform automatically re-packages the uploaded ISO file, the drives, the patches, and the scripts in the combination template, and generates a new packaged ISO file.
[0038] S8: The system platform mounts the new packaged ISO file to the BMC virtual media of the bare machine server for installation. The system platform automatically determines whether an error occurs during the deployment. If yes, end the deployment, and the system platform marks the deployment failure reason. The system automatically installs the operating system, the drives, the patches, and the application software, and configures the IP address and the computer name.
[0039] S9: After the automatic deployment according to the predetermined script, the system platform sends a command to automatically restart the target bare machine server. The system platform detects that the target bare machine server enters the operating system interface, ends the deployment, and the system platform marks the deployment success.
[0040] The target bare machine server is automatically scanned for the default IP address. The default IP address of the target bare machine server is modified to an IP address that has been planned but not allocated. The constituent sub-templates of different system versions are configured. The new combination template is freely combined and generated. The uploaded ISO file, the drives, the patches, and the scripts in the template are automatically re-packaged, and a new ISO file is generated. After the packaging, the system platform mounts the new packaged ISO file to the BMC virtual media of the bare machine server for deployment. The deployment process is automatically pushed by the system platform for installation, including the installation of the operating system, the drives, the patches, and the application software, and the configuration of the IP address and the computer name.
[0041] It is to be understood that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting; it is not intended to exclude myriad other embodiments of the present application that other inventors can develop based on the same general inventive concepts embodied by the described embodiments. That is, although the present application is described in terms of particular embodiments and implementations, it is to be understood that the terminology used is for the purpose of descriptive clarity and that it should be taken in a descriptive sense and not a limiting sense.
[0042] While the embodiments of the application have been shown and described herein, it is to be understood that the application is not limited to these embodiments. Rather, many modifications, changes, substitutions, and alterations can be made to the embodiments of the application without departing from the spirit and scope of the application as defined by the appended claims and their equivalents.
Claims
1. A method for automated deployment of a bare-metal server operating system, characterized in that, Comprise the following steps: S1: open the BMC management port of the bare machine server and the network communication protocol and port between the system platform, realize the mutual communication between the system platform and the target bare machine server BMC management port; S2: add the factory default IP and user name password of the target bare machine server on the WEB page of the system platform, the system platform automatically scans the default IP address of the target bare machine server, and the system platform automatically judges whether there is a planned and unallocated IP address; S3: according to the scanning order, the default IP address of the target bare machine server is automatically modified to the IP address which has been planned and not allocated; S4: the system platform automatically includes the target bare machine server into the platform for supervision, uploads the operating system ISO file to be deployed and installed on the WEB page of the system platform, and configures the composition sub template of different system versions on the WEB page of the system platform; S5: the system platform automatically combines the operating system combination template according to the composition sub template of different system versions, selects the target bare machine server to be deployed on the WEB page of the system platform, and selects the operating system combination template which has been configured on the WEB page of the system platform; S6: the system platform automatically judges whether the target bare machine server to be deployed is in the running state, and the system platform automatically counts the target bare machine server which is in the running state, and the WEB page pop-up window reminds to restart the target bare machine server to be deployed which is in the running state; S7: manually select whether to restart, if "no", automatically end the deployment, the system platform marks the deployment failure reason "the target bare machine server to be deployed is in the running state", if "yes", continue to deploy, the system platform automatically encapsulates and packages the uploaded ISO file+the drive, patch and script in the combination template, and generates a new encapsulated ISO file; S8: the system platform mounts the new encapsulated ISO file to the BMC virtual media of the bare machine server for installation, the system platform automatically judges whether there is an error in the deployment process, if "yes", ends the deployment, and the system platform marks the deployment failure reason; S9: after automatic deployment according to the predetermined script, the system platform sends a command to automatically restart the target bare machine server, the system platform detects that the target bare machine server enters the operating system interface, ends the deployment, and the system platform marks the deployment success.
2. The method for automatic deployment of operating system on bare metal server according to claim 1, characterized in that: The S8 installs the operating system, drive, patch, application software, and configures the IP address and computer name.
3. The method for automatic deployment of operating system on bare metal server according to claim 1, characterized in that: After encapsulation, the system platform mounts the new encapsulated ISO file to the BMC virtual media of the bare machine server for deployment, and the installation process is automatically pushed by the system platform, including installing the operating system, drive, patch, application software, and configuring the IP address and computer name.
Citation Information
Patent Citations
Method and device for configuring bare-computer server
CN107329769A
Firmware-based operating system remote self-adaptive dynamic deployment method and system
CN110737444A