Bare metal server deployment method and device, computer equipment and storage medium
By using intelligent network cards to generate configuration images and mount system cloud disks in bare metal server deployment, the problem of low deployment efficiency of bare metal servers in the existing technology is solved, and an efficient deployment process without the need to deploy the network is achieved, which is suitable for large-scale scenarios.
Patent Information
- Application Number
- CN202411737289.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-02-25
AI Technical Summary
The existing bare metal server deployment method has the problem of insufficient delivery efficiency in large-scale deployment scenarios, especially when facing network fluctuations or IP conflicts, deployment is prone to failure and is not applicable to latency-sensitive services.
By transmitting the configuration information of the server to be deployed to the smart network card, it generates a configuration image, and sends a system image request to the storage service to obtain the storage information of the system image, mounts the system cloud disk to the smart network card, and finally sends a restart command to the host to complete the deployment.
This method simplifies the deployment process of bare metal servers, avoids dependence on the deployment network, improves deployment delivery efficiency, reduces mirror acquisition time, and is suitable for large-scale bare metal server deployment.
Smart Images

Figure CN119512579A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of resource management technology, and in particular to a bare metal server deployment method, apparatus, computer equipment, storage medium, and computer program product. Background Art
[0002] With the development of cloud computing, more and more businesses have the need to move to the cloud. Most of the existing bare metal servers are installed through the network. You need to wait for the server to load an intermediate image and then install it on the host from the intermediate image. When installing, you need to mount the deployment network first. If you encounter network fluctuations or IP conflicts, the deployment will fail and you need to wait for the network to recover before deploying.
[0003] Therefore, it is difficult to deploy and maintain bare metal servers in large-scale deployment scenarios. If there are services that are sensitive to latency, the bare metal server may not be available. Based on this, the deployment method of bare metal servers in the related art has the problem of insufficient delivery efficiency. Summary of the invention
[0004] Based on this, it is necessary to provide a bare metal server deployment method, apparatus, computer equipment, computer-readable storage medium and computer program product that can improve the delivery efficiency of bare metal servers in response to the above technical problems.
[0005] In a first aspect, the present application provides a bare metal server deployment method. The method comprises:
[0006] Transmitting the configuration information of the server to be deployed to the smart network card corresponding to the server to be deployed, so that the smart network card generates a configuration image based on the configuration information;
[0007] Sending a system image request to a storage service so that the storage service obtains the system image to be deployed from the image service, and receiving storage information corresponding to the system image to be deployed returned by the storage service; the storage service is a component of the system cloud disk;
[0008] Sending the storage information to the smart network card so that the system cloud disk corresponding to the storage information is mounted in the smart network card;
[0009] Send a restart instruction to the host machine of the server to be deployed, so that the host machine completes the deployment based on the configuration image in the smart network card and the system image in the system cloud disk.
[0010] In one embodiment, the transmitting the configuration information of the server to be deployed to the smart network card corresponding to the server to be deployed so that the smart network card generates a configuration image based on the configuration information includes:
[0011] Encrypting the configuration information of the server to be deployed, and transmitting the encrypted configuration information to the smart network card corresponding to the server to be deployed through a message queue, so that the smart network card decrypts the configuration information, and processes the decrypted configuration information through an image generation tool to obtain a configuration image;
[0012] The configuration information includes system information and user information. The system information includes at least a user name, a password and an ssh password. The user information includes at least a name of the software to be installed and operation and maintenance instructions.
[0013] In one embodiment, sending a system image request to a storage service so that the storage service obtains the system image to be deployed from the image service, and receiving storage information corresponding to the system image to be deployed returned by the storage service, includes:
[0014] Upon receiving a system deployment request sent by a user terminal, sending a block storage creation request and a system image request to a storage service corresponding to the system cloud disk, so that the storage service creates a block storage device through the block storage creation request, and copies the system image to be deployed from the image service to the block storage device through the system image request;
[0015] Receive storage information of the block storage device returned by the storage service.
[0016] In one embodiment, the sending the storage information to the smart network card so that the system cloud disk corresponding to the storage information is mounted in the smart network card includes:
[0017] The storage information is sent to the smart network card so that the smart network card applies for block storage resources for storing the system image based on the storage information; the block storage device of the system cloud disk mounts the system image to be deployed on the smart network card through the block storage resources.
[0018] In one embodiment, sending a restart instruction to the host machine of the server to be deployed so that the host machine completes the deployment based on the configuration image in the smart network card and the system image in the system cloud disk includes:
[0019] A restart instruction is sent to the host machine of the server to be deployed through out-of-band management, so that after the host machine restarts, the configuration image in the smart network card is loaded by executing the installation script, and the system image is deployed based on the configuration image to obtain a host machine that has completed deployment.
[0020] In one embodiment, after the host machine completes deployment based on the configuration image in the smart network card and the system image in the system cloud disk, the method further includes:
[0021] When receiving a system reinstallation request sent by a user terminal, sending an uninstallation instruction to the smart network card, so that the smart network card uninstalls the configuration image and the mounted system cloud disk based on the uninstallation instruction;
[0022] Sending a reinstallation instruction to the system cloud disk so that the system cloud disk creates a block storage device to be reinstalled, and obtaining the system image to be reinstalled from the image service through the block storage device to be reinstalled;
[0023] When the system image to be reinstalled is mounted on the smart network card and the smart network card has generated a configuration image to be reinstalled, a restart instruction is sent to the host machine of the server to be deployed, so that the host machine completes the redeployment based on the configuration image to be reinstalled in the smart network card and the system image to be reinstalled in the system cloud disk; wherein the configuration image to be reinstalled is determined based on the system reinstallation request.
[0024] In one embodiment, after the host machine completes deployment based on the configuration image in the smart network card and the system image in the system cloud disk, the method further includes:
[0025] When receiving a configuration update request sent by a user terminal, sending the configuration to be updated in the configuration update request to the smart network card, so that the smart network card generates a corresponding configuration image to be updated based on the configuration to be updated, and returns update completion information;
[0026] When the update completion information is received, a restart instruction is sent to the host machine of the server to be deployed, so that the host machine completes the configuration update based on the configuration image to be updated in the smart network card.
[0027] In a second aspect, the present application also provides a bare metal server deployment device. The device includes:
[0028] A configuration information transmission module, used to transmit the configuration information of the server to be deployed to the smart network card corresponding to the server to be deployed, so that the smart network card generates a configuration image based on the configuration information;
[0029] A storage information receiving module, used to send a system image request to a storage service so that the storage service obtains the system image to be deployed from the image service, and receives storage information corresponding to the system image to be deployed returned by the storage service; the storage service is a component of the system cloud disk;
[0030] A storage information sending module, used to send the storage information to the smart network card, so that the system cloud disk corresponding to the storage information is mounted in the smart network card;
[0031] The restart instruction sending module is used to send a restart instruction to the host machine of the server to be deployed, so that the host machine completes the deployment based on the configuration image in the smart network card and the system image in the system cloud disk.
[0032] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the method described in the first aspect are implemented.
[0033] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.
[0034] In a fifth aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.
[0035] The above bare metal server deployment method, device, computer equipment, storage medium and computer program product, by sending corresponding configuration information to the smart network card of the server to be deployed, enables the smart network card to generate a configuration image according to the configuration information. The host machine of the server to be deployed can be deployed later by loading the configuration image, simplifying the deployment process, and no network deployment is required. In addition, the bare metal platform can send a system image request to the storage service in the system cloud disk, so that the storage service obtains the system image corresponding to the system image request from the image service, and stores the system image in the storage service. The storage service can return the storage information corresponding to the system image. After receiving the storage information, the bare metal platform can send the storage information to the smart network card of the server to be deployed, and the smart network card can mount the corresponding system cloud disk to the server to be deployed according to the storage information. At this time, the server to be deployed does not need to apply to the image service to download the required system image, which reduces the time for image acquisition, and can directly obtain the system image from the system cloud disk. Finally, the bare metal platform sends a restart instruction to the host machine of the server to be deployed. After the host machine restarts, it will read the configuration image and load the system image to complete the deployment, which can improve the deployment delivery efficiency of each bare metal server without mounting the deployment network. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0037] FIG1 is an application environment diagram of a bare metal server deployment method according to an embodiment;
[0038] FIG2 is a schematic diagram of a process of deploying a bare metal server in one embodiment;
[0039] FIG3 is a schematic diagram of the architecture of a bare metal server deployment method in one embodiment;
[0040] FIG4 is a schematic diagram of a process of deploying a bare metal server in another embodiment;
[0041] FIG5 is a structural block diagram of a bare metal server deployment device in one embodiment;
[0042] FIG. 6 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0044] The bare metal server deployment method provided in the embodiment of the present application can be applied to the application environment shown in Figure 1. Among them, the terminal 102 communicates with the bare metal platform 104 through the network. The terminal 102 can send a deployment request, a redeployment request, or a configuration update request for the bare metal server to be deployed to the bare metal platform 104. According to the request sent by the terminal 102, the bare metal platform 104 can send a system image acquisition request to the system cloud disk 108, so that the system cloud disk 108 stores the system image, and the system cloud disk 108 can download the system image that meets the requirements in the image server 110 to the cloud disk according to the acquisition request.
[0045] The bare metal platform 104 simultaneously sends the configuration information in the request sent by the terminal 102 to the bare metal server to be deployed, and the bare metal server 106 can convert the configuration information into a configuration image. In addition, after downloading the system image, the system cloud disk 108 returns the storage information of the system image, and the bare metal platform 104 can send the storage information to the bare metal server 106, so that the system cloud disk 108 can be mounted on the bare metal server 106. Finally, the bare metal server 106 is deployed through the system image and the configuration image.
[0046] The terminal 102 may be, but is not limited to, various personal computers, laptops, smart phones, and tablet computers. The bare metal platform 104 may be implemented using an independent server or a server cluster consisting of multiple servers.
[0047] In an exemplary embodiment, as shown in FIG2 , a bare metal server deployment method is provided, which is described by taking the method applied to the bare metal platform 104 in FIG1 as an example, and includes the following steps S202 to S208 . Among them:
[0048] Step S202: Transmit the configuration information of the server to be deployed to the smart network card corresponding to the server to be deployed, so that the smart network card generates a configuration image based on the configuration information.
[0049] Among them, the smart network card DPU (Data Processing Unit) is a network card that can release the CPU computing power of the server when processing various services, and process network processing actions through the DPU. Smart network cards can support elastic hot swapping, and can dynamically add and delete elastic network cards and elastic cloud disks to increase the flexibility of bare metal servers. The server to be deployed is a bare metal server waiting for the system to be installed and deployed. The configuration information is the installation information and user information used to deploy the system. The configuration image is used to store the configuration information. The bare metal server is a hardware device that has the characteristics of a traditional physical server and the virtualization service function of cloud computing technology. It is a server that combines the advantages of hardware and software. The bare metal platform can be a bare metal control platform. The terminal can control the bare metal server through the bare metal platform, and interact with the storage, network, server, and smart network card at the same time.
[0050] Specifically, the bare metal platform can obtain the instance activation request sent by the terminal, and the instance activation request is used to perform initial installation and deployment on the server to be deployed. The instance activation request may include configuration information and required system image information. The bare metal platform can send the configuration information to the smart network card of the server to be deployed. The smart network card can generate a configuration image from the configuration information, thereby storing the configuration information in the smart network card in the form of a configuration image for subsequent deployment.
[0051] In one example, the bare metal platform can obtain the configuration information of the server to be deployed, and transmit the configuration information to the smart network card of the server to be deployed. After receiving the configuration information, the smart network card generates a configuration image corresponding to the configuration information through an image generation tool, and marks the configuration image to distinguish whether the configuration image has been consumed. If the subsequent configuration image is consumed, the mark is removed.
[0052] Step S204: Send a system image request to the storage service, so that the storage service obtains the system image to be deployed from the image service, and receives storage information corresponding to the system image to be deployed returned by the storage service.
[0053] Among them, the storage service is a component of the system cloud disk; the system cloud disk can include multiple storage services, each of which can store different system images and be used by various servers to be deployed. The system image request is used to obtain the system image required by the server to be deployed. The image service can be an independent server, and the image service can provide system images of various models, specifications, and sizes. The storage information corresponding to the system image is used to indicate the storage address and storage method of the system image. The storage information can be used to establish a communication connection between the system image and the server to be deployed through the storage address.
[0054] Specifically, the bare metal platform can determine the system image required for the server to be deployed based on the configuration information or instance activation request. The bare metal platform sends a system image request to any storage service in the system cloud disk, and the storage service can download the corresponding system image in the image service based on the system image request. The image server corresponding to the image service stores a large number of system images, and the storage service can download and store various images in the image service. Afterwards, when the storage service downloads and stores all the system images required for the server to be deployed, it can generate storage information for the system image when it is stored in the storage service, and return the storage information to the bare metal platform.
[0055] Step S206: Send the storage information to the smart network card so that the system cloud disk corresponding to the storage information is mounted in the smart network card.
[0056] Specifically, after receiving the storage information returned by the storage service, the bare metal platform can send the storage information to the smart network card. After receiving the storage information, the smart network card can establish a communication connection between the smart network card and the storage service according to the storage information, so that the system cloud disk containing the required system image is mounted in the smart network card. The server to be deployed can directly load the required system image through the smart network card.
[0057] Step S208: Send a restart instruction to the host machine of the server to be deployed, so that the host machine completes the deployment based on the configuration image in the smart network card and the system image in the system cloud disk.
[0058] The host machine refers to a physical computer or server that runs a virtual machine in virtualization technology. The restart instruction is used to restart the host machine.
[0059] Specifically, after the smart network card has generated a configuration image and mounted the system image in the smart network card through the system cloud disk, the bare metal platform can send a restart command to the host machine of the server to be deployed. After receiving the restart command, the host machine will restart. During the restart, it can automatically scan and identify the system cloud disk, and automatically read the configuration image to complete the system, network and automated operation and maintenance configuration, thereby completing the deployment of the bare metal server.
[0060] In the above bare metal server deployment method, by sending the corresponding configuration information to the smart network card of the server to be deployed, the smart network card generates a configuration image according to the configuration information. The host machine of the server to be deployed can be deployed later by loading the configuration image, simplifying the deployment process and eliminating the need to deploy a network. In addition, the bare metal platform can send a system image request to the storage service in the system cloud disk, so that the storage service obtains the system image corresponding to the system image request from the image service and stores the system image in the storage service. The storage service can return the storage information corresponding to the system image. After receiving the storage information, the bare metal platform can send the storage information to the smart network card of the server to be deployed, and the smart network card can mount the corresponding system cloud disk to the server to be deployed according to the storage information. At this time, the server to be deployed does not need to apply to the image service to download the required system image, which reduces the time for image acquisition and can directly obtain the system image from the system cloud disk. Finally, the bare metal platform sends a restart command to the host machine of the server to be deployed. After the host machine restarts, it will read the configuration image and load the system image to complete the deployment. This can improve the deployment delivery efficiency of each bare metal server without mounting the deployment network.
[0061] In an exemplary embodiment, the specific implementation process of the step of "transmitting the configuration information of the server to be deployed to the smart network card corresponding to the server to be deployed, so that the smart network card generates a configuration image based on the configuration information" includes:
[0062] The configuration information of the server to be deployed is encrypted and transmitted to the smart network card corresponding to the server to be deployed through a message queue, so that the smart network card decrypts the configuration information and processes the decrypted configuration information through an image generation tool to obtain a configuration image.
[0063] The configuration information includes system information and user information. The system information includes at least the user name, password and ssh password, and the user information includes at least the name of the software to be installed and operation and maintenance instructions.
[0064] Specifically, the bare metal platform can write system information into meta-data and user information into user-data. The bare metal platform can encrypt system information and user information through an asymmetric encryption algorithm and a public key, and encrypt and transmit the configuration information to the smart network card of the server to be deployed through a message queue, such as rabbitmq. After the smart network card receives the encrypted configuration information, it can decrypt the encrypted configuration information through the private key to obtain the decrypted configuration information. The smart network card can write the meta-data and user-data in the configuration information into a file, and use the image generation tool to generate the corresponding configuration image.
[0065] Optionally, after generating a configuration image corresponding to the configuration information, the Smart NIC can add a persistent storage mark to the configuration image. If the configuration image is consumed, the persistent storage mark can be removed. The configuration image with the persistent storage mark can be persistently stored in the Smart NIC. The persistent storage mark can increase the stability of the configuration image and prevent it from being deleted prematurely by the Smart NIC.
[0066] Optionally, after completing the consumption of the configuration image, the Smart NIC can generate a special tag corresponding to the consumption and return a message corresponding to the special tag to the bare metal platform. After receiving the message, the bare metal platform determines that the configuration information has been successfully consumed, thereby increasing the interaction between the bare metal platform and the Smart NIC and improving system stability.
[0067] In this embodiment, by separately configuring information as system information and user information and transmitting the encrypted configuration information through a message queue, the smart network card can decrypt the encrypted configuration information and use an image generation tool to generate a configuration image corresponding to the configuration information, thereby increasing the transmission security of the configuration information and the stability of the configuration information in the smart network card.
[0068] In an exemplary embodiment, the specific implementation process of the step of "sending a system image request to a storage service so that the storage service obtains the system image to be deployed from the image service, and receiving storage information corresponding to the system image to be deployed returned by the storage service" includes:
[0069] Upon receiving a system deployment request from a user terminal, a block storage creation request and a system image request are sent to the storage service corresponding to the system cloud disk, so that the storage service creates a block storage device through the block storage creation request, and copies the system image to be deployed from the image service to the block storage device through the system image request; and the storage information of the block storage device is received from the storage service.
[0070] The system deployment request is a request for deploying to a server to be deployed, and the system deployment request may also be referred to as an instance activation request. The block storage creation request is used to create a block storage space and store the required system image in the block storage space.
[0071] Specifically, after the bare metal platform obtains the instance activation request, it can determine the system image according to the requirements of the server to be deployed corresponding to the instance activation request. The bare metal platform will generate a system image request corresponding to the system image. The bare metal platform can send a block storage creation request and a system image request to the storage service of the system cloud disk. The storage service can generate a block storage device corresponding to the storage space according to the block storage creation request. The storage service can request and download the required system image from the image service according to the system image request, and store the downloaded data in the block storage device. After completing the download of the system image, the system image is stored in the block storage device of the storage service. The storage service can generate storage information of the system image and return it to the bare metal platform.
[0072] In this embodiment, the required system image can be downloaded from the image service through block storage creation requests and system image requests, and the system image is stored in the storage service, and the storage information corresponding to the system image is returned to the bare metal platform, which can avoid the interaction between the server to be deployed and the image service, and interact uniformly through the system cloud disk, thereby improving the efficiency of obtaining the system image.
[0073] In an exemplary embodiment, the specific implementation process of the step of "sending storage information to the smart network card so that the system cloud disk corresponding to the storage information is mounted in the smart network card" includes:
[0074] The storage information is sent to the smart network card, so that the smart network card applies for a block storage resource for storing the system image based on the storage information.
[0075] The block storage device of the system cloud disk mounts the system image to be deployed on the smart network card through the block storage resource. The block storage resource is the storage space in the smart network card, which is used to store the system image in the mounted system cloud disk.
[0076] Specifically, the bare metal platform sends the storage information returned by the storage service to the smart network card. The smart network card can apply for block storage resources in the smart network card according to the storage information, and mount the system image corresponding to the storage information on the block storage resource, thereby mounting the system cloud disk on the smart network card.
[0077] In one example, the bare metal platform can transmit storage information to the smart network card corresponding to the server to be deployed through a message queue, so that the smart network card calls Snic-sdk through Snic-agent. Snic-sdk is a smart network card driver management tool used to receive Snic-agent instructions and apply for Virtio-blk queue resources on the smart network card. Therefore, Snic-sdk can generate an application for Virtio-blk resources and mount the system cloud disk to the smart network card by calling Spdk.
[0078] Among them, Snic-agent is an intelligent network card management tool used to receive instructions from the bare metal platform and generate configuration images. Virtio-blk is an implementation of virtualized block storage based on the Virtio protocol. Virtio-blk can be presented as a virtual disk in a virtual machine. Spdk is a high-performance storage management tool used to mount virtio-blk and establish a connection with the storage gateway.
[0079] In this embodiment, by storing information in the smart network card, the smart network card can apply for block storage resources for the storage system image based on the storage information, and establish a connection between the system cloud disk and the smart network card through fast storage resources, so that the system cloud disk can be mounted to the smart network card, which can improve the stability and efficiency of the mounting.
[0080] In an exemplary embodiment, the specific implementation process of the step of "sending a restart instruction to the host machine of the server to be deployed so that the host machine completes the deployment based on the configuration image in the smart network card and the system image in the system cloud disk" includes:
[0081] A restart command is sent to the host of the server to be deployed through out-of-band management, so that after the host restarts, the installation script is executed to load the configuration image in the smart network card, and the system image is deployed based on the configuration image to obtain a host that has completed deployment.
[0082] Among them, out-of-band management refers to managing and monitoring the device through a management channel independent of the data network, which is not affected by the device's own operating system. The smart network card and the host machine use PCIE link communication. The host machine can mount the configuration image and the system image in the cloud disk system to establish a connection with the storage service.
[0083] Specifically, the bare metal platform sends a restart command to the host of the server to be deployed through the management channel corresponding to the out-of-band management. After the host restarts, the BIOS scans and identifies the system cloud disk, and automatically loads the configuration image in the smart network card. The host can automatically operate and maintain according to the configuration image. The host can deploy the system image according to the user information and system information in the configuration image. Finally, the system, network and automated operation and maintenance configuration are automatically completed.
[0084] In this embodiment, the host machine is restarted through a restart instruction, and the system image and configuration image are automatically read, thereby automatically executing the deployment process and executing the operation and maintenance instructions to complete the deployment of the host machine, which can improve the deployment efficiency of the host machine.
[0085] In an exemplary embodiment, after the step of "the host machine completes deployment based on the configuration image in the smart network card and the system image in the system cloud disk", the method further includes:
[0086] When a system reinstallation request is received from a user terminal, an uninstallation instruction is sent to the smart network card, so that the smart network card uninstalls the configuration image and the mounted system cloud disk based on the uninstallation instruction; a reinstallation instruction is sent to the system cloud disk, so that the system cloud disk creates a block storage device to be reinstalled, and obtains the system image to be reinstalled from the image service through the block storage device to be reinstalled; when the system image to be reinstalled is mounted on the smart network card and the smart network card has generated the configuration image to be reinstalled, a restart instruction is sent to the host machine of the server to be deployed, so that the host machine completes the redeployment based on the configuration image to be reinstalled in the smart network card and the system image to be reinstalled in the system cloud disk.
[0087] The configuration image to be reinstalled is determined based on a system reinstallation request, and the system reinstallation request is used to redeploy the system on the server to be deployed.
[0088] Specifically, the bare metal platform can receive a system reinstallation request sent by a user terminal. After receiving the system reinstallation request, an uninstallation instruction can be sent to the smart network card. The smart network card can uninstall the stored configuration image, uninstall the system cloud disk mounted on the smart network card, and disconnect the communication connection between the smart network card and the storage service.
[0089] After that, the bare metal platform can obtain the configuration information in the system reinstallation request. The bare metal platform can send a reinstallation instruction to the system cloud disk based on the configuration information and the configuration information of the currently deployed server. The storage service can recycle the block storage device corresponding to the previous system image based on the configuration information in the reinstallation instruction. In addition, the storage service can also create a block storage device to be reinstalled based on the system reinstallation request, and copy the required system image to be reinstalled from the image service through the block storage device to be reinstalled.
[0090] Optionally, the bare metal platform may send an IPMI power-on instruction to the server to be deployed through out-of-band management, so that the server to be deployed is in a power-on state.
[0091] Optionally, the bare metal platform can obtain the configuration information in the system reinstallation request, encrypt the configuration information using the public key of the encryption algorithm, and transmit the encrypted configuration information to the smart network card through the message queue. The smart network card can obtain the encrypted configuration information, decrypt it, and generate the configuration image to be reinstalled corresponding to the decrypted configuration information through the image generation tool.
[0092] When the system image to be reinstalled is mounted on the smart network card and the smart network card has generated the configuration image to be reinstalled, the bare metal platform can send a restart command to the host of the server to be deployed. The host can complete the redeployment based on the configuration image to be reinstalled in the smart network card and the system image to be reinstalled in the system cloud disk.
[0093] In this embodiment, an uninstall instruction is sent to the smart network card to uninstall the configuration image and disconnect the system cloud disk. After that, a new block storage device is recreated to determine the system image to be reinstalled. In addition, the configuration image to be reinstalled is re-determined. After determining the configuration image to be reinstalled and the system image to be reinstalled, the redeployment is completed by restarting the host machine, which can improve the deployment efficiency.
[0094] In an exemplary embodiment, after the step of "the host machine completes deployment based on the configuration image in the smart network card and the system image in the system cloud disk", the method further includes:
[0095] When a configuration update request is received from a user terminal, the configuration to be updated in the configuration update request is sent to the smart network card, so that the smart network card generates a corresponding configuration image to be updated based on the configuration to be updated, and returns update completion information; when the update completion information is received, a restart instruction is sent to the host machine of the server to be deployed, so that the host machine completes the configuration update based on the configuration image to be updated in the smart network card.
[0096] Specifically, the bare metal platform may receive a configuration update request sent by a user terminal. The bare metal platform may send the configuration to be updated in the configuration update request to the smart network card. The smart network card may generate a configuration image to be updated corresponding to the configuration to be updated through an image generation tool. The smart network card may return update completion information to the bare metal platform.
[0097] Optionally, Snic-agent on the smart network card applies for queue resources from Snic-sdk according to demand, and generates a corresponding Virtio-PF for the configuration image; Snic-agent mounts the configuration image to be updated through Spdk, and establishes a link with the storage service.
[0098] Afterwards, the bare metal platform can send a restart instruction to the host of the server to be deployed, so that the host restarts and reads the configuration image to be updated in the smart network card during the restart. Since the server to be deployed can directly obtain the system image from the system cloud disk, it can be deployed directly through the configuration image to be updated and the system image.
[0099] In this embodiment, by sending the configuration to be updated to the smart network card, and enabling the smart network card to generate a configuration image to be updated corresponding to the configuration to be updated, and then completing the configuration update by restarting the host machine, the configuration update efficiency and flexibility can be improved.
[0100] As shown in Figure 3, the specific implementation process of the above bare metal server deployment method is described in detail below in conjunction with a specific embodiment. First, the embodiment of this application includes multiple glossaries, including:
[0101] Smart NIC (DPU): A flexible and adaptable NIC that releases the CPU computing power of the server when paired with services, and delegates network processing actions to the DPU, thereby effectively saving costs. At the same time, Smart NIC supports elastic hot-swap, and can dynamically add and delete elastic NICs and elastic cloud disks, making bare metal servers more flexible and available.
[0102] Cloud-Init (CI): An open source tool for initializing server operating systems. Cloud-Init contains a series of scripts that can execute customized instructions required by users at different stages of system loading, including setting usernames, passwords, configuring networks, automatic operation and maintenance, and other functions.
[0103] PCI Express (PCIE): A bus used for high-speed devices inside a computer, which encodes and transmits data through the PCIE bus. PCIE is an extension of the PCI bus and introduces some new features compared to PCI, such as flow control, service management, and hot-plug support.
[0104] Virtio-blk: A virtualized block storage implementation based on the Virtio protocol. The Virtio-blk device is presented as a virtual disk in the virtual machine and communicates with the host through the PCIE bus.
[0105] Steel: Control plane, also known as bare metal control platform, through which users control bare metal servers and interact with storage / network, server BMC and smart network cards.
[0106] Snic-agent: A smart NIC management tool that receives Steel instructions and generates user configuration images.
[0107] Snic-sdk: A smart NIC driver management tool used to receive Snic-agent instructions and apply for Virtio-blk queue resources on the smart NIC.
[0108] Spdk: A high-performance storage management tool used to mount virtio-blk and establish a connection with the storage gateway. Since it runs in user mode, it can avoid the overhead of kernel context switching and interrupts.
[0109] Ceph: Provides storage services. Ceph is used to provide block storage (RBD) and object storage (OSD) services for bare metal servers.
[0110] Specifically, as shown in Figure 3, the image service Glance has uploaded multiple operating system images such as Ctyunos, Centos, Kylin, and Ubuntu. The system image can contain the basic functions of Linux, and the network configuration and other software can be freely customized by the user and support batch copying. After the user terminal determines the selected operating system, the bare metal platform can issue instructions to Ceph (storage service) to copy the system image required by the user terminal to the created block storage. It should be understood that the storage service only needs to copy the minimum image in the image service to Ceph, which improves the image installation speed.
[0111] Steel (bare metal platform) provides system information such as user name, password, ssh password, etc., written into meta-data, and user information such as the name of the software to be installed and the operation and maintenance instructions to be executed is written into user-data. Steel encrypts the above configuration information with a public key through an asymmetric encryption algorithm (such as RSA), and uses a message queue channel (such as rabbitmq) for the transmission process. The message queue channel can only be consumed through a specific account and password authentication, and after consumption, the consumer also needs to send a confirmation message with a special mark (a random ID generated by the sender) to determine that the consumption is successful. The unconsumed configuration information will be marked with "Durable" and persisted on the disk to ensure that the message will not be lost. Therefore, the configuration information needs to be encrypted for transmission, and the message recipient needs to authenticate the account and password when receiving the message, and the unconsumed configuration information will be persisted.
[0112] After receiving the message from Steel, Snic-agent on the SmartNIC uses the private key to decrypt it and obtain the plain text. The plain text data contains user-data and meta-data. The SmartNIC can write the data to a file with the same name. The SmartNIC can use the image generation tool genisoimage to generate the NoCloud configuration image and mark the configuration image with "CIDATA". The SmartNIC can mount the NoCloud configuration image to the SmartNIC DPU through Virtio-blk. Steel can also apply for block storage devices from the storage service. The storage service pulls the required system image from the image service, copies it to the newly applied block storage device, and returns the storage information RBD (Rados Block Device) to Steel. Among them, RBD is a function provided by the Ceph storage system, which can manage and use objects in the storage pool as block devices. RBD can dynamically create and manage block storage in a distributed environment.
[0113] Steel sends the RBD information to Snic-agent through the same queue channel. Snic-agent calls Snic-sdk to apply for Virtio-blk resources based on the RBD information, and calls Spdk to mount the system cloud disk to the Smart NIC. Steel restarts the host through out-of-band management IPMI. Therefore, the transmission of NoCloud configuration information can be completed in the Smart NIC through encryption, authentication, and persistence mechanisms, and the host needs to wait for the Smart NIC to complete the mounting of the NoCloud configuration image and the system cloud disk before restarting.
[0114] The smart network card and the host use PCIE link communication, mount the configuration image and system cloud disk, and establish a connection with the storage service. After the host is restarted, the BIOS scans and identifies the system cloud disk. When entering the user system, the Could-Init service is loaded to automatically read the meta-data and user-data in the NoCloud configuration image with the "CIDATA" mark to complete the system, network, and automated operation and maintenance configuration. At this point, the bare metal server is delivered and put into use, and the process meets the minute-level delivery standard. Based on this, the host can restart to scan the system cloud disk and NoCloud configuration image, and through the CloudInit service, the system, network, and software deployment and script running are completed during the system loading process.
[0115] In an embodiment of the present application, a minimized system image is prepared in advance and uploaded to an image server, and then copied to the system cloud disk when it needs to be created or replaced. The hot-swappable feature of elastic bare metal is used to remotely mount the system cloud disk on the server. The system configuration, network configuration, and automatic operation and maintenance information are sent to Sinc-agent to complete the generation of the system configuration image on the smart network card. When the cloud disk is started, the host machine scans the cloud disk and loads the NoCloud configuration image to complete the installation and deployment process. It can be deployed without deploying a network, and can be quickly installed, deployed, and changed when facing large-scale bare metal servers, simplifying the deployment process, improving deployment reliability, and effectively alleviating deployment pressure.
[0116] In an exemplary embodiment, as shown in FIG4 , the control flow of the bare metal platform is triggered when a user activates an elastic bare metal server instance, reinstalls the system, or changes the system configuration.
[0117] First, 1. The control flow when a bare metal server instance is activated is as follows:
[0118] 1.1, the bare metal platform receives an instance activation request from the user terminal.
[0119] 1.2. The bare metal platform applies for storage services to create block storage devices; the block storage devices copy the system image required by the user from the image service.
[0120] 1.3. The bare metal platform sends an IPMI power-on command to the server through out-of-band management. At this time, the server does not start up and load the system immediately, but waits for the smart network card to mount the system cloud disk and create a configuration image.
[0121] 1.4, the bare metal platform encrypts the user configuration using the public key of the RSA encryption algorithm, encrypts the transmission through the rabbitmq queue, and waits for the reply from the smart network card.
[0122] 1.5, the smart network card consumes the messages in the queue through the saved authentication information, first decrypts and extracts the user configuration information (user-data and meta-data) with the private key, and then generates the NoCloud configuration image data.iso through the image generation tool genisoimage.
[0123] 1.6, Snic-agent on the smart network card applies for queue resources from Snic-sdk according to demand, and generates corresponding Virtio-PF for the configuration disk and system cloud disk.
[0124] 1.7, Snic-agent mounts the NoCloud configuration image and system cloud disk through Spdk, and establishes a link with the storage service.
[0125] 1.8, Snic-agent notifies the bare metal platform through the message queue to complete the installation preparation.
[0126] 1.9, the bare metal platform restarts the host system out-of-band through IPMI.
[0127] 1.10, after the host system restarts, the Cloud-Init service loads the system configuration, ssh key, shell-related CLI and scripts from the user-data and meta-data in the configuration image disk to complete the system installation and deployment. This completes the bare metal server activation process and delivers it to users.
[0128] Secondly, 2. The control flow when reinstalling the EBS bare metal server instance system is as follows:
[0129] 2.1. The bare metal platform receives a request from the user terminal to reinstall the EBS instance.
[0130] 2.2. The bare metal platform notifies the Snic-agent service on the smart network card through the rabbitmq message queue to start reinstalling.
[0131] 2.3, Snic-agent notifies Spdk to uninstall the NoCloud configuration image and system cloud disk, and disconnect from the storage service.
[0132] 2.4, Snic-agent notifies Snic-sdk to release Virtio-blk resources.
[0133] 2.5. The bare metal platform notifies the storage service to reclaim the corresponding system cloud disk block storage device;
[0134] 2.6, the bare metal platform applies for storage service to create a block storage device; the block storage device copies the system image required by the user from the image service.
[0135] 2.7. The bare metal platform sends an IPMI power-on command to the server through out-of-band management. At this time, the server does not start up and load the system immediately, but waits for the smart network card to mount the system cloud disk and create a configuration image.
[0136] 2.8, the bare metal platform encrypts the user configuration using the public key of the RSA encryption algorithm, encrypts the transmission through the rabbitmq queue, and waits for the response from the smart network card.
[0137] 2.9, the smart network card consumes the messages in the queue through the saved authentication information, first decrypts and extracts the user configuration information (user-data and meta-data) with the private key, and then generates the NoCloud configuration image data.iso through the image generation tool genisoimage.
[0138] 2.10, Snic-agent on the smart network card applies for queue resources from Snic-sdk according to demand, and generates corresponding Virtio-PF for the configuration disk and system cloud disk.
[0139] 2.11, Snic-agent mounts the NoCloud configuration image and system cloud disk through Spdk, and establishes a link with the storage service.
[0140] 2.12, Snic-agent notifies the bare metal platform through the message queue to complete the installation preparation.
[0141] 2.13, the bare metal platform restarts the host system out-of-band through IPMI.
[0142] 2.14, after the host system restarts, the Cloud-Init service loads the system configuration, ssh key, shell-related CLI and scripts from the user-data and meta-data in the configuration image disk to complete the system reinstallation and deployment. This completes the bare metal server reinstallation process.
[0143] Finally, 3. The control flow when changing the system configuration is as follows:
[0144] 3.1, the bare metal platform receives a request to change the system configuration sent by the user terminal.
[0145] 3.2, the bare metal platform encrypts the new configuration information and sends it to Snic-agent through the message queue.
[0146] 3.3, Snic-agent consumes the message to decrypt and extract user-data and meta-data, and generates the NoCloud configuration image data.iso through the image generation tool genisoimage.
[0147] 3.4, Snic-agent on the smart network card applies for queue resources from Snic-sdk according to demand and generates the corresponding Virtio-PF for the configuration image.
[0148] 3.5, Snic-agent mounts the NoCloud configuration image through Spdk and establishes a link with the storage service.
[0149] 3.6, snic-agent notifies the bare metal platform through the message queue to complete the configuration modification.
[0150] 3.7, the bare metal platform restarts the host system out-of-band through IPMI.
[0151] 3.8, after the host system restarts, the Cloud-Init service loads the system configuration, ssh key, shell-related CLI and scripts from the user-data and meta-data in the NoCloud image. This completes the configuration change process of the bare metal server.
[0152] In the embodiment of the present application, the system is installed by directly copying the operating system to the cloud disk and mounting the system cloud disk on the smart network card before booting to achieve installation. The encrypted user configuration information is sent down by the bare metal platform, and the elastic hot-swappable characteristics of the smart network card are used to complete the system configuration, network configuration, automated operation and maintenance, etc., to achieve delivery. The delivery time of the bare metal server can be shortened by directly copying the system to the system disk through the above process. Relying on the message queue instead of mounting the deployment network can improve reliability and simplify the deployment process, thereby reducing the pressure of online operation and maintenance.
[0153] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0154] Based on the same inventive concept, the embodiment of the present application also provides a bare metal server deployment device for implementing the bare metal server deployment method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more bare metal server deployment device embodiments provided below can refer to the limitations of the bare metal server deployment method above, and will not be repeated here.
[0155] In an exemplary embodiment, as shown in FIG5 , a bare metal server deployment device 500 is provided, including: a configuration information transmission module 501, a storage information receiving module 502, a storage information sending module 503 and a restart instruction sending module 504, wherein:
[0156] The configuration information transmission module 501 is used to transmit the configuration information of the server to be deployed to the smart network card corresponding to the server to be deployed, so that the smart network card generates a configuration image based on the configuration information;
[0157] The storage information receiving module 502 is used to send a system image request to the storage service so that the storage service obtains the system image to be deployed from the image service, and receives the storage information corresponding to the system image to be deployed returned by the storage service; the storage service is a component of the system cloud disk;
[0158] The storage information sending module 503 is used to send the storage information to the smart network card so that the system cloud disk corresponding to the storage information is mounted in the smart network card;
[0159] The restart instruction sending module 504 is used to send a restart instruction to the host machine of the server to be deployed, so that the host machine completes the deployment based on the configuration image in the smart network card and the system image in the system cloud disk.
[0160] Furthermore, the configuration information transmission module 501 is specifically used to: encrypt the configuration information of the server to be deployed, and transmit the encrypted configuration information to the smart network card corresponding to the server to be deployed through a message queue, so that the smart network card decrypts the configuration information, and processes the decrypted configuration information through an image generation tool to obtain a configuration image; wherein the configuration information includes system information and user information, the system information includes at least a user name, a password and an ssh password, and the user information includes at least a name of the software to be installed and operation and maintenance instructions.
[0161] Furthermore, the storage information receiving module 502 is specifically used to: upon receiving a system deployment request sent by a user terminal, send a block storage creation request and a system image request to the storage service corresponding to the system cloud disk, so that the storage service creates a block storage device through the block storage creation request, and copies the system image to be deployed from the image service to the block storage device through the system image request; and receive the storage information of the block storage device returned by the storage service.
[0162] Furthermore, the storage information sending module 503 is specifically used to: send storage information to the smart network card so that the smart network card applies for block storage resources for storing system images based on the storage information; the block storage device of the system cloud disk mounts the system image to be deployed on the smart network card through the block storage resources.
[0163] Furthermore, the restart instruction sending module 504 is specifically used to send a restart instruction to the host machine of the server to be deployed through out-of-band management, so that after the host machine is restarted, it executes the installation script, loads the configuration image in the smart network card, and deploys the system image based on the configuration image to obtain a host machine that has completed deployment.
[0164] Furthermore, the device also includes a redeployment module, which is used to: upon receiving a system reinstallation request sent by a user terminal, send an uninstallation instruction to the smart network card, so that the smart network card uninstalls the configuration image and the mounted system cloud disk based on the uninstallation instruction; send a reinstallation instruction to the system cloud disk, so that the system cloud disk creates a block storage device to be reinstalled, and obtains the system image to be reinstalled from the image service through the block storage device to be reinstalled; when the system image to be reinstalled is mounted on the smart network card and the smart network card has generated the configuration image to be reinstalled, send a restart instruction to the host machine of the server to be deployed, so that the host machine completes the redeployment based on the configuration image to be reinstalled in the smart network card and the system image to be reinstalled in the system cloud disk; wherein the configuration image to be reinstalled is determined based on the system reinstallation request.
[0165] Furthermore, the device also includes a configuration update module, which is used to: when receiving a configuration update request sent by a user terminal, send the configuration to be updated in the configuration update request to the smart network card, so that the smart network card generates a corresponding configuration image to be updated based on the configuration to be updated, and returns update completion information; when receiving the update completion information, send a restart instruction to the host machine of the server to be deployed, so that the host machine completes the configuration update based on the configuration image to be updated in the smart network card.
[0166] Each module in the above bare metal server deployment device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0167] In an exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be shown in FIG6. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as configuration information and system images. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a bare metal server deployment method is implemented.
[0168] Those skilled in the art will understand that the structure shown in FIG. 6 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0169] In an exemplary embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.
[0170] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0171] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0172] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0173] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0174] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0175] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A bare metal server deployment method, characterized in that: Applied to a bare metal platform, the method comprises: Transmitting the configuration information of the server to be deployed to the smart network card corresponding to the server to be deployed, so that the smart network card generates a configuration image based on the configuration information; Sending a system image request to a storage service so that the storage service obtains the system image to be deployed from the image service, and receiving storage information corresponding to the system image to be deployed returned by the storage service; the storage service is a component of the system cloud disk; Sending the storage information to the smart network card so that the system cloud disk corresponding to the storage information is mounted in the smart network card; Send a restart instruction to the host machine of the server to be deployed, so that the host machine completes the deployment based on the configuration image in the smart network card and the system image in the system cloud disk.
2. The method according to claim 1, characterized in that The step of transmitting the configuration information of the server to be deployed to the smart network card corresponding to the server to be deployed, so that the smart network card generates a configuration image based on the configuration information, includes: Encrypting the configuration information of the server to be deployed, and transmitting the encrypted configuration information to the smart network card corresponding to the server to be deployed through a message queue, so that the smart network card decrypts the configuration information, and processes the decrypted configuration information through an image generation tool to obtain a configuration image; The configuration information includes system information and user information. The system information includes at least a user name, a password and an ssh password. The user information includes at least a name of the software to be installed and operation and maintenance instructions.
3. The method according to claim 1, characterized in that The sending of a system image request to a storage service so that the storage service obtains the system image to be deployed from the image service, and receiving storage information corresponding to the system image to be deployed returned by the storage service, includes: Upon receiving a system deployment request sent by a user terminal, sending a block storage creation request and a system image request to a storage service corresponding to the system cloud disk, so that the storage service creates a block storage device through the block storage creation request, and copies the system image to be deployed from the image service to the block storage device through the system image request; Receive storage information of the block storage device returned by the storage service.
4. The method according to claim 3, characterized in that The sending the storage information to the smart network card so that the system cloud disk corresponding to the storage information is mounted in the smart network card includes: The storage information is sent to the smart network card so that the smart network card applies for block storage resources for storing the system image based on the storage information; the block storage device of the system cloud disk mounts the system image to be deployed on the smart network card through the block storage resources.
5. The method according to claim 1, characterized in that The sending a restart instruction to the host machine of the server to be deployed, so that the host machine completes the deployment based on the configuration image in the smart network card and the system image in the system cloud disk, includes: A restart instruction is sent to the host machine of the server to be deployed through out-of-band management, so that after the host machine restarts, the configuration image in the smart network card is loaded by executing the installation script, and the system image is deployed based on the configuration image to obtain a host machine that has completed deployment.
6. The method according to claim 1, characterized in that After the host machine completes deployment based on the configuration image in the smart network card and the system image in the system cloud disk, the method further includes: When receiving a system reinstallation request sent by a user terminal, sending an uninstallation instruction to the smart network card, so that the smart network card uninstalls the configuration image and the mounted system cloud disk based on the uninstallation instruction; Sending a reinstallation instruction to the system cloud disk so that the system cloud disk creates a block storage device to be reinstalled, and obtaining the system image to be reinstalled from the image service through the block storage device to be reinstalled; When the system image to be reinstalled is mounted on the smart network card and the smart network card has generated a configuration image to be reinstalled, a restart instruction is sent to the host machine of the server to be deployed, so that the host machine completes the redeployment based on the configuration image to be reinstalled in the smart network card and the system image to be reinstalled in the system cloud disk; wherein the configuration image to be reinstalled is determined based on the system reinstallation request.
7. The method according to claim 1, characterized in that After the host machine completes deployment based on the configuration image in the smart network card and the system image in the system cloud disk, the method further includes: When receiving a configuration update request sent by a user terminal, sending the configuration to be updated in the configuration update request to the smart network card, so that the smart network card generates a corresponding configuration image to be updated based on the configuration to be updated, and returns update completion information; When the update completion information is received, a restart instruction is sent to the host machine of the server to be deployed, so that the host machine completes the configuration update based on the configuration image to be updated in the smart network card.
8. A bare metal server deployment device, characterized in that: The device comprises: A configuration information transmission module, used to transmit the configuration information of the server to be deployed to the smart network card corresponding to the server to be deployed, so that the smart network card generates a configuration image based on the configuration information; A storage information receiving module, used to send a system image request to a storage service so that the storage service obtains the system image to be deployed from the image service, and receives storage information corresponding to the system image to be deployed returned by the storage service; the storage service is a component of the system cloud disk; A storage information sending module, used to send the storage information to the smart network card, so that the system cloud disk corresponding to the storage information is mounted in the smart network card; The restart instruction sending module is used to send a restart instruction to the host machine of the server to be deployed, so that the host machine completes the deployment based on the configuration image in the smart network card and the system image in the system cloud disk.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.