CN114327781A - Virtual terminal control method, device, system, electronic equipment and storage medium - Google Patents

Virtual terminal control method, device, system, electronic equipment and storage medium Download PDF

Info

Publication number
CN114327781A
CN114327781A CN202111666307.1A CN202111666307A CN114327781A CN 114327781 A CN114327781 A CN 114327781A CN 202111666307 A CN202111666307 A CN 202111666307A CN 114327781 A CN114327781 A CN 114327781A
Authority
CN
China
Prior art keywords
virtual terminal
target virtual
management
message instruction
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111666307.1A
Other languages
Chinese (zh)
Inventor
张立君
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qianxin Technology Group Co Ltd
Secworld Information Technology Beijing Co Ltd
Original Assignee
Qianxin Technology Group Co Ltd
Secworld Information Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qianxin Technology Group Co Ltd, Secworld Information Technology Beijing Co Ltd filed Critical Qianxin Technology Group Co Ltd
Priority to CN202111666307.1A priority Critical patent/CN114327781A/en
Publication of CN114327781A publication Critical patent/CN114327781A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a method, a device, a system, electronic equipment and a storage medium for managing and controlling virtual terminals, wherein the method is applied to a management and control platform, the management and control platform is used for managing and controlling a plurality of virtual terminals, and the method comprises the following steps: when a preset event for managing and controlling the virtual terminals is detected, generating a message instruction carrying a management and control strategy for managing and controlling at least one target virtual terminal in the plurality of virtual terminals through the management and control platform; and 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. The scheme provided by the invention can realize unified management and control on at least one virtual terminal.

Description

