Operating system deployment method and device

By establishing a file transmission protocol server in a customized operating system environment, the problem of mirror transmission of operating systems occupy a lot of time and bandwidth, and achieves more efficient operating system deployment.

CN119356697APending Publication Date: 2025-01-24LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411378411.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-29
Publication Date
2025-01-24

AI Technical Summary

Technical Problem

When multiple servers deploy operating systems, the prior art requires a lot of time and network bandwidth to transmit mirroring from remote servers due to the large amount of operating system image data, which reduces deployment efficiency.

Method used

By sending an image of the target operating system to the first server in a customized operating system environment, establishing a first file transfer protocol server, enabling at least one second server to deploy the target operating system through the server, and enabling the first target server to obtain Mirror; subsequently, the first target server establishes a second file transfer protocol server and transmits the mirror to the first server for deployment.

Benefits of technology

It reduces the need to send images from remote servers multiple times, reduces image transmission time and network bandwidth consumption, and improves operating system deployment efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119356697A_ABST
    Figure CN119356697A_ABST
Patent Text Reader

Abstract

The invention discloses an operating system deployment method and device, and the method comprises the steps: obtaining a mirror image of a to-be-deployed target operating system, and transmitting the mirror image of the target operating system to a first server in a customized operating system environment; enabling a first server in a customized operating system environment to establish a first file transfer protocol server corresponding to the mirror image of the target operating system; using a first file transfer protocol server to deploy a target operating system in the at least one second server, and enabling a first target server in a customized operating system environment to obtain a mirror image of the target operating system, the first target server being selected from the at least one second server deployed with the target operating system; enabling a first target server in a customized operating system environment to establish a second file transfer protocol server corresponding to the mirror image of the target operating system; and deploying the target operating system in the first server by using the second file transfer protocol server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to an operating system deployment method and device. Background Art

[0002] At present, when deploying an operating system on multiple servers, the operating system image is generally first transmitted to each server through a remote server, and then each server deploys the operating system based on the obtained image. However, due to the large amount of data in the operating system image, multiple transmissions of the image from the remote server to the local server will take up a lot of time and network bandwidth, making the operating system deployment inefficient. Summary of the invention

[0003] An embodiment of the present application provides an operating system deployment method, including: obtaining an image of a target operating system to be deployed, and sending the image of the target operating system to a first server in a customized operating system environment; enabling the first server in the customized operating system environment to establish a first file transfer protocol server corresponding to the image of the target operating system; using the first file transfer protocol server to deploy the target operating system in at least one second server, and enabling the first target server in the customized operating system environment to obtain the image of the target operating system, the first target server being selected from at least one second server on which the target operating system is deployed; enabling the first target server in the customized operating system environment to establish a second file transfer protocol server corresponding to the image of the target operating system; and using the second file transfer protocol server to deploy the target operating system in the first server.

[0004] In some embodiments, the IP address of the first server and the IP address of the second server belong to the same network segment, and the target operating system is deployed in at least one second server using the first file transfer protocol server, including: enabling the second server to access the first file transfer protocol server to obtain an image of the target operating system; and enabling the second server to deploy the target operating system on itself using the image of the target operating system.

[0005] In some embodiments, after enabling the first server in the customized operating system environment to establish a first file transfer protocol server corresponding to the image of the target operating system, it also includes: in the case where there are multiple second servers, determining at least one second target server other than the first target server among the second servers; enabling the second target server to access the first file transfer protocol server to obtain the image of the target operating system; and enabling the second target server to use the image of the target operating system to deploy the target operating system on itself.

[0006] In some embodiments, the customized operating system environment corresponds to a customized operating system preinstalled in a baseboard management controller, and further includes: after obtaining an image of a target operating system to be deployed, using the baseboard pipeline controller of the first server to enable the first server to enter the customized operating system environment; after using the first file transfer protocol server to deploy the target operating system in at least one second server, using the baseboard management controller of the first target server to enable the first target server to enter the customized operating system environment.

[0007] In some embodiments, the target operating system is deployed in the first server using the second file transfer protocol server, including: causing the first server in the customized operating system environment to exit the customized operating system environment; causing the first server to obtain an image of the target operating system from the second file transfer protocol server; and causing the first server to use the image of the target operating system to deploy the target operating system on itself.

[0008] In some embodiments, after enabling the first server to utilize the image of the target operating system to deploy the target operating system on itself, the method further includes: enabling the first target server in the customized operating system environment to exit the customized operating system environment.

[0009] An embodiment of the present application also proposes an operating system deployment method, including: in response to a first startup instruction sent by a remote server, booting into a customized operating system environment; obtaining an image of a target operating system to be deployed sent by the remote server; in response to a first establishment instruction sent by the remote server, establishing a first file transfer protocol server corresponding to the image of the target operating system in the customized operating system environment, so that at least one second server uses the first file transfer protocol server to deploy the target operating system on itself; in response to the first deployment instruction sent by the remote server, using a second file transfer protocol server to deploy the target operating system on itself, the second file transfer protocol server is established in the first target server in the customized operating system environment, the second file transfer protocol server corresponds to the image of the target operating system, and the first target server is selected from at least one second server on which the target operating system is deployed.

