Server deployment method and device, equipment, medium and program product

By building a directional boot queue and generating a virtual boot environment, the problem of low installation efficiency of directional operating system in large-scale server installation is solved, automated deployment is achieved, and efficiency and compatibility is improved.

CN119597357APending Publication Date: 2025-03-11INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411704920.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-26
Publication Date
2025-03-11

AI Technical Summary

Technical Problem

In large-scale server installation scenarios, it is difficult for the existing technology to efficiently implement the installation of targeted operating systems for several servers, resulting in low efficiency in automated boot installation and deployment.

Method used

By building a directional boot queue, a virtual boot environment is generated for the target host, and the necessary information for directional installation is pushed according to the device information, the boot image file and operating system installation menu are determined to realize automatic deployment of the server.

Benefits of technology

Improves server installation efficiency, realizes targeted installation of specified operating systems for hosts with specific MAC address, is compatible with multiple types of boots, reduces space usage, and improves the degree of deployment automation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119597357A_ABST
    Figure CN119597357A_ABST
Patent Text Reader

Abstract

The invention provides a server deployment method which can be applied to the technical field of cloud computing. The server deployment method comprises the following steps: in response to a server deployment instruction initiated by a user, constructing a directional guide queue according to directional installation demand information; generating a virtual guide environment for a target host of the directional guide queue; when it is determined that any target host accesses the network, obtaining device information of the target host from a directional guide queue; pushing directional installation necessary information to a virtual guide environment corresponding to the target host according to the equipment information; determining a guide mirror image file and an operation system installation menu according to the directional installation necessary information; and pushing the guide mirror image file and an operating system installation menu to the target host, wherein the guide mirror image file and the operating system installation menu are used for realizing automatic deployment of a server. The invention further provides a server deployment device and equipment, a storage medium and a program product.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of cloud computing, specifically to the field of server environment delivery technology, and more specifically to a server deployment method, apparatus, device, medium, and program product. Background Art

[0002] Enterprise data centers typically utilize a medium-to-large number of servers. Automated installation mechanisms are often introduced during installation to deliver the server environment. In practice, PXE (Preboot Execution Environment) boot installation is the primary method. In large-scale server installation scenarios, there's a need to install operating systems on specific servers. However, due to the differences in configuration files required by different boot loader types, highly integrated, global automated boot installation deployments are inefficient.

[0003] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute prior art known to ordinary technicians in the field. Summary of the Invention

[0004] In view of the above problems, the present disclosure provides a server deployment method, apparatus, device, medium and program product for improving server installation efficiency.

[0005] According to a first aspect of the present disclosure, there is provided a server deployment method, comprising: in response to a server deployment instruction initiated by a user, constructing a targeted guidance queue according to targeted installation requirement information;

[0006] generating a virtual boot environment for a target host of the directed boot queue;

[0007] When it is determined that any of the target hosts is connected to the network, obtaining device information of the target host from the directional guidance queue;

[0008] Pushing necessary information for directional installation to the virtual boot environment corresponding to the target host according to the device information;

[0009] Determining the boot image file and the operating system installation menu according to the necessary information for directional installation; and

[0010] The boot image file and the operating system installation menu are pushed to the target host, where the boot image file and the operating system installation menu are used to implement automatic deployment of the server.

[0011] According to an embodiment of the present disclosure, the targeted installation requirement information includes device information of the host to be installed and specified operating system information, wherein the device information includes server architecture information and a media access control address; and constructing a targeted boot queue based on the targeted installation requirement information includes:

[0012] Building a directed boot queue under the Dynamic Host Configuration Protocol service; and

[0013] If it is determined according to the specified operating system information that the host to be installed has a directional installation requirement, the media access control address of the host to be installed is used as an element of the directional guidance queue.

[0014] According to an embodiment of the present disclosure, when it is determined that any of the target hosts has accessed the network, the method further includes:

[0015] A preset address is allocated to the target host through a dynamic host configuration protocol service.

[0016] According to an embodiment of the present disclosure, the method further includes:

[0017] If it is determined that the host to be installed does not require targeted installation, determining a guide according to the server architecture information; and

[0018] Push the configuration menu of the boot loader to the host to be installed.

[0019] According to an embodiment of the present disclosure, determining the boot image file and the operating system installation menu according to the necessary information for targeted installation includes:

