Deployment method and device of bare metal server and computer equipment
Through the automated bare metal server deployment method, the configuration information is obtained, the target server is determined and the image is obtained, which solves the problems of traditional deployment inefficiency and error-prone, and achieves efficient and stable automated deployment.
Patent Information
- Application Number
- CN202411809683.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-10
- Publication Date
- 2025-03-04
AI Technical Summary
Traditional bare metal servers are inefficient in deployment and error-prone, and require manual configuration by professional and technical personnel, including installing the operating system, selecting drivers, and configuring network parameters.
Provides an automated bare metal server deployment method, which can obtain configuration information in the deployment request, determine the target server from the bare metal resource pool, and obtain the target image from the mirror warehouse, and finally automatically deploy the target server based on the configuration information and image.
The automated deployment of bare metal servers has been realized, which reduces the requirements for operators' technical level, reduces the occurrence of human errors, and improves the success rate and stability of deployment.
Smart Images

Figure CN119556947A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of cloud computing technology, and in particular to a method, apparatus, computer device, computer-readable storage medium, and computer program product for deploying a bare metal server. Background Art
[0002] With the development of cloud computing technology, bare metal servers have attracted widespread attention because they can provide performance close to that of physical machines. Traditional bare metal servers have high deployment requirements and usually require manual configuration by professional technicians. For example, administrators need to install operating systems one by one through the Preboot Execution Environment (PXE) mechanism. During the installation process, they also need to manually select appropriate drivers and configure network parameters. This deployment method is inefficient and prone to errors. Summary of the invention
[0003] 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 deployment efficiency in response to the above technical problems.
[0004] In a first aspect, the present application provides a method for deploying a bare metal server, the method comprising:
[0005] Obtain configuration information of the bare metal server according to the received deployment request;
[0006] According to the configuration information, determine a target bare metal server from a bare metal resource pool, and obtain a target image from an image repository;
[0007] The target bare metal server is deployed according to the configuration information and the target image.
[0008] In one embodiment, the configuration information includes a configuration template, and determining a target bare metal server from a bare metal resource pool according to the configuration information includes:
[0009] Obtaining hardware resource requirements in the configuration template;
[0010] Obtaining available hardware resources and cache status of each bare metal server in the bare metal resource pool;
[0011] The bare metal server whose cache status is available is used as a candidate bare metal server;
[0012] The candidate bare metal server whose available hardware resources meet the hardware resource requirement is used as the target bare metal server.
[0013] In one of the embodiments, the configuration information also includes a configuration quantity;
[0014] The step of determining a target bare metal server from a bare metal resource pool according to the configuration information further includes:
[0015] A target bare metal server corresponding to the configured quantity is selected from the candidate bare metal servers.
[0016] In one of the embodiments, the target image includes an operating system image and an application image, and the configuration information includes a configuration template;
[0017] The step of obtaining the target image from the image repository according to the configuration information includes:
[0018] According to the operating system configuration information in the configuration template, obtain the operating system image of the target bare metal server from the image repository;
[0019] According to the application configuration information in the configuration template, the application image of the target bare metal server is obtained from the image repository.
[0020] In one of the embodiments, the target image includes an operating system image and an application image, and the configuration information includes a configuration template;
[0021] The deploying the target bare metal server according to the configuration information and the target image includes:
[0022] Controlling the target bare metal server to install the operating system image, so as to deploy the corresponding operating system on the target bare metal server;
[0023] Obtaining hardware configuration information of the target bare metal server;
[0024] According to the hardware configuration information and the operating system configuration information in the configuration template, controlling the target bare metal server to obtain and install a driver;
[0025] Performing network configuration on the target bare metal server according to the network configuration parameters in the configuration template;
[0026] The target bare metal server is controlled to install the application image, so as to deploy the application on the target bare metal server.
[0027] In one embodiment, the method further comprises:
[0028] After the target bare metal server is deployed, a performance test is performed on the target bare metal server to generate a performance test result;
[0029] Performing functional verification on the target bare metal server and generating a functional verification result;
[0030] A test result of the target bare metal server is generated according to the performance test result and the function verification result.
[0031] In a second aspect, the present application further provides a bare metal server deployment device, the device comprising:
[0032] A configuration information acquisition module, used to acquire the configuration information of the bare metal server according to the received deployment request;
[0033] A deployment resource acquisition module is used to determine a target bare metal server from a bare metal resource pool and obtain a target image from an image repository according to the configuration information;
[0034] A deployment execution module is used to deploy the target bare metal server according to the configuration information and the target image.
[0035] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the bare metal server deployment method provided in any of the above embodiments is implemented.
[0036] 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 method for deploying a bare metal server provided in any of the above embodiments is implemented.
[0037] In a fifth aspect, the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the bare metal server deployment method provided in any of the above embodiments.
[0038] The above bare metal server deployment method, apparatus, computer equipment, computer-readable storage medium and computer program product obtain the configuration information of the bare metal server according to the received deployment request, determine the target bare metal server from the bare metal resource pool according to the configuration information, and obtain the target image from the image repository, and further deploy the target bare metal server according to the configuration information and the target image, thereby realizing the automated deployment of the bare metal server. The bare metal management platform can complete the automated deployment of the bare metal server based on the user's deployment request, which reduces the requirements on the technical level of the operator, reduces the probability of human error, and improves the success rate and stability of the deployment. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0040] Figure 1 A schematic diagram of a process for deploying a bare metal server in one embodiment;
[0041] Figure 2 A schematic diagram of a process of determining a target bare metal server from a bare metal resource pool according to configuration information in an embodiment;
[0042] Figure 3 A schematic diagram of a process of deploying a target bare metal server according to configuration information and a target image in an embodiment;
[0043] Figure 4 It is a flowchart of a method for deploying a bare metal server in another embodiment;
[0044] Figure 5 is a structural block diagram of a deployment device for a bare metal server in one embodiment;
[0045] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0046] 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.
[0047] The bare metal server deployment method provided in this application can be applied to a bare metal management platform, which is integrated with kubernetes (a container orchestration engine) and can be used to manage and schedule bare metal servers. Bare metal servers are the product of the combination of physical servers and cloud services. They have both the hardware equipment of physical servers and the virtualization service functions of cloud computing.
[0048] In an exemplary embodiment, Figure 1 As shown, a bare metal server deployment method is provided, including the following steps 102 to 106.
[0049] Step 102: Obtain configuration information of the bare metal server according to the received deployment request.
[0050] Configuration information includes configuration templates and configuration quantities. In the bare metal management platform, you can first use kubernetes' custom resources to create multiple bare metal server configuration templates. Each configuration template includes network configuration parameters, storage configuration parameters, and system parameters. Network configuration parameters include IP address allocation, subnet mask, gateway, etc. Storage configuration parameters include disk partitions, file system formats, etc. System parameters include kernel parameters. Different configuration templates can be created based on different business needs.
[0051] Users can submit deployment requests through the interactive interface of the cloud-native orchestration tool, specifying the required configuration template and configuration quantity. The bare metal server can obtain the deployment request by calling the application programming interface (API) and obtain the configuration information specified in the deployment request.
[0052] Step 104: determine a target bare metal server from the bare metal resource pool according to the configuration information, and obtain a target image from the image repository.
[0053] The bare metal resource pool includes multiple bare metal servers that have been successfully registered on the bare metal management platform. The image repository is used to store various images such as operating system images and application images. The target image includes the operating system image and application image corresponding to the configuration template.
[0054] The bare metal management platform can determine the target bare metal server that meets the user's deployment request from the bare metal resource pool based on the configuration information, and obtain the corresponding target image from the image repository by calling the API interface.
[0055] Step 106: Deploy the target bare metal server according to the configuration information and the target image.
[0056] The bare metal management platform can deploy the target bare metal server according to various parameters and target images in the configuration information.
[0057] In the embodiment of the present application, the configuration information of the bare metal server is obtained according to the received deployment request, the target bare metal server is determined from the bare metal resource pool according to the configuration information, and the target image is obtained from the image repository, and further, the target bare metal server is deployed according to the configuration information and the target image, thereby realizing the automatic deployment of the bare metal server. The bare metal management platform can complete the automatic deployment of the bare metal server based on the user's deployment request, which reduces the requirements on the technical level of the operator, reduces the probability of human error, improves the success rate and stability of the deployment, and improves the deployment efficiency.
[0058] In one embodiment, Figure 2As shown, according to the configuration information, determining the target bare metal server from the bare metal resource pool includes steps 202-208.
[0059] Step 202: Obtain hardware resource requirements in the configuration template.
[0060] Hardware resource requirements include memory requirements, CPU (Central Processing Unit) resource requirements, storage resource requirements, etc. The bare metal management platform can first analyze the storage configuration parameters and system parameters of the configuration template to obtain hardware resource requirements.
[0061] Step 204: Obtain available hardware resources and cache status of each bare metal server in the bare metal resource pool.
[0062] After a bare metal server is registered on the bare metal management platform, the bare metal management platform stores the hardware information and cache status of the bare metal server. The cache status includes available status and unavailable status. The available status means that the bare metal server is not occupied by other resources. The bare metal management platform can calculate the available hardware resources of each bare metal server based on the hardware information of the bare metal servers stored in it, and obtain the cache status of the bare metal server.
[0063] Step 206: Use the bare metal server whose cache status is available as a candidate bare metal server.
[0064] Step 208: select a candidate bare metal server whose available hardware resources meet the hardware resource requirement as a target bare metal server.
[0065] The bare metal management platform can use bare metal servers whose cache status is available as candidate bare metal servers, and then determine whether the available hardware resources of each candidate bare metal server meet the hardware resource requirements in the configuration template, and use the candidate bare metal servers that meet the configuration template requirements as target bare metal servers. The number of target bare metal servers may be one or more. Furthermore, the bare metal management platform can select target bare metal servers of the corresponding configuration quantity from the candidate bare metal servers.
[0066] In this embodiment, by obtaining the hardware resource requirements in the configuration template, the available hardware resources and cache status of each bare metal server in the bare metal resource pool are obtained, and the bare metal servers whose cache status is available are used as candidate bare metal servers, and the candidate bare metal servers whose available hardware resources meet the hardware resource requirements are used as target bare metal servers, thereby helping users to quickly select the target bare metal server and saving users' selection time.
[0067] In one embodiment, according to the configuration information, the target image is obtained from the image repository, including: according to the operating system configuration information in the configuration template, the operating system image of the target bare metal server is obtained from the image repository, and according to the application configuration information in the configuration template, the application image of the target bare metal server is obtained from the image repository.
[0068] The operating system configuration information includes the operating system type and operating system version. The application configuration information includes the application list and application version. The bare metal management platform calls the API interface to obtain the operating system image from the image warehouse based on the operating system type and operating system version, and calls the API interface to obtain the application image from the image warehouse based on the application list and application version.
[0069] In one embodiment, Figure 3 As shown, the target bare metal server is deployed according to the configuration information and the target image, including steps 302-310.
[0070] Step 302: Control the target bare metal server to install the operating system image to deploy the corresponding operating system on the target bare metal server.
[0071] The operating system image includes the kernel, system libraries, and basic tools of the operating system. The bare metal management platform can control the target bare metal server to copy the operating system image to a specific directory, load the operating system image, and thus deploy the corresponding operating system on the target bare metal server.
[0072] Step 304: Obtain hardware configuration information of the target bare metal server.
[0073] The hardware configuration information includes the CPU, memory, storage device, network interface card, etc. of the target bare metal server. The bare metal management platform can obtain the hardware configuration information through the hardware information of the target bare metal server stored in itself, or obtain the hardware configuration information by querying the interface of the target bare metal server.
[0074] Step 306: According to the hardware configuration information and the operating system configuration information in the configuration template, control the target bare metal server to obtain and install the driver.
[0075] In addition to the OS type and OS version, the OS configuration information also includes the driver version. The bare metal management platform must first ensure that the driver is compatible with the bare metal server based on the hardware configuration information and the OS configuration information in the configuration template. Then, the bare metal server can obtain the corresponding driver file based on the driver version in the OS configuration information, copy the driver file to the bare metal server's system directory, load the driver, and complete the driver installation.
[0076] Step 308: Perform network configuration on the target bare metal server according to the network configuration parameters in the configuration template.
[0077] The bare metal server can perform network configuration on the target bare metal server according to the network configuration information in the configuration template, including configuring network interface parameters (such as IP address, subnet mask, gateway, etc.), server domain name, firewall rules, etc.
[0078] Step 310: Control the target bare metal server to install the application image to deploy the application on the target bare metal server.
[0079] The application image usually contains all necessary files, dependent libraries, and configuration files of the application. The bare metal management platform can control the target bare metal server to copy the application image to the system directory, load the application image, and thus deploy the application on the target bare metal server.
[0080] In this embodiment, the target bare metal server is controlled to install the operating system image through the bare metal management platform, the hardware configuration information of the target bare metal server is obtained, and the target bare metal server is controlled to obtain and install the driver according to the hardware configuration information and the operating system configuration information in the configuration template. The network configuration of the target bare metal server is performed according to the network configuration parameters in the configuration template, and the target bare metal server is controlled to install the application image, thereby automatically completing the installation of the operating system, the installation of the driver, the network configuration and the application deployment, thereby improving the deployment efficiency.
[0081] In one embodiment, Figure 4 As shown, the bare metal server deployment method of the present application includes steps 402-412.
[0082] Step 402: Obtain configuration information of the bare metal server according to the received deployment request.
[0083] Step 404: determine a target bare metal server from the bare metal resource pool according to the configuration information, and obtain a target image from the image repository.
[0084] Step 406: Deploy the target bare metal server according to the configuration information and the target image.
[0085] Steps 402 - 406 correspond to steps 102 - 106 one by one, and will not be described in detail in this embodiment.
[0086] Step 408: After the target bare metal server is deployed, a performance test is performed on the target bare metal server to generate a performance test result.
[0087] Performance tests include CPU performance tests, memory performance tests, storage performance tests, and network performance tests. Performance test results include CPU performance test results, memory performance test results, storage performance test results, and network performance test results. After the target bare metal server is deployed, the bare metal management platform can perform performance tests on the target bare metal server and generate corresponding performance test results.
[0088] Step 410: Perform function verification on the target bare metal server and generate a function verification result.
[0089] Functional verification includes operating system verification, hardware compatibility verification, application verification, and security verification. Functional verification results include operating system verification results, hardware compatibility verification results, application verification results, and security verification results. The bare metal management platform can perform functional verification on the target bare metal server and generate corresponding functional verification results.
[0090] Step 412: Generate test results of the target bare metal server according to the performance test results and the function verification results.
[0091] The bare metal management platform can analyze and process the performance test results and function verification results to generate the test results of the target bare metal server. The test results include whether the target bare metal server can meet the user's business needs.
[0092] In this embodiment, the bare metal management platform automatically completes the deployment of the bare metal server according to the deployment request submitted by the user, thereby improving the deployment efficiency. In addition, after the bare metal server is deployed, the bare metal server is subjected to performance testing and function verification to ensure that the target bare metal server can meet the user's business needs.
[0093] In some embodiments, after deploying the bare metal server, the bare metal management platform can also monitor the operating status of the bare metal server in real time, such as CPU usage, memory usage, network traffic, etc., to promptly detect abnormal conditions of the bare metal server.
[0094] It should be understood that, although the steps in the flowcharts involved in the above 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, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above 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 to be 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.
[0095] 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 scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of the deployment device for one or more bare metal servers provided below can refer to the limitations of the bare metal server deployment method above, and will not be repeated here.
[0096] In an exemplary embodiment, Figure 5 As shown, a bare metal server deployment device is provided, including: a configuration information acquisition module 502, a deployment resource acquisition module 504 and a deployment execution module 506, wherein:
[0097] The configuration information acquisition module 502 is used to acquire the configuration information of the bare metal server according to the received deployment request.
[0098] The deployment resource acquisition module 504 is used to determine the target bare metal server from the bare metal resource pool according to the configuration information, and to obtain the target image from the image repository.
[0099] The deployment execution module 506 is used to deploy the target bare metal server according to the configuration information and the target image.
[0100] In one embodiment, the deployment resource acquisition module is also used to obtain the hardware resource requirements in the configuration template; obtain the available hardware resources and cache status of each bare metal server in the bare metal resource pool; use the bare metal server whose cache status is available as a candidate bare metal server; and use the candidate bare metal server whose available hardware resources meet the hardware resource requirements as the target bare metal server.
[0101] In one embodiment, the deployment resource acquisition module is further used to select a corresponding configured number of target bare metal servers from the candidate bare metal servers.
[0102] In one embodiment, the deployment resource acquisition module is also used to obtain the operating system image of the target bare metal server from the image repository according to the operating system configuration information in the configuration template; and obtain the application image of the target bare metal server from the image repository according to the application configuration information in the configuration template.
[0103] In one embodiment, the deployment execution module is also used to control the target bare metal server to install an operating system image to deploy the corresponding operating system on the target bare metal server; obtain the hardware configuration information of the target bare metal server; control the target bare metal server to obtain and install the driver according to the hardware configuration information and the operating system configuration information in the configuration template; perform network configuration on the target bare metal server according to the network configuration parameters in the configuration template; control the target bare metal server to install an application image to deploy the application on the target bare metal server.
[0104] In one embodiment, the deployment device of the bare metal server also includes a verification module, which is used to perform a performance test on the target bare metal server after the target bare metal server is deployed to generate a performance test result; perform a function verification on the target bare metal server to generate a function verification result; and generate a test result of the target bare metal server based on the performance test result and the function verification result.
[0105] Each module in the deployment device of the bare metal server 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.
[0106] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 6As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, 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. Among them, 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 configuration templates, hardware configuration information of the bare metal server, images, etc. 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 method for deploying a bare metal server is implemented.
[0107] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the 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 those shown in the figure, or combine certain components, or have a different arrangement of components.
[0108] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the bare metal server deployment method provided in any of the above embodiments is implemented.
[0109] 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 bare metal server deployment method provided in any of the above embodiments is implemented.
[0110] In one embodiment, a computer program product is provided, including a computer program, which, when executed by a processor, implements the bare metal server deployment method provided in any of the above embodiments.
[0111] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method 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 the present application can include at least one of non-volatile memory 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), magnetic 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, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0112] 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 application.
[0113] 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: The method comprises: Obtain configuration information of the bare metal server according to the received deployment request; According to the configuration information, determine a target bare metal server from a bare metal resource pool, and obtain a target image from an image repository; The target bare metal server is deployed according to the configuration information and the target image.
2. The method according to claim 1, characterized in that The configuration information includes a configuration template, and determining a target bare metal server from a bare metal resource pool according to the configuration information includes: Obtaining hardware resource requirements in the configuration template; Obtaining available hardware resources and cache status of each bare metal server in the bare metal resource pool; The bare metal server whose cache status is available is used as a candidate bare metal server; The candidate bare metal server whose available hardware resources meet the hardware resource requirement is used as the target bare metal server.
3. The method according to claim 2, characterized in that The configuration information also includes the configuration quantity; The step of determining a target bare metal server from a bare metal resource pool according to the configuration information further includes: A target bare metal server corresponding to the configured quantity is selected from the candidate bare metal servers.
4. The method according to any one of claims 1 to 3, characterized in that: The target image includes an operating system image and an application image, and the configuration information includes a configuration template; The step of obtaining the target image from the image repository according to the configuration information includes: According to the operating system configuration information in the configuration template, obtain the operating system image of the target bare metal server from the image repository; According to the application configuration information in the configuration template, the application image of the target bare metal server is obtained from the image repository.
5. The method according to any one of claims 1 to 3, characterized in that: The target image includes an operating system image and an application image, and the configuration information includes a configuration template; The deploying the target bare metal server according to the configuration information and the target image includes: Controlling the target bare metal server to install the operating system image, so as to deploy the corresponding operating system on the target bare metal server; Obtaining hardware configuration information of the target bare metal server; According to the hardware configuration information and the operating system configuration information in the configuration template, controlling the target bare metal server to obtain and install a driver; Performing network configuration on the target bare metal server according to the network configuration parameters in the configuration template; The target bare metal server is controlled to install the application image, so as to deploy the application on the target bare metal server.
6. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: After the target bare metal server is deployed, a performance test is performed on the target bare metal server to generate a performance test result; Performing functional verification on the target bare metal server and generating a functional verification result; A test result of the target bare metal server is generated according to the performance test result and the function verification result.
7. A bare metal server deployment device, characterized in that: The device comprises: A configuration information acquisition module, used to acquire the configuration information of the bare metal server according to the received deployment request; A deployment resource acquisition module is used to determine a target bare metal server from a bare metal resource pool and obtain a target image from an image repository according to the configuration information; A deployment execution module is used to deploy the target bare metal server according to the configuration information and the target image.
8. 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 6 are implemented.
9. 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 6 are implemented.
10. A computer program product, comprising a computer program, 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 6 are implemented.
Citation Information
Cited By
Resource allocation method and device, equipment and storage medium
CN121008934A
Bare metal node deployment method and system, electronic equipment and storage medium
CN121050837A
A method, system, electronic device, and storage medium for deploying bare metal nodes.
CN121050837B
A bare metal server instance management method, system, storage medium and program product
CN122661302A