[0010] An embodiment of the present application also proposes an operating system deployment device, including: a sending module, used to obtain an image of a target operating system to be deployed, and send the image of the target operating system to a first server in a customized operating system environment; a first establishment module, used to enable the first server in the customized operating system environment to establish a first file transfer protocol server corresponding to the image of the target operating system; a first deployment module, used to use the first file transfer protocol server to deploy the target operating system in at least one second server, and to enable the first target server in the customized operating system environment to obtain the image of the target operating system, the first target server being selected from at least one second server on which the target operating system is deployed; a second establishment module, used to enable the first target server in the customized operating system environment to establish a second file transfer protocol server corresponding to the image of the target operating system; and a second deployment module, used to use the second file transfer protocol server to deploy the target operating system in the first server.

[0011] An embodiment of the present application also proposes an operating system deployment device, including: a first startup module, used to respond to a first startup instruction sent by a remote server to start entering a customized operating system environment; a first acquisition module, used to obtain an image of a target operating system to be deployed sent by the remote server; a third establishment module, used to respond to the first establishment instruction sent by the remote server, and establish a first file transfer protocol server corresponding to the image of the target operating system in the customized operating system environment, so that at least one second server uses the first file transfer protocol server to deploy the target operating system on itself; a third deployment module, used to respond to the first deployment instruction sent by the remote server, and use the second file transfer protocol server to deploy the target operating system on itself, the second file transfer protocol server is established in the first target server in the customized operating system environment, the second file transfer protocol server corresponds to the image of the target operating system, and the first target server is selected from at least one second server on which the target operating system is deployed.

[0012] An embodiment of the present application also proposes an operating system deployment device, including: a fourth deployment module, used to respond to a second deployment instruction sent by a remote server, and use a first file transfer protocol server to deploy a target operating system on itself, the first file transfer protocol server corresponding to the image of the target operating system to be deployed, and the first file transfer protocol server is established in a first server in a customized operating system environment; a second startup module, used to respond to the second startup instruction sent by the remote server, and start entering the customized operating system environment; a second acquisition module, used to respond to the second establishment instruction sent by the remote server, and use the first file transfer protocol server to obtain the image of the target operating system; a fourth establishment module, used to establish a second file transfer protocol server corresponding to the image of the target operating system in the customized operating system environment, so that the first server uses the second file transfer protocol server to deploy the target operating system on itself. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0014] Figure 1 A flowchart of the operating system deployment method according to an embodiment of the present application;

[0015] Figure 2A flowchart of deploying a target operating system in at least one second server according to an embodiment of the present application;

[0016] Figure 3 A flowchart of deploying a target operating system on a second target server according to an embodiment of the present application;

[0017] Figure 4 A flowchart of deploying a target operating system in a first server according to an embodiment of the present application;

[0018] Figure 5 A flowchart of an operating system deployment method according to another embodiment of the present application;

[0019] Figure 6 A flowchart of an operating system deployment method according to another embodiment of the present application;

[0020] Figure 7 The operating system deployment method of the present application embodiment is schematically shown as follows: Figure 1 ;

[0021] Figure 8 The operating system deployment method of the present application embodiment is schematically shown as follows: Figure 2 ;

[0022] Fig. 9 The structural frame of the operating system deployment device of the embodiment of the present application is Figure 1 ;

[0023] Fig.10 The structural frame of the operating system deployment device of the embodiment of the present application is Figure 2 ;

[0024] Fig.11 The structural frame of the operating system deployment device of the embodiment of the present application is Figure 3 . DETAILED DESCRIPTION

[0025] Various aspects and features of the present application are described herein with reference to the accompanying drawings.

[0026] It should be understood that various modifications may be made to the embodiments of the present application. Therefore, the above description should not be considered as limiting, but only as an example of an embodiment. Other modifications within the scope and spirit of the present application will occur to those skilled in the art.

[0027] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the present application and, together with the general description of the present application given above and the detailed description of the embodiments given below, serve to explain the principles of the present application.

[0028] These and other characteristics of the present application will become apparent from the following description of a preferred form of embodiment given as a non-limiting example with reference to the accompanying drawings.

[0029] It should also be understood that although the present application has been described with reference to some specific examples, those skilled in the art will be able to readily implement many other equivalent forms of the present application.

[0030] The above and other aspects, features and advantages of the present application will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.

[0031] Specific embodiments of the present application are described hereinafter with reference to the accompanying drawings; however, it should be understood that the embodiments applied for are merely examples of the present application, which may be implemented in a variety of ways. Well-known and / or repeated functions and structures are not described in detail to avoid unnecessary or redundant details that obscure the present application. Therefore, the specific structural and functional details applied for herein are not intended to be limiting, but merely serve as a basis and representative basis for the claims to teach those skilled in the art to use the present application in a variety of ways with substantially any suitable detailed structure.