[0020] Determining a configuration menu based on the necessary information for the targeted installation; and

[0021] The boot image file and the operating system installation menu are determined according to the configuration menu.

[0022] According to an embodiment of the present disclosure, it further includes:

[0023] After determining that the directed installation is complete, deleting the completed host element in the directed boot queue; and

[0024] Delete the virtual boot environment corresponding to the host where the installation is complete.

[0025] A second aspect of the present disclosure provides a server deployment apparatus, comprising: a directed guidance queue construction module, configured to construct a directed guidance queue according to directed installation requirement information in response to a server deployment instruction initiated by a user;

[0026] A virtual boot environment generation module, configured to generate a virtual boot environment for a target host of the directed boot queue;

[0027] an acquisition module, configured to acquire device information of the target host from a directional boot queue when it is determined that any of the target hosts has accessed the network;

[0028] A first push module is configured to push necessary information for directional installation to a virtual boot environment corresponding to the target host according to the device information;

[0029] a determination module, configured to determine a boot image file and an operating system installation menu according to the necessary information for directional installation; and

[0030] The second push module is used to push the boot image file and the operating system installation menu to the target host, and the boot image file and the operating system installation menu are used to realize automatic deployment of the server.

[0031] According to an embodiment of the present disclosure, the targeted installation requirement information includes device information of the host to be installed and specified operating system information, wherein the device information includes server architecture information and a media access control address; the targeted boot queue construction module includes:

[0032] A first construction submodule is configured to construct a directed boot queue under a dynamic host configuration protocol service; and

[0033] The second construction submodule is configured to use the media access control address of the host to be installed as an element of the directional guidance queue if it is determined according to the specified operating system information that the host to be installed has a directional installation requirement.

[0034] According to an embodiment of the present disclosure, the device further includes:

[0035] The address allocation module is used to allocate a preset address to the target host through a dynamic host configuration protocol service.

[0036] According to an embodiment of the present disclosure, the device further includes:

[0037] a bootloader determination module, configured to determine a bootloader based on the server architecture information if it is determined that the host to be installed does not require targeted installation; and

[0038] The third push module is used to push the configuration menu of the guide to the host to be installed.

[0039] According to an embodiment of the present disclosure, the determining module includes:

[0040] A first determining submodule is configured to determine a configuration menu according to the necessary information for directional installation; and

[0041] The second determining submodule is configured to determine a boot image file and an operating system installation menu according to the configuration menu.

[0042] According to an embodiment of the present disclosure, the device further includes:

[0043] A first deleting module, after determining that the directed installation is completed, deletes the host element in the directed boot queue that has completed the installation; and

[0044] The second deletion module is used to delete the virtual boot environment corresponding to the host that has completed the installation.

[0045] A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more computer programs, wherein the one or more processors execute the one or more computer programs to implement the steps of the above method.

[0046] The fourth aspect of the present disclosure further provides a computer-readable storage medium having a computer program or instructions stored thereon, which implements the steps of the above method when the computer program or instructions are executed by a processor.

[0047] The fifth aspect of the present disclosure further provides a computer program product, comprising a computer program or instructions, which implement the steps of the above method when executed by a processor.

[0048] The server deployment method provided by the embodiment of the present invention generates an independent virtual boot environment for each target host. By generating a virtual boot environment, the targeted installation of a specified operating system for a host with a specific MAC address is achieved, achieving more refined control and customized deployment, and being compatible with multiple types of boot loader. Since the virtual environment does not copy the boot loader entity but points to the entity, the space occupied is reduced. By constructing a targeted boot queue, the degree of automation of the deployment is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] The above contents and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:

[0050] Figure 1 Schematically illustrates an application scenario diagram of the server deployment method, apparatus, device, medium, and program product according to an embodiment of the present disclosure;

[0051] Figure 2 Schematically shows a server deployment flow chart according to an embodiment of the present disclosure;

[0052] Figure 3 The following schematically shows a flow chart of a server deployment method according to an embodiment of the present disclosure;

[0053] Figure 4 Schematically shows a flow chart of a server deployment method according to another embodiment of the present disclosure;

[0054] Figure 5 Schematically shows a flow chart of a server deployment method according to yet another embodiment of the present disclosure;

[0055] Figure 6 Schematically shows a structural block diagram of a server deployment device according to an embodiment of the present disclosure; and

