Cloud desktop management method and device, equipment, storage medium and program product

Through snapshot and restore technology of differential files, the problem of cloud desktop reconnecting to download mirrors when errors occur or when restoring is required, achieving fast and seamless cloud desktop restoration and improving user experience.

CN119645551APending Publication Date: 2025-03-18CHINA TELECOM CLOUD TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411754026.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-02
Publication Date
2025-03-18

AI Technical Summary

Technical Problem

When an existing cloud desktop technology fails or needs to be restored, it needs to reconnect to the Internet to download the mirror, which will affect the user's use and cannot meet the requirements of instant use.

Method used

By generating the initial differential file of the original cloud desktop image and updating the differential file when the user changes, the snapshot and restoration of the differential file can be achieved, and the cloud desktop can be restored without reconnecting to the network to download the mirror.

Benefits of technology

It reduces the time required for cloud desktop restoration, reduces the interaction between the server and the terminal, improves the user experience, and can quickly restore the cloud desktop in teaching and other scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119645551A_ABST
    Figure CN119645551A_ABST
Patent Text Reader

Abstract

The invention relates to a cloud desktop management method and device, equipment, a storage medium and a program product. The method comprises the following steps: generating an initial difference file of an original mirror image of the cloud desktop; under the condition that the user modifies the cloud desktop, obtaining an operation instruction of the current user, and modifying the initial difference file based on the operation instruction to obtain a modified difference file; under the condition that the cloud desktop needs to be restored, acquiring a restoration instruction and a restoration strategy, and determining a restoration point corresponding to the restoration instruction; and restoring the cloud desktop to a restoration point based on the restoration strategy, wherein the restoration point comprises one of the original mirror image, the initial difference file or the modified difference file. By adopting the method, the time required for restoring the cloud desktop can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of cloud computing technology, and in particular to a cloud desktop management method, device, equipment, storage medium and program product. Background Art

[0002] Cloud desktop is a desktop virtualization service that uses computing virtualization, distributed storage and other technical means to achieve flexibility and security of cloud desktops. Users can access virtualized desktops through various terminal devices. Cloud desktops can be applied to a variety of office and application scenarios, providing convenience for people in various industries.

[0003] Intelligent Desktop Virtualization (IDV) is a widely used cloud desktop architecture that supports offline operations, is independent of the network environment, and has advantages such as distributed computing tasks on the client, which is user-friendly. However, when a cloud desktop fails or needs to be restored, it needs to be rebuilt. During the reconstruction process, it is necessary to re-establish a network connection with the server and download the image to rebuild the virtual machine. The time to download the image varies depending on the network conditions, which will affect the normal use of users. Summary of the invention

[0004] Based on this, it is necessary to provide a cloud desktop management method, device, computer equipment, computer-readable storage medium and computer program product that can restore the cloud desktop without reconnecting to the Internet to download the image in order to solve the above technical problems.

[0005] In a first aspect, the present application provides a cloud desktop management method, comprising:

[0006] Generate the initial differential file of the original cloud desktop image;

[0007] When the user modifies the cloud desktop, an operation instruction of the current user is obtained, and the initial differential file is modified based on the operation instruction to obtain a modified differential file;

[0008] When the cloud desktop needs to be restored, obtaining a restore instruction and a restore strategy, and determining a restore point corresponding to the restore instruction;

[0009] The cloud desktop is restored to the restore point based on the restore strategy, where the restore point includes one of the original image, the initial differential file, or the modified differential file.

[0010] In one embodiment, restoring the cloud desktop to a point before the restore point based on the restore policy includes:

[0011] Generating snapshots of the initial differential file and the modified differential file respectively;

[0012] In a case where the restore point includes the initial differential file or the modified differential file, restoring the cloud desktop to the restore point includes:

[0013] The state of the cloud desktop is restored to the state of the snapshot of the restore point.

[0014] In one of the embodiments, the restoration strategy includes at least one of power-on restoration, restart restoration, or scheduled restoration.

[0015] In one embodiment, when the restoration strategy includes power-on restoration, the restoration point includes an original image; and restoring the cloud desktop to the restoration point based on the restoration strategy includes:

[0016] Before the cloud desktop is turned on, deleting the initial differential file and the modified differential file;

[0017] A new initial differential file is generated based on the original image.

[0018] In one embodiment, when the restoration strategy includes restart restoration, restoring the cloud desktop to the restoration point based on the restoration strategy includes:

[0019] Monitoring events of a cloud desktop virtualization environment, and if the event is a restart, determining whether there is a restart signal in a software layer of the cloud desktop virtualization environment;

[0020] If so, the cloud desktop is restored to the restore point based on the restart signal.

[0021] In one embodiment, when the restoration strategy includes scheduled restoration, restoring the cloud desktop to the restoration point based on the restoration strategy includes:

[0022] Obtaining the execution time of the timed restoration;

[0023] When the execution time is reached, the running status of the virtual machine and the terminal of the cloud desktop is obtained;

[0024] If the running state of the virtual machine is shutdown or hibernation, restoring the cloud desktop to the restore point;

[0025] If the running state of the virtual machine is working, or the running state of the terminal is shut down, then when the terminal is restarted, the cloud desktop is restored to the restore point.

[0026] In a second aspect, the present application also provides a cloud desktop management device, including:

[0027] A generation module is used to generate an initial differential file of the original cloud desktop image;

[0028] A modification module, used for obtaining an operation instruction of the current user when the user modifies the cloud desktop, and modifying the initial differential file based on the operation instruction to obtain a modified differential file;

[0029] A determination module, used to obtain a restore instruction and a restore strategy when the cloud desktop needs to be restored, and determine a restore point corresponding to the restore instruction;

[0030] A restoration module is used to restore the cloud desktop to the restoration point based on the restoration strategy, and the restoration point includes one of the original image, the initial differential file or the modified differential file.

[0031] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0032] Generate the initial differential file of the original cloud desktop image;

[0033] When the user modifies the cloud desktop, an operation instruction of the current user is obtained, and the initial differential file is modified based on the operation instruction to obtain a modified differential file;

[0034] When the cloud desktop needs to be restored, obtaining a restore instruction and a restore strategy, and determining a restore point corresponding to the restore instruction;

[0035] The cloud desktop is restored to the restore point based on the restore strategy, where the restore point includes one of the original image, the initial differential file, or the modified differential file.

[0036] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0037] Generate the initial differential file of the original cloud desktop image;

[0038] When the user modifies the cloud desktop, an operation instruction of the current user is obtained, and the initial differential file is modified based on the operation instruction to obtain a modified differential file;

[0039] When the cloud desktop needs to be restored, obtaining a restore instruction and a restore strategy, and determining a restore point corresponding to the restore instruction;

[0040] The cloud desktop is restored to the restore point based on the restore strategy, where the restore point includes one of the original image, the initial differential file, or the modified differential file.

[0041] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0042] Generate the initial differential file of the original cloud desktop image;

[0043] When the user modifies the cloud desktop, an operation instruction of the current user is obtained, and the initial differential file is modified based on the operation instruction to obtain a modified differential file;

[0044] When the cloud desktop needs to be restored, obtaining a restore instruction and a restore strategy, and determining a restore point corresponding to the restore instruction;

[0045] The cloud desktop is restored to the restore point based on the restore strategy, where the restore point includes one of the original image, the initial differential file, or the modified differential file.

[0046] The cloud desktop management method, device, computer equipment, computer-readable storage medium and computer program product can restore the cloud desktop by using differential files, without reconnecting to the Internet and downloading the image, thus reducing the time required for restoration. At the same time, the restoration is set at startup, restart or using a scheduled task, reducing the interaction between the server and the terminal, and completing the restoration task during idle time. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0048] Figure 1 A schematic diagram of a process of a cloud desktop management method in one embodiment;

[0049] Figure 2 A flowchart of a sub-step of a cloud desktop management method in one embodiment;

[0050] Figure 3 A flowchart of another sub-step of the cloud desktop management method in one embodiment;

[0051] Figure 4A flowchart of another sub-step of the cloud desktop management method in an embodiment;