[0032] This specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," all of which may refer to one or more of the same or different embodiments according to the present application.

[0033] An operating system deployment method according to an embodiment of the present application sends an image of a target operating system to be deployed to a first server under a customized operating system, and establishes a file transfer protocol server through the first server under the customized operating system and the first target server under the customized operating system to save the image of the target operating system, so that the first target server and the first server use the corresponding file transfer protocol server to deploy the target operating system on themselves. Since the image of the target operating system only needs to be sent to the first server once, multiple sending of the image from a remote end is avoided, the image transmission time and network bandwidth consumption are reduced, and the operating system deployment efficiency is improved.

[0034] like Figure 1 As shown, the method comprises the following steps:

[0035] Step S101: obtaining an image of a target operating system to be deployed, and sending the image of the target operating system to a first server in a customized operating system environment.

[0036] In this embodiment, the execution subject may be a remote server, and the target operating system is deployed to the first server and at least one second server through the remote server. There is a first communication connection between the remote server and the first server and at least one second server, and the first communication connection may be based on a wide area network. In some embodiments, the remote server may be a server located in the cloud, and the remote server runs remote system management software for the node server. The first server and at least one second server may be node servers corresponding to edge nodes. The image of the target operating system may be uploaded by a user or downloaded by the remote server from other servers. The target operating system includes any one of the operating systems such as the Linux operating system, the Windows operating system, the Netware operating system, the VMware operating system, and the Unix operating system.

[0037] The customized operating system environment corresponds to a customized customized operating system, which runs on a controller other than the processor running the target operating system. After obtaining the image of the target operating system to be deployed, the first server is made to enter the customized operating system environment, and then the image of the target operating system is sent to the first server in the customized operating system environment. Optionally, the customized operating system can be a customized Linux system, or a Windows system, etc.

[0038] Step S102: enabling the first server in the customized operating system environment to establish a first file transfer protocol server corresponding to the image of the target operating system.

[0039] The customized operating system environment is provided with a tool for establishing a file transfer protocol server, so that the first server can establish the first file transfer protocol server on itself by calling the tool, and copy the image of the target operating system to the shared path of the first file transfer protocol server, and then the first file transfer protocol server can be accessed by the second server.

[0040] Optionally, the first file transfer protocol server may be based on any one of the file transfer protocols including FTP (File Transfer Protocol), SFTP (SSH File Transfer Protocol), SCP (Secure copy), TFTP (Trivial File Transfer Protocol), etc.

[0041] Step S103, using the first file transfer protocol server, deploying the target operating system in at least one second server, and enabling the first target server in the customized operating system environment to obtain the image of the target operating system, wherein the first target server is selected from at least one second server on which the target operating system is deployed.

[0042] In this embodiment, the first file transfer protocol server stores an image of the target operating system, and the target operating system can be deployed in at least one second server using the first file transfer protocol server. After the target operating system is deployed in at least one second server, a first target server is selected from the at least one second server where the target operating system is deployed, and then the first target server is made to enter the customized operating system environment, and the first file transfer protocol server is used to make the first target server in the customized operating system environment obtain the image of the target operating system.

[0043] Optionally, a second server can be randomly selected as the first target server, or a second server can be selected as the first target server according to a specified rule. For example, a second server closest to the first server can be selected as the first target server, and the first target server can be used to deploy the target operating system in the first server more quickly later.

[0044] In some embodiments of the present application, after using the first file transfer protocol server to deploy the target operating system in at least one second server, it also includes: testing the second server where the target operating system is deployed through a target test script, if the test is successful, issuing a prompt message indicating that the operating system deployment is successful, if the test fails, issuing a prompt message indicating that the operating system deployment fails, thereby reminding the user whether the target operating system is successfully deployed on the second server.

[0045] Step S104: enabling the first target server in the customized operating system environment to establish a second file transfer protocol server corresponding to the image of the target operating system.

[0046] In this embodiment, the first target server calls the corresponding tool in the customized operating system environment, establishes a second file transfer protocol server on itself, and copies the image of the target operating system obtained by using the first file transfer protocol server to the shared path of the second file transfer protocol server, thereby saving the image of the target operating system on the second file transfer protocol server.

[0047] Optionally, the second file transfer protocol server may be based on any file transfer protocol including FTP, SFTP, SCP, TFTP, etc.

[0048] Step S105: deploy the target operating system in the first server using the second file transfer protocol server.

[0049] The second file transfer protocol server stores an image of the target operating system. The target operating system can be deployed in the first server using the second file transfer protocol server, thereby completing the deployment of the target operating system in the first server and at least one second server.

[0050] In some embodiments of the present application, after deploying the target operating system in the first server using the second file transfer protocol server, it also includes: testing the first server on which the target operating system is deployed through a target test script, and if the test is successful, issuing a prompt message indicating that the operating system deployment is successful; if the test fails, issuing a prompt message indicating that the operating system deployment fails, thereby reminding the user whether the target operating system is successfully deployed on the first server.