[0056] Figure 7 A block diagram of an electronic device suitable for implementing a server deployment method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0057] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are merely exemplary and are not intended to limit the scope of the present disclosure. In the detailed description below, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0058] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise," "include," etc. used herein indicate the presence of the features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.

[0059] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.

[0060] When expressions such as "at least one of A, B, and C, etc." are used, they should generally be interpreted in accordance with the meaning commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0061] First, the terms that appear in the embodiments of the present disclosure are explained:

[0062] PXE boot: Preboot Execution Environment is a technology that allows a computer to boot an operating system over a network.

[0063] DHCP (Dynamic Host Configuration Protocol) service: Dynamic Host Configuration Protocol service is a network protocol used to automatically assign IP addresses to devices on the network.

[0064] TFTP (Trivial File Transfer Protocol, TFTP) service: Simple File Transfer Protocol is a simple file transfer protocol, commonly used to transfer boot files during the PXE boot process.

[0065] MAC (Media Access Control address, MAC) address: Media Access Control address is the unique identification code of a network device.

[0066] Virtual boot environment: refers to a virtual environment for installing a specific operating system derived from each boot loader under the TFTP service. Each environment is marked with the MAC address of the target host.

[0067] Bootloader: Software used to boot an operating system, usually included in a boot image.

[0068] Boot image group: refers to a collection of multiple boot devices, which is used to push different boot images according to different needs.

[0069] Directed boot queue: A queue built under the DHCP service that stores the MAC addresses of servers to be installed in a directed manner, thus implementing directed installation.

[0070] PXE automated boot installation relies on network DHCP self-discovery and automatic media push, typically sufficient for a single server installation. However, in large-scale server installation scenarios, there's a need to install an operating system on specific servers. Booting each server individually and selecting the OS from the installation menu is inefficient. This is typically achieved by specifying the MAC address and operating system for the DHCP service and bootloader on the PXE server. Because bootloaders of various architectures require different configuration files, and other bootloader types are expected to emerge in the future, these different bootloaders may employ different configuration methods to adapt to MAC address matching logic. Consequently, targeted installation implementations will vary significantly across different bootloaders, hindering the deployment of highly integrated, global automated boot installations.

[0071] Based on the above technical problems, an embodiment of the present disclosure provides a server deployment method, which includes: in response to a server deployment instruction initiated by a user, building a targeted boot queue according to targeted installation requirement information; generating a virtual boot environment for the target host of the targeted boot queue; when it is determined that any of the target hosts is connected to the network, obtaining the device information of the target host from the targeted boot queue; pushing necessary information for targeted installation to the virtual boot environment corresponding to the target host according to the device information; determining a boot image file and an operating system installation menu according to the necessary information for targeted installation; and pushing the boot image file and the operating system installation menu to the target host, wherein the boot image file and the operating system installation menu are used to realize automatic deployment of the server.

[0072] Figure 1 The application scenario diagram of the server deployment method, apparatus, device, medium and program product according to the embodiments of the present disclosure is schematically shown.

[0073] like Figure 1 As shown, the application scenario 100 according to this embodiment may include a large-scale server installation scenario. A network 104 is used as a medium for providing a communication link between a first terminal device 101, a second terminal device 102, a third terminal device 103, and a server 105. The network 104 may include various connection types, such as wired or wireless communication links or fiber optic cables.

[0074] A user may use a first terminal device 101, a second terminal device 102, or a third terminal device 103 to interact with a server 105 via a network 104 to receive or send messages, etc. Various communication client applications may be installed on the first terminal device 101, the second terminal device 102, or the third terminal device 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (for example only).

[0075] The first terminal device 101 , the second terminal device 102 , and the third terminal device 103 may be various electronic devices having display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.

[0076] The server 105 may be a server that provides various services, such as a background management server (for example only) that supports websites browsed by users using the first terminal device 101, the second terminal device 102, and the third terminal device 103. The background management server may analyze and process received data such as user requests, and feed back processing results (e.g., web pages, information, or data obtained or generated based on user requests) to the terminal devices.

[0077] It should be noted that the server deployment method provided in the embodiment of the present disclosure can generally be executed by the server 105. Accordingly, the server deployment device provided in the embodiment of the present disclosure can generally be set in the server 105. The server deployment method provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105. Accordingly, the server deployment device provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105.

