Virtual terminal control method and device, system, electronic device, and storage medium

By generating a message instruction carrying a control strategy on the control platform, sending the message instruction to the message queue, so that the target virtual terminal can read and execute the control strategy in the message instruction, the problem of a single cloud mobile phone control method is solved, and the correct Unified management and efficient management of multiple virtual terminals.

CN114327781BActive Publication Date: 2025-02-14QI AN XIN TECHNOLOGY GROUP INC +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111666307.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-30
Publication Date
2025-02-14
Estimated Expiration
2041-12-30

AI Technical Summary

Technical Problem

The existing cloud mobile phone has a single control method, and it is impossible to install, uninstall, upgrade and other functions of multiple applications on multiple cloud mobile phones. The cloud mobile phone background cannot control the applications uniformly.

Method used

By generating a message instruction carrying a control policy on the control platform, sending the message instruction to the message queue, so that the target virtual terminal can read and execute the control policy in the message instruction, and unified control of multiple virtual terminals is achieved.

Benefits of technology

It realizes the unified installation, uninstallation, and upgrade functions of multiple virtual terminals, solves the problem that cloud mobile phone background cannot control applications in a unified manner, and improves the convenience and efficiency of management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114327781B_ABST
    Figure CN114327781B_ABST
Patent Text Reader

Abstract

The present invention provides a method and device, system, electronic device, and storage medium for controlling a virtual terminal. The method is applied to a control platform, and the control platform is used to control multiple virtual terminals, including: when a preset event for controlling a virtual terminal is detected, a message instruction carrying a control strategy for controlling at least one target virtual terminal among the multiple virtual terminals is generated by the control platform; the message instruction is sent to a message queue of the control platform for storing message instructions, so that the target virtual terminal reads the message instruction and executes the control strategy in the message instruction. The solution provided by the present invention can realize unified control of at least one virtual terminal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a cloud server, and in particular to a method and device for managing and controlling a virtual terminal, a system, an electronic device, and a storage medium. Background Art

[0002] Currently, applications on cloud phones can only be installed, uninstalled or upgraded on the client. The management and control methods of cloud phones are relatively simple, and it is not convenient to perform unified installation, unified uninstallation, unified upgrade and other functions for multiple applications on multiple cloud phones. The cloud phone backend cannot uniformly manage the applications on the cloud phones. Summary of the invention

[0003] In view of the above problems, the present invention proposes a virtual terminal management and control method and device, system, electronic device, and storage medium to at least solve the technical problem in the related art that virtual terminals cannot be uniformly managed and controlled.

[0004] According to a first aspect of the present invention, a method for managing and controlling a virtual terminal is provided, the method being applied to a management and control platform, the management and control platform being used to manage and control a plurality of virtual terminals, comprising: when a preset event for managing and controlling a virtual terminal is detected, generating, by the management and control platform, a message instruction carrying a management and control strategy for managing and controlling at least one target virtual terminal among the plurality of virtual terminals; and sending the message instruction to a message queue of the management and control platform for storing message instructions, so that the target virtual terminal reads the message instruction and executes the management and control strategy in the message instruction.

[0005] Optionally, before the target virtual terminal executes the control policy in the message instruction, the method also includes: sending a data packet or an application link corresponding to the control policy to the target virtual terminal, so that the target virtual terminal executes the control policy in the message instruction based on the data packet or the application link.

[0006] Optionally, before sending the message instruction to the message queue of the control platform for storing the message instruction, the method also includes: injecting preset metadata into the target virtual terminal, the metadata being used to establish an association between the message queue and the cloud server running the target virtual terminal, so that the target virtual terminal reads the message instructions in the message queue and the corresponding data packets or application links pre-stored in the cloud server for initializing the operating system of the target virtual terminal, or the corresponding data packets or application links for upgrading the operating system of the target virtual terminal based on the metadata; the metadata includes at least the ID of the target virtual terminal, the IP address of the cloud server and the IP address of the message queue.

[0007] Optionally, after sending the message instruction to the message queue of the control platform for storing the message instructions, the method also includes: monitoring the running status of the target virtual terminal; when the target virtual terminal is in a shutdown state, running the target virtual terminal by creating a container, and forcing the target virtual terminal to execute the control policy in the message instruction; when the target virtual terminal is in a running state, sending a control instruction to the target virtual terminal to force the target virtual terminal to execute the control policy in the message instruction or sending a control instruction to the target virtual terminal to instruct the target virtual terminal to execute the control policy in the message instruction according to a custom task.