[0051] The operating system deployment method of the embodiment of the present application obtains the image of the target operating system to be deployed, sends the image of the target operating system to the first server in the customized operating system environment; enables the first server in the customized operating system environment to establish a first file transfer protocol server corresponding to the image of the target operating system; uses the first file transfer protocol server to deploy the target operating system in at least one second server, and enables the first target server in the customized operating system environment to obtain the image of the target operating system, the first target server is selected from at least one second server on which the target operating system is deployed; enables the first target server in the customized operating system environment to establish a second file transfer protocol server corresponding to the image of the target operating system; and uses the second file transfer protocol server to deploy the target operating system in the first server. Since the image of the target operating system only needs to be sent to the first server once, multiple sending of the image from the remote end is avoided, the image transmission time and network bandwidth consumption are reduced, and the operating system deployment efficiency is improved.

[0052] In some embodiments of the present application, the IP address of the first server and the IP address of the second server belong to the same network segment, wherein the IP address of the first server may be the BMC IP address of the first server, and the IP address of the second server may be the BMC IP address of the second server, and the above BMC IPs will be configured in the same subnet, and the target operating system is deployed in at least one second server by using the first file transfer protocol server, such as Figure 2 As shown, the following steps are included:

[0053] Step S1031: Enable the second server to access the first file transfer protocol server to obtain the image of the target operating system.

[0054] In this embodiment, there is a second communication connection between the first server and the second server. The second communication connection can be based on a local area network. The IP address of the first server and the IP address of the second server belong to the same network segment, which can be, for example, 10.10.10.x, so that the first server and the second server can access each other.

[0055] The first file transfer protocol server stores the image of the target operating system, so that the second server accesses the first file transfer protocol server and can download the image of the target operating system from the first file transfer protocol server through the local area network.

[0056] Step S1032: Enable the second server to deploy the target operating system on itself by using the image of the target operating system.

[0057] After the second server obtains the image of the target operating system, it deploys the target operating system on itself by installing the image of the target operating system.

[0058] By making the IP addresses of the first server and the second server belong to the same network segment, the second server can obtain the image of the target operating system from the first file transfer protocol server more quickly, thereby improving the deployment efficiency of the operating system.

[0059] In some embodiments of the present application, after the first server in the customized operating system environment establishes a first file transfer protocol server corresponding to the image of the target operating system, as follows: Figure 3 As shown, the following steps are also included:

[0060] Step S106: when there are multiple second servers, determine at least one second target server other than the first target server among the second servers.

[0061] In this embodiment, when there are multiple second servers, after determining the first target server, each second server except the first target server can be used as the second target server, or some of the second servers except the first target server can be used as the second target server. For example, each second server includes server 2, server 3, server 4 and server 5, and server 2 is the first target server, then server 3, server 4 and server 5 can be used as the second target server, or only server 4 and server 5 can be used as the second target server. Those skilled in the art can flexibly set according to different deployment needs.

[0062] Step S107: enabling the second target server to access the first file transfer protocol server to obtain the image of the target operating system.

[0063] Since the IP address of the second target server also belongs to the same network segment as the IP address of the first server, the second target server accesses the first file transfer protocol server through the local area network and downloads the image of the target operating system from the first file transfer protocol server.

[0064] Step S108: enabling the second target server to deploy the target operating system on itself using the image of the target operating system.

[0065] After the second target server obtains the image of the target operating system, it installs the image of the target operating system on itself. After the installation is complete, the deployment of the target operating system is completed.

[0066] In the case where there are multiple second servers, the first file transfer protocol server can be used to deploy the target operating system on each second target server, thereby achieving synchronous deployment of the operating system on multiple servers, thereby improving the efficiency of operating system deployment.

[0067] In some embodiments of the present application, the customized operating system environment corresponds to a customized operating system preinstalled in the baseboard management controller, and further includes:

[0068] After obtaining the image of the target operating system to be deployed, using the substrate pipeline controller of the first server to enable the first server to enter the customized operating system environment;

[0069] After the target operating system is deployed in at least one second server by using the first file transfer protocol server, the baseboard management controller of the first target server is used to make the first target server enter the customized operating system environment.

[0070] In this embodiment, the baseboard management controller (BMC) is a dedicated controller for monitoring and managing the server. The customized operating system environment corresponds to the customized operating system preinstalled in the baseboard management controller. The customized operating system can be built-in in the firmware of the baseboard management controller, or the customized operating system image can be obtained from a remote server first, and then the customized operating system is installed in the baseboard management controller using the customized operating system image.

[0071] After obtaining the image of the target operating system to be deployed, the customized operating system is started by using the substrate pipeline controller of the first server, so that the first server enters the customized operating system environment. After deploying the target operating system in at least one second server by using the first file transfer protocol server, the customized operating system is started by using the substrate management controller of the first target server, so that the first target server enters the customized operating system environment.