[0078] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is merely illustrative. Any number of terminal devices, networks and servers may be provided as required. Figure 1 The application scenarios shown are merely examples of application scenarios and system architectures to which the embodiments of the present disclosure can be applied, to help those skilled in the art understand the technical content of the present disclosure, but do not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments, or scenarios. It should be noted that the server deployment method and apparatus determined in the present disclosure can be used in the financial field, as well as in any field other than the financial field, and the application field of the server deployment method and apparatus determined in the present disclosure is not limited.

[0079] Figure 2 A server deployment flow chart according to an embodiment of the present disclosure is schematically shown.

[0080] like Figure 2As shown, the host to be installed pushes device information and requests an address to the DHCP server. The DHCP server pre-assigns an address to each host to be installed, which is then used to push the boot image. The DHCP server places hosts requiring targeted installation into a targeted boot queue. Elements in the queue are represented by the MAC address of the host's network interface card, which connects to the installation network. Each host has a one-to-one correspondence with each queue element. When a specific operating system needs to be installed on a host with a specific MAC address, this solution derives a virtual boot environment from each boot image cluster under the TFTP service. Each virtual boot environment is labeled with the target host's MAC address and has a one-to-one correspondence with the target host. The configuration within the virtual environment is independent of the configuration within the boot image cluster. Configuration files are then tailored from multiple candidate systems to a specific operating system. The boot image is then sent to the target host along with this configuration menu. Furthermore, the virtual boot environment originates from the actual boot image within the boot image cluster, not a copy of the boot image. Therefore, even in large-scale installations, minimal space is used. When the host with the specified MAC is connected to the network, the DHCP service will find this queue element based on the MAC and assign a preset IP address. The information of this targeted installation will be pushed directly to the virtual boot environment of the specified boot loader. The specified operating system installation menu and boot image will then be pushed to the target host by the TFTP service. At this time, the host to be installed can directly boot and install the specified system without the user making a selection.

[0081] The following will be based on Figure 1 The scene described by Figures 3 to 6 The server deployment method of the disclosed embodiment is described in detail.

[0082] Figure 3 The flowchart of the server deployment method according to the embodiment of the present disclosure is schematically shown.

[0083] like Figure 3 As shown, the server deployment method of this embodiment includes operations S310 to S330, and the transaction processing method can be executed by a server or other computing devices.

[0084] In operation S310 , in response to a server deployment instruction initiated by a user, a targeted boot queue is constructed according to targeted installation requirement information.

[0085] In operation S320, a virtual boot environment is generated for the target host of the directed boot queue.

[0086] According to an embodiment of the present disclosure, the directional installation requirement information includes device information of the host to be installed and specified operating system information, and the device information includes server architecture information and a media access control address.

[0087] According to an embodiment of the present disclosure, constructing a directed boot queue based on directed installation requirement information includes: constructing a directed boot queue under a dynamic host configuration protocol service; and if it is determined based on the specified operating system information that there is a directed installation requirement for the host to be installed, using the media access control address of the host to be installed as an element of the directed boot queue.

[0088] In one example, a user configures server deployment on the front-end, such as which servers require specific operating systems. In response to the user-initiated server deployment instruction, the system identifies target hosts requiring the specified operating system based on the targeted installation requirement information and adds these hosts to a pre-established targeted boot queue. The targeted installation requirement information indicates whether the current host requires the specified operating system. This information is determined by the user during front-end configuration, so all hosts in the targeted boot queue require a targeted installation.

[0089] In one example, a corresponding virtual boot environment is generated for each target host in a directed boot queue. Each virtual boot environment is tagged with the target host's MAC address and corresponds to the target host. Because the queue and virtual boot environment are generated independently, there is no need to modify the same configuration file, thus eliminating any contention issues and facilitating the parallel generation and removal of installation policies.

[0090] In operation S330 , when it is determined that any of the target hosts is connected to the network, device information of the target host is obtained from the directed boot queue.

[0091] In one example, when a host to be installed accesses the network, the DHCP server determines the target host's device information from the directed boot queue based on the host's MAC address information. The device information includes server architecture information and media access control address.

[0092] In operation S340 , necessary information for directional installation is pushed to the virtual boot environment corresponding to the target host according to the device information.

[0093] In one example, necessary information for targeted installation is pushed to the virtual boot environment based on device information of the target host to determine the target operating system that needs to be installed on the target host.

