Virtual machine management method and device, equipment and storage medium

By establishing a connection between the virtual machine management platform and the virtual machine management domains of multiple virtualization types and responding to the management requests of the target application, the problem that the existing Libvirt architecture cannot manage virtual machines of different virtualization types is solved, and the mixed management of multiple types of virtual machines is realized, which improves the user experience.

CN119512679APending Publication Date: 2025-02-25BEIJING KINGSOFT CLOUD NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311075719.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-24
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

The existing Libvirt architecture cannot manage virtual machines of different virtualization types at the same time, resulting in users being unable to rely on the existing architecture to manage multiple types of virtual machines, and the user experience is poor.

Method used

By establishing at least two sets of connections between the virtual machine management platform and at least two virtual machine management domains with different virtualization types, in response to the target application's management request, find and use the target connection to execute the management request, and feed the management results back to the target application.

Benefits of technology

It realizes mixed management of the virtual machine management platform and virtual machine management domains of multiple virtualization types, meets users' management needs for multiple types of virtual machines and improves the convenience of management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119512679A_ABST
    Figure CN119512679A_ABST
Patent Text Reader

Abstract

The invention relates to a virtual machine management method and device, equipment and a storage medium, the method is suitable for a proxy service, and the method comprises the following steps: in response to a management request sent by a target application, searching for a target connection corresponding to the management request in a pre-established connection set, the connection set comprises at least two groups of connections established between the virtual machine management platform and at least two virtual machine management domains with different virtualization types; controlling the virtual machine management platform to execute the management request through the target connection and return a management result; and feeding back the management result to the target application. According to the method, the proxy service is set, when the management request sent by the target application is received, the virtual machine management platform is controlled to execute the management request through the target connection corresponding to the management request, and the returned management result is fed back to the target application; the hybrid management of the virtual machine management platform on the virtual machine management domains of different virtualization types can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of virtual machine technology, and in particular to a virtual machine management method, device, equipment and storage medium. Background Art

[0002] With the development of virtual machine technology, the number of virtualization types continues to increase, and the management platform is becoming more and more mature. The need for co-location management of virtual machines of multiple virtualization types has also arisen. Different virtual machines of different virtualization types often correspond to different management domains. Libvirt, as a commonly used virtual machine management solution, can only establish a connection with one management domain at a time. It is impossible to co-locate virtual machines of different virtualization types on the same node or cluster, so users cannot rely on the existing Libvirt architecture to manage multiple types of virtual machines, resulting in a poor user experience. Summary of the invention

[0003] In order to solve the above technical problems, the present disclosure provides a virtual machine management method, apparatus, device and storage medium.

[0004] A first aspect of an embodiment of the present disclosure provides a virtual machine management method, which is applicable to a proxy service, and includes:

[0005] In response to a management request sent by a target application, searching a pre-established connection set for a target connection corresponding to the management request, wherein the connection set includes at least two groups of connections established between a virtual machine management platform and at least two virtual machine management domains of different virtualization types;

[0006] Controlling the virtual machine management platform to execute the management request through the target connection and return a management result;

[0007] The management result is fed back to the target application.

[0008] Optionally, in response to the management request sent by the target application, searching for a target connection corresponding to the management request in a pre-established connection set includes:

[0009] In response to the management request sent by the target application, extracting a target management interface from the management request;

[0010] Determining a target virtual machine management domain corresponding to the target management interface;

[0011] The target connection between the target virtual machine management domain and the virtual machine management platform is searched in the connection set.

[0012] Optionally, the determining a target virtual machine management domain corresponding to the target management interface includes:

[0013] Each management interface in the virtual machine management platform is traversed to determine the target virtual machine management domain corresponding to the target management interface, wherein there is a corresponding relationship between the management interface and the virtual machine management domain.

[0014] Optionally, in response to the management request sent by the target application, searching for a target connection corresponding to the management request in a pre-established connection set includes:

[0015] In response to the management request sent by the target application, extracting a target virtualization type of a target managed virtual machine from the management request;

[0016] Determining a target virtual machine management domain corresponding to the target virtualization type;

[0017] The target connection between the target virtual machine management domain and the virtual machine management platform is searched in the connection set.