[0052] Figure 5 is a structural block diagram of a cloud desktop management device in an embodiment;

[0053] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0055] Cloud desktop is a desktop virtualization service that achieves flexibility and security through computing virtualization, distributed storage and other technical means. Users can access the virtualized desktop through various terminal devices. Cloud desktop can be applied to a variety of office and application scenarios, providing convenience for people in various industries. In order to give full play to the advantages of cloud desktop in different scenarios, different cloud desktop architectures should be selected according to specific needs and usage environment, and reasonable planning and deployment should be carried out to ensure maximum benefits.

[0056] The cloud desktop architecture mainly includes virtual desktop infrastructure (VDI), transparent client infrastructure (TCI) and intelligent desktop virtualization (IDV).

[0057] VDI is a virtual desktop infrastructure with centralized storage and centralized computing. In VDI, all cloud desktop data is stored in the server, which is also responsible for all calculations. The user terminal only receives images and does not participate in any calculations. The advantages of VDI lie in its high mobility, centralized management and control, and high data security, but it also faces problems such as high server construction costs, cloud desktop operation dependence on the network environment, and limited user experience. VDI is suitable for scenarios that require highly centralized management and data security, such as finance, education, and lightweight office applications.

[0058] TCI provides compatibility and personalized user experience through cloud management and local computing. In the TCI architecture, the user's operating system and applications are stored and managed on the server side, while computing tasks are performed locally, which not only utilizes local computing resources but also facilitates centralized management. Since TCI supports local computing, it is suitable for scenarios that require working in a network-free environment, such as manufacturing and design companies. At the same time, gamers and video editors can also obtain high-performance computing and graphics processing capabilities from local computing of TCI.

[0059] IDV is a centralized storage and distributed computing architecture designed to improve the utilization efficiency of hardware resources and simplify the management of terminal devices. The server stores the system image, and the terminal runs the virtual desktop through the local virtual machine, supporting offline operation. IDV supports offline operation and does not rely on the network environment. At the same time, because the computing tasks are distributed on the client, the user experience is better and can obtain an experience close to that of a traditional PC. However, IDV requires high and consistent client hardware configuration, and is suitable for office scenarios or graphics processing tasks with high performance requirements.

[0060] IDV is the best choice when the network cannot be guaranteed. The fat terminal can provide a better experience and local storage capacity, which makes the IDV cloud desktop run normally in most cases. However, when the cloud desktop fails or needs to be restored, it needs to be rebuilt. During the reconstruction process, it is necessary to re-establish a network connection with the server and download the image to rebuild the virtual machine.

[0061] In one embodiment, Figure 1 As shown, a cloud desktop management method is provided. This embodiment uses the method applied to a terminal as an example. It can be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:

[0062] Step 101, generating an initial differential file of the original cloud desktop image;

[0063] Step 102, when the user modifies the cloud desktop, obtain the operation instruction of the current user, modify the initial differential file based on the operation instruction, and obtain a modified differential file;

[0064] Step 103, when the cloud desktop needs to be restored, obtaining a restore instruction and a restore strategy, and determining a restore point corresponding to the restore instruction;

[0065] Step 104: restore the cloud desktop to the restore point based on the restore strategy, where the restore point includes one of the original image, the initial differential file, or the modified differential file.

[0066] The initial differential file refers to the differential file first generated based on the original image of the cloud desktop. Since IDV reconstruction requires re-downloading of the image, and the time for downloading the image varies depending on the network conditions, it greatly affects the normal use of users. Therefore, if the rebuilt virtual machine is the same as the original image, the restore method can be used directly. Figure 2 As shown, the desktop is restored by managing the differential file, without the need to re-download the image. When the user needs to modify the cloud desktop, the modification is made directly on the differential file and a new differential file is formed.

[0067] It should be noted that Figure 2 The differential files 1, 2, 2-2, 3, 3-2, and 4 in the file are all different differential files generated by a user. The difference between them is that different branches are generated according to different operations of the users. For example: a certain operation is performed on the differential file 2, and the updated differential file 2 is saved as the differential file 2-2; another operation is performed on the differential file 2, and the updated differential file 2 is saved as the differential file 3.

[0068] For users bound to IDV terminals, the differential file will be saved on the disk so that the desktop will not be restored. When the desktop needs to be restored, the differential data will be directly deleted, and a new initial differential file will be created from the original image to store user data.

[0069] However, there are some problems with IDV restoration: it is necessary to operate from the management level, call the restore interface, and restore the cloud desktop. The management level is located in the server. If the IDV needs to be restored, it is also necessary to connect to the network of the server and the terminal, and then perform manual operations. In addition, cloud desktop restoration requires time cost and cannot meet the user's requirements for immediate use. For example, in a teaching scenario, the teacher needs to restore the cloud desktop between two courses. If the restore operation cannot be completed during the class, it will affect the next course. Therefore, in response to the above two problems, this embodiment formulates a cloud desktop restoration strategy based on IDV, which can restore the cloud desktop to different restore points. In addition, the restoration is set at startup, restart, or using a scheduled task to reduce the interaction between the server and the terminal and improve the user experience.

[0070] In the above cloud desktop management method, the cloud desktop can be restored by restoring the cloud desktop through differential files, without reconnecting to the network to download the image, thus reducing the time required for restoration. At the same time, the restoration is set at startup, restart or using a scheduled task to reduce the interaction between the server and the terminal, and the restoration task can be completed during idle time.

[0071] In an exemplary embodiment, restoring the cloud desktop to a point before the restore point based on the restore policy includes:

[0072] Generate snapshots of the initial differential file and the modified differential file respectively; when the restore point includes the initial differential file or the modified differential file, restoring the cloud desktop to the restore point includes: restoring the state of the cloud desktop to the state of the snapshot of the restore point.

[0073] When the restore point is the initial differential file or the modified differential file, you can set the restore point by taking a snapshot for the same user. Figure 3 Taking differential file 3 as the restore point as an example, the user's subsequent operations are recorded in differential file 4, and then the restore point when restoring to differential file 3 can be specified.

[0074] A file snapshot is a backup or record of the state of a file or file system at a specific point in time, so that the state can be traced back to that point in time when needed. A snapshot is usually a copy of a file system or file saved in some form, which can be used to restore the file to the state at the snapshot time point.

[0075] A file system snapshot usually records the file's metadata (such as file name, size, creation time, etc.) and a copy of the data content, so that when a file is changed or damaged, it can be quickly restored to its previous state. Snapshots can be used for data protection, data recovery, version control, etc., providing users with a convenient and reliable way to manage and protect files.

[0076] When the user needs to restore to the original image, the process is as follows Figure 4 As shown, all differential files (including the initial differential file and the modified differential file) are deleted, and an initial differential file is recreated in the original image, and the new initial differential file is used as the hard disk of the cloud desktop.

[0077] In an exemplary embodiment, the restoration strategy includes at least one of power-on restoration, restart restoration, or scheduled restoration. In order to not affect the user experience when the IDV cloud desktop fails and restores the cloud desktop, an IDV automatic restoration strategy is added, which is divided into power-on, restart restoration, and scheduled restoration. The specific restoration strategy depends on user needs.

[0078] In an exemplary embodiment, when the restoration strategy includes power-on restoration, the restore point includes the original image; restoring the cloud desktop to the restore point based on the restoration strategy includes: deleting the initial differential file and the modified differential file before the cloud desktop is powered on; and generating a new initial differential file based on the original image.

[0079] Boot restore means restoring the corresponding cloud desktop every time it is powered on. The boot operation of the cloud desktop in IDV calls the boot interface of the management component and transmits it to the cloud computing platform, and supports transparent transmission of peripherals such as the virtual machine mouse, keyboard, and display. Therefore, before the virtual machine is powered on, the management component interface is called to delete the differential file (including the initial differential file and the modified differential file), and a new differential file is generated based on the original image, and then the virtual machine is powered on to restore.

[0080] In an exemplary embodiment, when the restoration strategy includes restart restoration, restoring the cloud desktop to the restoration point based on the restoration strategy includes:

[0081] Monitor events of the cloud desktop virtualization environment, and when the event is a restart, determine whether there is a restart signal in the software layer of the cloud desktop virtualization environment; if so, restore the cloud desktop to the restore point based on the restart signal.

[0082] When the IDV cloud desktop is restarted, the status in the monitoring tool is always in the running state and cannot be dispatched to the management component level. Therefore, in order to achieve the ability to restore when the virtual machine is restarted, it is necessary to obtain the virtual machine restart signal from the software layer of the virtualization environment and perform the restoration after capturing the restart signal.

[0083] In an exemplary embodiment, when the restoration strategy includes scheduled restoration, restoring the cloud desktop to the restoration point based on the restoration strategy includes:

[0084] Obtain the execution time of the scheduled restoration; when the execution time is reached, obtain the operating status of the virtual machine and the terminal of the cloud desktop; if the operating status of the virtual machine is shutdown or hibernation, restore the cloud desktop to the restore point; if the operating status of the virtual machine is working, or the operating status of the terminal is shutdown, restore the cloud desktop to the restore point when the terminal is restarted.

[0085] Both of the above methods can achieve offline restoration, and there is no need to call the interface through the server to restore the terminal cloud desktop. However, it still takes time to wait for the restoration to end when starting or restarting, so you can use idle time to restore. According to the scheduled restoration policy specified by the user, set the time for the first execution of the policy and the subsequent restoration cycle. Scheduled restoration involves several scenarios: when the scheduled restoration time is set, if the virtual machine is not in use, is in shutdown or hibernation, it can be restored. However, if the terminal is not turned on or the cloud desktop is in use, it cannot be restored. It is necessary to determine whether the last restoration was executed the next time the terminal is restarted. If not, re-execute the cloud desktop restoration.

[0086] This embodiment can complete the restoration task during idle time through scheduled restoration, thereby reducing the time required for restoration, and at the same time reducing the interaction between the server and the terminal, thereby reducing the burden on the server and the terminal.

[0087] To explain the cloud desktop management method of the present application in detail, the following is a most detailed embodiment:

[0088] Exemplarily, this application manages IDV based on nova. OpenStack Nova is one of the core components of the OpenStack project, responsible for managing computing resources in a cloud computing environment. It interacts with other components of OpenStack (such as Glance for image services, Neutron for network connections, and Keystone for authentication and service catalog) to achieve dynamic allocation and scalability of virtualized resources.

[0089] Nova focuses on the centralized management of virtual machines and dynamic resource allocation, while IDV emphasizes local performance utilization and offline availability, but the two still have something in common. Nova in openstack is mainly responsible for the life cycle management of virtual machines. By interacting with other components of openstack, it manages and maintains the computing resources of the cloud computing environment. As a form of cloud desktop, IDV also needs to perform life cycle management on cloud desktops, including starting, restarting, stopping, etc. Therefore, IDV can be managed based on nova. nova-api and nova-compute are both in the fat terminal, receiving the API for virtual machine management and operating the virtual machine.

[0090] Among them, fat terminals refer to computer terminal devices with high local storage and computing capabilities, which can independently run complex applications and process data without relying on remote servers. The notable features of fat terminals include having independent CPU, memory, hard disk and other hardware, being loaded with a complete operating system, and being able to achieve performance similar to that of traditional PCs.

[0091] In order to ensure that the user experience is not affected when restoring the IDV cloud desktop when an error occurs, an automatic IDV restore strategy is added, which is divided into power-on, restart restore and scheduled restore.

[0092] Restore on demand means restoring the corresponding cloud desktop every time it is powered on. In IDV, the cloud desktop power-on operation calls the power-on interface of nova-api and transmits it to nova-compute, and supports transparent transmission of virtual machine mouse, keyboard, display and other peripherals. Therefore, before the virtual machine is powered on, call the nova interface to delete the differential file first, and generate a new differential file based on the original image, and then power on, so that the virtual machine can be powered on and restored.

[0093] When the IDV cloud desktop is restarted, the status in libvirt is always running and cannot be scheduled to the nova layer. Therefore, to achieve the ability to restore when the virtual machine is restarted, it is necessary to obtain the virtual machine restart signal from the hypervisor layer (virsh event) and perform the restoration after capturing the restart signal.

[0094] libvirt refers to an open source toolkit for managing various virtualization technologies (such as KVM, Xen, VMware, etc.). It provides interfaces and tools for managing virtual machines, which can help manage and monitor the virtualization environment; the running state means that the virtual machine is running; hypervisor refers to the software layer in the virtualization environment, which is used to manage the creation, destruction, resource allocation and other operations of virtual machines; virsh event is a mechanism for monitoring and capturing events in the libvirt virtualization environment, through which information such as the state change of the virtual machine can be obtained.

[0095] Both of the above methods can achieve offline restoration, and there is no need to call the interface through the server to restore the terminal cloud desktop. However, it still takes time to wait for the restoration to end when booting or restarting, so you can use idle time to restore. The user creates a scheduled restoration policy, sets the time for the first execution of the policy, and the subsequent restoration cycle. Scheduled restoration involves several scenarios: when the scheduled restoration time is set, if the virtual machine is not in use, is in shutdown or hibernation, it can be restored. However, if the terminal is not turned on or the cloud desktop is in use, it cannot be restored. It is necessary to determine whether the last restoration was executed the next time the terminal is restarted. If not, re-execute the cloud desktop restoration.

[0096] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0097] Based on the same inventive concept, the embodiment of the present application also provides a cloud desktop management device for implementing the cloud desktop management method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more cloud desktop management device embodiments provided below can refer to the limitations of the cloud desktop management method above, and will not be repeated here.

[0098] In an exemplary embodiment, Figure 5 As shown, a cloud desktop management device 500 is provided, including: a generation module 501, a modification module 502, a determination module 503 and a restoration module 504, wherein:

[0099] The generation module 501 is used to generate an initial differential file of the original image of the cloud desktop;

[0100] The modification module 502 is used to obtain the operation instruction of the current user when the user modifies the cloud desktop, and modify the initial differential file based on the operation instruction to obtain a modified differential file;

[0101] The determination module 503 is used to obtain a restore instruction and a restore strategy and determine a restore point corresponding to the restore instruction when the cloud desktop needs to be restored;

[0102] The restoration module 504 is used to restore the cloud desktop to the restoration point based on the restoration strategy, and the restoration point includes one of the original image, the initial differential file, or the modified differential file.

[0103] The restoration module 504 is further used for:

[0104] Generating snapshots of the initial differential file and the modified differential file respectively;

[0105] In a case where the restore point includes the initial differential file or the modified differential file, restoring the cloud desktop to the restore point includes:

[0106] The state of the cloud desktop is restored to the state of the snapshot of the restore point.

[0107] The restoration module 504 is further used for:

[0108] Before the cloud desktop is turned on, deleting the initial differential file and the modified differential file;

[0109] A new initial differential file is generated based on the original image.

[0110] The restoration module 504 is further used for:

[0111] Monitoring events of a cloud desktop virtualization environment, and if the event is a restart, determining whether there is a restart signal in a software layer of the cloud desktop virtualization environment;

[0112] If so, the cloud desktop is restored to the restore point based on the restart signal.

[0113] The restoration module 504 is further used for:

[0114] Obtaining the execution time of the timed restoration;

[0115] When the execution time is reached, the running status of the virtual machine and the terminal of the cloud desktop is obtained;

[0116] If the running state of the virtual machine is shutdown or hibernation, restoring the cloud desktop to the restore point;

[0117] If the running state of the virtual machine is working, or the running state of the terminal is shut down, then when the terminal is restarted, the cloud desktop is restored to the restore point.

[0118] Each module in the above-mentioned cloud desktop management device can be implemented in whole or in part by software, hardware and their combination. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.

[0119] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 6As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (Near Field Communication, NFC) or other technologies. When the computer program is executed by the processor, a cloud desktop management method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0120] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0121] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0122] Generate the initial differential file of the original cloud desktop image;

[0123] When the user modifies the cloud desktop, an operation instruction of the current user is obtained, and the initial differential file is modified based on the operation instruction to obtain a modified differential file;

[0124] When the cloud desktop needs to be restored, obtaining a restore instruction and a restore strategy, and determining a restore point corresponding to the restore instruction;

[0125] The cloud desktop is restored to the restore point based on the restore strategy, where the restore point includes one of the original image, the initial differential file, or the modified differential file.

[0126] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0127] Generate the initial differential file of the original cloud desktop image;

[0128] When the user modifies the cloud desktop, an operation instruction of the current user is obtained, and the initial differential file is modified based on the operation instruction to obtain a modified differential file;

[0129] When the cloud desktop needs to be restored, obtaining a restore instruction and a restore strategy, and determining a restore point corresponding to the restore instruction;

[0130] The cloud desktop is restored to the restore point based on the restore strategy, where the restore point includes one of the original image, the initial differential file, or the modified differential file.

[0131] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0132] Generate the initial differential file of the original cloud desktop image;

[0133] When the user modifies the cloud desktop, an operation instruction of the current user is obtained, and the initial differential file is modified based on the operation instruction to obtain a modified differential file;

[0134] When the cloud desktop needs to be restored, obtaining a restore instruction and a restore strategy, and determining a restore point corresponding to the restore instruction;

[0135] The cloud desktop is restored to the restore point based on the restore strategy, where the restore point includes one of the original image, the initial differential file, or the modified differential file.

[0136] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0137] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0138] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0139] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A cloud desktop management method, characterized in that: The method comprises: Generate the initial differential file of the original cloud desktop image; When the user modifies the cloud desktop, an operation instruction of the current user is obtained, and the initial differential file is modified based on the operation instruction to obtain a modified differential file; When the cloud desktop needs to be restored, obtaining a restore instruction and a restore strategy, and determining a restore point corresponding to the restore instruction; The cloud desktop is restored to the restore point based on the restore strategy, where the restore point includes one of the original image, the initial differential file, or the modified differential file.

2. The method according to claim 1, characterized in that The step of restoring the cloud desktop to a point before the restore point based on the restore policy includes: Generating snapshots of the initial differential file and the modified differential file respectively; In a case where the restore point includes the initial differential file or the modified differential file, restoring the cloud desktop to the restore point includes: The state of the cloud desktop is restored to the state of the snapshot of the restore point.

3. The method according to claim 1, characterized in that The restoration strategy includes at least one of power-on restoration, restart restoration or scheduled restoration.

4. The method according to claim 3, characterized in that When the restoration strategy includes power-on restoration, the restoration point includes the original image; and restoring the cloud desktop to the restoration point based on the restoration strategy includes: Before the cloud desktop is turned on, deleting the initial differential file and the modified differential file; A new initial differential file is generated based on the original image.

5. The method according to claim 3, characterized in that: When the restoration strategy includes restart restoration, restoring the cloud desktop to the restoration point based on the restoration strategy includes: Monitoring events of a cloud desktop virtualization environment, and if the event is a restart, determining whether there is a restart signal in a software layer of the cloud desktop virtualization environment; If so, the cloud desktop is restored to the restore point based on the restart signal.

6. The method according to claim 3, characterized in that When the restoration strategy includes scheduled restoration, restoring the cloud desktop to the restoration point based on the restoration strategy includes: Obtaining the execution time of the timed restoration; When the execution time is reached, the running status of the virtual machine and the terminal of the cloud desktop is obtained; If the running state of the virtual machine is shutdown or hibernation, restoring the cloud desktop to the restore point; If the running state of the virtual machine is working, or the running state of the terminal is shut down, then when the terminal is restarted, the cloud desktop is restored to the restore point.

7. A cloud desktop management device, characterized in that: The device comprises: A generation module is used to generate an initial differential file of the original cloud desktop image; A modification module, used for obtaining an operation instruction of the current user when the user modifies the cloud desktop, and modifying the initial differential file based on the operation instruction to obtain a modified differential file; A determination module, used to obtain a restore instruction and a restore strategy and determine a restore point corresponding to the restore instruction when the cloud desktop needs to be restored; A restoration module is used to restore the cloud desktop to the restoration point based on the restoration strategy, and the restoration point includes one of the original image, the initial differential file, or the modified differential file.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

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

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.