Virtual machine template management method, device, system and computer equipment

Through the virtual machine template management platform, the unified management of virtual machine templates is realized, and the problem of inefficient release of virtual machine templates is solved, improving management efficiency and reducing labor costs.

CN114237815BActive Publication Date: 2024-12-17SHANGHAI PUDONG DEVELOPMENT BANK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111407049.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-24
Publication Date
2024-12-17
Estimated Expiration
2041-11-24

AI Technical Summary

Technical Problem

In multi-SDDC scenarios, the release of virtual machine templates is inefficient, and multiple template distribution and import operations are required to be manually executed, resulting in inefficient management.

Method used

Provide a virtual machine template management method, responding to the selection and data center settings of the target virtual machine template through the virtual machine template management platform, sending management instructions to the target data center, realizing unified management of virtual machine templates, including listing, updating and down rack operation.

Benefits of technology

It improves the management efficiency of virtual machine templates, reduces labor costs, avoids manual management mistakes, and ensures the unity of virtual machine templates in the data center.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114237815B_ABST
    Figure CN114237815B_ABST
Patent Text Reader

Abstract

The present application relates to a management method, device, system and computer equipment for a virtual machine template. The method comprises: in response to a selection operation on a target virtual machine template, determining the target virtual machine template; in response to a setting operation on a target data center, determining at least one target data center corresponding to the target virtual machine template; in response to a management operation on the target virtual machine template, sending a management instruction for the target virtual machine template to the at least one target data center, so that the at least one target data center performs a corresponding management operation on the target virtual machine template according to the management instruction. The use of this method can improve the management efficiency of virtual machine templates.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of virtual machine technology, and in particular to a management method, device, system and computer equipment for a virtual machine template. Background Art

[0002] Through virtualization technology, cloud computing can achieve flexible and efficient use of resources, thereby providing users with high-quality services. In actual application scenarios, it is necessary to build virtual machine templates of various operating systems to meet different business needs, that is, to build virtual machines based on virtual machine templates for various applications to improve the efficiency of virtual machine construction.

[0003] In a multi-SDDC (Software Defined Data Center) scenario, virtual machine templates need to be manually distributed and imported multiple times to publish new virtual machine templates to each SDDC, resulting in low efficiency in publishing virtual machine templates. Summary of the invention

[0004] Based on this, it is necessary to provide a virtual machine template management method, device, system and computer equipment that can improve the management efficiency of virtual machine templates in response to the above technical problems.

[0005] In a first aspect, the present application provides a virtual machine template management method, which is applied to a virtual machine template management platform, and the method includes:

[0006] In response to a selection operation on a target virtual machine template, determining the target virtual machine template;

[0007] In response to a setting operation for a target data center, determining at least one target data center corresponding to the target virtual machine template;

[0008] In response to the management operation on the target virtual machine template, a management instruction on the target virtual machine template is sent to the at least one target data center, so that the at least one target data center performs a corresponding management operation on the target virtual machine template according to the management instruction.

[0009] In one embodiment, the method further comprises:

[0010] In response to a configuration operation on a virtual machine template, obtaining configuration information of the virtual machine template, wherein the configuration information of the virtual machine template includes a target virtual machine and a template type;

[0011] Configuring the target virtual machine as the virtual machine template according to the configuration information;

[0012] The virtual machine template is stored as an object in a corresponding storage space according to the template type.

[0013] In one embodiment, storing the virtual machine template as an object in a corresponding storage space according to the template type includes:

[0014] In a case where the template type corresponds to a first type identifier, the virtual machine template is stored as an object in a first storage space corresponding to the first type, and the first type identifier is used to identify that the virtual machine template is a general type.

[0015] In one embodiment, storing the virtual machine template as an object in a corresponding storage space according to the template type includes:

[0016] In a case where the template type corresponds to a second type identifier, determining whether there is a corresponding second storage space for the current user account information, wherein the second type identifier is used to identify that the virtual machine template is a custom type;

[0017] If the second storage space exists, storing the virtual machine template as an object in the second storage space;

[0018] Alternatively, when the second storage space does not exist, after the second storage space is created for the current user account information, the virtual machine template is stored as an object in the second storage space.

[0019] In one embodiment, the configuration information includes the time when the virtual machine template is removed from the shelf, and the method further includes:

[0020] In the case where it is monitored that the current time is the delisting time of the virtual machine template, determining the data center where the virtual machine template is currently listed;

[0021] A delisting instruction for the virtual machine template is sent to the data center, so that the data center executes a delisting operation for the virtual machine template in response to the delisting instruction.

[0022] In one embodiment, the management operation includes a listing operation, an updating operation, and a delisting operation.

[0023] In a second aspect, the present application further provides a method for managing a virtual machine template, which is applied to a data center end, and the method includes:

[0024] Receiving a management instruction sent by the virtual machine template management platform, wherein the management instruction includes a target virtual machine template identifier and a management operation;

[0025] The management operation is performed on the target virtual machine template corresponding to the target virtual machine template identifier.

[0026] In one of the embodiments, when the management operation includes a shelf operation, performing the management operation on the target virtual machine template corresponding to the target virtual machine template identifier includes:

[0027] Downloading the target virtual machine template from the storage space of the target virtual machine template according to the target virtual machine template identifier;

[0028] Performing a security check on the target virtual machine template;

[0029] When the target virtual machine template passes the security check, the target virtual machine template is stored in a data center.

[0030] In one of the embodiments, when the management operation includes a delisting operation, performing the management operation on the target virtual machine corresponding to the target virtual machine template identifier includes:

[0031] In response to the delisting operation, the target virtual machine template corresponding to the target virtual machine template identifier is deleted from the data center.

[0032] In a third aspect, the present application also provides a management system for a virtual machine template, the system comprising a virtual machine template management platform and multiple data centers, wherein:

[0033] The virtual machine template management platform is used to send a management instruction for the target virtual machine template to at least one target data center among the multiple data centers in response to a management operation for the target virtual machine template;

[0034] The target data center executes the management operation corresponding to the management instruction on the target virtual machine template in response to the management instruction.

[0035] In a fourth aspect, the present application further provides a virtual machine template management device, which is applied to a virtual machine template management platform, and the device includes:

[0036] A first determination module, configured to determine a target virtual machine template in response to a selection operation on the target virtual machine template;

[0037] A second determination module, configured to determine at least one target data center corresponding to the target virtual machine template in response to a setting operation for the target data center;

[0038] The first sending module is used to send a management instruction for the target virtual machine template to the at least one target data center in response to the management operation for the target virtual machine template, so that the at least one target data center performs a corresponding management operation on the target virtual machine template according to the management instruction.

[0039] In one embodiment, the device further comprises:

[0040] An acquisition module, configured to acquire configuration information of the virtual machine template in response to a configuration operation on the virtual machine template, wherein the configuration information of the virtual machine template includes a target virtual machine and a template type;

[0041] A configuration module, configured to configure the target virtual machine as the virtual machine template according to the configuration information;

[0042] A storage module is used to store the virtual machine template as an object in a corresponding storage space according to the template type.

[0043] In one embodiment, the storage module is further used for:

[0044] In a case where the template type corresponds to a first type identifier, the virtual machine template is stored as an object in a first storage space corresponding to the first type, and the first type identifier is used to identify that the virtual machine template is a general type.

[0045] In one embodiment, the storage module is further used for:

[0046] In a case where the template type corresponds to a second type identifier, determining whether there is a corresponding second storage space for the current user account information, wherein the second type identifier is used to identify that the virtual machine template is a custom type;

[0047] If the second storage space exists, storing the virtual machine template as an object in the second storage space;

[0048] Alternatively, when the second storage space does not exist, after the second storage space is created for the current user account information, the virtual machine template is stored as an object in the second storage space.

[0049] In one embodiment, the configuration information includes the time when the virtual machine template is removed from the shelf, and the device further includes:

[0050] A determination module, configured to determine a data center for listing the virtual machine template when it is detected that the current time is the time for the virtual machine template to be delisted;

[0051] The second sending module is used to send a delisting instruction for the virtual machine template to the data center, so that the data center executes a delisting operation for the virtual machine template in response to the delisting instruction.

[0052] In one embodiment, the management operation includes a listing operation, an updating operation, and a delisting operation.

[0053] In a fifth aspect, the present application further provides a virtual machine template management device, which is applied to a data center end, and the device includes:

[0054] A receiving module, used to receive a management instruction sent by the virtual machine template management platform, wherein the management instruction includes a target virtual machine template identifier and a management operation;

[0055] The management module is used to perform the management operation on the target virtual machine template corresponding to the target virtual machine template identifier.

[0056] In one embodiment, when the management operation includes a shelf operation, the management module is further configured to:

[0057] Downloading the target virtual machine template from the storage space of the target virtual machine template according to the target virtual machine template identifier;

[0058] Performing a security check on the target virtual machine template;

[0059] When the target virtual machine template passes the security check, the target virtual machine template is stored in a data center.

[0060] In one embodiment, when the management operation includes a delisting operation, the management module is further configured to:

[0061] In response to the delisting operation, the target virtual machine template corresponding to the target virtual machine template identifier is deleted from the data center.

[0062] In a sixth 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 above virtual machine template management method are implemented.

[0063] In a seventh 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 above virtual machine template management method are implemented.

[0064] In an eighth 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 above virtual machine template management method are implemented.

[0065] In the above-mentioned virtual machine template management method, device, system and computer equipment, the virtual machine template management platform responds to the selection operation for the target virtual machine template. After determining the target virtual machine template, it can respond to the setting operation for the target data center to determine at least one target data center corresponding to the target virtual machine template. And in response to the management operation for the target virtual machine template, it can send a management instruction for the target virtual machine template to at least one target data center, so that at least one target data center performs corresponding management operations on the target virtual machine template according to the management instruction. Based on the virtual machine template management method, device, system and computer equipment provided in the embodiments of the present application, management operations can be performed on virtual machine templates in multiple data centers simultaneously, which can improve the management efficiency of virtual machine templates, reduce labor costs, and avoid manual management errors, thereby ensuring the uniformity of virtual machine templates in data centers that have uniformity requirements for virtual machine templates. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] Figure 1 An application environment diagram of a method for managing a virtual machine template in one embodiment;

[0067] Figure 2 A schematic diagram of a flow chart of a method for managing a virtual machine template in one embodiment;

[0068] Figure 3 is a schematic diagram of a method for managing a virtual machine template in one embodiment;

[0069] Figure 4 A schematic diagram of a flow chart of a method for managing a virtual machine template in one embodiment;

[0070] Figure 5 A schematic diagram of a flow chart of a method for managing a virtual machine template in one embodiment;

[0071] Figure 6 A schematic diagram of a flow chart of a method for managing a virtual machine template in one embodiment;

[0072] Figure 7 is a flowchart of a method for managing virtual machine templates in another embodiment;

[0073] Figure 8 A schematic diagram of a flow chart of a method for managing a virtual machine template in one embodiment;

[0074] Fig. 9It is a structural block diagram of a management system of a virtual machine template in another embodiment;

[0075] Fig.10 is a structural block diagram of a management device for a virtual machine template in one embodiment;

[0076] Fig.11 is a structural block diagram of a management device for a virtual machine template in one embodiment;

[0077] Fig.12 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0078] 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.

[0079] The virtual machine template management method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the virtual machine template management platform end 102 (hereinafter referred to as the virtual machine template management platform) communicates with each data center end 104 (hereinafter referred to as the data center) through the network. Object storage can store data that the virtual machine template management platform 102 needs to process. The template library can be integrated in the virtual machine template management platform 102, or it can be placed on the cloud or other network servers. In response to the management operation for the target virtual machine template, the virtual machine template management platform 102 sends a management instruction for the target virtual machine template to at least one target data center in the multiple data centers 104. In response to the management instruction, the target data center performs the management operation corresponding to the management instruction on the target virtual machine template. Among them, the virtual machine template management platform 102 and the data center 104 can be implemented by terminal devices, and the terminal devices can be but are not limited to various personal computers, laptops, smart phones, tablets, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. Alternatively, the virtual machine template management platform 102 and the data center 104 can also be implemented using independent servers or server clusters consisting of multiple servers.

[0080] In one embodiment, Figure 2 As shown, a virtual machine template management method is provided, and the method is applied to Figure 1 Taking the virtual machine template management platform 102 in the example as an example, the following steps are included:

[0081] Step 202: In response to a selection operation on a target virtual machine template, determine a target virtual machine template.

[0082] In the embodiment of the present application, the user can select the virtual machine template to be deployed and managed as the target virtual machine template. Exemplarily, the user can select the virtual machine template to be deployed and managed to determine it as the target virtual machine template.

[0083] For example, the user can use the virtual machine template deployment interface (the virtual machine template deployment interface can refer to Figure 3 ), select the target virtual machine template to be deployed and managed by selecting the target virtual machine template. Exemplarily, the virtual machine template deployment interface may include a drop-down box, an input box, and other controls for selecting the target virtual machine template, and the control may display the target virtual machine template identifier (for example, the name and code of the target virtual machine template, etc.), and the user may select the corresponding target virtual machine template by displaying the target virtual machine template identifier in the above control.

[0084] Alternatively, the user can query the virtual machine template through the query page. After querying the virtual machine template, the virtual machine template can be determined as the target virtual machine template by triggering a deployment management operation for the virtual machine template (for example: long press, slide, trigger right mouse button, etc.).

[0085] The virtual machine template deployment interface may include a first add control, which is used to add a target virtual machine template. That is, in the embodiment of the present application, multiple target virtual machine templates can be set for the target virtual machine template according to deployment management requirements.

[0086] It should be noted that the embodiment of the present application does not specifically limit the operation of selecting the target virtual machine template, and any operation that can select a virtual machine template as a target virtual machine template to be deployed and managed is applicable to the embodiment of the present application.

[0087] Step 204: In response to the setting operation for the target data center, determine at least one target data center corresponding to the target virtual machine template.

[0088] In the embodiment of the present application, after the target virtual machine template is determined, the data center where the corresponding deployment management operation of the target virtual machine template is to be performed can be determined as the target data center.

[0089] For example, refer to Figure 3As shown, the virtual machine template deployment interface includes controls such as a drop-down box and an input box for selecting a target data center, which may specifically include a cloud environment selection control and a data center selection control, wherein the cloud environment selection control is used to select the cloud environment in which the data center is located, and the data center selection control is used to select the data center in the above cloud environment where the deployment management operation of the target virtual machine template is to be performed, and the user can select the corresponding target data center in the above controls.

[0090] The virtual machine template deployment interface may include a second add control, which is used to add a target data center. That is, in the embodiment of the present application, multiple target data centers can be set for the target virtual machine template according to deployment management requirements.

[0091] It should be noted that the above operation of setting the target data center is only an example in the embodiment of the present application. In fact, the embodiment of the present application does not specifically limit the operation of setting the target data center.

[0092] Step 206: In response to the management operation on the target virtual machine template, a management instruction for the target virtual machine template is sent to at least one target data center, so that the at least one target data center performs a corresponding management operation on the target virtual machine template according to the management instruction.

[0093] In the embodiment of the present application, after the target virtual machine template is determined and at least one target data center is set, a corresponding management instruction can be generated in response to a management operation on the target virtual machine template, and the management instruction can be sent to at least one target data center. The management instruction may include a management operation and a target virtual machine template identifier. After receiving the management instruction, the target data center can respond to the management instruction and perform the corresponding management operation on the target virtual machine template.

[0094] In one embodiment, the above management operations may include a listing operation, an updating operation, and a delisting operation.

[0095] Exemplarily, the virtual machine template deployment interface may include a management operation control, and the user may trigger the management operation for the target virtual machine template by triggering the management operation control. For example: when the management operation control is a listing control, that is, the management operation includes a listing operation, the target data center may obtain and store the target virtual machine template locally in the target data center based on the management instruction. When the management operation control is a delisting control, that is, the management operation includes a delisting operation, the target data center may delete the target virtual machine template from the target data center locally based on the management instruction. When the management operation control is an update control, that is, the management operation includes an update operation, the target data center may update the target virtual machine template stored locally in the target data center to a specified version based on the management instruction.

[0096] For example: Refer to Figure 3 In the interface shown, the user can enter virtual machine template 1 in the input box for selecting the target virtual machine template in the interface, and enter (cloud environment 1, data center 1) and (cloud environment 2, data center 2) in the input box for selecting the target data center in the interface, and after selecting the target virtual machine template and the target data center, trigger the listing control. The virtual machine template management platform can respond to the trigger operation for the listing control and send a listing instruction for virtual machine template 1 to data center 1 in cloud environment 1 and data center 2 in cloud environment 2, so that data center 1 in cloud environment 1 and data center 2 in cloud environment 2 respond to the listing instruction and list the virtual machine template 1.

[0097] In the above-mentioned virtual machine template management method, the virtual machine template management platform responds to the selection operation for the target virtual machine template. After determining the target virtual machine template, it can respond to the setting operation for the target data center to determine at least one target data center corresponding to the target virtual machine template. And in response to the management operation for the target virtual machine template, it can send a management instruction for the target virtual machine template to at least one target data center, so that at least one target data center performs corresponding management operations on the target virtual machine template according to the management instruction. Based on the virtual machine template management method provided in the embodiment of the present application, management operations can be performed on virtual machine templates in multiple data centers simultaneously, which can improve the management efficiency of virtual machine templates, reduce labor costs, and avoid manual management errors, thereby ensuring the uniformity of virtual machine templates in data centers that have uniformity requirements for virtual machine templates.

[0098] In one embodiment, Figure 4 The above method may further include:

[0099] Step 402, in response to the configuration operation on the virtual machine template, obtaining configuration information of the virtual machine template, the configuration information of the virtual machine template including the target virtual machine and the template type;

[0100] Step 404, configuring the target virtual machine as a virtual machine template according to the configuration information;

[0101] Step 406: store the virtual machine template as an object in a corresponding storage space according to the template type.

[0102] In the embodiment of the present application, a user who logs in to the virtual machine template management platform can configure the virtual machine template on the virtual machine template management platform. Exemplarily, the virtual machine template configuration interface includes virtual machine template configuration items, and the user can configure the configuration information of the virtual machine template through the virtual machine template configuration items.

[0103] Exemplarily, the virtual machine template configuration items may include virtual machine configuration items, virtual machine template name configuration items, and virtual machine template type configuration items. The user can configure the target virtual machine for virtual machine template configuration through the virtual machine configuration items, the name of the virtual machine template can be configured through the virtual machine template name configuration item, and the template type of the virtual machine template can be configured through the virtual machine template type configuration item. Exemplarily, the template type may include a communication type corresponding to a first type identifier and a custom type corresponding to a second type identifier, wherein the first type identifier is used to characterize the virtual machine template as a general type, for example: a general operating system template provided by standard IaaS and PaaS services, and the second type identifier is used to characterize the virtual machine template as a custom type of the project group, for example: a virtual machine template that is personalized by the user according to business needs in actual usage scenarios and integrated with specific application services.

[0104] After obtaining the configuration information of the virtual machine template, the target virtual machine can be configured as a virtual machine template. For example, the target virtual machine can be configured as a template using a VMM (virtual machine monitor) powershell command. The virtual machine template includes a template file and an operation configuration file, wherein the template file may include various data of the target virtual machine, and the operation configuration file may include configuration information such as the name and template type of the virtual machine template.

[0105] After obtaining the virtual machine template corresponding to the target virtual machine, the virtual machine template can be stored as an object in the corresponding storage space according to the template type of the virtual machine template. Since virtual machine templates need to be updated and maintained regularly, and the space of the VMMLibrary management platform is limited, a dedicated storage space can be used as a template library for virtual machine templates for storage. Since the private object storage service has the advantages of large storage space, suitability for cloud native, and support for multi-site synchronization, the object storage can be used as a template library, and the bucket in the object storage can be used as the storage space for the virtual machine template. That is, the virtual machine template can be stored as an object in the corresponding storage space Bucket, and the metadata of the virtual machine template can be described.

[0106] The virtual machine template management method provided in the embodiment of the present application, regardless of the type of virtual machine template, the user only needs to specify the target virtual machine and the name and template type of the virtual machine template to configure the virtual machine template, thereby simplifying the configuration process of the virtual machine template, improving the configuration efficiency of the virtual machine template, and reducing the manpower configuration cost.

[0107] In one embodiment, in step 406, storing the virtual machine template as an object in a corresponding storage space according to the template type includes:

[0108] In the case where the template type corresponds to a first type identifier, the virtual machine template is stored as an object in a first storage space corresponding to the first type, and the first type identifier is used to identify that the virtual machine template is a general type.

[0109] In the embodiment of the present application, different types of virtual machine templates can be stored in different storage spaces. Exemplarily, when it is determined that the type of the virtual machine template is a general type corresponding to the first type identifier, the virtual machine template can be stored as an object in the first storage space corresponding to the first type identifier, and the first storage space is a storage space without access rights, that is, any object can access the first storage space, and upload and download virtual machine templates in the first storage space.

[0110] In one embodiment, referring to Figure 5 As shown, in step 406, storing the virtual machine template as an object in a corresponding storage space according to the template type includes:

[0111] Step 502, when the template type corresponds to a second type identifier, determining whether there is a corresponding second storage space for the current user account information, the second type identifier being used to identify the virtual machine template as a custom type;

[0112] Step 504: if there is a second storage space, store the virtual machine template as an object in the second storage space;

[0113] Alternatively, in step 506, if the second storage space does not exist, after creating the second storage space for the current user account information, the virtual machine template is stored as an object in the second storage space.

[0114] In the embodiment of the present application, when the template type is a custom type corresponding to the second type, it can be determined that the virtual machine template is a custom template of the project team, so it has privacy. Then the virtual machine template can be stored in the second storage space corresponding to the project team, and the second storage space is a storage space with access rights created by the project team, that is, only members within the project team are allowed to access the second storage space, and upload and download virtual machine templates in the second storage space.

[0115] Exemplarily, when it is determined that the template type is a custom type corresponding to the second type, the project group to which the virtual machine template belongs can be determined based on the current user account information that creates the virtual machine template, and then it can be determined whether the project group has created a corresponding second storage space. If so, the virtual machine template can be stored as an object in the second storage space; otherwise, a corresponding second storage space can be created for the project group, and after the corresponding second storage space is created for the project group, the virtual machine template can be stored as an object in the second storage space. Alternatively, when configuring a virtual machine template, the user can specify the storage space of the virtual machine template by configuring the second storage space in the configuration information.

[0116] Exemplarily, when a user logs in to a virtual machine template management platform and intends to deploy and manage a custom type of virtual machine template, it can be determined based on the user's account information whether the user has access rights to the second storage space where the virtual machine template is located. If the user has access rights to the second storage space, the user can be allowed to perform deployment and management operations on the virtual machine template; if the user does not have access rights to the second storage space, the user is not allowed to perform deployment and management operations on the virtual machine template, and a prompt message can be displayed to indicate that the user cannot deploy and manage the virtual machine template.

[0117] The virtual machine template management method provided in the embodiment of the present application can create different buckets in the object storage for storing virtual machine templates of different template types, and then limit different roles through permission control to log in, upload, and download virtual machine templates in different buckets, which can adapt to more application scenarios.

[0118] In one embodiment, the configuration information includes the time when the virtual machine template is removed from the shelf. Figure 6 , the above method further comprises:

[0119] Step 602, when it is monitored that the current time is the time for the virtual machine template to be delisted, determine the data center where the virtual machine template is currently listed;

[0120] Step 604: Send a delisting instruction for the virtual machine template to the data center, so that the data center executes a delisting operation for the virtual machine template in response to the delisting instruction.

[0121] In an embodiment of the present application, when creating a virtual machine template, the virtual machine template's listing time and delisting time can be set. The virtual machine template management platform can send a listing instruction for the virtual machine template to the target data center at the virtual machine template's listing time, so that the target data center can list the virtual machine template based on the listing instruction.

[0122] Alternatively, when the virtual machine template management platform detects that the current time is the delisting time of the virtual machine template, it can determine the data center that has currently listed the virtual machine template, and send a delisting instruction for the virtual machine template to each data center that has listed the virtual machine template, so that the target data center can delist the virtual machine template based on the delisting instruction.

[0123] In this way, the virtual machine template management method provided in the embodiment of the present application can set the listing time and delisting time of the virtual machine template so that virtual machine templates with low usage frequency can be automatically delisted when the delisting time is reached, thereby releasing the storage space of the data center in time and making effective use of the storage space of the data center.

[0124] The management method of the virtual machine template provided in the embodiment of the present application can perform management operations such as putting on shelves, updating, delisting, and possibly re-listing on the virtual machine template during the use cycle of the virtual machine template. Exemplarily, a virtual machine template query and operation interface can also be provided, through which users can query all virtual machine templates being used by each data center in real time. For example, a query instruction can be sent to the target data center, so that the target data center can feedback all the virtual machine templates it uses and display them in the virtual machine template query and operation interface. Users can further deploy and manage the displayed virtual machine templates, and refer to the aforementioned embodiment for details.

[0125] Alternatively, through the virtual machine template query and operation interface, the user can query all virtual machine templates in the virtual machine template library, and view information such as historical versions of each virtual machine template, and display them in the virtual machine template query and operation interface. The user can further deploy and manage each displayed virtual machine template, please refer to the aforementioned embodiment for details.

[0126] In one embodiment, referring to Figure 7 As shown, a virtual machine template management method is provided, which is applied to Figure 1 At the data center end 104 shown, the method may include:

[0127] Step 702: receiving a management instruction sent by the virtual machine template management platform, where the management instruction includes a target virtual machine template identifier and a management operation;

[0128] Step 704: Perform a management operation on the target virtual machine template corresponding to the target virtual machine template identifier.

[0129] In the embodiment of the present application, the virtual machine template management platform can send a management instruction to the data center to instruct the data center to perform corresponding management operations on the target virtual machine template through the management instruction. The management instruction may include a shelf instruction corresponding to the shelf operation, a delisting instruction corresponding to the delisting operation, and an update instruction corresponding to the update operation.

[0130] It should be noted that the process of the virtual machine template management platform generating and sending management instructions can refer to the relevant description of the aforementioned embodiment, and the embodiment of the present application will not be repeated here.

[0131] After receiving the management instruction sent by the virtual machine template management platform, the data center can obtain the target virtual machine template identifier and the management operation from the management instruction, and then can respond to the management instruction and perform the management operation on the target virtual machine template corresponding to the target virtual machine template identifier.

[0132] In the above-mentioned virtual machine template management method, after the data center receives the management instruction including the target virtual machine template identifier and the management operation sent by the virtual machine template management platform, it can respond to the management instruction and perform the corresponding management operation on the target virtual machine template corresponding to the target virtual machine template identifier. Based on the virtual machine template management method provided in the embodiment of the present application, management operations can be performed on virtual machine templates in multiple data centers simultaneously, which can improve the management efficiency of virtual machine templates, reduce labor costs, and avoid manual management errors, thereby ensuring the uniformity of virtual machine templates in data centers that have uniformity requirements for virtual machine templates.

[0133] In one embodiment, referring to Figure 8 As shown, in the case where the management operation includes a shelf operation, in step 704, the management operation is performed on the target virtual machine template corresponding to the target virtual machine template identifier, including:

[0134] Step 802: Download the target virtual machine template from the storage space of the target virtual machine template according to the target virtual machine template identifier;

[0135] Step 804, performing security verification on the target virtual machine template;

[0136] Step 806: When the target virtual machine template passes the security check, the target virtual machine template is stored in the data center.

[0137] In the embodiment of the present application, when the management operation includes a listing operation, the management instruction may be a listing instruction. The data center may respond to the listing instruction for the target virtual machine template by downloading the target virtual machine template corresponding to the target virtual machine template identifier from the storage space of the target virtual machine template through the template acquisition script. After downloading the target virtual machine template, the target virtual machine template is verified through the template integrity verification script. For example, the file size of the downloaded target virtual machine template and the target virtual machine template in the storage space may be verified through MD5. When the file sizes are consistent, it can be determined that the target virtual machine template passes the integrity check, and the target virtual machine template may be stored in the data center through the template distribution script.

[0138] Exemplarily, the virtual machine template management platform can automatically issue template acquisition scripts, template integrity verification scripts, and template distribution scripts to achieve cross-region and cross-platform virtual machine template deployment. For example: if a user needs to update a virtual machine template on both the data center A and the data center B platforms, the user only needs to select the cloud environment (or also called cloud region), data center, and the virtual machine template on the virtual machine template management platform to automatically synchronize the template files and operation configuration files corresponding to the virtual machine template to data center A and data center B, that is, to achieve the deployment of virtual machine templates in different centers in different cloud environments.

[0139] In one embodiment, when the management operation includes a delisting operation, in step 704, the management operation is performed on the target virtual machine corresponding to the target virtual machine template identifier, including:

[0140] In response to the delisting operation, the target virtual machine template corresponding to the target virtual machine template identifier is deleted from the data center.

[0141] In the embodiment of the present application, when the management operation includes a delisting operation, the management instruction may be a delisting instruction. In response to the delisting instruction, the data center may delete the target virtual machine template from the data center locally.

[0142] In one embodiment, when the management operation includes an update operation, the data center may respond to the update operation by downloading a specified version of the target virtual machine template indicated by the update operation from the storage space of the target virtual machine template according to the target virtual machine template identifier, and after downloading, perform a security check on the specified version of the target virtual machine template. When the specified version of the target virtual machine template passes the security check, the old version of the target virtual machine template stored in the data center may be deleted, and the specified version of the target virtual machine template may be stored in the data center.

[0143] The management method of the virtual machine template provided in the embodiment of the present application realizes the full process automation of the configuration and management of the virtual machine template. After any user logs in, he can specify the target virtual machine at any time to configure the virtual machine template, use powershell to directly configure the target virtual machine into a virtual machine template, and upload it to the specified bucket of the S3 object storage as needed, so that the configuration operation of the virtual machine template is no longer limited to the operation and maintenance personnel, and the virtual machine template configuration process is simple, which can greatly reduce the configuration time of the virtual machine template and improve the configuration efficiency of the virtual machine template. And after specifying the target virtual machine template, target data center, and management operation through the virtual machine template management platform, the corresponding management task can be initiated to the target data center. Multiple data centers can perform management operations synchronously, and the corresponding operation results can be fed back after any process of the management operation, such as: template acquisition script, integrity verification script, distribution\recycling\update script, etc. are executed, and the final result is fed back after all operations are completed.

[0144] For operation and maintenance personnel, they can manage the basic templates of all regions and all platforms in a unified and standardized manner through a single operation; for business users, virtual machines can be configured as virtual machine templates according to actual business needs, providing business users with a friendly and easy-to-use front-end platform.

[0145] In one embodiment, a virtual machine template management system 900 is provided, including a virtual machine template management platform 902 and a plurality of data centers 904 ( Fig. 9 Only one target data center is shown in FIG), where

[0146] The virtual machine template management platform 902 is used to send management instructions for the target virtual machine template to at least one target data center 904 among multiple data centers in response to management operations on the target virtual machine template; the target data center 904 responds to the management instructions and executes the management operations corresponding to the management instructions on the target virtual machine template.

[0147] This application implements the configuration and deployment of virtual machine templates under multiple data platforms based on poweshell scripts. After creating a virtual machine template, the virtual machine template management platform 902 can export the virtual machine template to a specified object storage bucket and tag it to distinguish the virtual machine template version; the target data center 904 can batch download, distribute, update or delete virtual machine templates from the object storage after receiving the management instructions sent by the virtual machine template management platform 902. During the configuration and deployment process of the virtual machine template, the user can operate the corresponding function button in the interface of the virtual machine template management platform 902 to realize the deployment of the virtual machine template in all data centers, which can greatly save human resources.

[0148] In the embodiment of the present application, the deployment management and configuration process of the virtual machine template by the virtual machine template management platform 902 and the target data center 904 can refer to the relevant description of the above embodiment. When the target data center 904 performs the management operation for the target virtual machine template and completes the management operation for the target virtual machine template, it can send corresponding feedback information to the virtual machine template management platform 902. The virtual machine template management platform 902 can collect statistics on each feedback information to provide data support for the historical deployment information of the virtual machine template in each data center in the future. The embodiment of the present application will not be repeated here.

[0149] In an embodiment of the present application, when the target data center 904 is performing management operations on the target virtual machine template and after completing the management operations on the target virtual machine template, it can send corresponding feedback information to the virtual machine template management platform 902. The virtual machine template management platform 902 can collect statistics on each feedback information so as to provide data support for the historical deployment information of the virtual machine template for each data center in the future.

[0150] The management system of virtual machine templates provided in the embodiment of the present application, the virtual machine template management platform is used to respond to the management operation on the target virtual machine template, and send a management instruction for the target virtual machine template to at least one target data center in multiple data centers; the target data center responds to the management instruction and executes the management operation corresponding to the management instruction on the target virtual machine template. Based on the management system of virtual machine templates provided in the embodiment of the present application, management operations can be performed on virtual machine templates in multiple data centers simultaneously, which can improve the management efficiency of virtual machine templates, reduce labor costs, and avoid manual management errors, thereby ensuring the uniformity of virtual machine templates in data centers that have uniformity requirements for virtual machine templates.

[0151] 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 does not have a strict order restriction, 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 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.

[0152] Based on the same inventive concept, the embodiment of the present application also provides a virtual machine template management device for implementing the virtual machine template management 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 the embodiment of the management device for one or more virtual machine templates provided below can refer to the limitations of the virtual machine template management method above, and will not be repeated here.

[0153] In one embodiment, Fig.10 As shown, a virtual machine template management device is provided, including: a first determination module 1002, a second determination module 1004 and a first sending module 1006, wherein:

[0154] A first determination module 1002, configured to determine a target virtual machine template in response to a selection operation on the target virtual machine template;

[0155] A second determination module 1004 is configured to determine at least one target data center corresponding to the target virtual machine template in response to a setting operation on the target data center;

[0156] The first sending module 1006 is used to send a management instruction for the target virtual machine template to the at least one target data center in response to the management operation for the target virtual machine template, so that the at least one target data center performs a corresponding management operation on the target virtual machine template according to the management instruction.

[0157] In the above-mentioned management device for virtual machine templates, the virtual machine template management platform responds to the selection operation for the target virtual machine template. After determining the target virtual machine template, it can respond to the setting operation for the target data center to determine at least one target data center corresponding to the target virtual machine template. And in response to the management operation for the target virtual machine template, it can send a management instruction for the target virtual machine template to at least one target data center, so that at least one target data center performs corresponding management operations on the target virtual machine template according to the management instruction. Based on the management device for virtual machine templates provided in the embodiment of the present application, management operations can be performed on virtual machine templates in multiple data centers simultaneously, which can improve the management efficiency of virtual machine templates, reduce labor costs, and avoid manual management errors, thereby ensuring the uniformity of virtual machine templates in data centers that have uniformity requirements for virtual machine templates.

[0158] In one embodiment, the device further comprises:

[0159] An acquisition module, configured to acquire configuration information of the virtual machine template in response to a configuration operation on the virtual machine template, wherein the configuration information of the virtual machine template includes a target virtual machine and a template type;

[0160] A configuration module, configured to configure the target virtual machine as the virtual machine template according to the configuration information;

[0161] A storage module is used to store the virtual machine template as an object in a corresponding storage space according to the template type.

[0162] In one embodiment, the storage module is further used for:

[0163] In a case where the template type corresponds to a first type identifier, the virtual machine template is stored as an object in a first storage space corresponding to the first type, and the first type identifier is used to identify that the virtual machine template is a general type.

[0164] In one embodiment, the storage module is further used for:

[0165] In a case where the template type corresponds to a second type identifier, determining whether there is a corresponding second storage space for the current user account information, wherein the second type identifier is used to identify that the virtual machine template is a custom type;

[0166] If the second storage space exists, storing the virtual machine template as an object in the second storage space;

[0167] Alternatively, when the second storage space does not exist, after the second storage space is created for the current user account information, the virtual machine template is stored as an object in the second storage space.

[0168] In one embodiment, the configuration information includes the time when the virtual machine template is removed from the shelf, and the device further includes:

[0169] A determination module, configured to determine a data center that has currently put the virtual machine template on the shelf when monitoring that the current time is the time for the virtual machine template to be taken off the shelf;

[0170] The second sending module is used to send a delisting instruction for the virtual machine template to the data center, so that the data center executes a delisting operation for the virtual machine template in response to the delisting instruction.

[0171] In one embodiment, the management operation includes a listing operation, an updating operation, and a delisting operation.

[0172] In one embodiment, Fig.11 As shown, a virtual machine template management device is provided, which is applied to a data center. The device includes: a receiving module 1102 and a management module 1104.

[0173] The receiving module 1102 is used to receive a management instruction sent by the virtual machine template management platform, wherein the management instruction includes a target virtual machine template identifier and a management operation;

[0174] The management module 1104 is configured to perform the management operation on the target virtual machine template corresponding to the target virtual machine template identifier.

[0175] The management device for the virtual machine template described above can execute corresponding management operations on the target virtual machine template corresponding to the target virtual machine template identifier in response to the management instructions after the data center receives the management instructions including the target virtual machine template identifier and the management operation sent by the virtual machine template management platform. The management device for the virtual machine template provided in the embodiment of the present application can synchronously perform management operations on virtual machine templates in multiple data centers, improve the management efficiency of virtual machine templates, reduce labor costs, and avoid manual management errors, thereby ensuring the uniformity of virtual machine templates in data centers that have uniformity requirements for virtual machine templates.

[0176] In one embodiment, when the management operation includes a shelf operation, the management module 1104 is further configured to:

[0177] Downloading the target virtual machine template from the storage space of the target virtual machine template according to the target virtual machine template identifier;

[0178] Performing a security check on the target virtual machine template;

[0179] When the target virtual machine template passes the security check, the target virtual machine template is stored in a data center.

[0180] In one embodiment, when the management operation includes a delisting operation, the management module 1104 is further configured to:

[0181] In response to the delisting operation, the target virtual machine template corresponding to the target virtual machine template identifier is deleted from the data center.

[0182] Each module in the management device of the virtual machine template 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.

[0183] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.12As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. 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 and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for managing a virtual machine template is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0184] Those skilled in the art will understand that Fig.12 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.

[0185] In one 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 method embodiments when executing the computer program.

[0186] 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.

[0187] 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.

[0188] 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.

[0189] 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 the present 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.

[0190] 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.

[0191] 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 method for managing a virtual machine template, characterized in that: Applied to a virtual machine template management platform, the method includes: In response to a selection operation on a target virtual machine template, determining the target virtual machine template; In response to a setting operation for a target data center, determining at least one target data center corresponding to the target virtual machine template; In response to the management operation on the target virtual machine template, a management instruction on the target virtual machine template is sent to the at least one target data center, so that the at least one target data center performs a corresponding management operation on the target virtual machine template according to the management instruction.

2. The method according to claim 1, characterized in that The method further comprises: In response to a configuration operation on a virtual machine template, obtaining configuration information of the virtual machine template, wherein the configuration information of the virtual machine template includes a target virtual machine and a template type; Configuring the target virtual machine as the virtual machine template according to the configuration information; The virtual machine template is stored as an object in a corresponding storage space according to the template type.

3. The method according to claim 2, characterized in that The storing the virtual machine template as an object in a corresponding storage space according to the template type includes: In a case where the template type corresponds to a first type identifier, the virtual machine template is stored as an object in a first storage space corresponding to the first type, and the first type identifier is used to identify that the virtual machine template is a general type.

4. The method according to claim 2, characterized in that: The storing the virtual machine template as an object in a corresponding storage space according to the template type includes: In a case where the template type corresponds to a second type identifier, determining whether there is a corresponding second storage space for the current user account information, wherein the second type identifier is used to identify that the virtual machine template is a custom type; If the second storage space exists, storing the virtual machine template as an object in the second storage space; Alternatively, when the second storage space does not exist, after the second storage space is created for the current user account information, the virtual machine template is stored as an object in the second storage space.

5. The method according to any one of claims 2 to 4, characterized in that The configuration information includes the time when the virtual machine template is removed from the shelves, and the method further includes: In the case where it is monitored that the current time is the delisting time of the virtual machine template, determining the data center where the virtual machine template is currently listed; A delisting instruction for the virtual machine template is sent to the data center, so that the data center executes a delisting operation for the virtual machine template in response to the delisting instruction.

6. The method according to any one of claims 1 to 4, characterized in that The management operation includes a listing operation, an updating operation, and a delisting operation.

7. A method for managing a virtual machine template, characterized in that: Applied to a data center, the method includes: Receiving a management instruction sent by the virtual machine template management platform, wherein the management instruction includes a target virtual machine template identifier and a management operation; The management operation is performed on the target virtual machine template corresponding to the target virtual machine template identifier.

8. The method according to claim 7, characterized in that In the case where the management operation includes a shelf operation, performing the management operation on the target virtual machine template corresponding to the target virtual machine template identifier includes: Downloading the target virtual machine template from the storage space of the target virtual machine template according to the target virtual machine template identifier; Performing a security check on the target virtual machine template; When the target virtual machine template passes the security check, the target virtual machine template is stored in a data center.

9. The method according to claim 7, characterized in that: In the case where the management operation includes a delisting operation, performing the management operation on the target virtual machine corresponding to the target virtual machine template identifier includes: In response to the delisting operation, the target virtual machine template corresponding to the target virtual machine template identifier is deleted from the data center.

10. A management system for virtual machine templates, characterized in that: The system includes a virtual machine template management platform and multiple data centers, wherein: The virtual machine template management platform is used to send a management instruction for the target virtual machine template to at least one target data center among the multiple data centers in response to a management operation for the target virtual machine template; The target data center executes the management operation corresponding to the management instruction on the target virtual machine template in response to the management instruction.

11. A virtual machine template management device, characterized in that: Applied to a virtual machine template management platform, the device comprises: A first determination module, configured to determine a target virtual machine template in response to a selection operation on the target virtual machine template; A second determination module, configured to determine at least one target data center corresponding to the target virtual machine template in response to a setting operation for the target data center; The first sending module is used to send a management instruction for the target virtual machine template to the at least one target data center in response to the management operation for the target virtual machine template, so that the at least one target data center performs a corresponding management operation on the target virtual machine template according to the management instruction.

12. A virtual machine template management device, characterized in that: Applied to a data center, the device includes: A receiving module, used to receive a management instruction sent by the virtual machine template management platform, wherein the management instruction includes a target virtual machine template identifier and a management operation; The management module is used to perform the management operation on the target virtual machine template corresponding to the target virtual machine template identifier.

13. 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 9 are implemented.

14. 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 9 are implemented.

15. 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 9 are implemented.