[0018] Optionally, in response to the management request sent by the target application, before searching a pre-established connection set for a target connection corresponding to the management request, the method further includes:

[0019] In response to a connection request sent by the target application, establish a connection with the virtual machine management platform, and control the virtual machine management platform to establish at least two groups of connections with at least two virtual machine management domains;

[0020] In response to the information of the at least two groups of connections fed back by the virtual machine management platform after the at least two groups of connections are successfully established, a connection set including the at least two groups of connections is created.

[0021] Optionally, after establishing the connection set including the at least two groups of connections, the method further includes:

[0022] The at least two groups of connections in the connection set are maintained.

[0023] Optionally, the establishing a connection with the virtual machine management platform and controlling the virtual machine management platform to establish at least two groups of connections with at least two virtual machine management domains includes:

[0024] Extracting a uniform resource identifier of a virtual machine management domain from the connection request;

[0025] Determining whether the uniform resource identifier is a uniform resource identifier of one of the at least two virtual machine management domains;

[0026] If so, the steps of establishing a connection with the virtual machine management platform and controlling the virtual machine management platform to establish at least two groups of connections with at least two virtual machine management domains are executed.

[0027] A second aspect of an embodiment of the present disclosure provides a virtual machine management device, which is applicable to a proxy service, and includes:

[0028] A search module, configured to, in response to a management request sent by a target application, search for a target connection corresponding to the management request in a pre-established connection set, wherein the connection set includes at least two groups of connections established between a virtual machine management platform and at least two virtual machine management domains of different virtualization types;

[0029] A first control module, used for controlling the virtual machine management platform to execute the management request through the target connection and return a management result;

[0030] A feedback module is used to feed back the management result to the target application.

[0031] A third aspect of an embodiment of the present disclosure provides a computer device, including a memory and a processor, and a computer program, wherein the computer program is stored in the memory, and when the computer program is executed by the processor, the virtual machine management method as described in the first aspect above is implemented.

[0032] A fourth aspect of an embodiment of the present disclosure provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the virtual machine management method as described in the first aspect above is implemented.

[0033] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has the following advantages:

[0034] In the virtual machine management method, apparatus, device and storage medium provided in the embodiments of the present disclosure, by responding to a management request sent by a target application, searching for a target connection corresponding to the management request in a pre-established connection set, wherein the connection set includes at least two groups of connections established between a virtual machine management platform and at least two virtual machine management domains of different virtualization types, controlling the virtual machine management platform to execute the management request through the target connection and return a management result, and feeding back the management result to the target application, the virtual machine management platform can establish at least two groups of connections with at least two virtual machine management domains of different virtualization types, and then manage the corresponding virtual machine management domains through at least two groups of connections, thereby meeting the user's needs for mixed deployment management and improving the convenience of management. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0036] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0037] Figure 1 is a flow chart of a virtual machine management method provided by an embodiment of the present disclosure;

[0038] Figure 2 is a flow chart of a method for searching a target connection provided by an embodiment of the present disclosure;

[0039] Figure 3 is a flowchart of another method for searching for a target connection provided by an embodiment of the present disclosure;

[0040] Figure 4 is a flowchart of a method for creating a connection set provided by an embodiment of the present disclosure;

[0041] Figure 5 is a flow chart of a method for establishing a connection provided by an embodiment of the present disclosure;

[0042] Figure 6 It is a structural diagram of a virtual machine management device provided by an embodiment of the present disclosure;

[0043] Figure 7 It is a structural diagram of a computer device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0044] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.

[0045] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.

[0046] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0047] Figure 1The flowchart of a virtual machine management method provided by an embodiment of the present disclosure can be performed by a virtual machine management device, which can be set on a proxy service, and the proxy service is used to maintain the connection between the virtual machine management platform and each virtual machine management domain, so that the virtual machine management platform can simultaneously manage virtual machine management domains of multiple virtualization types. Figure 1 As shown, the virtual machine management method provided in this embodiment includes the following steps:

[0048] S101. In response to a management request sent by a target application, searching a pre-established connection set for a target connection corresponding to the management request, wherein the connection set includes at least two groups of connections established between a virtual machine management platform and at least two virtual machine management domains of different virtualization types.