[0008] Optionally, after monitoring the operating status of the target virtual terminal, the method further includes: when the target virtual terminal is in a shutdown state, caching the message instruction in the message queue according to the ID of the target virtual terminal, so that the target virtual terminal reads the message instruction according to the ID of the target virtual terminal after it is started.

[0009] Optionally, after running the target virtual terminal by creating a container and forcing the target virtual terminal to execute the management and control policy in the message instruction, the method further includes: performing a shutdown operation on the target virtual terminal by deleting the container, and reclaiming computing resources in the target virtual terminal.

[0010] Optionally, after the target virtual terminal forcibly executes the control policy in the message instruction, the method also includes: using the service in the container to monitor whether there is an exception when the target virtual terminal executes the control policy in the message instruction; if there is an exception when the target virtual terminal executes the control policy in the message instruction, restarting the container.

[0011] Optionally, the management and control strategy includes at least one of the following: installing at least one application; updating at least one application; deleting at least one application; initializing the operating system of the target virtual terminal; upgrading the operating system of the target virtual terminal; configuring the computing resources of the target virtual terminal; shutting down the target virtual terminal; and restarting the target virtual terminal.

[0012] According to a second aspect of the present invention, a virtual terminal management and control device is provided, the device being used for a management and control platform, the management and control platform being used to manage a plurality of virtual terminals, comprising: a generation module, for generating, through the management and control platform, a message instruction carrying a management and control strategy for managing at least one target virtual terminal among the plurality of virtual terminals when a preset event for managing and controlling the virtual terminal is detected; and a first sending module, for sending the message instruction to a message queue of the management and control platform for storing the message instruction, so that the target virtual terminal reads the message instruction and executes the management and control strategy in the message instruction.

[0013] Optionally, the device also includes: a second sending module, used to send a data packet or application link corresponding to the control policy to the target virtual terminal before the target virtual terminal executes the control policy in the message instruction, so that the target virtual terminal executes the control policy in the message instruction based on the data packet or the application link.

[0014] Optionally, the device also includes: an injection module, used to inject preset metadata into the target virtual terminal before sending a message instruction to the message queue of the control platform for storing the message instruction, the metadata being used to establish an association relationship between the message queue and the cloud server running the target virtual terminal, so that the target virtual terminal reads the message instructions in the message queue and the corresponding data packets or application links pre-stored in the cloud server for initializing the operating system of the target virtual terminal, or the corresponding data packets or application links for upgrading the operating system of the target virtual terminal based on the metadata; the metadata includes at least the ID of the target virtual terminal, the IP address of the cloud server and the IP address of the message queue.

[0015] Optionally, the device also includes: a monitoring module, used to monitor the running status of the target virtual terminal after sending the message instruction to the message queue of the control platform for storing the message instruction; a processing module, used to run the target virtual terminal by creating a container when the target virtual terminal is in a shutdown state, and force the target virtual terminal to execute the control policy in the message instruction; when the target virtual terminal is in a running state, send a control instruction to the target virtual terminal to force the target virtual terminal to execute the control policy in the message instruction or send a control instruction to the target virtual terminal to instruct the target virtual terminal to execute the control policy in the message instruction according to a custom task.

[0016] Optionally, the device also includes: a cache module, which is used to cache the message instruction in the message queue according to the ID of the target virtual terminal after the monitoring module monitors the running status of the target virtual terminal, when the target virtual terminal is in a shutdown state, so that the target virtual terminal can read the message instruction according to the target virtual terminal ID after it is started.

[0017] Optionally, the device also includes: an execution module, which is used to perform a shutdown operation on the target virtual terminal by deleting the container and reclaim the computing resources in the target virtual terminal after the processing module runs the target virtual terminal by creating a container and forces the target virtual terminal to execute the management and control policy in the message instruction.

[0018] Optionally, the device also includes: a monitoring module, which is used to use the service in the container to monitor whether there is an exception when the target virtual terminal executes the control policy in the message instruction after the target virtual terminal forcibly executes the control policy in the message instruction; and a restart module, which is used to restart the container when an exception occurs when the target virtual terminal executes the control policy in the message instruction.