[0072] By preinstalling a customized operating system in the corresponding baseboard management controller and using the baseboard management controller to allow the first server and the first target server to enter the customized operating system environment, a more reliable entry into the customized operating system environment is achieved, thereby ensuring that the target operating system can be subsequently reliably deployed on the first target server and the first server.

[0073] In some embodiments of the present application, the target operating system is deployed in the first server using the second file transfer protocol server, such as Figure 4 As shown, the following steps are included:

[0074] Step S1051: causing the first server in the customized operating system environment to exit the customized operating system environment.

[0075] In this embodiment, the first server cannot obtain the image of the target operating system from the first target server in the customized operating system environment. Therefore, in order to enable the first server to obtain the image of the target operating system, the first server exits the customized operating system environment.

[0076] Step S1052: Enable the first server to obtain the image of the target operating system from the second file transfer protocol server.

[0077] The first server is enabled to access the first target server, and downloads the image of the target operating system from the second file transfer protocol server.

[0078] Step S1053: Enable the first server to deploy the target operating system on itself by using the image of the target operating system.

[0079] In this embodiment, after obtaining the image of the target operating system, the first server installs the image of the target operating system on itself, and after the installation is completed, the deployment of the target operating system is completed.

[0080] By first making the first server exit the customized operating system environment and then making the first server obtain the image of the target operating system from the second file transfer protocol server, more reliable deployment of the target operating system in the first server is achieved.

[0081] In some embodiments of the present application, after the first server uses the image of the target operating system to deploy the target operating system on itself, the method further includes:

[0082] The first target server in the customized operating system environment is caused to exit the customized operating system environment.

[0083] In this embodiment, after completing the operating system deployment on the first server, the first target server can enter the normal operation mode by exiting the customized operating system environment. At this point, the operating system deployment on the first server and the second server is completed, and each corresponding server can subsequently operate based on the target operating system.

[0084] The present application also proposes an operating system deployment method, such as Figure 5 As shown, the following steps are included:

[0085] Step S201, in response to a first startup instruction sent by a remote server, booting into a customized operating system environment.

[0086] In this embodiment, the execution subject may be a first server, and a first communication connection exists between the remote server and the first server and at least one second server, and the first communication connection may be based on a wide area network. The customized operating system environment corresponds to a customized customized operating system, and the customized operating system runs on a controller other than a processor running the target operating system. After receiving the first startup instruction sent by the remote server, the first server starts to enter the customized operating system environment.

[0087] Step S202, obtaining the image of the target operating system to be deployed sent by the remote server.

[0088] In this embodiment, after entering the customized operating system environment, an image of the target operating system to be deployed sent by the remote server is obtained, and the target operating system includes any one of the operating systems such as Linux operating system, Windows operating system, Netware operating system, VMware operating system, Unix operating system, etc.

[0089] Step S203, in response to the first establishment instruction sent by the remote server, establish a first file transfer protocol server corresponding to the image of the target operating system in the customized operating system environment, so that at least one second server uses the first file transfer protocol server to deploy the target operating system on itself.

[0090] In this embodiment, a tool for establishing a file transfer protocol server is provided in the customized operating system environment. In response to a first establishment instruction sent by a remote server, the tool is called to establish a first file transfer protocol server in itself, and the image of the target operating system is copied to a shared path of the first file transfer protocol server. Subsequently, the first file transfer protocol server can be accessed by a second server, so that at least one second server can use the first file transfer protocol server to deploy the target operating system in itself.

[0091] Step S204, in response to the first deployment instruction sent by the remote server, using the second file transfer protocol server to deploy the target operating system on itself, the second file transfer protocol server is established in the first target server in the customized operating system environment, the second file transfer protocol server corresponds to the image of the target operating system, and the first target server is selected from at least one second server on which the target operating system is deployed.

[0092] In this embodiment, after the target operating system is deployed in at least one second server, the remote server selects a first target server from the at least one second server where the target operating system is deployed, and then causes the first target server to enter the customized operating system environment, and uses the first file transfer protocol server to cause the first target server in the customized operating system environment to obtain the image of the target operating system. Afterwards, the remote server causes the first target server to call the corresponding tool in the customized operating system environment, establishes a second file transfer protocol server in itself, and copies the image of the target operating system obtained by using the first file transfer protocol server to the shared path of the second file transfer protocol server, thereby saving the image of the target operating system in the second file transfer protocol server.

[0093] The second file transfer protocol server stores an image of the target operating system. In response to the first deployment instruction sent by the remote server, the first server deploys the target operating system on itself using the second file transfer protocol server.

[0094] The operating system deployment method of the embodiment of the present application enters the customized operating system environment and obtains the image of the target operating system to be deployed from the remote server, then establishes a first file transfer protocol server, so that at least one second server uses the first file transfer protocol server to deploy the target operating system on itself, and then uses the second file transfer protocol server in the first target server to deploy the target operating system on itself. Since the image of the target operating system only needs to be obtained from the remote server once, multiple receptions of images from the remote end are avoided, the image transmission time and network bandwidth consumption are reduced, and the operating system deployment efficiency is improved.