[0049] The target application in the embodiment of the present disclosure may be understood as an upper-layer application that is the initiator of the management request, and the target application has the authority to manage each virtual machine under the virtual machine management platform.

[0050] The management request in the embodiment of the present disclosure may be understood as a request for managing at least one virtual machine. By way of example, the management request may include a start request, a shutdown request, a deletion request, a pause request, a resume request, etc., which are not limited here.

[0051] The virtual machine management platform in the embodiments of the present disclosure may be understood as a platform that can manage virtual machines of various virtualization types. For example, the virtual machine management platform may include Libvirt.

[0052] The virtualization type in the embodiment of the present disclosure can be understood as a virtualization type obtained by dividing according to the management software corresponding to the virtual machine. For example, the virtualization type may include QEMU, XEN, Cloud Hypervisor, etc., which is not limited here.

[0053] The virtual machine management domain in the embodiment of the present disclosure can be understood as a management domain that distinguishes virtualization types, and virtual machines of the same virtualization type belong to the same virtual machine management domain.

[0054] In the disclosed embodiment, the virtual machine management device can receive a management request sent by the target application through the calling interface of the virtual machine management platform, and based on the management request, search for the target connection corresponding to the management request from at least two groups of connections included in a pre-established connection set. Each group of connections in the connection set is used to connect the virtual machine management platform and the virtual machine management domain. Different virtual machine management domains of different virtualization types will establish different connections with the virtual machine management platform.

[0055] In an exemplary implementation of an embodiment of the present disclosure, the virtual machine management device can extract the information of the virtual machine management domain contained in the connection request, and based on the information of the virtual machine management domain, search for a connection corresponding to the virtual machine management domain in at least two groups of connections contained in a connection set, and determine it as the target connection.

[0056] In another exemplary implementation of the disclosed embodiment, the virtual machine management device may send a management request to at least two corresponding virtual machine management domains through at least two groups of connections included in a connection set, and receive information returned by each virtual machine management domain on whether the management request can be processed, and then determine the connection corresponding to the virtual machine management domain that can process the management request as the target connection.

[0057] In another exemplary implementation of the disclosed embodiment, the virtual machine management device may determine whether the virtual machine management device has established a connection with the virtual machine management platform after receiving a management request sent by the target application. If the connection has been established, the target connection corresponding to the management request is searched in a pre-established connection set between the virtual machine platform and the virtual machine management domain. If the connection has not been established, a reminder message is sent to the target application to remind the target application that the virtual machine management device has not yet established a connection with the virtual machine management platform and that the step of establishing a connection between the virtual machine management device and the virtual machine management platform needs to be executed first.

[0058] S102: Control the virtual machine management platform to execute the management request through the target connection and return the management result.

[0059] The management result in the embodiment of the present disclosure may be understood as information on whether the target managed virtual machine successfully executes the management operation corresponding to the management request.

[0060] In the disclosed embodiment, the virtual machine management device can control the virtual machine management platform to send a management request through a target connection so that the corresponding virtual machine management domain executes the management request after receiving it. Specifically, the virtual machine management domain can determine the target managed virtual machine based on the management request, and feed back the management result to the virtual machine management platform, which is then fed back to the virtual machine management device by the virtual machine management platform.

[0061] In an exemplary implementation of the embodiments of the present disclosure, the virtual machine management device can send a control instruction to the virtual machine management platform, where the control instruction includes a target connection and a specific management operation to be performed, thereby controlling the virtual machine management platform to send a management request to the connected virtual machine management domain through the target connection. The virtual machine management domain determines the virtual machine to be managed by the target of the management request, and feeds back the management result to the virtual machine management platform, which then feeds back to the virtual machine management device.

[0062] In another exemplary implementation of the disclosed embodiment, the virtual machine management device can search for a connection interface corresponding to the target connection, which is used to connect the virtual machine management device and the virtual machine management platform, and send a management request to the virtual machine management platform through the connection interface corresponding to the target connection. The virtual machine management platform determines the target connection to be used when sending the management request based on the connection interface for receiving the management request, and then sends the management request to the corresponding virtual machine management domain for execution, and after execution, feeds back the management result returned by the virtual machine management domain to the virtual machine management device through the connection interface.