[0094] In operation S350, a boot image file and an operating system installation menu are determined according to the necessary information for targeted installation.

[0095] In operation S360, the boot image file and the operating system installation menu are pushed to the target host.

[0096] According to an embodiment of the present disclosure, the boot image file and the operating system installation menu are used to implement automatic deployment of the server.

[0097] In one example, when a host to be installed is connected to the network and it is determined that the host requires a targeted installation, that is, a specific operating system needs to be installed on a host with a specific MAC address, the necessary information for the targeted installation is pushed to the virtual boot environment corresponding to the host. Based on this information, the boot image file and operating system installation menu required to install the specified operating system are determined from each boot loader within the boot image group. The boot image file and operating system installation menu are pushed to the target host via the TFTP service. At this point, the host to be installed can directly boot and install the specified operating system without the user having to select it.

[0098] The server deployment method provided by the embodiment of the present invention generates an independent virtual boot environment for each target host. By generating a virtual boot environment, the targeted installation of a specified operating system for a host with a specific MAC address is achieved, achieving more refined control and customized deployment, and being compatible with multiple types of boot loader. Since the virtual environment does not copy the boot loader entity but points to the entity, the space occupied is reduced. By constructing a targeted boot queue, the degree of automation of the deployment is improved.

[0099] Figure 4 The flowchart of the server deployment method according to another embodiment of the present disclosure is schematically shown.

[0100] like Figure 4 As shown, the server deployment method of this embodiment also includes operations S410 to S460.

[0101] In operation S410 , in response to a server deployment instruction initiated by a user, a targeted boot queue is constructed according to targeted installation requirement information.

[0102] In operation S420, a virtual boot environment is generated for the target host of the directed boot queue.

[0103] The technical solutions and principles of operation S410 and operation S420 may refer to the aforementioned operation S310 and operation S320, and will not be repeated here.

[0104] In operation S430, when it is determined that any of the target hosts is connected to the network, a preset address is allocated to the target host through a dynamic host configuration protocol service.

[0105] In one example, any of the target hosts is a host in a directed boot queue. When it is determined that any of the target hosts is connected to the network, a preset address is assigned to the target host through the Dynamic Host Configuration Protocol service. The address is used to push the boot image file and operating system installation menu required for subsequent installation. The target host can download the boot image file and installation menu from the address.

[0106] In operation S440, necessary information for directional installation is pushed to the virtual boot environment corresponding to the target host according to the device information.

[0107] In operation S450, a configuration menu is determined according to the directional installation necessary information.

[0108] In operation S460, a boot image file and an operating system installation menu are determined according to the configuration menu.

[0109] In one example, device information, including server architecture information and a media access control (MAC) address, is pushed by the host. Based on the MAC address, the host locates the queue element in the targeted boot queue and determines the pre-assigned address. The targeted installation information, including the operating system to be installed on the target host, is then pushed to the virtual boot environment corresponding to the target host. Within the virtual boot environment, a configuration menu is determined based on the targeted installation information. The configuration within the virtual environment is independent of the configuration within the bootloader group. The configuration menu determines the corresponding boot image file and operating system installation menu. In this case, the configuration file is tailored from multiple candidate systems to a specific operating system. The bootloader sends this configuration menu to the target host. The specified operating system installation menu and boot image are then pushed to the target host via a TFTP service. The host can then directly boot and install the specified operating system without the user having to select it. By utilizing a derived virtual environment, the bootloader only requires a basic configuration read mode to complete its work, eliminating the need for users to delve into the complex configuration logic of various different bootloaders. This allows for future compatibility with domestic bootloaders, eliminating the need to modify program code for subsequent boot image updates. Simply configuring and generating a virtual boot environment is sufficient.

[0110] In operation S470, after it is determined that the directed installation is completed, the host element in the directed boot queue that has completed the installation is deleted.

[0111] In operation S480 , the virtual boot environment corresponding to the host where the installation is completed is deleted.

[0112] In one example, when the directed installation is completed, the element corresponding to the directed installation MAC tag is deleted from the directed installation queue of the DHCP service, and the virtual boot environment of the directed MAC tag is cleaned up under the TFTP service, thereby completing the cleanup work of this installation policy.

[0113] Figure 5 The flowchart of a server deployment method according to another embodiment of the present disclosure is schematically shown.

[0114] like Figure 5 As shown, the server deployment method of this embodiment further includes operations S510 to S520.