[0095] The present application also proposes an operating system deployment method, such as Figure 6 As shown, the following steps are included:

[0096] Step S301, in response to a second deployment instruction sent by a remote server, deploy the target operating system on itself using a first file transfer protocol server, the first file transfer protocol server corresponding to the image of the target operating system to be deployed, and the first file transfer protocol server established in a first server in a customized operating system environment.

[0097] In this embodiment, the execution subject may be the first target server. Before performing step S301, the remote server sends the image of the target operating system to the first server in a customized operating system environment. The customized operating system environment has a tool for establishing a file transfer protocol server. The remote server enables the first server to establish a first file transfer protocol server in itself by calling the tool, and copies the image of the target operating system to the shared path of the first file transfer protocol server. Subsequently, the first file transfer protocol server can be accessed by the second server.

[0098] In response to the second deployment instruction sent by the remote server, the first target server deploys the target operating system on itself using the first file transfer protocol server.

[0099] Step S302: In response to a second startup instruction sent by the remote server, start up and enter the customized operating system environment.

[0100] After the target operating system is deployed, the customized operating system environment is started in response to a second startup instruction sent by the remote server, and a second file transfer protocol server can be established in the customized operating system environment subsequently.

[0101] Step S303: In response to the second establishment instruction sent by the remote server, the image of the target operating system is obtained by using the first file transfer protocol server.

[0102] The second establishment instruction is an instruction to establish a second file transfer protocol server. The first file transfer protocol server stores an image of the target operating system. In response to the second establishment instruction sent by the remote server, the first file transfer protocol server in the first server is used to obtain the image of the target operating system.

[0103] Step S304: in the customized operating system environment, establish a second file transfer protocol server corresponding to the image of the target operating system, so that the first server uses the second file transfer protocol server to deploy the target operating system on itself.

[0104] The customized operating system environment is provided with a tool for establishing a file transfer protocol server. By calling the tool, a second file transfer protocol server is established in itself, and the image of the target operating system is copied to the shared path of the second file transfer protocol server. Subsequently, the second file transfer protocol server can be accessed by the first server, so that the first server can use the second file transfer protocol server to deploy the target operating system in itself.

[0105] The operating system deployment method of the embodiment of the present application uses the first file transfer protocol server in the first server to deploy the target operating system on itself, enters the customized operating system environment and obtains the image of the target operating system from the first file transfer protocol server, and then establishes a second file transfer protocol server, so that the first server uses the second file transfer protocol server to deploy the target operating system on itself. Since the image of the target operating system only needs to be obtained from the remote server once, it avoids obtaining the image from the remote end multiple times, reduces the image transmission time and network bandwidth consumption, and improves the efficiency of operating system deployment.

[0106] In order to further explain the technical idea of ​​the present application, the technical solution of the present application is now described in combination with specific application scenarios.

[0107] The embodiment of the present application provides an operating system deployment method, which completes the deployment of a target operating system in server 1, server 2 and server 3 through a remote server, such as Figure 7 and Figure 8 As shown, the method comprises the following steps:

[0108] In the first step, the remote server uses the BMC (baseboard management controller) of server 1 (i.e., the first server) to start server 1 into the customized operating system environment, sends the image of the target operating system to be deployed to server 1, and enables server 1 in the customized operating system environment to establish an SFTP server 1 (i.e., the first file transfer protocol server) corresponding to the image of the target operating system. An example of the shared path of the image of the target operating system in the SFTP server 1 is: sftp: / / 10.10.10.1 / redhat.iso.

[0109] In the second step, the remote server enables server 2 and server 3 to access SFTP server 1 respectively, and deploys the target operating system on itself using the image of the target operating system obtained from SFTP server 1. Server 2 and server 3 are both second servers.

[0110] In the third step, the remote server mounts the server 2 to the customized operating system. Specifically, the remote server uses the BMC of the server 2 (ie, the first target server) to start the server 2 into the customized operating system environment.

[0111] In the fourth step, the remote server copies the target operating system to the server 2 that has been mounted to the customized operating system, and then establishes an SFTP server. Specifically, the remote server enables the server 2 that enters the customized operating system environment to obtain the image of the target operating system using the SFTP server 1, and enables the server 2 in the customized operating system environment to establish an SFTP server 2 (i.e., a second file transfer protocol server) corresponding to the image of the target operating system. An example of the shared path of the image of the target operating system in the SFTP server 2 is: sftp: / / 10.10.10.2 / redhat.iso.

[0112] In step 5, the remote server causes server 1 to exit the customized operating system environment.

[0113] In step 6, the remote server enables server 1 to access SFTP server 2, and uses the image of the target operating system obtained from SFTP server 2 to deploy the target operating system on itself.

[0114] In step 7, the remote server causes server 2 to exit the customized operating system environment.