[0063] S103: Feedback the management result to the target application.

[0064] In the embodiment of the present disclosure, the virtual machine management device may feed back the management result to the target application after receiving the management result returned by the virtual machine management platform.

[0065] In an exemplary implementation of the embodiment of the present disclosure, after receiving the management result returned by the virtual machine management platform, the virtual machine management device may feed back the management result to the target application through the calling interface of the virtual machine management platform.

[0066] The disclosed embodiment responds to a management request sent by a target application, searches for a target connection corresponding to the management request in a pre-established connection set, wherein the connection set includes at least two groups of connections established between a virtual machine management platform and at least two virtual machine management domains of different virtualization types, controls the virtual machine management platform to execute the management request through the target connection and returns a management result, and feeds back the management result to the target application, so that the virtual machine management platform can establish at least two groups of connections with at least two virtual machine management domains of different virtualization types, and then manage the corresponding virtual machine management domains through the at least two groups of connections, thereby meeting the user's needs for colocation management and improving the convenience of management.

[0067] Figure 2 is a flow chart of a method for searching a target connection provided by an embodiment of the present disclosure. Figure 2 As shown, based on the above embodiment, the target connection can be found by the following method.

[0068] S201. In response to a management request sent by a target application, extract a target management interface from the management request.

[0069] The management interface in the embodiments of the present disclosure may be understood as an interface for implementing various management functions. For example, one management interface may implement one management function of one virtual machine.

[0070] In the embodiment of the present disclosure, after receiving the request sent by the target application, the virtual machine management device can extract the target management interface used by the management request target from the management request.

[0071] In an exemplary implementation of the embodiment of the present disclosure, the virtual machine management device may extract the target management interface from a preset position of the management request based on the encoding rule of the management request.

[0072] In another exemplary implementation of the disclosed embodiment, the management device of the virtual machine may perform keyword detection on the content of the management request based on preset keywords related to the management interface to obtain the target management interface included in the management request.

[0073] S202: Determine a target virtual machine management domain corresponding to a target management interface.

[0074] In the embodiment of the present disclosure, the virtual machine management device may determine the target virtual machine management domain to which the target management interface belongs after determining the target management interface.

[0075] In an exemplary implementation of the embodiment of the present disclosure, the virtual machine management apparatus may determine the target virtual machine management domain corresponding to the target management interface based on the pre-recorded management interfaces included in each virtual machine management domain.

[0076] In another exemplary implementation of the embodiment of the present disclosure, the virtual machine management apparatus may determine the target virtual machine management domain corresponding to the target management interface based on a keyword related to the virtual machine management domain contained in the interface name of the target management interface.

[0077] S203: Search the connection set for a target connection between the target virtual machine management domain and the virtual machine management platform.

[0078] In the disclosed embodiment, after determining the target virtual machine management domain, the virtual machine management device may search for a target connection for connecting the target virtual machine management domain with the virtual machine management platform in at least two groups of connections included in the connection set.

[0079] The disclosed embodiment responds to a management request sent by a target application, extracts a target management interface from the management request, determines a target virtual machine management domain corresponding to the target management interface, searches for a target connection between the target virtual machine management domain and the virtual machine management platform in a connection set, and can determine the target connection corresponding to the management request based on the target management interface in the management request, thereby improving the accuracy of determining the target connection, reducing the probability of failing to execute a management request due to a connection error, and improving user experience.

[0080] In some embodiments of the present disclosure, the virtual machine management device may traverse various management interfaces in the virtual machine management platform to determine a target virtual machine management domain corresponding to the target management interface, wherein there is a corresponding relationship between the management interface and the virtual machine management domain.

[0081] Specifically, when determining the target virtual machine management domain corresponding to the target management interface, the virtual machine management device can traverse the various management interfaces of the various virtual machine management domains provided by the virtual machine management platform until the target management interface is found, and then determine the target virtual machine management domain corresponding to the target management interface based on the correspondence between the attribute information of the target management interface and the virtual machine management domain.