[0019] Optionally, the management and control strategy includes at least one of the following: installing at least one application; updating at least one application; deleting at least one application; initializing the operating system of the target virtual terminal; upgrading the operating system of the target virtual terminal; configuring the computing resources of the target virtual terminal; shutting down the target virtual terminal; and restarting the target virtual terminal.

[0020] According to a third aspect of the present invention, a virtual terminal management and control system is also provided, the management and control system comprising at least multiple virtual terminals, a management and control platform for managing the multiple virtual terminals, and a cloud server for running the virtual terminals; wherein the management and control platform executes the steps in any of the above method embodiments.

[0021] According to a fourth aspect of the present invention, there is further provided an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0022] According to a fifth aspect of the present invention, there is further provided a storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.

[0023] The technical solution provided by the present invention, when a preset event for controlling a virtual terminal is detected, generates a message instruction carrying a control strategy for controlling at least one virtual terminal through a control platform for controlling multiple virtual terminals; then the message instruction is saved in a message queue of the control platform; the virtual terminal reads the message instruction from the message queue, and then executes the message instruction, and then can uniformly control at least one virtual terminal according to the control strategy set by the cloud server, thereby solving the technical problem in the related art that the virtual terminals cannot be uniformly controlled.

[0024] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below.

[0025] Based on the following detailed description of specific embodiments of the present invention in conjunction with the accompanying drawings, those skilled in the art will become more aware of the above and other objects, advantages and features of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0027] Figure 1 is a flowchart of a virtual terminal management and control method provided according to an embodiment of the present invention;

[0028] Figure 2 The present invention is a block diagram of a virtual terminal control device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0029] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.

[0030] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that such usage is interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the term "including" and its variants are to be interpreted as open-ended terms meaning "including but not limited to".

[0031] In order to solve the technical problems existing in the related art, a virtual terminal management and control method is provided in this embodiment. The technical scheme of the present invention and how the technical scheme of the present invention solves the above-mentioned technical problems are described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present invention will be described below in conjunction with the accompanying drawings.

[0032] Figure 1 is a flow chart of a virtual terminal management and control method provided according to an embodiment of the present invention, such as Figure 1 As shown, the method is applied to a management and control platform, which is used to manage and control multiple virtual terminals. The process includes the following steps:

[0033] Step S102, when a preset event for controlling a virtual terminal is detected, a message instruction carrying a control strategy for controlling at least one target virtual terminal among the multiple virtual terminals is generated through the control platform;

[0034] In this embodiment, the preset event is a trigger condition for triggering the management and control of at least one target virtual terminal. For example, the cloud server detects the need to pre-install at least one application in the virtual terminal, or detects that at least one application has an upgrade package, or detects that the operating system of the virtual terminal has upgraded image information, or detects that the operating system of the virtual terminal needs to be initialized, or detects that the virtual terminal needs to reconfigure computing resources, etc., which are not limited here.

[0035] Furthermore, a corresponding control strategy is set according to a preset event. Optionally, the control strategy includes at least: installing at least one application, updating at least one application, deleting at least one application, initializing the operating system of the virtual terminal, upgrading the operating system of the virtual terminal, configuring the computing resources of the virtual terminal (i.e., configuring the model of the virtual terminal, for example, upgrading a 2-core CPU, 4G memory, and 5g hard disk storage to a 4-core, 4G memory, and 10g application storage), shutting down the virtual terminal, and restarting the virtual terminal.

[0036] In one example, the message instruction includes at least the following information: the type of message instruction (such as installation, uninstallation, upgrade, etc.), user ID, virtual terminal ID, cloud server IP address, application name, application installation package name, application type (such as ordinary APP or packaged APP), installation type (optional or mandatory), download address, etc.; thereby achieving unified management and control of applications in the virtual terminal, facilitating the installation, uninstallation, upgrade, etc. of applications.

[0037] Step S104: sending a message instruction to a message queue of the management and control platform for storing message instructions, so that the target virtual terminal reads the message instruction in the message queue and executes the management and control policy in the message instruction.

[0038] In a possible implementation, the running state of the target virtual terminal is monitored; when the target virtual terminal is in a shutdown state, the message instruction is cached in a message queue according to the ID of the target virtual terminal, so that the target virtual terminal can read the message instruction according to the ID of the target virtual terminal after it is started. This embodiment uses a message queue to cache message instructions instead of directly sending the message instructions, which can ensure the transmission security of the message instructions.