[0115] At this point, the target operating system is deployed in Server 1, Server 2, and Server 3. It can be seen that in this process, the remote server only needs to send the image of the target operating system to Server 1 once, and then only needs to transmit the image of the target operating system between the corresponding servers through the local area network, avoiding sending the image multiple times from the remote end, and because the local area network has a shorter transmission distance and faster network speed, it reduces the image transmission time and network bandwidth consumption, and improves the efficiency of operating system deployment.

[0116] The present application also provides an operating system deployment device, such as Fig. 9 As shown, it includes: a sending module, which is used to obtain the image of the target operating system to be deployed, and send the image of the target operating system to a first server in a customized operating system environment; a first establishing module, which is used to enable the first server in the customized operating system environment to establish a first file transfer protocol server corresponding to the image of the target operating system; a first deployment module, which is used to use the first file transfer protocol server to deploy the target operating system in at least one second server, and to enable the first target server in the customized operating system environment to obtain the image of the target operating system, wherein the first target server is selected from at least one second server on which the target operating system is deployed; a second establishing module, which is used to enable the first target server in the customized operating system environment to establish a second file transfer protocol server corresponding to the image of the target operating system; and a second deployment module, which is used to use the second file transfer protocol server to deploy the target operating system in the first server.

[0117] In a specific application scenario, the IP address of the first server and the IP address of the second server belong to the same network segment, and the first deployment module is specifically used to: enable the second server to access the first file transfer protocol server to obtain the image of the target operating system; enable the second server to use the image of the target operating system to deploy the target operating system on itself.

[0118] In a specific application scenario, the first deployment module is also used to: when there are multiple second servers, determine at least one second target server among the second servers except the first target server; enable the second target server to access the first file transfer protocol server to obtain the image of the target operating system; and enable the second target server to use the image of the target operating system to deploy the target operating system on itself.

[0119] In a specific application scenario, the customized operating system environment corresponds to a customized operating system preinstalled in a baseboard management controller, and also includes a customized operating system environment entry module, which is used to: after obtaining the image of the target operating system to be deployed, use the baseboard pipeline controller of the first server to make the first server enter the customized operating system environment; after using the first file transfer protocol server to deploy the target operating system in at least one second server, use the baseboard management controller of the first target server to make the first target server enter the customized operating system environment.

[0120] In a specific application scenario, the second deployment module is specifically used to: enable the first server in the customized operating system environment to exit the customized operating system environment; enable the first server to obtain the image of the target operating system from the second file transfer protocol server; and enable the first server to use the image of the target operating system to deploy the target operating system on itself.

[0121] In a specific application scenario, the second deployment module is further used to: cause the first target server in the customized operating system environment to exit the customized operating system environment.

[0122] The present application also provides an operating system deployment device, such as Fig.10As shown, it includes: a first startup module, which is used to respond to a first startup instruction sent by a remote server to start into a customized operating system environment; a first acquisition module, which is used to obtain the image of the target operating system to be deployed sent by the remote server; a third establishment module, which is used to respond to the first establishment instruction sent by the remote server, and establish a first file transfer protocol server corresponding to the image of the target operating system in the customized operating system environment, so that at least one second server uses the first file transfer protocol server to deploy the target operating system in itself; a third deployment module, which is used to respond to the first deployment instruction sent by the remote server and use the second file transfer protocol server to deploy the target operating system in itself, the second file transfer protocol server is established in the first target server in the customized operating system environment, the second file transfer protocol server corresponds to the image of the target operating system, and the first target server is selected from at least one second server on which the target operating system is deployed.

[0123] The present application also provides an operating system deployment device, such as Fig.11 As shown, it includes: a fourth deployment module, used to respond to the second deployment instruction sent by the remote server, and use the first file transfer protocol server to deploy the target operating system on itself, the first file transfer protocol server corresponds to the image of the target operating system to be deployed, and the first file transfer protocol server is established in the first server in the customized operating system environment; a second startup module, used to respond to the second startup instruction sent by the remote server, and start to enter the customized operating system environment; a second acquisition module, used to respond to the second establishment instruction sent by the remote server, and use the first file transfer protocol server to obtain the image of the target operating system; a fourth establishment module, used to establish a second file transfer protocol server corresponding to the image of the target operating system in the customized operating system environment, so that the first server uses the second file transfer protocol server to deploy the target operating system on itself.

[0124] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integration. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk), etc.

[0125] The above embodiments are only exemplary embodiments of the present application and are not intended to limit the present application. The protection scope of the present application is defined by the claims. Those skilled in the art may make various modifications or equivalent substitutions to the present application within the essence and protection scope of the present application, and such modifications or equivalent substitutions shall also be deemed to fall within the protection scope of the present application.

Claims

1. An operating system deployment method, comprising: Obtaining an image of a target operating system to be deployed, and sending the image of the target operating system to a first server in a customized operating system environment; Enable the first server in the customized operating system environment to establish a first file transfer protocol server corresponding to the image of the target operating system; Deploy the target operating system in at least one second server using the first file transfer protocol server, and enable a first target server in the customized operating system environment to obtain an image of the target operating system, wherein the first target server is selected from the at least one second server on which the target operating system is deployed; Enable the first target server in the customized operating system environment to establish a second file transfer protocol server corresponding to the image of the target operating system; The target operating system is deployed in the first server using the second file transfer protocol server.