[0082] Figure 3 is a flowchart of another method for finding a target connection provided by an embodiment of the present disclosure. Figure 3 As shown, based on the above embodiment, the target connection can be found by the following method.

[0083] S301 . In response to a management request sent by a target application, extract a target virtualization type of a target managed virtual machine from the management request.

[0084] In the embodiment of the present disclosure, after receiving the request sent by the target application, the virtual machine management device can extract the target virtualization type of the virtual machine to be managed by the management request from the management request.

[0085] In an exemplary implementation of the embodiment of the present disclosure, the virtual machine management device may extract the target virtualization type from a preset position of the management request based on the encoding rule of the management request.

[0086] In another exemplary implementation of the disclosed embodiment, the virtual machine management device may perform keyword detection on the content of the management request based on preset keywords related to the virtualization type to obtain the target virtualization type of the virtual machine to be managed by the management request.

[0087] S302: Determine a target virtual machine management domain corresponding to the target virtualization type.

[0088] In the disclosed embodiment, since virtual machines of the same virtualization type belong to the same virtual machine management domain, the virtual machine management device can determine the target virtual machine management domain corresponding to the target virtualization type after determining the target virtualization type. For example, after determining that the target virtualization type is QEMU, the corresponding target virtual machine management domain is determined to be the QEMU management domain.

[0089] S303: Search the connection set for a target connection between the target virtual machine management domain and the virtual machine management platform.

[0090] In the disclosed embodiment, after determining the target virtual machine management domain, the virtual machine management device may search for a target connection for connecting the target virtual machine management domain with the virtual machine management platform in at least two groups of connections included in the connection set.

[0091] The disclosed embodiment responds to a management request sent by a target application, extracts a target virtualization type of a target managed virtual machine from the management request, determines a target virtual machine management domain corresponding to the target virtualization type, searches for a target connection between the target virtual machine management domain and a virtual machine management platform in a connection set, and can directly determine the target virtual machine management domain through the target virtualization type extracted from the management request when determining the target virtual machine management domain and then determining the target connection, thereby improving the search speed and further improving the execution efficiency of the management request.

[0092] In other embodiments of the present disclosure, after receiving a request sent by a target application, the virtual machine management device can determine whether the management request contains a target virtualization type. If so, the target virtual machine management domain is determined based on the target virtualization type, and then the target connection is determined. Among the various interfaces provided by the virtual machine management platform, the interface of the target virtual machine management domain is screened and traversed until the target interface is found. If not, the various interfaces provided by the virtual machine management platform are traversed until the target interface is found, and the target virtual machine management domain and the target connection are determined based on the target interface.

[0093] Figure 4 FIG. 1 is a flow chart of a method for creating a connection set provided by an embodiment of the present disclosure. Figure 4 As shown, based on the above embodiment, a connection set can be established by the following method.

[0094] S401. In response to a connection request sent by a target application, establish a connection with a virtual machine management platform, and control the virtual machine management platform to establish at least two groups of connections with at least two virtual machine management domains.

[0095] The connection request in the embodiment of the present disclosure can be understood as a request for establishing a connection between a virtual machine management device and a virtual machine management domain, specifically a request for establishing a connection between a virtual machine management device and a virtual machine management platform, and a request for establishing a connection between a virtual machine management platform and a virtual machine management domain.

[0096] In the disclosed embodiment, after receiving a connection request sent by a target application, the virtual machine management device may first establish a connection with the virtual machine management platform, and after the connection is established, control the virtual machine management platform to establish at least two groups of connections with at least two virtual machine management domains managed by it.

[0097] In an exemplary implementation of an embodiment of the present disclosure, the virtual machine management device may send a traversal request to the virtual machine management platform after establishing a connection with the virtual machine management platform, so that the virtual machine management platform traverses each virtual machine management domain it manages, and establishes a connection with each virtual machine management domain based on the traversal results.

[0098] S402: In response to information about at least two groups of connections fed back by the virtual machine management platform after the at least two groups of connections are successfully established, create a connection set including at least two groups of connections.