[0039] In an example of the present embodiment, after a message instruction carrying a control policy for controlling at least one cloud phone is generated, it is saved in a message queue (i.e., a message queue); then, the cloud phone monitors the message instructions in the message queue in the control platform (i.e., the user management platform) in real time, and then reads the message instructions and executes the control policy in the message instructions; or, if the cloud phone is in an on-hook state, the cloud server will cache the corresponding message instructions according to the ID of the cloud phone, so that the cloud phone will automatically read and execute the message instructions from the message queue after it is started.

[0040] The virtual terminal control method provided by the embodiment of the present invention, when a preset event for controlling the virtual terminal is detected, generates a message instruction carrying a control strategy for controlling at least one virtual terminal through a control platform for controlling multiple virtual terminals; then saves the message instruction in a message queue of the control platform; the virtual terminal reads the message instruction from the message queue, and then executes the message instruction, and then can uniformly control at least one virtual terminal according to the control strategy set by the cloud server, thereby solving the technical problem that the virtual terminals cannot be uniformly controlled in the related technology.

[0041] A possible implementation method is provided in an embodiment of the present invention, which includes, before the target virtual terminal executes the control policy in the message instruction, sending a data packet or application link corresponding to the control policy to the target virtual terminal, so that the target virtual terminal executes the control policy in the message instruction based on the data packet or application link.

[0042] In an example of this embodiment, the virtual terminal monitors the message queue in real time. When a message instruction is monitored, the message instruction is read, and a request is sent to the application control center in the management and control platform to call the data packet corresponding to the message instruction to call the data packet or application link in the application control center. Then, the virtual terminal executes the message instruction according to the data packet or application link.

[0043] In this example, the function of the application control center is equivalent to the application market in the mobile phone. The application control center encapsulates installation packages or application links of various applications. For example, apk packages or h5 application links are imported into the App application control center; and various application installation packages or application links are provided. Call interface API to achieve unified installation, uninstallation, upgrade and other operations of multiple applications on the virtual terminal.

[0044] A possible implementation method is provided in an embodiment of the present invention, which further includes: injecting preset metadata into the target virtual terminal before the above step S104, where the metadata is used to establish an association relationship between the message queue and the cloud server running the target virtual terminal, so that the target virtual terminal reads the message instructions in the message queue and the data packets or application links corresponding to the initialization of the operating system of the target virtual terminal pre-stored in the cloud server, or the data packets or application links corresponding to the upgrade of the operating system of the target virtual terminal based on the metadata; the metadata at least includes the ID of the target virtual terminal, the IP address of the cloud server and the IP address of the message queue.

[0045] In an example of this embodiment, the user management module creates a user and generates a unique user ID for the user; the device management module assigns a cloud phone to the user and generates a unique cloud phone ID for the cloud phone; then the preset metadata is injected into the cloud phone, and the cloud phone ID and the user ID are bound and registered to associate the user with the cloud phone; the cloud phone knows which message queue to monitor in real time and which cloud server to obtain the installation package or application link for the operating system upgrade, or the installation package or application link for initialization based on the injected metadata. Preferably, the metadata includes the cloud phone ID, the IP address of the cloud server, the message queue (cache) IP address, the port of the message queue and the channel connection user name, the mirror ID, the mirror name, etc.; this embodiment can realize the customization of some data characteristics (i.e., the above-mentioned metadata), which solves the problem of a single centralized management method for virtual terminals.

[0046] In one possible implementation, when the cloud phone monitors the message instructions in the message queue, it sends a request to the cloud server running the cloud phone based on the metadata to request a call to initialize or upgrade the corresponding data packet or application link for the virtual terminal's operating system. After the cloud phone obtains the data packet or application link, it executes the operating system initialization or upgrade operation.

[0047] A possible implementation method is provided in an embodiment of the present invention, which, after the above step S104, also includes: monitoring the running state of the target virtual terminal; when the target virtual terminal is in a shutdown state, running the target virtual terminal by creating a container, and forcing the target virtual terminal to execute the control policy in the message instruction; when the target virtual terminal is in a running state, sending a control instruction to the target virtual terminal to force the target virtual terminal to execute the control policy in the message instruction or sending a control instruction to the target virtual terminal to instruct the target virtual terminal to execute the control policy in the message instruction according to a custom task.

[0048] In an example of this embodiment, the execution of message instructions is not affected by the shutdown state of the cloud phone. Before the cloud phone executes the message instructions, the background monitors the running state of the cloud phone in real time, specifically including: (1) If the cloud phone is in the shutdown state, you can choose to actively start the cloud phone. Specifically, create a container pod through the control service API (the control service API can be set in the physical cluster running the cloud phone, integrating the k8s sdk and other custom command execution interface services, used to control the k8s cluster, pod life cycle control, monitoring k8spod status information, etc.), run the cloud phone through the container pod, and force installation, upgrade, uninstallation and other operations according to the control policy. After the execution is completed, you can choose to shut down the cloud phone again and release resources, and delete the message instructions in the message queue; (2) If the cloud phone is in the running state, the cloud server will issue a mandatory (including "must-install" and "optional"), optional means not to install, but the user can see the application in the application list of the cloud phone, waiting for the user to install it himself later; mandatory means forced and automatic installation by the server.

[0049] According to the above embodiment, after running the target virtual terminal by creating a container and forcing the target virtual terminal to execute the management and control policy in the message instruction, it also includes: shutting down the target virtual terminal by deleting the container and reclaiming the computing resources in the target virtual terminal.

[0050] In an example of this embodiment, the container pod is deleted through the management service API to shut down the cloud phone, save the user data and operation data of the user using the cloud phone, and recycle the computing resources on the cloud phone.

[0051] In an optional embodiment, after the target virtual terminal forcibly executes the control policy in the message instruction, it also includes: using the service in the container to monitor whether there is an exception when the target virtual terminal executes the control policy in the message instruction; if there is an exception when the target virtual terminal executes the control policy in the message instruction, restarting the container.

[0052] In this embodiment, the pod is controlled by the control service API, and the vmiserver service (a service used to detect whether the vmi service is normal and decide whether to restart the vmi service) and the vmi service (which is the service of the Android cloud phone itself) are started in the pod to achieve unified control of the application. When the vmiserver service in the pod detects that the cloud execution is abnormal, the pod is restarted, realizing the automatic restart recovery mechanism of the cloud phone service abnormality.

[0053] This embodiment uses the management service API to achieve batch and unified management of the life cycle of virtual terminals. For example, by creating a pod, you can recreate a cloud phone or reallocate the computing resources of the cloud phone; or restart the pod to restart the cloud phone; or delete the pod to control the shutdown of the cloud phone; or update the image to upgrade the version or function of the cloud phone's operating system; or update the model configuration; and set metadata for the virtual terminal.

[0054] Through the above implementation steps, when a user applies for a cloud phone, the cloud phone will force the installation of some applications by default, or automatically upgrade the pre-installed applications; or after receiving the user's uninstall instruction for a certain application, the application will be uninstalled with one click, etc., thereby ensuring the success rate of application installation and uninstallation; ensuring the security and reliability of the message mechanism, and being more convenient and simple to operate than third-party application installation.

[0055] Based on the virtual terminal control method provided in each of the above embodiments, based on the same inventive concept, a virtual terminal control device is also provided in the present embodiment, which is used to implement the above embodiments and preferred implementation modes, and will not be repeated for what has been described. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.

[0056] Figure 2 is a structural block diagram of a virtual terminal control device provided according to an embodiment of the present invention, such as Figure 2As shown, the device is applied to a control platform, which is used to control multiple virtual terminals, including: a generation module 20, which is used to generate a message instruction carrying a control strategy for controlling at least one target virtual terminal among the multiple virtual terminals through the control platform when a preset event for controlling the virtual terminal is detected; a first sending module 22, connected to the above-mentioned generation module 20, is used to send a message instruction to a message queue of the control platform for storing message instructions, so that the target virtual terminal reads the message instruction and executes the control strategy in the message instruction.

[0057] Optionally, the above-mentioned device also includes: a second sending module, which is used to send a data packet or application link corresponding to the control policy to the target virtual terminal before the target virtual terminal executes the control policy in the message instruction, so that the target virtual terminal executes the control policy in the message instruction based on the data packet or application link.

[0058] Optionally, the above-mentioned device also includes: an injection module, which is used to inject preset metadata into the target virtual terminal before sending the message instruction to the message queue of the management and control platform for storing message instructions, and the metadata is used to establish an association relationship between the message queue and the cloud server running the target virtual terminal, so that the target virtual terminal reads the message instructions in the message queue and the pre-stored data packets or application links corresponding to the initialization of the operating system of the target virtual terminal, or the data packets or application links corresponding to the upgrade of the operating system of the target virtual terminal based on the metadata; the metadata at least includes the ID of the target virtual terminal, the IP address of the cloud server and the IP address of the message queue.

[0059] Optionally, the above-mentioned device also includes: a monitoring module, which is used to monitor the operating status of the target virtual terminal after sending a message instruction to a message queue for storing message instructions of the management and control platform; a processing module, which is used to run the target virtual terminal by creating a container when the target virtual terminal is in a shutdown state, and force the target virtual terminal to execute the management and control policy in the message instruction; when the target virtual terminal is in a running state, send a management and control instruction to the target virtual terminal to force the target virtual terminal to execute the management and control policy in the message instruction or send a management and control instruction to the target virtual terminal to instruct the target virtual terminal to execute the management and control policy in the message instruction according to a custom task.

[0060] Optionally, the above-mentioned device also includes: a cache module, which is used to cache the message instructions in the message queue according to the ID of the target virtual terminal when the target virtual terminal is in a shutdown state after the monitoring module monitors the operating status of the target virtual terminal, so that the target virtual terminal can read the message instructions according to the target virtual terminal ID after it is started.

[0061] Optionally, the above-mentioned device also includes: an execution module, which is used to perform a shutdown operation on the target virtual terminal by deleting the container and reclaim the computing resources in the target virtual terminal after the processing module creates a container to run the target virtual terminal and forces the target virtual terminal to execute the management and control policy in the message instruction.

[0062] Optionally, the above-mentioned device also includes: a monitoring module, which is used to use the service in the container to monitor whether there is an exception when the target virtual terminal executes the control policy in the message instruction after the target virtual terminal forcibly executes the control policy in the message instruction; and a restart module, which is used to restart the container when there is an exception when the target virtual terminal executes the control policy in the message instruction.

[0063] Optionally, the management and control strategy includes at least one of the following: installing at least one application; updating at least one application; deleting at least one application; initializing the operating system of the target virtual terminal; upgrading the operating system of the target virtual terminal; configuring the computing resources of the target virtual terminal; shutting down the target virtual terminal; and restarting the target virtual terminal.

[0064] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0065] Based on the virtual terminal management and control methods provided in the above embodiments, based on the same inventive concept, a virtual terminal management and control system is also provided in this embodiment, and the management and control system includes at least multiple virtual terminals, a management and control platform for managing multiple virtual terminals, and a cloud server for running virtual terminals; wherein, the management and control platform executes the above embodiments and preferred implementation modes, and those that have been described will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the device described in the above embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.

[0066] An embodiment of the present invention further provides a storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0067] Optionally, in this embodiment, the storage medium may be configured to store a computer program for performing the following steps:

[0068] S1, when a preset event for controlling a virtual terminal is detected, a message instruction carrying a control strategy for controlling at least one target virtual terminal among the multiple virtual terminals is generated through the control platform;

[0069] S2, sending the message instruction to the message queue of the management and control platform for storing the message instruction, so that the target virtual terminal reads the message instruction and executes the management and control policy in the message instruction.

[0070] Optionally, in this embodiment, the above-mentioned storage medium is a storage resource corresponding to the cloud server cluster and belongs to cloud storage.

[0071] Based on the above Figure 1 The method shown and Figure 2 In order to achieve the above-mentioned purpose, the embodiment of the present invention further provides an electronic device, which includes a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to achieve the above-mentioned Figure 1 The virtual terminal management method shown in FIG.

[0072] Based on this understanding, the technical solution of the present invention can be embodied in the form of a software product, which can be stored in the cloud and includes a number of instructions for enabling an electronic device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in various implementation scenarios of the present invention.

[0073] Those skilled in the art will appreciate that the structure of an electronic device provided in this embodiment does not limit the physical device, and may include more or fewer components, or a combination of certain components, or different component arrangements.

[0074] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

[0075] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0076] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A virtual terminal management and control method, characterized in that: The method is applied to a management and control platform, which is used to manage and control multiple virtual terminals, including: When a preset event for controlling a virtual terminal is detected, a message instruction carrying a control strategy for controlling at least one target virtual terminal among the multiple virtual terminals is generated through the control platform; Sending the message instruction to a message queue of the control platform for storing message instructions, so that the target virtual terminal reads the message instruction and executes the control policy in the message instruction; Before sending the message instruction to the message queue of the management and control platform for storing the message instruction, the method further includes: Injecting preset metadata into the target virtual terminal; wherein the metadata is used to establish an association relationship between the message queue and the cloud server running the target virtual terminal, so that the target virtual terminal reads the message instructions in the message queue and the data packets or application links corresponding to initializing the operating system of the target virtual terminal, or the data packets or application links corresponding to upgrading the operating system of the target virtual terminal, based on the metadata. The metadata at least includes the ID of the target virtual terminal, the IP address of the cloud server, and the IP address of the message queue.

2. The method according to claim 1, characterized in that Before the target virtual terminal executes the control policy in the message instruction, the method further includes: The data packet or application link corresponding to the control policy is sent to the target virtual terminal, so that the target virtual terminal executes the control policy in the message instruction based on the data packet or the application link.

3. The method according to claim 1, characterized in that After sending the message instruction to a message queue of the management and control platform for storing the message instruction, the method further includes: Monitoring the operating status of the target virtual terminal; When the target virtual terminal is in a shutdown state, the target virtual terminal is run by creating a container, and the target virtual terminal is forced to execute the control policy in the message instruction; when the target virtual terminal is in a running state, a control instruction forcing the target virtual terminal to execute the control policy in the message instruction is sent to the target virtual terminal, or a control instruction for instructing the target virtual terminal to execute the control policy in the message instruction according to a custom task is sent to the target virtual terminal.

4. The method according to claim 3, characterized in that After monitoring the operating state of the target virtual terminal, the method further includes: When the target virtual terminal is in a shutdown state, the message instruction is cached in the message queue according to the ID of the target virtual terminal; wherein the target virtual terminal is used to read the message instruction according to the ID of the target virtual terminal after the target virtual terminal is started.

5. The method according to claim 3, characterized in that: After running the target virtual terminal by creating a container and forcing the target virtual terminal to execute the control policy in the message instruction, the method further includes: The target virtual terminal is shut down by deleting the container, and computing resources in the target virtual terminal are recovered.

6. The method according to claim 3, characterized in that After the target virtual terminal forcibly executes the control policy in the message instruction, the method further includes: Using the service in the container to monitor whether the target virtual terminal has an abnormality when executing the control policy in the message instruction; If the target virtual terminal encounters an exception when executing the control policy in the message instruction, the container is restarted.

7. The method according to any one of claims 1 to 6, characterized in that The control strategy includes at least one of the following: Installing at least one application program; Performing an update operation on at least one application program; Deleting at least one application; Initializing the operating system of the target virtual terminal; Performing an upgrade operation on the operating system of the target virtual terminal; Performing configuration operations on computing resources of the target virtual terminal; Shutting down the target virtual terminal; Restart the target virtual terminal.

8. A virtual terminal control device, characterized in that: The device is applied to a management and control platform, and the management and control platform is used to manage and control multiple virtual terminals, including: A generating module, configured to generate, through the control platform, a message instruction carrying a control strategy for controlling at least one target virtual terminal among the plurality of virtual terminals when a preset event for controlling the virtual terminal is detected; A first sending module, used for sending the message instruction to a message queue of the control platform for storing message instructions, so that the target virtual terminal reads the message instruction in the message queue and executes the control policy in the message instruction; The device also includes: an injection module, which is used to inject preset metadata into the target virtual terminal before sending a message instruction to a message queue of the control platform for storing the message instruction; wherein the metadata is used to establish an association relationship between the message queue and a cloud server running the target virtual terminal, so that the target virtual terminal reads the message instruction in the message queue and the corresponding data packet or application link for initializing the operating system of the target virtual terminal pre-stored in the cloud server, or the corresponding data packet or application link for upgrading the operating system of the target virtual terminal based on the metadata; the metadata at least includes the ID of the target virtual terminal, the IP address of the cloud server and the IP address of the message queue.

9. A virtual terminal management and control system, characterized in that: The management and control system includes at least a plurality of virtual terminals, a management and control platform for managing the plurality of virtual terminals, and a cloud server for running the virtual terminals; wherein the management and control platform executes the steps of the method described in any one of claims 1 to 7 above.

10. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

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

Citation Information

Patent Citations

  • Terminal application deployment method, terminal application cloud platform, terminal application system and storage medium

    CN112256294A