[0115] In operation S510 , if it is determined that the host to be installed does not require targeted installation, a boot loader is determined according to the server architecture information.

[0116] In operation S520 , the configuration menu of the boot loader is pushed to the host to be installed.

[0117] In one example, if it's determined that the host to be installed doesn't require targeted installation, the server architecture information is determined based on the device information pushed by the host. Global boot matching logic then determines a matching bootloader based on the server architecture information. The corresponding bootloader is selected from the bootloader pool and provisioned to the target server. The bootloader configuration menu now includes all candidate systems, which are then pushed to the host via TFTP.

[0118] The server deployment method provided by the embodiments of the present disclosure implements automated targeted installation and post-installation cleanup by constructing a targeted boot queue and cleanup mechanism, thereby improving the degree of deployment automation, reducing manual intervention, and increasing deployment flexibility and efficiency. By generating an independent virtual boot environment for each target host, since the virtual environment does not replicate the boot entity but instead points to the entity, it not only improves deployment flexibility but also reduces space usage. This method is compatible with mainstream and even future boot engines, and addresses all targeted installation requirements through unified logic, improving system compatibility and foresight. Compared to methods that directly modify configuration files under the boot image, this method has the advantages of efficient configuration and strong compatibility.

[0119] Based on the above server deployment method, the present disclosure also provides a server deployment device. Figure 6 The device is described in detail.

[0120] Figure 6 The structural block diagram of the server deployment device according to an embodiment of the present disclosure is schematically shown.

[0121] like Figure 6 As shown, the server deployment device 600 of this embodiment includes a directed boot queue construction module 610 , a virtual boot environment generation module 620 , an acquisition module 630 , a first push module 640 , a determination module 650 and a second push module 660 .

[0122] The directional guidance queue construction module 610 is used to respond to the server deployment instruction initiated by the user and construct a directional guidance queue according to the directional installation requirement information. In one embodiment, the directional guidance queue construction module 610 can be used to perform the operation S310 described above, which will not be repeated here.

[0123] The virtual boot environment generation module 620 is used to generate a virtual boot environment for the target host of the directed boot queue. In one embodiment, the virtual boot environment generation module 620 can be used to perform the operation S320 described above, which will not be repeated here.

[0124] The acquisition module 630 is used to acquire the device information of the target host from the directed boot queue when it is determined that any of the target hosts has accessed the network. In one embodiment, the acquisition module 630 can be used to perform the operation S330 described above, which will not be repeated here.

[0125] The first push module 640 is used to push the necessary information for the targeted installation to the virtual boot environment corresponding to the target host according to the device information. In one embodiment, the first push module 640 can be used to perform the operation S340 described above, which will not be repeated here.

[0126] The determination module 650 is used to determine the boot image file and the operating system installation menu according to the necessary information for the directional installation. In one embodiment, the determination module 650 can be used to perform the operation S350 described above, which will not be repeated here.

[0127] The second push module 660 is used to push the boot image file and the operating system installation menu to the target host, and the boot image file and the operating system installation menu are used to realize the automatic deployment of the server. In one embodiment, the second push module 660 can be used to perform the operation S360 described above, which will not be repeated here.

[0128] According to an embodiment of the present disclosure, the targeted installation requirement information includes device information of the host to be installed and specified operating system information, wherein the device information includes server architecture information and a media access control address; the targeted boot queue construction module includes:

[0129] The first construction submodule is used to construct a directed boot queue under the dynamic host configuration protocol service; in one embodiment, the first construction submodule can be used to perform the operation S310 described above, which will not be repeated here.

[0130] The second construction submodule is used to use the media access control address of the host to be installed as an element of the directed boot queue if it is determined based on the specified operating system information that the host to be installed has a directed installation requirement. In one embodiment, the second construction submodule can be used to perform operation S310 described above, which will not be repeated here.

[0131] According to an embodiment of the present disclosure, the device further includes:

[0132] The address allocation module is used to allocate a preset address to the target host through a dynamic host configuration protocol service. In one embodiment, the address allocation module can be used to perform the operation S430 described above, which will not be repeated here.

[0133] According to an embodiment of the present disclosure, the device further includes:

[0134] The boot loader determination module is used to determine the boot loader according to the server architecture information if it is determined that the host to be installed does not require targeted installation; in one embodiment, the boot loader determination can be used to perform the operation S510 described above, which will not be repeated here.