2. The operating system deployment method according to claim 1, wherein the IP address of the first server and the IP address of the second server belong to the same network segment, and the target operating system is deployed in at least one second server using the first file transfer protocol server, comprising: enabling the second server to access the first file transfer protocol server to obtain the image of the target operating system; The second server is enabled to deploy the target operating system on itself by using the image of the target operating system.

3. The operating system deployment method according to claim 2, after enabling the first server in the customized operating system environment to establish a first file transfer protocol server corresponding to the image of the target operating system, further comprising: In the case where there are multiple second servers, determining at least one second target server other than the first target server among the second servers; enabling the second target server to access the first file transfer protocol server to obtain the image of the target operating system; The second target server is enabled to deploy the target operating system on itself by using the image of the target operating system.

4. The operating system deployment method according to claim 1, wherein the customized operating system environment corresponds to a customized operating system preinstalled in a baseboard management controller, further comprising: After obtaining the image of the target operating system to be deployed, using the substrate pipeline controller of the first server to enable the first server to enter the customized operating system environment; After the target operating system is deployed in at least one second server by using the first file transfer protocol server, the baseboard management controller of the first target server is used to make the first target server enter the customized operating system environment.

5. The operating system deployment method according to claim 1, using the second file transfer protocol server to deploy the target operating system in the first server, comprising: causing the first server in the customized operating system environment to exit the customized operating system environment; enabling the first server to obtain the image of the target operating system from the second file transfer protocol server; The first server is enabled to deploy the target operating system on itself by using the image of the target operating system.

6. The operating system deployment method according to claim 5, after enabling the first server to use the image of the target operating system to deploy the target operating system on itself, further comprising: The first target server in the customized operating system environment is caused to exit the customized operating system environment.

7. An operating system deployment method, comprising: In response to a first startup instruction sent by a remote server, booting into a customized operating system environment; Obtaining an image of the target operating system to be deployed sent by the remote server; In response to a first establishment instruction sent by the remote server, a first file transfer protocol server corresponding to the image of the target operating system is established in the customized operating system environment, so that at least one second server uses the first file transfer protocol server to deploy the target operating system on itself; In response to the first deployment instruction sent by the remote server, the target operating system is deployed on itself using a second file transfer protocol server, the second file transfer protocol server is established in the first target server in the customized operating system environment, the second file transfer protocol server corresponds to the image of the target operating system, and the first target server is selected from at least one second server on which the target operating system is deployed.

8. An operating system deployment device, comprising: A sending module, used for obtaining an image of a target operating system to be deployed, and sending the image of the target operating system to a first server in a customized operating system environment; A first establishing module, used to enable the first server in the customized operating system environment to establish a first file transfer protocol server corresponding to the image of the target operating system; a first deployment module, configured to deploy the target operating system in at least one second server using the first file transfer protocol server, and enable a first target server in the customized operating system environment to obtain an image of the target operating system, wherein the first target server is selected from the at least one second server on which the target operating system is deployed; A second establishing module, used to enable the first target server in the customized operating system environment to establish a second file transfer protocol server corresponding to the image of the target operating system; The second deployment module is used to deploy the target operating system in the first server by using the second file transfer protocol server.

9. An operating system deployment device, comprising: A first startup module, used to start into a customized operating system environment in response to a first startup instruction sent by a remote server; A first obtaining module, used to obtain the image of the target operating system to be deployed sent by the remote server; A third establishment module is used to respond to the first establishment instruction sent by the remote server, and to establish a first file transfer protocol server corresponding to the image of the target operating system in the customized operating system environment, so that at least one second server uses the first file transfer protocol server to deploy the target operating system on itself; A third deployment module is used to respond to the first deployment instruction sent by the remote server, and use the second file transfer protocol server to deploy the target operating system on itself, the second file transfer protocol server is established in the first target server in the customized operating system environment, the second file transfer protocol server corresponds to the image of the target operating system, and the first target server is selected from at least one second server on which the target operating system is deployed.

10. An operating system deployment device, comprising: a fourth deployment module, configured to deploy the target operating system in itself using the first file transfer protocol server in response to the second deployment instruction sent by the remote server, the first file transfer protocol server corresponding to the image of the target operating system to be deployed, and the first file transfer protocol server established in the first server in the customized operating system environment; A second startup module, configured to start into the customized operating system environment in response to a second startup instruction sent by the remote server; a second obtaining module, configured to obtain the image of the target operating system by using the first file transfer protocol server in response to a second establishing instruction sent by the remote server; The fourth establishment module is used to establish a second file transfer protocol server corresponding to the image of the target operating system in the customized operating system environment, so that the first server uses the second file transfer protocol server to deploy the target operating system on itself.