[0099] In the disclosed embodiment, after the virtual machine management platform successfully establishes at least two sets of connections with at least two virtual machine management domains, the virtual machine management device can receive information about at least two sets of connections fed back by the virtual machine management platform, and write the information about at least two sets of connections into a connection set. The connection information can be in the form of a pointer, pointing to a connection structure, which includes a uniform resource identifier of the virtual machine management domain, a virtualization type of the virtual machine management domain, authentication information, etc., which is not limited here.

[0100] The disclosed embodiment establishes a connection with a virtual machine management platform in response to a connection request sent by a target application, controls the virtual machine management platform to establish at least two groups of connections with at least two virtual machine management domains, and creates a connection set including at least two groups of connections in response to information about at least two groups of connections fed back by the virtual machine management platform after the at least two groups of connections are successfully established. Connections with each virtual machine management domain can be established, facilitating subsequent execution of a management request of the target application to the virtual machine.

[0101] In still other embodiments of the present disclosure, the virtual machine management device may maintain at least two groups of connections in the connection set.

[0102] Specifically, the virtual machine management device can periodically test whether at least two groups of connections in the connection set can be normally connected to the corresponding virtual machine management domain, so that the target application can directly use at least two groups of connections to manage the virtual machine when needed without repeating the process of establishing connections.

[0103] Figure 5 is a flow chart of a method for establishing a connection provided by an embodiment of the present disclosure, such as Figure 5 As shown, based on the above embodiment, a connection can be established by the following method.

[0104] S501: Extract the uniform resource identifier of the virtual machine management domain from the connection request.

[0105] In the embodiment of the present disclosure, after receiving a connection request sent by a target application, the virtual machine management device may extract the uniform resource identifier of the virtual machine management domain contained in the connection request.

[0106] In an exemplary implementation of the disclosed embodiment, after receiving a connection request sent by a target application, the virtual machine management device may extract a uniform resource identifier of the virtual machine management domain from the connection request based on a specific format of the uniform resource identifier.

[0107] S502: Determine whether the uniform resource identifier is a uniform resource identifier of one of at least two virtual machine management domains.

[0108] In the disclosed embodiment, after extracting the uniform resource identifier of the virtual machine management domain, the virtual machine management device may determine whether the uniform resource identifier is the uniform resource identifier of one of the at least two virtual machine management domains managed by the virtual machine management platform.

[0109] In an exemplary implementation of the embodiment of the present disclosure, the virtual machine management device can control the virtual machine management platform to traverse the various virtual machine management domains it manages, obtain the uniform resource identifier of each virtual machine management domain, and feed it back to the virtual machine management device. The virtual machine management device compares the uniform resource identifier extracted from the connection request with the uniform resource identifier reported by the virtual machine management platform to determine whether the uniform resource identifier extracted from the connection request is the uniform resource identifier of one of the at least two virtual machine management domains.

[0110] S503: If yes, execute the steps of establishing a connection with the virtual machine management platform, and controlling the virtual machine management platform to establish at least two groups of connections with at least two virtual machine management domains.

[0111] In the embodiment of the present disclosure, the virtual machine management device can execute the step of establishing a connection with the virtual machine management platform in S401 and controlling the virtual machine management platform to establish at least two groups of connections with at least two virtual machine management domains when it is determined that the uniform resource identifier extracted in the connection request is the uniform resource identifier of one of at least two virtual machine management domains.

[0112] The disclosed embodiment extracts the uniform resource identifier of the virtual machine management domain from the connection request, determines whether the uniform resource identifier is the uniform resource identifier of one of at least two virtual machine management domains, and if so, executes the steps of establishing a connection with the virtual machine management platform, and controls the virtual machine management platform to establish at least two groups of connections with at least two virtual machine management domains. When the target application only requests to establish a connection with a certain virtual machine management domain, the connection between other virtual machine management domains and the virtual machine management platform can be established at the same time, so that when the target application subsequently requests to manage virtual machines in other virtual machine management domains, there is no need to execute the step of establishing a connection again, thereby improving the overall management efficiency.