[0135] The third push module is used to push the configuration menu of the guide to the host to be installed. In one embodiment, the third push module can be used to perform the operation S520 described above, which will not be repeated here.

[0136] According to an embodiment of the present disclosure, the determining module includes:

[0137] The first determining submodule is used to determine the configuration menu according to the necessary information for directional installation. In one embodiment, the first determining submodule can be used to perform the operation S450 described above, which will not be repeated here.

[0138] The second determining submodule is configured to determine the boot image file and the operating system installation menu according to the configuration menu. In one embodiment, the second determining submodule may be configured to execute the operation S460 described above, which will not be described in detail herein.

[0139] According to an embodiment of the present disclosure, the device further includes:

[0140] After determining that the directed installation is completed, the first deletion module deletes the installed host element in the directed boot queue. In one embodiment, the first deletion module can be used to execute the operation S470 described above, which will not be repeated here.

[0141] The second deletion module is used to delete the virtual boot environment corresponding to the host that has completed the installation. In one embodiment, the second deletion module can be used to perform the operation S480 described above, which will not be repeated here.

[0142] According to embodiments of the present disclosure, any multiple modules among the construction module 610, virtual boot environment generation module 620, acquisition module 630, first push module 640, determination module 650, and second push module 660 may be combined into a single module, or any one of these modules may be split into multiple modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of other modules and implemented in a single module. According to embodiments of the present disclosure, at least one of the construction module 610, virtual boot environment generation module 620, acquisition module 630, first push module 640, determination module 650, and second push module 660 may be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application-specific integrated circuit (ASIC), or may be implemented in hardware or firmware through any other reasonable means of circuit integration or packaging, or implemented in any one of software, hardware, and firmware, or any appropriate combination thereof. Alternatively, at least one of the construction module 610, the virtual boot environment generation module 620, the acquisition module 630, the first push module 640, the determination module 650 and the second push module 660 can be at least partially implemented as a computer program module, which can perform corresponding functions when executed.

[0143] Figure 7 A block diagram of an electronic device suitable for implementing a server deployment method according to an embodiment of the present disclosure is schematically shown.

[0144] like Figure 7 As shown, the electronic device 900 according to an embodiment of the present disclosure includes a processor 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage unit 908 into a random access memory (RAM) 903. The processor 901 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 901 may also include onboard memory for caching purposes. The processor 901 may include a single processing unit or multiple processing units for performing different actions of the method flow according to the embodiment of the present disclosure.

[0145] Various programs and data required for the operation of the electronic device 900 are stored in the RAM 903. The processor 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. The processor 901 executes the various operations of the method flow according to the embodiment of the present disclosure by executing the programs in the ROM 902 and / or the RAM 903. It should be noted that the programs may also be stored in one or more memories other than the ROM 902 and the RAM 903. The processor 901 may also execute the various operations of the method flow according to the embodiment of the present disclosure by executing the programs stored in the one or more memories.

[0146] According to an embodiment of the present disclosure, electronic device 900 may further include an input / output (I / O) interface 905, which is also connected to bus 904. Electronic device 900 may also include one or more of the following components connected to I / O interface 905: an input section 906 including a keyboard, mouse, etc.; an output section 907 including devices such as a cathode ray tube (CRT), liquid crystal display (LCD), and speakers; a storage section 908 including a hard disk; and a communication section 909 including a network interface card such as a LAN card or modem. Communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to I / O interface 905 as needed. Removable media 911, such as a magnetic disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed in drive 910 as needed, so that computer programs read from the removable media can be installed into storage section 908 as needed.

[0147] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments, or may exist independently and not be incorporated into the device / apparatus / system. The computer-readable storage medium carries one or more programs, and when executed, implements the method according to the embodiments of the present disclosure.

[0148] According to an embodiment of the present disclosure, a computer-readable storage medium may be a non-volatile computer-readable storage medium, and may include, for example, but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. For example, according to an embodiment of the present disclosure, a computer-readable storage medium may include the ROM 902 and / or RAM 903 described above, and / or one or more memories other than ROM 902 and RAM 903.

[0149] The embodiments of the present disclosure also include a computer program product, which includes a computer program containing program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the server deployment method provided by the embodiments of the present disclosure.

