Cloud application startup method, device, terminal and computer-readable storage medium

By allocating virtual machines to client application login requests in the cloud and mounting application differential image files to the virtual machine, the problem of excessive disk space occupied and unusable applications caused by strong binding between applications and virtual machines is solved, and the user experience is improved.

CN113900765BActive Publication Date: 2025-04-18ZTE CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010568326.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-19
Publication Date
2025-04-18
Estimated Expiration
2040-06-19

AI Technical Summary

Technical Problem

In the prior art, applications are strongly bound to virtual machines, which occupies a large amount of disk space and causes applications to be unusable when virtual machines are abnormal, affecting user experience.

Method used

By receiving the client's application login request, assign a virtual machine to the request, and mount the application differential image file to the virtual machine, and bind only when the application logs in, avoiding strong binding between the application and the virtual machine.

Benefits of technology

It effectively avoids the problem of excessive disk space occupation, and avoids the application's inability to use when virtual machine is abnormal, improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113900765B_ABST
    Figure CN113900765B_ABST
Patent Text Reader

Abstract

The embodiments of the present invention disclose a cloud application startup method, device, terminal and computer-readable storage medium, which receive an application login request sent by a client, allocate a virtual machine for the application login request; mount an application differential image file corresponding to the application login request to the virtual machine; start the application corresponding to the application login request through the virtual machine; make the virtual machine and the differential image file of the application be bound only when the application login request is received, thereby avoiding the problem of occupying a large amount of disk space due to the strong binding of the application and the virtual machine; in some implementation processes, allocate a virtual machine for the application login request, and mount the application differential image file to the allocated virtual machine, so that the application is executed through the virtual machine instead of strongly binding the virtual machine to the application, thereby avoiding the problem that the strongly bound application on the virtual machine cannot be used when an exception occurs in the virtual machine.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to, but are not limited to, the field of virtualization technology, and specifically, to, but are not limited to, a cloud application startup method, device, terminal, and computer-readable storage medium. Background Art

[0002] With the development of information technology, desktop virtualization technology, server virtualization technology, and application virtualization technology based on system virtualization modules have made great progress. Virtualization technology has been applied to all walks of life, and the concept of cloud computing has become popular, such as KVM (Kernel-based Virtual Machine, open source virtual machine).

[0003] At the same time, with the development of information technology and the growth of applications, there is an increasingly rapid demand for terminal upgrades, which in turn increases the cost of terminal replacement. At the same time, with the rapid iteration of services, such as the rapid upgrade of applications, there is a huge contradiction with the workload of terminal docking and adaptation. Therefore, cloud terminals, such as cloud set-top boxes (VSTB: Virtual Set TopBox, which refers to virtualized digital video conversion boxes), came into being. Cloud terminals, such as cloud set-top boxes, virtualize devices, cloud services, and run UI / APP services on the cloud. The physical set-top box corresponding to the cloud set-top box is in the form of video streams, and the physical set-top box forwards remote control commands, UI display, and media playback. By placing resource-consuming services on the terminal in the cloud for virtualization, the hardware cost of the terminal device can be directly reduced, effectively extending the terminal life cycle.

[0004] In related technologies, various businesses and applications are directly deployed in the cloud, and cloud applications are strongly bound to virtual machines, resulting in a large amount of disk space being occupied. In addition, when an abnormality occurs in the virtual machine, the applications strongly bound to the virtual machine cannot be used, affecting the user experience. Summary of the invention

[0005] The cloud application startup method, device, terminal and computer-readable storage medium provided in the embodiments of the present invention mainly solve the technical problem that in the related technology, the application is strongly bound to the virtual machine, resulting in a large amount of disk space being occupied, and when an exception occurs in the virtual machine, the application strongly bound to the virtual machine cannot be used.

[0006] To solve the above technical problems, an embodiment of the present invention provides a cloud application startup method, including: receiving an application login request sent by a client, allocating a virtual machine to the application login request; mounting an application differential image file corresponding to the application login request to the virtual machine; and starting the application corresponding to the application login request through the virtual machine.

[0007] An embodiment of the present invention provides a cloud application startup method, comprising: sending an application login request and establishing a connection with a virtual machine allocated to the application login request; and starting an application corresponding to the application login request through the virtual machine.