[0113] Figure 6Schematic diagram of a virtual machine management device provided by an embodiment of the present disclosure. Figure 6 As shown, the virtual machine management device 600 includes: a search module 610, a first control module 620, and a feedback module 630, wherein the search module 610 is used to respond to a management request sent by a target application, and search for a target connection corresponding to the management request in a pre-established connection set, wherein the connection set includes at least two groups of connections established between a virtual machine management platform and at least two virtual machine management domains of different virtualization types; the first control module 620 is used to control the virtual machine management platform to execute the management request through the target connection and return the management result; the feedback module 630 is used to feed back the management result to the target application.

[0114] Optionally, the search module 610 includes: a first extraction unit, used to extract a target management interface from the management request in response to the management request sent by the target application; a first determination unit, used to determine the target virtual machine management domain corresponding to the target management interface; and a first search unit, used to search the target connection between the target virtual machine management domain and the virtual machine management platform in the connection set.

[0115] Optionally, the first determination unit is specifically used to: traverse each management interface in the virtual machine management platform to determine the target virtual machine management domain corresponding to the target management interface, wherein there is a corresponding relationship between the management interface and the virtual machine management domain.

[0116] Optionally, the search module 610 includes: a second extraction unit, used to extract the target virtualization type of the target managed virtual machine from the management request in response to the management request sent by the target application; a second determination unit, used to determine the target virtual machine management domain corresponding to the target virtualization type; and a second search unit, used to search the target connection between the target virtual machine management domain and the virtual machine management platform in the connection set.

[0117] Optionally, the virtual machine management device 600 also includes: a second control module, used to establish a connection with the virtual machine management platform in response to a connection request sent by the target application, and control the virtual machine management platform to establish at least two groups of connections with at least two virtual machine management domains; a creation module, used to create a connection set including the at least two groups of connections in response to information about the at least two groups of connections fed back by the virtual machine management platform after the at least two groups of connections are successfully established.

[0118] Optionally, the virtual machine management device 600 further includes: a maintenance module, configured to maintain the at least two groups of connections in the connection set.

[0119] Optionally, the second control module includes: a third extraction unit, used to extract the uniform resource identifier of the virtual machine management domain from the connection request; a judgment unit, used to judge whether the uniform resource identifier is the uniform resource identifier of one of the at least two virtual machine management domains; and an execution unit, used to, if so, execute the steps of establishing a connection with the virtual machine management platform and controlling the virtual machine management platform to establish at least two groups of connections with at least two virtual machine management domains.

[0120] The virtual machine management device provided in this embodiment can execute the method described in any of the above embodiments. Its execution method and beneficial effects are similar and will not be described in detail here.

[0121] Figure 7 It is a structural diagram of a computer device provided in an embodiment of the present disclosure.

[0122] like Figure 7 As shown, the computer device may include a processor 710 and a memory 720 storing computer program instructions.

[0123] Specifically, the processor 710 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0124] The memory 720 may include a large capacity memory for information or instructions. By way of example and not limitation, the memory 720 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a tape, or a universal serial bus (USB) drive or a combination of two or more of these. Where appropriate, the memory 720 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 720 may be inside or outside the integrated gateway device. In a particular embodiment, the memory 720 is a non-volatile solid-state memory. In a particular embodiment, the memory 720 includes a read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (Electrically Erasable Programmable ROM, EEPROM), an electrically rewritable ROM (EAROM) or a flash memory, or a combination of two or more of these.

[0125] The processor 710 reads and executes the computer program instructions stored in the memory 720 to perform the steps of the virtual machine management method provided in the embodiment of the present disclosure.

[0126] In one example, the computer device may further include a transceiver 730 and a bus 740. Figure 7 As shown, the processor 710, the memory 720 and the transceiver 730 are connected via a bus 740 and communicate with each other.

[0127] The bus 740 includes hardware, software, or both. For example, but not limitation, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industrial Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a Memory bus, a MicroChannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses or a combination of two or more of these. Where appropriate, the bus 740 may include one or more buses. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.

[0128] The embodiments of the present disclosure further provide a computer-readable storage medium, which may store a computer program. When the computer program is executed by a processor, the processor implements the virtual machine management method provided by the embodiments of the present disclosure.