[0150] The computer program executes the above functions defined in the system / device of the embodiment of the present disclosure when the processor 901 executes the computer program. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.

[0151] In one embodiment, the computer program may be stored on a tangible storage medium such as an optical storage device or a magnetic storage device. In another embodiment, the computer program may be transmitted and distributed in the form of a signal on a network medium, downloaded and installed via the communication portion 909, and / or installed from a removable medium 911. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to wireless, wired, or any suitable combination thereof.

[0152] In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 909, and / or installed from a removable medium 911. When the computer program is executed by the processor 901, the above-described functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the systems, devices, means, modules, units, etc. described above can be implemented by computer program modules.

[0153] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computer programs can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, languages ​​such as Java, C++, Python, "C" or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect via the Internet).

[0154] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the above-mentioned module, program segment, or a part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0155] Those skilled in the art will appreciate that the features described in the various embodiments of the present disclosure may be combined and / or coupled in various ways, even if such combinations or couplings are not explicitly described in the present disclosure. In particular, the features described in the various embodiments of the present disclosure may be combined and / or coupled in various ways without departing from the spirit and teachings of the present disclosure. All such combinations and / or couplings fall within the scope of the present disclosure.

[0156] The above describes the embodiments of the present disclosure. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although each embodiment has been described separately above, this does not mean that the measures in each embodiment cannot be advantageously used in combination. Without departing from the scope of the present disclosure, those skilled in the art may make various substitutions and modifications, which should all fall within the scope of the present disclosure.

Claims

1. A server deployment method, characterized in that: The method comprises: In response to a server deployment instruction initiated by a user, a directional guidance queue is constructed according to directional installation requirement information; generating a virtual boot environment for a target host of the directed boot queue; When it is determined that any of the target hosts is connected to the network, obtaining device information of the target host from the directional guidance queue; Pushing necessary information for directional installation to a virtual boot environment corresponding to the target host according to the device information; Determining the boot image file and the operating system installation menu according to the necessary information for directional installation; and The boot image file and the operating system installation menu are pushed to the target host, and the boot image file and the operating system installation menu are used to realize automatic deployment of the server.

2. The method according to claim 1, characterized in that The directional installation requirement information includes device information of the host to be installed and specified operating system information, and the device information includes server architecture information and a media access control address; and constructing a directional boot queue according to the directional installation requirement information includes: Building a directed boot queue under a Dynamic Host Configuration Protocol service; and If it is determined according to the specified operating system information that the host to be installed has a directional installation requirement, the media access control address of the host to be installed is used as an element of the directional guidance queue.

3. The method according to claim 2, characterized in that When it is determined that any of the target hosts is connected to the network, the method further includes: A preset address is allocated to the target host through a dynamic host configuration protocol service.

4. The method according to claim 3, characterized in that The method further comprises: If it is determined that the host to be installed does not require directional installation, determining a guide according to the server architecture information; and Push the configuration menu of the boot device to the host to be installed.

5. The method according to claim 1, characterized in that: Determining the boot image file and the operating system installation menu according to the necessary information for directional installation includes: Determining a configuration menu according to the necessary information for directional installation; and The boot image file and the operating system installation menu are determined according to the configuration menu.

6. The method according to any one of claims 1 to 5, characterized in that Also includes: After determining that the targeted installation is completed, delete the host element in the targeted boot queue that has completed the installation; as well as Delete the virtual boot environment corresponding to the host where the installation is completed.

7. A server deployment device, characterized in that: The device comprises: A directional guidance queue construction module, used to respond to a server deployment instruction initiated by a user and to construct a directional guidance queue according to directional installation requirement information; A virtual boot environment generation module, used for generating a virtual boot environment for a target host of the directional boot queue; An acquisition module, used for acquiring device information of the target host from a directional guidance queue when it is determined that any of the target hosts is connected to the network; A first push module, configured to push necessary information for directional installation to a virtual boot environment corresponding to the target host according to the device information; a determination module, configured to determine a boot image file and an operating system installation menu according to the necessary information for directional installation; and The second push module is used to push the boot image file and the operating system installation menu to the target host, and the boot image file and the operating system installation menu are used to realize automatic deployment of the server.

8. An electronic device comprising: one or more processors; a memory for storing one or more computer programs, It is characterized in that the one or more processors execute the one or more computer programs to implement the steps of the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program or instruction stored thereon, characterized in that: When the computer program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.