[0008] An embodiment of the present invention also provides a device, comprising a first processor, a first memory and a first communication bus; the first communication bus is used to realize connection and communication between the first processor and the first memory; the first processor is used to execute one or more computer programs stored in the first memory to implement the steps of the cloud application startup method executed by the cloud management end as described above.

[0009] The embodiment of the present invention further provides a terminal, the terminal comprising a second processor, a second memory and a second communication bus; the second communication bus is used to realize the connection and communication between the second processor and the second memory; the second processor is used to execute one or more computer programs stored in the second memory to implement the steps of the cloud application startup method executed by the terminal as described above

[0010] An embodiment of the present invention also provides a computer-readable storage medium, which stores one or more programs. The one or more programs can be executed by one or more processors to implement the above-mentioned cloud application startup method executed by the device and / or the steps of the cloud application startup method executed by the terminal.

[0011] According to the cloud application startup method, device, terminal and computer-readable storage medium provided by the embodiments of the present invention, an application login request sent by a client is received, and a virtual machine is allocated for the application login request; an application differential image file corresponding to the application login request is mounted to the virtual machine; the application corresponding to the application login request is started through the virtual machine; the virtual machine and the differential image file of the application are bound only when the application login request is received, thereby avoiding the problem of occupying a large amount of disk space due to the strong binding of the application and the virtual machine; in some implementation processes, a virtual machine is allocated for the application login request, and the application differential image file is mounted on the allocated virtual machine, so that the application is executed through the virtual machine instead of strongly binding the virtual machine and the application, thereby avoiding the problem that the strongly bound application on the virtual machine cannot be used when an exception occurs in the virtual machine.

[0012] Other features and corresponding beneficial effects of the present invention are described in the latter part of the specification, and it should be understood that at least part of the beneficial effects become obvious from the description in the specification of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 A basic flow chart of a cloud application startup method according to the first embodiment of the present invention;

[0014] Figure 2 A schematic diagram of a basic process of creating an application image file according to the first embodiment of the present invention;

[0015] Figure 3 A schematic diagram of a basic process of exiting an application and uninstalling a virtual machine according to the first embodiment of the present invention;

[0016] Figure 4 This is a basic flow chart of another cloud application startup method according to the first embodiment of the present invention;

[0017] Figure 5 This is a basic flow chart of another cloud application startup method according to the second embodiment of the present invention;

[0018] Figure 6 This is a basic structural diagram of a cloud management terminal according to Embodiment 3 of the present invention;

[0019] Figure 7 This is a schematic diagram of the basic structure of a terminal according to Embodiment 3 of the present invention. DETAILED DESCRIPTION

[0020] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the following is a further detailed description of the embodiments of the present invention through specific implementation methods combined with the accompanying drawings. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0021] Embodiment 1:

[0022] In order to solve the problem in related technologies that various applications are directly deployed in the cloud, the same application needs to be installed and deployed on each virtual machine, which not only takes up a lot of disk space and causes the virtual machine image to become larger and larger, but also the cloud application installation, upgrade and update process requires the application of each virtual machine to be installed, upgraded and updated, resulting in the cloud application installation, upgrade and update becoming extremely long, inefficient, and prone to errors; at the same time, the application and the virtual machine are strongly bound, resulting in the terminal user being able to only log in by binding to the virtual machine, which in turn causes the terminal user to be unable to use the application bound to the virtual machine and the corresponding service when a virtual machine is abnormal, affecting the terminal user's experience. That is, in related technologies, the application is bound to the virtual machine, resulting in a large amount of disk space being occupied, and when the virtual machine is abnormal, the application corresponding to the virtual machine cannot be used; please refer to Figure 1 , Figure 1 A basic flow chart of a cloud application startup method provided in this embodiment, the cloud application startup method includes:

[0023] S101, receiving an application login request sent by a client, and allocating a virtual machine for the application login request;

[0024] In some embodiments, before the device receives the application login request sent by the client, the device also includes: creating an application image file, wherein the device includes but is not limited to: a cloud management end; Figure 2 As shown, Figure 2 This is a basic flow chart of creating an application image file, which includes:

[0025] S201. Create an image block file as an application image file. In some embodiments, the administrator uploads the installation package of the application to the guidance directory in the virtual machine through the operation portal, and creates a new image block file as the application image file. The size of the application image file is not limited, as long as it can meet the installation of the application. In some embodiments, the size of the application image file can be 4G, and the format of the application image file is not limited, including but not limited to any of the following formats: qcow2, qcow, raw, vmdk. For example, create an image format file with a virtual size of 4G qcow2 as an application image file; wherein the created new image block file is an empty image block file, and the created image block file, that is, the application image file, is named and formatted. The naming rules of the application image file include but are not limited to naming with the application name and version number, such as appname_v1.qcow2, appname_v1.qcow, wherein appname_v1 represents naming, and qcow2 and qcow represent different formats of the application image file respectively; it should be noted that the specific naming method is not limited in this embodiment, as long as the corresponding relationship between the application and the application image file can be represented.

[0026] S202, installing the application into the application image file;

[0027] In some embodiments, installing an application to an application image file includes: starting a virtual machine, mounting the application installation package directory and the application image file to a guidance directory within the virtual machine, calling the application installation instructions within the virtual machine, and installing the application to the created application image file. It is important to note that there is no restriction on the method of installing the application to the application image file through the virtual machine, such as calling a command for silent installation, etc.; after the installation is completed, the application image file is saved as a master disk to a corresponding directory. At this time, all virtual machines in the server can only read the application image file as the master disk, and cannot perform write operations.

[0028] S203, obtaining an application differential image according to the difference of the application image file, where the application differential image is used to store temporary files when the application image file runs the application;

[0029] In some embodiments, in the corresponding virtual machine directory, the application image file used as the mother disk is differentiated into multiple application differential image files through a differential command; for example, the application image file appname_v1.qcow2 used as the mother disk is differentiated into two application differential image files Aappname_v1.qcow2 and Bappname_v1.qcow2 through a differential technology; it should be noted that obtaining the application differential image file according to the difference of the application image file includes: obtaining the number of virtual machines in the server; obtaining the application differential image file according to the difference of the application image file, the number of application differential image files corresponds to the number of virtual machines in the server; specifically, the number of application differential image files obtained according to the difference of the application image file corresponds to the number of virtual machines in the server. For example, when the number of virtual machines in the server is N, N is an integer greater than or equal to 2, and the number of application differential image files obtained by differencing the application image files is also N, wherein the application differential image files are only used to save related temporary files that need to be written when the application is running (that is, the application image files are running). Therefore, the actual size occupied by each application differential image file is much smaller than the size of the application image file. Optionally, the size of the application differential image file can be a few MB. It should be understood that there is no restriction on the naming of the application differential image file; it should be understood that when the application needs to be upgraded, the mother disk reference image file is re-made and re-differentiated to obtain the application differential image file, without uninstalling and upgrading the application in each virtual machine, thereby realizing rapid application upgrade.

[0030] In some embodiments, the cloud management end receives an application login request sent by a client and allocates a virtual machine to the application login request; specifically, when a client user clicks on an application, the login request for the application is sent to the cloud management end, and the cloud management end parses the received application login request, obtains the application name and version number corresponding to the application login request, and loads it to a virtual machine on the server corresponding to the client through load balancing, and uses the virtual machine as the virtual machine allocated to the application login request; wherein loading it to a virtual machine on the server corresponding to the client through load balancing includes: allocating a virtual machine in the server that is currently unused and in an idle state to the application login request, and changing the state of the virtual machine to a non-idle state.

[0031] S102, mounting the application differential image corresponding to the application login request to the virtual machine;

[0032] In some embodiments, the cloud management end obtains an application differential image file corresponding to an application login request that is not currently in use. Specifically, the cloud management end searches for the application differential image file corresponding to the application login request based on the application name and version number obtained by parsing, and obtains one of the application differential image files that is not currently in use. For example, the cloud management end finds application differential image files corresponding to N application login requests based on the application name and version number obtained by parsing, among which there are application differential image files that are being used and application differential image files that are not currently in use, and assigns one of the application differential image files that are not currently in use to the current application login request, and changes the status of the application differential image file to a used status.

[0033] In some embodiments, the cloud management end mounts the acquired application differential image file to a currently unused virtual machine. Specifically, the cloud management end mounts the acquired application differential image file to a virtual machine in an acquired server. Optionally, when the virtual machine determines that the application differential image file is mounted successfully, a prompt of successful mounting can be returned to the cloud management end, so that the cloud management end can proceed to the next step after knowing that the mounting is successful. The cloud management end can also actively send a message to determine whether the application differential image file is successfully mounted to the virtual machine. When the mounting fails, a user login failure prompt is issued to instruct the client to re-issue the application login request instruction.

[0034] S103: Start the application corresponding to the application login request through the virtual machine.

[0035] In some embodiments, before starting the application corresponding to the application login request through the virtual machine, the process includes: connecting the virtual machine to the client; specifically, after the application differential image file corresponding to the application login request is successfully mounted into the virtual machine, the cloud management end sends the server address and the corresponding virtual machine to the client, so that the client can establish a link with the virtual machine based on the server address and the corresponding virtual machine. When the client and the virtual machine are successfully linked, the application startup instruction is passed to the virtual machine, and the virtual machine starts the application corresponding to the application login request according to the application startup instruction.

[0036] In some embodiments, starting an application corresponding to an application login request through a virtual machine includes: reading an application image file through the virtual machine, running the application, and saving temporary files generated by the application to an application differential image file. Specifically, the virtual machine reads the mother disk application image file of the application differential image file according to the application differential image file to run the application corresponding to the application login request, and saves temporary files generated when running the application to the application differential image file mounted to the virtual machine.

[0037] In some embodiments, after starting the application corresponding to the application login request through the virtual machine, the method further includes: transmitting the code stream of the application running to the client.

[0038] In some embodiments, when the application is finished, Figure 3 As shown, Figure 3 The figure shows the basic process flow diagram of exiting the application and uninstalling the virtual machine, which includes:

[0039] S301, the client sends an application exit instruction to the virtual machine;

[0040] It should be understood that at this point, the client has successfully established a link with the virtual machine. Therefore, when the client needs to exit the application, it can directly send the exit application instruction to the virtual machine; in some embodiments, the client can also send the exit application instruction to the cloud management end, and the cloud management end sends the exit application instruction issued by the client to the cloud management end.

[0041] S302: When the virtual machine stops the application according to the application exit instruction, the client disconnects from the virtual machine;

[0042] In some embodiments, after receiving the instruction to exit the application, the virtual machine exits the application, that is, the virtual machine stops reading the application image file and returns a successful application exit result to the client, so that the client knows that the application has exited successfully, and the client actively disconnects from the virtual machine; it should be understood that in some embodiments, when the virtual machine returns a successful application exit result to the client, it can actively disconnect from the client.

[0043] S303, the server uninstalls the application differential image mounted on the virtual machine;

[0044] In some embodiments, when the server detects that the link between the virtual machine and the client is disconnected, the server uninstalls the application differential image file mounted on the virtual machine, changes the state of the application differential image file to an unused state, and changes the state of the virtual machine to an idle state.

[0045] The embodiment of the present invention also provides another cloud application startup method for the client, such as Figure 4 As shown, Figure 4 FIG. 1 is a basic flow chart of another cloud application startup method, which includes:

[0046] S401, sending an application login request, and establishing a connection with a virtual machine allocated for the application login request;

[0047] In some embodiments, the client sends an application login request to the cloud management end, the cloud management end receives the application login request sent by the client, and allocates a virtual machine for the application login request; specifically, when the client user clicks on an application, the application login request is sent to the cloud management end, the cloud management end parses the received application login request, obtains the application name and version number corresponding to the application login request, and loads it to a virtual machine on the server corresponding to the client through load balancing, and uses the virtual machine as the virtual machine allocated to the application login request; wherein loading it to a virtual machine on the server corresponding to the client through load balancing includes: allocating a virtual machine that is currently unused and in an idle state in the server to the application login request, and changing the state of the virtual machine to a non-idle state.

[0048] It should be understood that the cloud management end obtains an application differential image file corresponding to an application login request that is not currently in use. Specifically, the cloud management end searches for the application differential image file corresponding to the application login request according to the application name and version number obtained by parsing, and obtains one of the application differential image files that is not currently in use. For example, the cloud management end finds application differential image files corresponding to N application login requests according to the application name and version number obtained by parsing, among which there are application differential image files that are being used and application differential image files that are not currently in use, and allocates one of the application differential image files that are not currently in use to the current application login request, and changes the state of the application differential image file to a used state. In some embodiments, the cloud management end mounts the obtained application differential image file to a virtual machine that is not currently in use.

[0049] In some embodiments, when the application differential image file corresponding to the application login request is successfully mounted into the virtual machine, the cloud management end sends the server address and the corresponding virtual machine to the client, so that the client can establish a link with the virtual machine based on the server address and the corresponding virtual machine. When the client and the virtual machine are successfully linked, the application startup instruction is passed to the virtual machine, and the virtual machine starts the application corresponding to the application login request according to the application startup instruction.

[0050] S402: Start the application corresponding to the application login request through the virtual machine.

[0051] In some embodiments, starting an application corresponding to an application login request through a virtual machine includes: reading an application image file through a virtual machine, running the application, and saving temporary files generated by the application to an application differential image file. Specifically, the virtual machine reads the mother disk application image file of the application differential image file according to the application differential image file to run the application corresponding to the application login request, and saves temporary files generated when running the application to the application differential image file mounted to the virtual machine, and transmits the code stream of the application running to the client.

[0052] The cloud application startup method provided in the embodiment of the present invention receives an application login request sent by a client, allocates a virtual machine to the application login request; mounts the application differential image file corresponding to the application login request to the virtual machine; starts the application corresponding to the application login request through the virtual machine; so that the virtual machine and the differential image file of the application are bound only when the application login request is received, thereby avoiding the problem of occupying a large amount of disk space due to the strong binding of the application to the virtual machine; in some implementation processes, a virtual machine is allocated to the application login request, and the application differential image file is mounted on the allocated virtual machine, so that the application is executed through the virtual machine instead of strongly binding the virtual machine to the application, thereby avoiding the problem that the strongly bound application on the virtual machine cannot be used when an exception occurs in the virtual machine; in some embodiments, by installing the application to the application image file as the master disk file, and using the application differential image file to save temporary files generated when running the application, it is avoided to install and deploy the same application on each virtual machine, resulting in extremely long, inefficient and error-prone processes such as application installation, upgrading, and updating.

[0053] Embodiment 2:

[0054] In order to better understand the present invention, this embodiment provides a more specific example to illustrate the cloud application startup method. Figure 5 As shown, Figure 5 1 is a basic flow chart of another cloud application startup method, which includes:

[0055] S501, the client sends an application login request to the cloud management end;

[0056] In some embodiments, after the user logs in to the application hall through the client, he clicks on an application and sends an application login request to the cloud management end, where the application login request carries the application name and version number. It should be understood that the information carried in the application login request includes but is not limited to the application name and version number, and the information carried in the application login request can be used to represent the corresponding application.

[0057] S502, the cloud management end allocates a virtual machine and an application differential image file for the application login request;

[0058] In some embodiments, before the cloud management end allocates a virtual machine and an application differential image file for an application login request, the process also includes: creating an application image file, specifically, the administrator uploads the application installation package to the guidance directory through the operation portal, and creates an image format file, i.e., an image block file, of a virtual size such as 4G qcow2 as the application image file, and names the application image file according to the name and version number of the application, such as appname_v1.qcow2, and formats it; starting the virtual machine, mounting the application installation package directory and the application image file to the virtual machine, calling the application installation instruction inside the virtual machine, installing the application to the created application image file by means of silent installation, and saving the application image file as a master disk to the corresponding directory. At this time, all virtual machines in the server can only read the application image file as the master disk, but cannot write to it;

[0059] In some embodiments, in the corresponding virtual machine directory, the application image file as the mother disk is differentiated into multiple application differential image files through a differential command; it should be noted that obtaining the application differential image file according to the difference of the application image file includes: obtaining the number of virtual machines in the server; obtaining the application differential image file of the number of virtual machines according to the difference of the application image file; specifically, the number of application differential image files obtained according to the difference of the application image file corresponds to the number of virtual machines in the server, specifically, when the number of virtual machines in the server is N, N is an integer greater than or equal to 2, and the number of application differential image files obtained according to the difference of the application image file is also N, where the application The differential image file is only used to save the relevant temporary files that need to be written when the application is running (that is, the application image file is running). Therefore, the actual size occupied by each application differential image file is much smaller than the size of the application image file. Optionally, the size of the application differential image file can be a few MB; it should be understood that each application differential image file corresponds to a virtual machine. Specifically, the naming method of the application differential image file can be the corresponding virtual machine name + application name + version name. For example, the name of the application image file is appname_v1, and the name of the virtual machine corresponding to the application differential image file is A, then the name of the application differential image file is A_appname_v1;

[0060] It should be understood that the cloud management end parses the received application login request, obtains the application name and version number corresponding to the application login request, and loads it to a virtual machine on the server corresponding to the client through load balancing, and uses the virtual machine as the virtual machine assigned to the application login request; wherein loading it to a virtual machine on the server corresponding to the client through load balancing includes: allocating a virtual machine that is currently unused and idle in the server to the application login request, and changing the state of the virtual machine to a non-idle state; and mounting the application differential image file corresponding to the virtual machine to the virtual machine. For example, if the virtual machine assigned by the cloud management end to the application login request is A, then the application differential image file A_appname_v1 corresponding to virtual machine A is mounted to virtual machine A.

[0061] S503: The client receives the server address and the corresponding virtual machine sent by the cloud management terminal, and establishes a link with the corresponding virtual machine;

[0062] In some embodiments, before starting the application corresponding to the application login request through the virtual machine, the process includes: connecting the virtual machine to the client; specifically, after the application differential image file is successfully mounted into the virtual machine, the cloud management end sends the server address and the corresponding virtual machine to the client, so that the client can establish a link with the virtual machine according to the server address and the corresponding virtual machine;

[0063] S504, the client transmits an application start instruction to the virtual machine, and receives an application running code stream transmitted back by the virtual machine;

[0064] In some embodiments, after the client successfully establishes a link with the virtual machine, an application startup instruction is passed to the virtual machine, and the virtual machine starts the application corresponding to the application login request according to the application startup instruction; it should be understood that starting the application corresponding to the application login request through the virtual machine includes: reading the application image file through the virtual machine, running the application, and saving the temporary files generated by the application to the application differential image file. Specifically, the virtual machine reads the mother disk application image file of the application differential image file according to the application differential image file to run the application corresponding to the application login request, and saves the temporary files generated when running the application to the application differential image file mounted on the virtual machine; in some embodiments, after starting the application corresponding to the application login request through the virtual machine, it also includes: transmitting the code stream of the application running to the client.

[0065] S505: The client sends an application exit instruction to the virtual machine;

[0066] It should be understood that at this point, the client has successfully established a link with the virtual machine. Therefore, when the client needs to exit the application, it can directly send the exit application instruction to the virtual machine; in some embodiments, the client can also send the exit application instruction to the cloud management end, and the cloud management end sends the exit application instruction issued by the client to the cloud management end.

[0067] S506: When the virtual machine stops the application according to the application exit instruction, the client is disconnected from the virtual machine;

[0068] In some embodiments, after receiving the instruction to exit the application, the virtual machine exits the application, that is, the virtual machine stops reading the application image file and returns a successful application exit result to the client, so that the client knows that the application has exited successfully, and the client actively disconnects from the virtual machine; it should be understood that in some embodiments, when the virtual machine returns a successful application exit result to the client, it can actively disconnect from the client.

[0069] S507, the server uninstalls the application differential image mounted on the virtual machine;

[0070] In some embodiments, when the server detects that the link between the virtual machine and the client is disconnected, the server uninstalls the application differential image file mounted on the virtual machine, changes the state of the application differential image file to an unused state, and changes the state of the virtual machine to an idle state.

[0071] The cloud application startup method provided in the embodiment of the present invention receives an application login request sent by a client, allocates a virtual machine to the application login request; mounts the application differential image file corresponding to the application login request to the virtual machine; starts the application corresponding to the application login request through the virtual machine; so that the virtual machine and the differential image file of the application are bound only when the application login request is received, thereby avoiding the problem of occupying a large amount of disk space due to the strong binding of the application to the virtual machine; in some implementation processes, a virtual machine is allocated to the application login request, and the application differential image file is mounted on the allocated virtual machine, so that the application is executed through the virtual machine instead of strongly binding the virtual machine to the application, thereby avoiding the problem that the strongly bound application on the virtual machine cannot be used when an exception occurs in the virtual machine; in some embodiments, by installing the application to the application image file as the master disk file, and using the application differential image file to save temporary files generated when running the application, it is avoided to install and deploy the same application on each virtual machine, resulting in extremely long, inefficient and error-prone processes such as application installation, upgrading, and updating.

[0072] Embodiment three:

[0073] This embodiment also provides a device, see Figure 6As shown, it includes a first processor 601, a first memory 602 and a first communication bus 603, wherein:

[0074] The first communication bus 603 is used to realize the connection and communication between the first processor 601 and the first memory 602;

[0075] The first processor 601 is used to execute one or more computer programs stored in the first memory 602 to implement at least one step in the cloud application startup method executed by the device in the above-mentioned embodiment 1 and embodiment 2.