Virtual terminal control method, device, system, electronic equipment and storage medium
Technical Field
The invention relates to a cloud server, in particular to a virtual terminal management and control method, a virtual terminal management and control device, a virtual terminal management and control system, electronic equipment and a storage medium.
Background
At present, the application programs on the cloud mobile phone can only be installed, uninstalled or upgraded at the client, the management and control mode of the cloud mobile phone is single, the functions of unified installation, unified uninstallation, unified upgrade and the like of the application programs on the cloud mobile phones are inconvenient, and the background of the cloud mobile phone can not uniformly manage and control the application programs on the cloud mobile phone.
Disclosure of Invention
In view of the foregoing problems, the present invention provides a method, an apparatus, a system, an electronic device, and a storage medium for managing and controlling a virtual terminal, so as to at least solve the technical problem that the virtual terminal cannot be uniformly managed and controlled in the related art.
According to a first aspect of the present invention, a method for managing and controlling a virtual terminal is provided, where the method is applied to a management and control platform, and the management and control platform is configured to manage and control a plurality of virtual terminals, and includes: when a preset event for managing and controlling the virtual terminals is detected, generating a message instruction carrying a management and control strategy for managing and controlling at least one target virtual terminal in the plurality of virtual terminals through the management and control platform; and 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.
Optionally, before the target virtual terminal executes the management and control policy in the message instruction, the method further includes: and 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.
Optionally, 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 for establishing an association relationship between the message queue and a cloud server running the target virtual terminal, so that the target virtual terminal reads a message instruction in the message queue and a data packet or an application link which is stored in the cloud server in advance and corresponds to initialization of an operating system of the target virtual terminal, or upgrades the operating system of the target virtual terminal; the metadata at least comprises an ID of the target virtual terminal, an IP address of the cloud server and an IP address of the message queue.
Optionally, 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 running state of the target virtual terminal; when the target virtual terminal is in a power-off state, operating the target virtual terminal by creating a container, and forcing the target virtual terminal to execute a control strategy in the message instruction; and when the target virtual terminal is in an operating state, sending a control instruction for forcing the target virtual terminal to execute a control strategy in the message instruction to the target virtual terminal or sending a control instruction for instructing the target virtual terminal to execute the control strategy in the message instruction according to a custom task to the target virtual terminal.
Optionally, after monitoring the operation state of the target virtual terminal, the method further includes: when the target virtual terminal is in a power-off 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 being started.
Optionally, after the target virtual terminal is operated by creating a container and the target virtual terminal is forced to execute the management and control policy in the message instruction, the method further includes: and executing shutdown operation on the target virtual terminal by deleting the container, and recovering the computing resources in the target virtual terminal.
Optionally, after the target virtual terminal enforces the management and control policy in the message instruction, the method further includes: monitoring whether an exception exists when the target virtual terminal executes the management and control strategy in the message instruction by using the service in the container; and if the target virtual terminal has an exception when executing the control strategy in the message instruction, restarting the container.
Optionally, the management policy includes at least one of: installing at least one application program; updating at least one application program; deleting at least one application program; initializing an operating system of the target virtual terminal; upgrading the operating system of the target virtual terminal; carrying out configuration operation on the computing resources of the target virtual terminal; performing shutdown operation on the target virtual terminal; and restarting the target virtual terminal.
According to a second aspect of the present invention, there is provided a management and control apparatus for a virtual terminal, the apparatus being used for a management and control platform, the management and control platform being used for managing and controlling a plurality of virtual terminals, and the apparatus including: the generation module is used for generating a message instruction carrying a management and control strategy for managing and controlling at least one target virtual terminal in the plurality of virtual terminals through the management and control platform when a preset event for managing and controlling the virtual terminals is detected; a first sending module, configured to send the message instruction to a message queue of the management and control platform, where the message queue is used to store the message instruction, so that the target virtual terminal reads the message instruction and executes the management and control policy in the message instruction.
Optionally, the apparatus further comprises: and a second sending module, configured to send, before the target virtual terminal executes the management and control policy in the message instruction, a data packet or an application link corresponding to the management and control policy to the target virtual terminal, so that the target virtual terminal executes the management and control policy in the message instruction based on the data packet or the application link.
Optionally, the apparatus further comprises: an injection module, configured to inject preset metadata to the target virtual terminal before sending a message instruction to a message queue of the management and control platform, where the message queue is used to store the message instruction, where 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, based on the metadata, the message instruction in the message queue and a data packet or an application link, which is pre-stored in the cloud server and is used to initialize a corresponding operating system of the target virtual terminal, or upgrades the corresponding data packet or application link to the operating system of the target virtual terminal; the metadata at least comprises an ID of the target virtual terminal, an IP address of the cloud server and an IP address of the message queue.
Optionally, the apparatus further comprises: the monitoring module is used for monitoring the running state of the target virtual terminal after the message instruction is sent to a message queue of the management and control platform, wherein the message queue is used for storing the message instruction; the processing module is used for operating the target virtual terminal by creating a container and forcing the target virtual terminal to execute a control strategy in the message instruction when the target virtual terminal is in a power-off state; and when the target virtual terminal is in an operating state, sending a control instruction for forcing the target virtual terminal to execute a control strategy in the message instruction to the target virtual terminal or sending a control instruction for instructing the target virtual terminal to execute the control strategy in the message instruction according to a custom task to the target virtual terminal.
Optionally, the apparatus further comprises: and the cache module is used for caching the message instruction 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 running state 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 being started.
Optionally, the apparatus further comprises: and the execution module is used for executing shutdown operation on the target virtual terminal by deleting the container and recovering the computing resources in the target virtual terminal after the processing module operates the target virtual terminal by creating the container and forces the target virtual terminal to execute the management and control strategy in the message instruction.
Optionally, the apparatus further comprises: a monitoring module, configured to monitor whether the target virtual terminal is abnormal when executing the management and control policy in the message instruction by using the service in the container after the target virtual terminal forcibly executes the management and control policy in the message instruction; and the restarting module is used for restarting the container when the target virtual terminal has abnormality when executing the control strategy in the message instruction.
Optionally, the management policy includes at least one of: installing at least one application program; updating at least one application program; deleting at least one application program; initializing an operating system of the target virtual terminal; upgrading the operating system of the target virtual terminal; carrying out configuration operation on the computing resources of the target virtual terminal; performing shutdown operation on the target virtual terminal; and restarting the target virtual terminal.
According to a third aspect of the present invention, a management and control system for virtual terminals is further provided, where the management and control system at least includes a plurality of virtual terminals, a management and control platform for managing and controlling the plurality of virtual terminals, and a cloud server for operating the virtual terminals; wherein the administration platform performs the steps of any of the method embodiments described above.
According to a fourth aspect of the present invention, there is also provided an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
According to a fifth aspect of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to the technical scheme provided by the invention, when a preset event for managing and controlling the virtual terminals is detected, a message instruction carrying a management and control strategy for managing and controlling at least one virtual terminal is generated through a management and control platform for managing and controlling a plurality of virtual terminals; then storing the message instruction in a message queue of a control platform; the virtual terminals can read the message instructions from the message queue and then execute the message instructions, and then at least one virtual terminal can be uniformly controlled according to the control strategy set by the cloud server, so that the technical problem that the virtual terminals cannot be uniformly controlled in the related technology is solved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
The above and other objects, advantages and features of the present invention will become more apparent to those skilled in the art from the following detailed description of specific embodiments thereof, taken in conjunction with the accompanying drawings.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart of a method for managing and controlling a virtual terminal according to an embodiment of the present invention;
fig. 2 is a block diagram of a management and control apparatus of a virtual terminal according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that such uses are interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the term "include" and its variants are to be read as open-ended terms meaning "including, but not limited to".
In order to solve the technical problems in the related art, the present embodiment provides a method for managing and controlling a virtual terminal. The following describes the technical solution of the present invention and how to solve the above technical problems with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present invention will be described below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a method for managing and controlling a virtual terminal according to an embodiment of the present invention, as shown in fig. 1, the method is applied to a management and control platform, where the management and control platform is used to manage and control a plurality of virtual terminals, and the process includes the following steps:
step S102, when a preset event for managing and controlling the virtual terminals is detected, generating a message instruction carrying a management and control strategy for managing and controlling at least one target virtual terminal in the plurality of virtual terminals through a management and control platform;
in this embodiment, the preset event is a trigger condition for triggering management and control of at least one target virtual terminal, for example, the cloud server detects that a requirement for presetting at least one application program in the virtual terminal is met, or detects that at least one application program has an upgrade package, or detects that an operating system of the virtual terminal has upgraded mirror image information, or detects that an operating system of the virtual terminal needs to be initialized, or detects that the virtual terminal needs to reconfigure computing resources, and the like, and is not limited herein.
And further, setting a corresponding control strategy according to a preset event. Optionally, the governing policy at least includes: the method comprises the steps of installing at least one application program, updating at least one application program, deleting at least one application program, initializing an operating system of the virtual terminal, upgrading the operating system of the virtual terminal, configuring computing resources of the virtual terminal (namely configuring the model of the virtual terminal, for example, 2-core CPU, 4G memory and 5G hard disk storage, upgrading the storage into 4-core, 4G memory and 10G application storage), shutting down the virtual terminal, and restarting the virtual terminal.
In one example, the message instruction includes at least the following information: the message instruction comprises information such as the type of the message instruction (such as the types of installation, uninstallation, upgrade and the like), a user ID, an ID of a virtual terminal, an IP address of a cloud server, an application program name, the name of an application program installation package, the type of the application program (such as a common APP or an encapsulation APP), the installation type (optional installation or necessary installation), a download address and the like; therefore, unified management and control of the application program in the virtual terminal are realized, and installation, uninstallation, upgrading and the like of the application are facilitated.
Step S104, sending a 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 in the message queue and executes a management and control strategy in the message instruction.
In one possible implementation, the running state of the target virtual terminal is monitored; when the target virtual terminal is in a power-off state, the message instruction is cached 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 being started. The embodiment uses the message queue to buffer the message instruction instead of directly sending the message instruction out, so that the transmission safety of the message instruction can be ensured.
In an example of this embodiment, after a message instruction carrying a management and control policy for managing and controlling at least one cloud mobile phone is generated, the message instruction is stored in a message queue (i.e., a message queue); then, the cloud mobile phone monitors message instructions in a message queue in a management and control platform (namely a user management platform) in real time, reads the message instructions and executes a management and control strategy in the message instructions; or, if the cloud mobile phone is in an on-hook state, the cloud server caches the corresponding message instruction according to the ID of the cloud mobile phone, so that the cloud mobile phone automatically reads the message instruction from the message queue and executes the message instruction after being started.
According to the virtual terminal management and control method provided by the embodiment of the invention, when a preset event for managing and controlling the virtual terminals is detected, a message instruction carrying a management and control strategy for managing and controlling at least one virtual terminal is generated through a management and control platform for managing and controlling a plurality of virtual terminals; then storing the message instruction in a message queue of a control platform; the virtual terminals can read the message instructions from the message queue and then execute the message instructions, and then at least one virtual terminal can be uniformly controlled according to the control strategy set by the cloud server, so that the technical problem that the virtual terminals cannot be uniformly controlled in the related technology is solved.
The embodiment of the present invention provides a possible implementation manner, before a target virtual terminal executes a management and control policy in a message instruction, the method further includes: and sending the data packet or the application link corresponding to the control strategy to the target virtual terminal so that the target virtual terminal executes the control strategy in the message instruction based on the data packet or the application link.
In an example of this embodiment, the virtual terminal monitors the message queue in real time, and when a message instruction is monitored, reads the message instruction, and sends a request for invoking a data packet corresponding to the message instruction to an application control center in the management and control platform, so as to invoke the data packet or the application link in the application control center, and then the virtual terminal executes the message instruction according to the data packet or the application link.
In this example, the application control center functions as an application market in a mobile phone, and an installation package or an application link of various application programs is packaged in the application control center, for example, an apk package or an h5 application link is imported into an App application control center; and various application program installation packages or calling interfaces API of application links are provided so as to realize the unified installation, uninstallation, upgrading and other operations of various application programs on the virtual terminal.
A possible implementation manner is provided in the embodiment of the present invention, before step S104, the method further includes: injecting preset metadata into the target virtual terminal, wherein the metadata is used for establishing an incidence relation between a message queue and a cloud server for operating the target virtual terminal, so that the target virtual terminal reads a message instruction in the message queue and a data packet or an application link which is pre-stored in the cloud server and is used for initializing an operating system of the target virtual terminal, or upgrading the operating system of the target virtual terminal; the metadata at least comprises an ID of the target virtual terminal, an IP address of the cloud server and an IP address of the message queue.
In an example of the embodiment, the user management and control module creates a user and generates a unique user id for the user; the method comprises the steps that an equipment management and control module distributes a cloud mobile phone to a user and generates a unique cloud mobile phone id for the cloud mobile phone; then, preset metadata are injected into the cloud mobile phone, and binding registration is carried out through the cloud mobile phone id and the user id, so that the association between the user and the cloud mobile phone is realized; the cloud mobile phone clearly monitors the message queue in real time according to the injected metadata, acquires an installation package or an application link for upgrading the operating system from the cloud server, or performs an initialized installation package or application link. Preferably, the metadata includes a cloud mobile phone ID, an IP address of a cloud server, an IP address of a message queue (cache), a port and channel connection user name of the message queue, a mirror image ID, a mirror image name, and the like; by the embodiment, some data characteristics (namely the metadata) can be customized, and the problem of single centralized management and control mode of the virtual terminal is solved.
In a possible implementation manner, after the cloud mobile phone monitors a message instruction in a message queue, a request is sent to a cloud server running the cloud mobile phone according to the metadata to request to call a corresponding data packet or application link for initializing or upgrading an operating system of the virtual terminal, and after the cloud mobile phone acquires the data packet or application link, the operation of initializing or upgrading the operating system is executed.
A possible implementation manner is provided in the embodiment of the present invention, and after step S104, the method further includes: monitoring the running state of a target virtual terminal; when the target virtual terminal is in a power-off state, the target virtual terminal is operated by creating a container, and the target virtual terminal is forced to execute a control strategy in the message instruction; and when the target virtual terminal is in the running state, sending a control instruction for forcing the target virtual terminal to execute the control strategy in the message instruction or sending the control instruction for instructing the target virtual terminal to execute the control strategy in the message instruction according to the user-defined task to the target virtual terminal.
In an example of this embodiment, executing the message instruction is not affected by the closing state of the cloud mobile phone, and before the cloud mobile phone executes the message instruction, the background monitors the running state of the cloud mobile phone in real time, which specifically includes: (1) if the cloud mobile phone is in a closed state, the cloud mobile phone can be selected to be actively started, specifically, a container pod is created through a control service API (the control service API can be arranged in a physical cluster running the cloud mobile phone, integrates interface services executed by k8s sdk and other self-defined commands, and is used for controlling a k8s cluster, controlling the pod life cycle, monitoring state information of a k8spod and the like), the cloud mobile phone is run through the container pod, installation, upgrading, unloading and the like are forcibly carried out according to a control strategy, after the execution is finished, the cloud mobile phone can be selected to be powered off again, resources are released, and message instructions in a message queue are deleted; (2) if the cloud mobile phone is in the running state, the cloud server issues a force (including 'must install' and 'optional install'), and the optional install is not installed, but the user can see the application program in an application list of the cloud mobile phone and installs the application program for the user; and (4) installing the system in necessary mode, namely forcibly and automatically installing the system by a server.
According to the above embodiment, after the target virtual terminal is operated by creating the container and is forced to execute the management and control policy in the message instruction, the method further includes: and executing shutdown operation on the target virtual terminal by deleting the container, and recovering the computing resources in the target virtual terminal.
In an example of this embodiment, the container pod is deleted through the API to perform a power-off operation on the cloud mobile phone, save user data and operation data of a user using the cloud mobile phone, and recover computing resources on the cloud mobile phone.
In an optional embodiment, after the target virtual terminal enforces the management and control policy in the message instruction, the method further includes: monitoring whether an exception exists when a target virtual terminal executes a management and control strategy in a message instruction by using the service in the container; and if the target virtual terminal has abnormity when executing the control strategy in the message instruction, restarting the container.
In this embodiment, the pod is managed and controlled through the API, and the vmiser service (a service for detecting whether the vmi service is normal or not and determining whether the vmi service is to be restarted) and the vmi service (a service of the android cloud phone) are started in the pod, so as to implement unified management and control of the application program. When the vmiser service in the pod monitors that the cloud is abnormally executed, the pod is restarted, and an automatic restart recovery mechanism of the cloud mobile phone service abnormity is realized.
The embodiment realizes batch and unified management and control on the life cycle of the virtual terminal through the management and control service API. For example, the cloud mobile phone is re-created or the computing resources of the cloud mobile phone are re-allocated by creating the pod; or restarting the pod to restart the cloud mobile phone; or deleting the pod to control the cloud mobile phone to shut down and other operations; or updating the mirror image, so as to update the version or function of the operating system of the cloud mobile phone; or updating the model configuration and other operations; and setting metadata for the virtual terminal.
Through the implementation steps, when a user applies for the cloud mobile phone, the default cloud mobile phone forcibly installs some application programs or automatically upgrades preset application programs; or after receiving an unloading instruction of a user to a certain application program, carrying out one-key unloading on the application program and the like, thereby ensuring the success rate of the installation and the unloading of the application; the safety and reliability of the message mechanism are guaranteed, and the method is more convenient to install and simple to operate compared with a third-party application.
Based on the method for managing and controlling a virtual terminal provided in the foregoing embodiments, based on the same inventive concept, the present embodiment further provides a device for managing and controlling a virtual terminal, where the device is used to implement the foregoing embodiments and preferred embodiments, and the description of the device is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 2 is a block diagram of a management and control apparatus for a virtual terminal according to an embodiment of the present invention, as shown in fig. 2, the apparatus is applied to a management and control platform, where the management and control platform is used to manage and control a plurality of virtual terminals, and includes: a generating module 20, configured to generate, by a control platform, a message instruction carrying a control policy for controlling at least one target virtual terminal of the multiple virtual terminals when a preset event for controlling the virtual terminals is detected; and the first sending module 22 is connected to the generating module 20, and is configured to send a message instruction to a message queue of the management and control platform, where the message queue is used to store the message instruction, so that the target virtual terminal reads the message instruction and executes a management and control policy in the message instruction.
Optionally, the apparatus further comprises: and the second sending module is used for sending the data packet or the 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.
Optionally, the apparatus further comprises: the injection module is used for injecting preset metadata into the target virtual terminal before sending a message instruction to a message queue of a management and control platform for storing the message instruction, wherein the metadata is used for establishing an incidence relation between the message queue and a cloud server for operating the target virtual terminal, so that the target virtual terminal reads the message instruction in the message queue and a data packet or an application link which is pre-stored in the cloud server and corresponds to initialization of an operating system of the target virtual terminal on the basis of the metadata, or upgrades the data packet or the application link corresponding to the operating system of the target virtual terminal; the metadata at least comprises an ID of the target virtual terminal, an IP address of the cloud server and an IP address of the message queue.
Optionally, the apparatus further comprises: the monitoring module is used for monitoring the running state of the target virtual terminal after sending the message instruction to a message queue of the management and control platform for storing the message instruction; the processing module is used for operating the target virtual terminal by creating a container and forcing the target virtual terminal to execute a control strategy in the message instruction when the target virtual terminal is in a power-off state; and when the target virtual terminal is in the running state, sending a control instruction for forcing the target virtual terminal to execute the control strategy in the message instruction or sending the control instruction for instructing the target virtual terminal to execute the control strategy in the message instruction according to the user-defined task to the target virtual terminal.
Optionally, the apparatus further comprises: and the cache module is used for caching the message instruction in a message queue according to the ID of the target virtual terminal after the monitoring module monitors the running state of the target virtual terminal and when the target virtual terminal is in a shutdown state, so that the target virtual terminal reads the message instruction according to the ID of the target virtual terminal after being started.
Optionally, the apparatus further comprises: and the execution module is used for executing shutdown operation on the target virtual terminal by deleting the container and recovering the computing resources in the target virtual terminal after the processing module runs the target virtual terminal by creating the container and forces the target virtual terminal to execute the management and control strategy in the message instruction.
Optionally, the apparatus further comprises: the monitoring module is used for monitoring whether the target virtual terminal is abnormal when executing the management and control strategy in the message instruction by using the service in the container after the target virtual terminal forcibly executes the management and control strategy in the message instruction; and the restarting module is used for restarting the container when the target virtual terminal has abnormality in executing the management and control strategy in the message instruction.
Optionally, the management policy at least includes one of the following: installing at least one application program; updating at least one application program; deleting at least one application program; initializing an operating system of a target virtual terminal; upgrading the operating system of the target virtual terminal; carrying out configuration operation on computing resources of a target virtual terminal; performing shutdown operation on the target virtual terminal; and restarting the target virtual terminal.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Based on the same inventive concept, the present embodiment further provides a management and control system for virtual terminals, where the management and control system at least includes a plurality of virtual terminals, a management and control platform for managing and controlling the plurality of virtual terminals, and a cloud server for operating the virtual terminals; the management and control platform executes the above embodiments and preferred embodiments, and the description thereof is omitted for brevity. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the above embodiments are preferably implemented in software, an implementation in hardware or a combination of software and hardware is also possible and contemplated.
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, when a preset event for managing and controlling the virtual terminals is detected, generating a message instruction carrying a management and control strategy for managing and controlling at least one target virtual terminal in the plurality of virtual terminals through the management and control platform;
s2, 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 policy in the message instruction.
Optionally, in this embodiment, the storage medium is a storage resource corresponding to a cloud server cluster, and belongs to cloud storage.
To achieve the above object, based on the embodiments of the method shown in fig. 1 and the apparatus shown in fig. 2, an embodiment of the present invention further provides an electronic device, which includes a storage medium and a processor; a storage medium for storing a computer program; a processor for executing a computer program to implement the above-described virtual terminal management and control method shown in fig. 1.
Based on such understanding, the technical solution of the present invention can be embodied in the form of a software product, where the software product can be stored in the cloud and includes a plurality of instructions for enabling an electronic device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to each implementation scenario of the present invention.
It will be understood by those skilled in the art that the structure of an electronic device provided in the present embodiment does not constitute a limitation of the physical device, and may include more or less components, or some components in combination, or a different arrangement of components.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (12)