[0129] The above-mentioned storage medium may, for example, include a memory 720 of computer program instructions, and the above-mentioned instructions may be executed by the processor 710 of the virtual machine management device to complete the virtual machine management method provided by the embodiment of the present disclosure. Optionally, the storage medium may be a non-temporary computer-readable storage medium, for example, the non-temporary computer-readable storage medium may be a ROM, a random access memory (Random Access Memory, RAM), a compact disc read-only memory (Compact Disc ROM, CD-ROM), a magnetic tape, a floppy disk, and an optical data storage device, etc. The above-mentioned computer program may be written in any combination of one or more programming languages ​​to perform the program code for the operation of the embodiment of the present disclosure, and the programming language includes an object-oriented programming language, such as Java, C++, etc., and also includes a conventional procedural programming language, such as "C" language or similar programming language. The program code may be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device, partially on the remote computing device, or completely on the remote computing device or server.

[0130] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0131] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A virtual machine management method, characterized in that: The method is applicable to a proxy service, and the method comprises: In response to a management request sent by a target application, searching a pre-established connection set for a target connection corresponding to the management request, wherein the connection set includes at least two groups of connections established between a virtual machine management platform and at least two virtual machine management domains of different virtualization types; Controlling the virtual machine management platform to execute the management request through the target connection and return a management result; The management result is fed back to the target application.

2. The method according to claim 1, characterized in that The step of searching, in response to a management request sent by a target application, a target connection corresponding to the management request in a pre-established connection set comprises: In response to the management request sent by the target application, extracting a target management interface from the management request; Determining a target virtual machine management domain corresponding to the target management interface; The target connection between the target virtual machine management domain and the virtual machine management platform is searched in the connection set.

3. The method according to claim 2, characterized in that The determining a target virtual machine management domain corresponding to the target management interface includes: Each management interface in the virtual machine management platform is traversed to determine the target virtual machine management domain corresponding to the target management interface, wherein there is a corresponding relationship between the management interface and the virtual machine management domain.

4. The method according to claim 1, characterized in that: The step of searching, in response to a management request sent by a target application, a target connection corresponding to the management request in a pre-established connection set comprises: In response to the management request sent by the target application, extracting a target virtualization type of a target managed virtual machine from the management request; Determining a target virtual machine management domain corresponding to the target virtualization type; The target connection between the target virtual machine management domain and the virtual machine management platform is searched in the connection set.

5. The method according to claim 1, characterized in that In response to the management request sent by the target application, before searching the pre-established connection set for the target connection corresponding to the management request, the method further includes: In response to a connection request sent by the target application, establish a connection with the virtual machine management platform, and control the virtual machine management platform to establish at least two groups of connections with at least two virtual machine management domains; In response to the information of the at least two groups of connections fed back by the virtual machine management platform after the at least two groups of connections are successfully established, a connection set including the at least two groups of connections is created.

6. The method according to claim 5, characterized in that After establishing the connection set including the at least two groups of connections, the method further includes: The at least two groups of connections in the connection set are maintained.

7. The method according to claim 5, characterized in that The establishing a connection with the virtual machine management platform and controlling the virtual machine management platform to establish at least two groups of connections with at least two virtual machine management domains includes: Extracting a uniform resource identifier of a virtual machine management domain from the connection request; Determining whether the uniform resource identifier is a uniform resource identifier of one of the at least two virtual machine management domains; If so, the steps of establishing a connection with the virtual machine management platform and controlling the virtual machine management platform to establish at least two groups of connections with at least two virtual machine management domains are executed.

8. A virtual machine management device, the device being applicable to a proxy service, characterized in that: The device comprises: A search module, configured to, in response to a management request sent by a target application, search for a target connection corresponding to the management request in a pre-established connection set, wherein the connection set includes at least two groups of connections established between a virtual machine management platform and at least two virtual machine management domains of different virtualization types; A first control module, used for controlling the virtual machine management platform to execute the management request through the target connection and return a management result; A feedback module is used to feed back the management result to the target application.

9. A computer device, characterized in that: include: Memory; processor; and a computer program; wherein the computer program is stored in the memory and is configured to be executed by the processor to implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the virtual machine management method according to any one of claims 1 to 7 is implemented.