[0076] This embodiment also provides a terminal, see Figure 7 As shown, it includes a second processor 701, a second memory 702 and a second communication bus 703, wherein:

[0077] The second communication bus 703 is used to realize the connection and communication between the second processor 701 and the second memory 702;

[0078] The second processor 701 is used to execute one or more computer programs stored in the second memory 702 to implement at least one step of the cloud application startup method executed by the terminal in the above-mentioned embodiment 1 and embodiment 2.

[0079] The present embodiment also provides a computer-readable storage medium, which includes volatile or non-volatile, removable or non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, computer program modules or other data). Computer-readable storage media include, but are not limited to, RAM (Random Access Memory), ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable read only memory), flash memory or other memory technology, CD-ROM (Compact Disc Read-Only Memory), digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer.

[0080] The computer-readable storage medium in this embodiment can be used to store one or more computer programs, and the one or more computer programs stored therein can be executed by a processor to implement at least one step of the cloud application startup method in the above-mentioned embodiments 1 and 2.

[0081] It can be seen that those skilled in the art should understand that all or some of the steps, systems, and functional modules / units in the above disclosed methods can be implemented as software (which can be implemented with computer program code executable by a computing device), firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component can have multiple functions, or a function or step can be performed by several physical components in cooperation. Some or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit.

[0082] In addition, it is well known to those skilled in the art that communication media generally contain computer readable instructions, data structures, computer program modules or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery media. Therefore, the present invention is not limited to any specific hardware and software combination.

[0083] The above contents are further detailed descriptions of the embodiments of the present invention in combination with specific implementation methods, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.

Claims

1. A cloud application startup method, comprising: Install the application to the application image file; Obtaining an application differential image file according to the difference of the application image file, wherein the application differential image file is used to store a temporary file when the application image file runs the application; Receive an application login request sent by a client, and allocate a virtual machine for the application login request; Mounting the application differential image file corresponding to the application login request to the virtual machine; The application corresponding to the application login request is started through the virtual machine.

2. The cloud application startup method according to claim 1, characterized in that: The step of obtaining the application differential image file according to the difference of the application image file comprises: Get the number of virtual machines in the server; The application differential image file is obtained according to the difference of the application image file, and the number of the application differential image files corresponds to the number of virtual machines in the server.

3. The cloud application startup method according to claim 1 or 2, characterized in that: Allocating a virtual machine for the application login request includes: allocating a currently unused virtual machine; The step of mounting the application differential image file corresponding to the application login request to the virtual machine includes: An application differential image file corresponding to the application login request that is not currently in use is obtained, and the obtained application differential image file is mounted to the virtual machine that is not currently in use.

4. The cloud application startup method according to claim 3, characterized in that: Before starting the application corresponding to the application login request through the virtual machine, the method includes: The virtual machine on which the application differential image file corresponding to the application login request is mounted is connected to the client.

5. The cloud application startup method according to claim 4, characterized in that: The starting of the application corresponding to the application login request through the virtual machine includes: The application image file is read through the virtual machine, the application is run, and the temporary files generated by the application are saved to the application differential image file.

6. A cloud application startup method, comprising: The client sends an application login request and establishes a connection with the virtual machine assigned to the application login request; The application differential image file corresponding to the application login request is mounted to the virtual machine; the application differential image file is obtained by differentially performing the application image file to which the application is installed, and the application differential image file is used to store temporary files when the application image file runs the application; The application corresponding to the application login request is started through the virtual machine.

7. A device comprising a first processor, a first memory and a first communication bus; The first communication bus is used to realize the connection and communication between the first processor and the first memory; The first processor is used to execute one or more computer programs stored in the first memory to implement the steps of the cloud application startup method as described in any one of claims 1 to 5.

8. A terminal comprising a second processor, a second memory and a second communication bus; The second communication bus is used to realize the connection and communication between the second processor and the second memory; The second processor is used to execute one or more computer programs stored in the second memory to implement the steps of the cloud application startup method as described in claim 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more computer programs, and the one or more computer programs can be executed by one or more processors to implement the cloud application startup method as described in any one of claims 1 to 5 and / or the steps of the cloud application startup method as described in claim 6.

Citation Information

Patent Citations

  • Method and device for logging virtual desktop through cloud terminal

    CN107566433A

  • Systems and methods for restoring distributed applications within virtual data centers

    US9092248B1