1. A method for managing and controlling virtual terminals is applied to a management and control platform, and the management and control platform is used for managing and controlling a plurality of virtual terminals and comprises the following steps:
when a preset event for managing and controlling the virtual terminals is detected, generating a message instruction carrying a management and control strategy for managing and controlling at least one target virtual terminal in the plurality of virtual terminals through the management and control platform;
and 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.
2. The method of claim 1, wherein before the target virtual terminal executes the governing policy in the message instruction, the method further comprises:
and 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.
3. The method of claim 1,
before sending a message instruction into a message queue of the governing platform for storing the message instruction, the method further comprises:
injecting preset metadata into the target virtual terminal; the metadata is used for establishing an association relationship between the message queue and a cloud server running the target virtual terminal, so that the target virtual terminal reads a message instruction in the message queue and a data packet or an application link which is pre-stored in the cloud server and corresponds to initialization of an operating system of the target virtual terminal, or upgrades the operating system of the target virtual terminal; the metadata at least comprises an ID of the target virtual terminal, an IP address of the cloud server and an IP address of the message queue.
4. The method of claim 1, wherein after sending the message instruction into a message queue of the governing platform for storing the message instruction, the method further comprises:
monitoring the running state of the target virtual terminal;
when the target virtual terminal is in a power-off state, operating the target virtual terminal by creating a container, and forcing the target virtual terminal to execute a control strategy in the message instruction; and when the target virtual terminal is in an operating state, sending a control instruction for forcing the target virtual terminal to execute a control strategy in the message instruction to the target virtual terminal or sending a control instruction for instructing the target virtual terminal to execute the control strategy in the message instruction according to a custom task to the target virtual terminal.
5. The method of claim 4, wherein after monitoring the operational state of the target virtual terminal, the method further comprises:
when the target virtual terminal is in a power-off state, caching the message instruction in the message queue according to the ID of the target virtual terminal; and the target virtual terminal is used for reading the message instruction according to the ID of the target virtual terminal after the target virtual terminal is started.
6. The method of claim 4, wherein after running the target virtual terminal by creating a container and forcing the target virtual terminal to execute the governing policy in the message instruction, the method further comprises:
and executing shutdown operation on the target virtual terminal by deleting the container, and recovering the computing resources in the target virtual terminal.
7. The method of claim 4, wherein after the target virtual terminal enforces the governing policy in the message instruction, the method further comprises:
monitoring whether an exception exists when the target virtual terminal executes the management and control strategy in the message instruction by using the service in the container;
and if the target virtual terminal has an exception when executing the control strategy in the message instruction, restarting the container.
8. The method according to any of claims 1-7, wherein the governing policy comprises at least one of:
installing at least one application program;
updating at least one application program;
deleting at least one application program;
initializing an operating system of the target virtual terminal;
upgrading the operating system of the target virtual terminal;
carrying out configuration operation on the computing resources of the target virtual terminal;
performing shutdown operation on the target virtual terminal;
and restarting the target virtual terminal.
9. The utility model provides a management and control device of virtual terminal, its characterized in that, the device is applied to the management and control platform, the management and control platform is used for managing and controlling a plurality of virtual terminals, includes:
the generation module is used for generating a message instruction carrying a management and control strategy for managing and controlling at least one target virtual terminal in the plurality of virtual terminals through the management and control platform when a preset event for managing and controlling the virtual terminals is detected;
the first sending module is configured to send a message instruction to a message queue of the management and control platform, where the message queue is used for storing the message instruction, 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.
10. The management and control system of the virtual terminals is characterized by at least comprising a plurality of virtual terminals, a management and control platform for managing and controlling the virtual terminals and a cloud server for operating the virtual terminals; wherein the governing platform performs the steps of the method of any one of claims 1-8 above.
11. An electronic device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 8 when executing the computer program.
12. A storage medium having a computer program stored thereon, the computer program, when being executed by a processor, realizing the steps of the method of any one of claims 1 to 8.
CN202111666307.1A 2021-12-30 2021-12-30 Virtual terminal control method, device, system, electronic equipment and storage medium Pending CN114327781A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111666307.1A CN114327781A (en) 2021-12-30 2021-12-30 Virtual terminal control method, device, system, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111666307.1A CN114327781A (en) 2021-12-30 2021-12-30 Virtual terminal control method, device, system, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114327781A true CN114327781A (en) 2022-04-12

Family

ID=81020505

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111666307.1A Pending CN114327781A (en) 2021-12-30 2021-12-30 Virtual terminal control method, device, system, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114327781A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114826981A (en) * 2022-04-27 2022-07-29 广东悦伍纪网络技术有限公司 System and method for realizing application resident in cloud mobile phone

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114826981A (en) * 2022-04-27 2022-07-29 广东悦伍纪网络技术有限公司 System and method for realizing application resident in cloud mobile phone
CN114826981B (en) * 2022-04-27 2023-09-22 广东悦伍纪网络技术有限公司 System and method for realizing application resident in cloud mobile phone

Similar Documents

Publication Publication Date Title
US11637837B2 (en) Secure, non-disruptive firmware updating
CN108241500B (en) Method, device and system for repairing hardware component and storage medium
EP2482187A1 (en) Software upgrading method, software upgrading system and client
KR100883208B1 (en) Mobile communication terminal available to update software based on virtualization technology and updating method thereof
US8161474B2 (en) Diagnostic information preservation during installations of over the air update of wireless handset software
JP2012141973A (en) Method and computer program for dynamic software version selection
CA2511049A1 (en) System to automatically process components on a device
WO2006071447A2 (en) Management of persistent software applications
CN108616384B (en) Centralized service management deployment tool and method
WO2017162054A1 (en) Method and device for automatic deployment of application in virtual environment
CN111698283B (en) Management and control method, device, equipment and storage medium of distributed cluster host
CN104077160A (en) Android software upgrading method, device and system
CN107844306B (en) Application program repairing method and device, storage medium and terminal
CN114327781A (en) Virtual terminal control method, device, system, electronic equipment and storage medium
CN108958785B (en) Application program upgrading method and device
CN107526584B (en) Data access method and device
CN117795479A (en) System and method for service management and container orchestration within a host environment
CN114398048A (en) Method and device for automatically upgrading APP and computer equipment
JPWO2011158367A1 (en) Update technology for running programs
CN104348646A (en) Configuration data processing method, device and system
CN109428936B (en) APP upgrading method, device, system, electronic equipment and storage medium
CN117234606B (en) BIOS configuration data synchronization method and device
US20230205512A1 (en) System updating method and electronic apparatus
KR20070071758A (en) Mobile communication terminal enable to upgrade and its operating method
KR20050012007A (en) Method of upgrading software in wireless communication terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination