System resetting method and device of cloud computer, cloud system, electronic equipment and storage medium
By pre-storing reset data on the cloud server and directly replacing the cloud computer data, the problem of long reset time for cloud computers in existing technologies is solved, achieving a fast and efficient reset process and improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- ALIBABA CLOUD COMPUTING CO LTD
- Filing Date
- 2024-11-05
- Publication Date
- 2026-05-12
AI Technical Summary
The current cloud PC reset process requires creating an image file and restarting the cloud PC, which takes a long time and affects the user experience.
The reset data of the cloud computer is pre-stored on the cloud server, and the data to be reset on the cloud computer is directly replaced when a reset command is received, thus avoiding the process of regenerating the image file.
This shortens reset time, reduces user waiting time, and improves user experience.
Smart Images

Figure CN122019252A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of cloud computing technology, and in particular to a system reset method for a cloud computer, a cloud system, a device, an electronic device, and a storage medium. Background Technology
[0002] Cloud computing is a technology that integrates traditional computer computing resources into the cloud based on cloud computing technology, providing related services to clients via the network. During the use of cloud computing, it is often necessary to reset the cloud computing system, that is, restore its basic configuration information to its initial state.
[0003] The existing reset mechanism for cloud computers involves, in the shutdown state, first creating a system disk image and a data disk image from pre-stored image files. After replacing the current cloud computer's system disk with the system disk image and the current cloud computer's data disk with the data disk image, the cloud computer needs to be restarted. Then, based on the replaced system disk and data disk files, the cloud computer's basic configuration information is configured to its initial state.
[0004] As can be seen, the process of resetting the cloud computer involves two main steps: creating system disk images and data disk images, restarting the cloud computer, and reconfiguring basic configuration information. Both of these processes take a long time, which not only reduces efficiency but also causes users to wait longer, thus affecting their user experience. Summary of the Invention
[0005] To overcome the problems existing in related technologies, embodiments of this application provide a system reset method for a cloud computer, a cloud system, a device, an electronic device, and a storage medium.
[0006] According to a first aspect of the embodiments of this application, a system reset method for a cloud computer is provided. The method is applied to a cloud server, the cloud server running at least one cloud computer, and for any cloud computer, the method includes:
[0007] In response to the reset command of the cloud computer, the pre-stored reset data of the cloud computer is read. The reset data is extracted and stored from the cloud computer after the operating system of the cloud computer is updated.
[0008] The reset data is used to replace the corresponding operation data to be reset in the cloud computer.
[0009] According to a second aspect of the embodiments of this application, a cloud system is provided, the cloud system including a cloud server and at least one cloud computer running on the cloud server.
[0010] For any cloud computer, the cloud computer is used to send a reset command to the cloud server;
[0011] The cloud server is used to read the pre-stored reset data of the cloud computer, which is the data after the operating system of the cloud computer is updated and then extracted from the cloud computer and stored; and to replace the corresponding operation data to be reset in the cloud computer with the reset data.
[0012] According to a third aspect of the embodiments of this application, a system reset device for a cloud computer is provided. The device is applied to a cloud server, the cloud server running at least one cloud computer, and for any cloud computer, the device includes:
[0013] The data reading module is used to read the pre-stored reset data of the cloud computer in response to the reset command of the cloud computer. The reset data is extracted and stored from the cloud computer after the operating system of the cloud computer is updated.
[0014] The reset module is used to replace the corresponding operation data to be reset in the cloud computer with the reset data.
[0015] According to a fourth aspect of the present application, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being executed by the processor to cause the electronic device to perform the method as described in the first aspect.
[0016] According to a fifth aspect of the embodiments of this application, a computer-readable storage medium is provided having a computer program stored thereon, the program being executed by a processor to implement the method as described in the first aspect.
[0017] According to a sixth aspect of the embodiments of this application, a computer program product is provided, including instructions that, when executed on a computer, cause the computer to perform the method as described in the first aspect.
[0018] The technical solutions provided in this application embodiment may include the following beneficial effects:
[0019] The system reset method for cloud computers in this embodiment involves the cloud server storing the corresponding data of the cloud computer after each update. Upon receiving a reset command from the cloud computer, the pre-stored reset data is read. The data to be reset in the cloud computer is replaced with the read reset data, completing the cloud computer reset. Since the reset data is pre-stored after each update, subsequent resets only require reading the corresponding data and replacing the existing data on the cloud computer, avoiding the need to regenerate the system disk and data disk from the image file. Furthermore, because the reset data is saved by the user after each update, it includes the updated configuration data of the cloud computer, eliminating the need to reconfigure basic configuration information after a computer reset using this method. In summary, compared with existing technologies, the computer reset method using this method reduces reset time to a certain extent, avoids long waiting times for users, and improves user experience.
[0020] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description
[0021] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly described below. It should be understood that those skilled in the art can obtain other drawings based on these drawings without any creative effort.
[0022] Figure 1 A schematic diagram of a scenario corresponding to the system reset method for a cloud computer provided in this application embodiment;
[0023] Figure 2 A schematic diagram of an exemplary method flow for resetting a system on a cloud computer provided in an embodiment of this application;
[0024] Figure 3 An exemplary flowchart of the system reset method for a cloud computer provided in this application embodiment;
[0025] Figure 4 An exemplary flowchart of the system reset method for a cloud computer provided in this application embodiment;
[0026] Figure 5 This is an exemplary schematic diagram of a system reset device for a cloud computer provided in an embodiment of this application;
[0027] Figure 6 This is an exemplary structural diagram of an electronic device provided in an embodiment of this application. Detailed Implementation
[0028] The technical solutions of the embodiments of this application will now be described with reference to the accompanying drawings.
[0029] The terminology used in the following embodiments of this application is for the purpose of describing particular embodiments and is not intended to limit the technical solutions of this application. As used in the specification and appended claims of this application, the singular expressions “a,” “an,” “the,” “the,” and “this” are intended to include the plural expressions as well, unless the context clearly indicates otherwise.
[0030] It should also be understood that although the terms "first," "second," etc., may be used in the following embodiments to describe a certain type of object, the objects should not be limited to these terms. These terms are used to distinguish the specific implementation objects of that type of object.
[0031] 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 the embodiments of this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation entry points are provided for users to choose to authorize or refuse.
[0032] The technical scenarios of the embodiments of this application are described below.
[0033] Cloud computing is a technology that integrates the system resources of traditional computers into the cloud, enabling the cloud to provide related services to clients via the network. Typically, a single cloud system can deploy cloud computers adapted to various application scenarios. The operating systems, interfaces, operation methods, operating logic, and maintained data of cloud computers differ depending on the application scenario. For example, cloud computers can be used in educational and office settings. Hereinafter, a cloud computer suitable for a single application scenario will be referred to as "one cloud computer."
[0034] A cloud PC typically includes a number of cloud PC instances, and multiple cloud PC instances can be used in parallel. Taking a teaching scenario as an example, if clients in multiple classrooms are running simultaneously, each client can run one instance of that cloud PC.
[0035] In practical implementation scenarios, when a client is running a cloud computer and the user is a student in a teaching setting, if the cloud computer needed for this lesson was used in the previous lesson and the student's operation records from the previous lesson are saved (e.g., experiment records and answer records), and this lesson contains the same teaching content, the administrator can reset the contents of the cloud computer used in this lesson to restore it to its initial state so as not to affect the student's use of the cloud computer in this lesson, thus enabling the teaching task to be completed. During the use of cloud computers, administrators frequently need to reset them, that is, restore the basic configuration information of the cloud computers to their initial state, based on the usage scenarios and other requirements of the cloud computers they manage.
[0036] Existing cloud PC reset mechanisms involve creating a system disk and data disk for the cloud PC using pre-stored image files while it's powered off. The system disk is then replaced with the created system image, and the data disk is replaced with the created data disk image. After this, the cloud PC is restarted to complete the initial reset. This reset process does not retain previous configuration information such as username and domain information. Multiple power cycles also increase the reset time. Furthermore, given the application scenario, the cloud PC will not include general software and system configurations set by the instructor. If the system is ready to use after the reset, the relevant software and system configurations need to be reconfigured. The lengthy reset time results in prolonged user waiting time, negatively impacting the user experience.
[0037] In view of this, this application proposes a system reset method for a cloud computer, which is applied to a cloud system. An exemplary cloud system implementing this system reset method can be as follows: Figure 1 As shown. Figure 1 The cloud system shown includes: a cloud server 10 and a client 11. The cloud server may include multiple cloud computer hosts 101 (e.g., ...). Figure 1 Among them, host 1011, host 1012..., host 101n) and multiple cloud computer systems 102 (such as Figure 1 (Systems 1021, 1022, ..., 102n). The cloud server 10 and the client 11 are connected via a network.
[0038] The cloud server 10 comprises multiple cloud computer hosts 101, including processors, disks, physical interfaces (such as universal serial buses, bus interfaces, etc.), communication modules, and so on. These physical hardware devices in the cloud computer hosts 101 provide computing and storage capabilities, and are responsible for hosting and running the underlying software and resources required by the cloud computer system 102. The cloud server 10 can also be a physical host, and the physical hardware devices on the corresponding physical host are responsible for hosting and running the underlying software and resources required by the cloud computer system 102. Specifically, virtualization software (such as VMware ESXi, Hypervisor, etc.) can be deployed on the physical host to create, manage, and maintain multiple virtual operating system instances (i.e., virtual machines), each virtual machine representing an independent cloud computer system 102.
[0039] Data security can also be protected by encryption of data stored on the cloud computer host and data in transit. This ensures that only authorized users can access the cloud computer and related resources. Specifically, when creating, managing, and maintaining cloud computer systems 102 using virtualization technology, a management system (Secure Hypervisor) can be set up on the hardware system of the physical host to ensure data security in each cloud computer system 102. The management system can create at least one virtual machine, with one operating system instance running in each execution environment. Data isolation exists between each virtual machine to ensure data security in each cloud computer system 102. The management system abstracts the physical resources on the physical server through virtualization technology and manages the operating system instances running on them based on the abstracted physical resources. Firewalls and intrusion detection systems can also be deployed on the physical server and each virtual operating system to monitor and block potential security threats. CPU, memory, and storage resources can be dynamically adjusted according to the actual usage of the cloud computer to avoid resource waste. Resource adjustment can include one or more of the following: CPU resources, memory resources, and storage resources. Caching technology can also be used to reduce network latency and data transmission volume. It is essential to ensure that the cloud computer environments of different users (such as different classes or teachers) are isolated from each other to avoid mutual interference. Real-time monitoring of cloud PCs and physical servers' operational status, including performance metrics, resource utilization, and potential security threats. Recording user actions, system events, and anomaly information facilitates troubleshooting and auditing. Setting alarm thresholds automatically sends notifications to administrators or relevant users when system status exceeds normal limits.
[0040] The cloud computer system 102 is an operating system running on the cloud computer host 101, responsible for tasks such as user management, resource allocation, monitoring, and maintenance of the cloud computer. In the scenario of this application embodiment, the cloud server is responsible for managing the creation, permission allocation, and authentication of teacher and student accounts. It dynamically allocates computing, storage, and network resources of the cloud computer according to course requirements. It monitors the usage status of the cloud computer in real time, including CPU utilization, memory usage, and disk space, to ensure the smooth progress of the teaching process. It provides a reset function to restore the cloud computer to its initial state and clear the operation records of the previous lesson, ensuring the independence of each lesson and the cleanliness of the teaching environment.
[0041] The client is the device that allows users to access cloud computing services. This can be a desktop computer, laptop, tablet, or smartphone. Users log in to the cloud server via a web browser, client software, or mobile app on these devices to remotely access and manage the cloud computers for educational activities such as experiments and answering questions.
[0042] It should be understood that Figure 1 The illustrated application scenario diagram is merely a schematic representation of the system reset-related architecture of the cloud computer involved in the embodiments of this application, and does not constitute a limitation on the technical solutions of the embodiments of this application. In actual implementation scenarios, the system reset-related architecture of the cloud computer may include more or fewer cloud computers, clients, and related memory and storage resources deployed, and this application does not limit this.
[0043] In the above operating environment, the embodiments of this application provide as follows: Figure 2 The system reset method for the cloud computer is shown below. Please refer to it. Figure 2 This system reset method for cloud computers is applied to the cloud server, and the cloud server can, as follows: Figure 1 The cloud server 11. The system reset method for this cloud computer includes the following steps:
[0044] In step S201, in response to the reset command of the cloud computer, the pre-stored reset data of the cloud computer is read.
[0045] Among them, the reset data refers to the data that has been updated after the operating system of the cloud computer is updated, which is then extracted from and stored in the cloud computer.
[0046] For example, this method is applied to, Figure 1 Any of the cloud computer hosts 101 shown herein will be referred to as a cloud computer in the following description.
[0047] The reset command for a cloud computer is generated by the administrator based on actual needs, by selecting the cloud computer to be reset from the cloud computers under their management. The reset command includes the identifier of the cloud computer. After receiving the reset command, the administrator can verify the correctness of the reset command based on the identifier information to avoid accidental operation after receiving reset commands from other cloud computers.
[0048] For any cloud computer, reset data for that cloud computer is read from a preset area. This reset data includes the data required to reset the cloud computer. Specifically, it can be the cloud computer's operating system data, which can be used to reset the cloud computer's system. The reset data is relevant data extracted when the cloud computer has been configured or updated, and the extracted data is stored in the preset storage area. This ensures the security of the cloud computer after it has been reset based on the reset data.
[0049] Specifically, a preset storage area can first be set up on the cloud server or a dedicated storage system to store the cloud PC's reset data. This storage area can be network-attached storage, storage area network, object storage service, or cloud server snapshot storage. Before the cloud PC needs to be reset (e.g., at the end of a course or at a specific time), the necessary data, such as user profiles and course templates, is extracted from the cloud PC's virtual disk or specific data using cloud server management tools or scripts. This data does not include student activity records from the previous class, which need to be cleared to ensure the cloud PC reset is successful. The extracted data is then compressed or encrypted and uploaded to the preset storage area. The data can be named or stored using the cloud PC's unique identifier so that it can be accurately retrieved during subsequent cloud PC resets.
[0050] When an instructor sends a reset command through the cloud server's management interface or application programming interface (API), the cloud server needs to be able to receive and parse the reset command, and then retrieve the corresponding stored reset data based on the command.
[0051] In step S202, the corresponding operation data to be reset in the cloud computer is replaced with reset data.
[0052] For example, after reading the reset data, the corresponding data to be reset in the cloud computer is replaced with the reset data, thereby completing the reset of the cloud computer. Compared with the reset process in the prior art, this process does not require the computer to be powered off, and reduces the time spent creating the corresponding system disk and data disk based on the image file, thus improving the efficiency of cloud computer reset.
[0053] Specifically, in this embodiment, the reset process for the cloud computer may involve deleting or clearing data on its virtual disk (excluding system files and potentially retained user configuration files), as well as other possible cleanup tasks. After the cleanup is complete, the cloud server reads the previously stored reset data from a preset storage area and restores it to the cloud computer's virtual disk. This step depends on whether certain data or configurations need to be retained.
[0054] After the cleanup and restore operations are complete, the cloud server can automatically or manually verify the status of the cloud PC to ensure it has been restored to the expected reset state. Specifically, automated verification can be achieved using tools such as shell scripts and Python scripts to write automated verification scripts. These scripts can log into the cloud PC, execute corresponding check commands (such as checking the running status of specific services, checking the integrity of the file system, etc.), and return the results to the cloud server. Automation frameworks such as Ansible, Chef, or Puppet can also be used to automate the configuration and verification process of the cloud PC. By writing configuration files or tasks, the reset and verification operations of the cloud PC can be performed automatically.
[0055] Manual verification can involve logging into the administrator account to view the basic information and status of the cloud computer. A normal server status will typically display as "Running" or "Normal". Use the ping command or a network testing tool to test the cloud computer's network connectivity. If the network connectivity is good, it indicates that the cloud computer's basic network connection has been restored. Alternatively, you can log into the cloud computer using a Secure Shell Client (SSH client) or Remote Desktop Protocol (RDP). View the command-line interface or remote desktop environment to check the cloud computer's running and service status. After logging into the cloud computer, view relevant log files (such as system logs, application logs, etc.) to check for any abnormal information or error logs, thereby determining whether the cloud computer has been restored to the expected reset state. Further, you can execute a series of check commands on the cloud computer (such as checking disk space, checking process lists, etc.) to verify whether the cloud computer has been restored to the expected reset state. Write or execute test scripts to test the cloud computer's critical functions to ensure that the cloud computer has been restored to the expected reset state and can operate normally. The above verification process is an optional step after the reset; those skilled in the art can determine whether to verify it based on the actual situation.
[0056] Finally, the cloud server can send a notification to the client corresponding to the instructor, informing them that the cloud computer has been reset and is ready for students to use.
[0057] As can be seen, in this embodiment, after each update, the cloud server stores the corresponding cloud computer's data in a preset storage area. Upon receiving a reset command from the cloud computer, reset data can be read from the preset storage area. The data to be reset in the cloud computer is then replaced with the read reset data, completing the cloud computer reset. Since the reset data in this embodiment is pre-stored after each update, subsequent resets only require reading the corresponding data and replacing the current cloud computer's data, avoiding the process of regenerating the system disk and data disk based on the image file. Furthermore, since the reset data is saved by the user after each update, it includes the updated configuration data of the cloud computer, thus eliminating the need to reconfigure basic configuration information after resetting the computer using this solution. In summary, compared with existing technologies, the computer reset solution of this application reduces reset time to a certain extent, avoids long user wait times, and improves user experience.
[0058] In some embodiments, after receiving a reset command, it is necessary to determine the running status of the cloud computer and obtain the corresponding reset data based on the running status. Determining the running status here is only to identify the reset data to be obtained; it is not limited to resetting only cloud computers in a non-running state. In this embodiment, resetting can also be performed while the cloud computer is running. This reduces the need to shut down the running cloud computer and the waiting time for shutdown compared to related technologies.
[0059] Specifically, if the cloud computer is running, the system reads the first configuration data of the cloud computer's operating system from the internal storage area; and reads the second configuration data of the cloud computer from the external storage area, which is a storage area distinct from the cloud server. If the cloud computer is not running, the system reads the first configuration data of the cloud computer's operating system from the external storage area.
[0060] For example, if a running cloud computer is to be reset, the reset cloud computer needs to be powered on and the corresponding configuration needs to be completed. Therefore, it is necessary to read the first configuration data of the cloud computer's operating system; and read the second configuration data of the cloud computer from the external storage area. The first configuration data and the second configuration data are used as reset data to reset the cloud computer.
[0061] Correspondingly, if a cloud computer that is not running is to be reset, it is only necessary to read the first configuration data of the cloud computer's operating system from the external storage area and use the read first configuration data as the reset data to reset the cloud computer.
[0062] In some embodiments, to further reduce the storage space occupied by the cloud computer and to address the issue of insufficient memory space for the cloud computer, the corresponding preset storage area can be divided into an internal storage area and an external storage area. The internal storage area is the storage area within the server corresponding to the cloud computer, which can be allocated and directly mounted to the virtual machine when the cloud computer is created. The external storage area refers to a storage area not belonging to the cloud server, such as a cloud storage service or a disk set up separately for storage outside the cloud server. By storing different types of data in different storage areas during data reset, the storage space occupied by the cloud computer is reduced, data reading efficiency is improved, and the cloud computer reset time is reduced.
[0063] Specifically, the data stored in the internal storage area can be the cloud computer's operation logs. These logs allow the reset cloud computer to be restored to its pre-reset state. This avoids the user having to reconfigure the cloud computer, reducing the reset process and is suitable for specific teaching scenarios, such as when it's necessary to retain certain student progress or experiment status. The data stored in the external storage area can be operating system data and user configuration data. During the reset process, the cloud computer can download the necessary operating system files and user configuration data from the external storage area (such as cloud storage services).
[0064] This data, including user profiles and application settings, constitutes the operating environment of the cloud computer. Specific operation log data can be recovered from the internal storage area. If a teaching scenario requires retaining certain operation log data to restore the cloud computer to a specific state before reset, this data can be read from the internal storage area during the reset process to restore the cloud computer's state. During the reset process, it is necessary to clear data that is no longer needed from the internal storage area, such as data related to student operation records from the previous lesson, to ensure the cloud computer's initial state.
[0065] Specifically, if the cloud computer is not running, its internal storage area can be accessed directly through the cloud server's management tools or Application Programming Interface (API) to read the operating system's initial configuration data. Alternatively, folders on external storage devices can be shared using network sharing features, and then these shared folders can be accessed over the network on the cloud computer. Or, if the external storage area is a cloud storage service, this data can be accessed and read directly on the cloud computer using the API provided by the cloud service provider. If the cloud computer is not running (i.e., shut down or not started), it is not necessary to read the initial configuration data; only the corresponding second configuration data from the external storage area needs to be read.
[0066] After reading the reset data, resetting the cloud computer using that data can also be achieved in the following ways. When resetting a cloud computer, it's also necessary to determine the data to be reset based on its running status. Specifically, the running status can be divided into running and not running. Not running can also include sleep and shutdown states. Distinguishing the cloud computer's running status helps determine which data needs to be replaced during the reset process. For example, if the cloud computer is running, it needs to be restored to running status after the reset, requiring the operation record data to be reset during the reset. If the cloud computer is not running, then the operation record data does not need to be reset during the reset, because there is no operation record data in a not running cloud computer; the memory data is empty at this time.
[0067] Specifically, if the cloud computer is running, the corresponding reset process can be as follows: First, call the preset stop function interface through the cloud server's management interface or API to pause or shut down the cloud computer. Wait for the cloud computer's status to change to "stopped" or a similar stopped state. While the cloud computer is stopped, prepare the data to be replaced: operation log data, operating system data, and user configuration data. Connect to the cloud computer's internal storage area (such as a virtual disk) through the cloud server's management tools or API. Replace the original operation log data in the cloud computer with the new operation log data. Replace the original operating system data in the cloud computer with the new operating system data. Replace the original user configuration data in the cloud computer with the new user configuration data. This may include updating user profiles, application settings, etc.
[0068] If the cloud computer is not running, you can directly connect to its internal storage area. Depending on the specific needs and implementation method, you can also operate it indirectly through the cloud server's management tools. Replace the original data in the cloud computer with new operating system data and user configuration data.
[0069] After replacing the data, the cloud computer can be tested to ensure the integrity and consistency of the data. Specifically, the reset cloud computer can be tested through API and other means.
[0070] It should be noted that the reset data is the data saved by the cloud computer after each user configures the system default parameters or adds various default components. Therefore, resetting the cloud computer using the reset data will save the user's basic configuration, eliminating the need for the user to reconfigure the corresponding information. For example, in related technologies, resetting the cloud computer requires resetting and reinstalling the system language, user information, network configuration, and commonly used software. However, resetting the cloud computer using the reset data in this application can restore the user's default configuration in a shorter time, reducing user reset waiting time and avoiding the need for the user to reconfigure the computer.
[0071] Therefore, based on the above, the embodiments of this application also include the process of reading and storing reset data. In a specific embodiment, when reading the operation record data of the cloud computer corresponding to the first configuration data, and the operating system data and user configuration data corresponding to the second configuration data, it is necessary to read them according to the running status of the cloud computer. Specifically, the operation record data is constantly changing during the operation of the cloud computer. Therefore, in order to avoid the operation record data from becoming corrupted, the operation of the cloud computer needs to be paused before reading the corresponding data.
[0072] Specifically, the running thread of the corresponding virtual machine can be stopped by calling the virtual interface that manages the corresponding virtual machine in the proxy server. For example, a pre-defined stop function interface can be called using an API. This stop function interface can be one of the standard APIs used to safely pause or shut down the cloud computer. After calling the stop function interface, configuration data can be read after ensuring that the cloud computer has stopped running. Determining that the cloud computer has stopped running can be achieved by polling the API corresponding to the cloud computer's status until the cloud computer's status becomes "stopped" or a similar status. First, the first configuration data is read from the internal storage area (such as the cloud computer's virtual disk), which may include system files, registry settings, etc. Second configuration data is read from the external storage area (such as cloud storage services), which may include user configuration files, application settings, etc.
[0073] If the cloud computer is not running, then you can directly read the second configuration data of the cloud computer and store the data.
[0074] In addition, after each configuration or system update of the cloud PC, a snapshot can be created. The extracted reset data is then stored in a preset storage area using a snapshot method. This includes the operating system, applications, configuration, and data.
[0075] The read data is stored in a preset storage area. Since the initial configuration data, which is operation record data, occupies a relatively small amount of space, storing it in internal storage will not consume much memory in the cloud computer. Furthermore, during subsequent cloud computer resets, the operation record data can be retrieved quickly compared to storing it in external storage, reducing reset time. Storing user configuration data and operating system data in external storage serves two purposes: firstly, it acts as a backup of the cloud computer's data, ensuring the security of the reset data; secondly, if stored in internal storage, a power outage or accidental deletion of reset data during the reset process could lead to reset failure and data loss.
[0076] Based on the above, the following will use a specific example to further illustrate the above content in conjunction with the teaching application scenario applicable to this application, to compare the reset method in related technologies with the reset method provided in the embodiment of this application.
[0077] like Figure 3 As shown, the reset process in the related technology:
[0078] a. The instructor logs into the administrator account and initiates a reset command for the cloud computer;
[0079] b. The corresponding cloud computer in the cloud server receives the reset command;
[0080] c. The cloud computer checks its current status. If it is running, it requests a shutdown (currently, a forced shutdown is used, which takes a few seconds).
[0081] d. Cloud PCs create system disk images and data disk images for image files that need to be reset (image files for resetting the system) (time consumption is in the thousands of seconds);
[0082] e. The cloud computer uses the created system disk image to recreate a new disk and replaces the current cloud computer's system disk and data disk (using the underlying interface, with time messages at the second level);
[0083] f. The cloud computer boots up the replaced system disk, joins the domain, and sets the basic configuration of the cloud computer accordingly (booting and joining the domain takes about 30 seconds).
[0084] g. The cloud computer will restart the domain-joined desktop (a restart is required after joining the domain and setting the basic configuration) (restarting and checking for successful startup takes about 30 seconds).
[0085] In related technologies, the reset time for cloud computers is generally between 80 and 90 seconds, during which users need to wait continuously, affecting the user experience.
[0086] like Figure 4As shown, the reset process in this application embodiment is as follows:
[0087] A. The instructor logs into the administrator account and initiates a reset command for the cloud computer;
[0088] B. The corresponding cloud computer in the cloud server receives the reset command;
[0089] C. The cloud computer retrieves the reset data from the storage;
[0090] D. Use APIs to restore the cloud computer. If the computer is currently running, restore the memory and disk. If the computer is currently shut down, restore the disk (this operation can be completed in seconds). Then, restore the cloud computer to the state it was just created.
[0091] The reset data in the reset method of this application embodiment is pre-stored in a preset area, which is completed during the preparation stage and does not increase the time in the actual reset process.
[0092] Compared with the reset methods in related technologies, the reset method of this application embodiment saves the time of steps c, d, e, f and g in the related technologies. Therefore, the entire process of resetting a cloud computer using the reset method of this application embodiment is basically completed within 10 seconds. Compared with the reset methods in related technologies, only a short wait is required to complete the reset function, which improves the user experience of using the reset function.
[0093] As can be seen, through the above implementation, whenever the cloud computer completes a software update, system upgrade, or user-defined configuration adjustment, the cloud server automatically captures these changes and securely stores the updated cloud computer data snapshot in a preset, accessible storage area. This preset storage area not only ensures data security and integrity but also ensures that data can be quickly retrieved and restored when needed. When a reset command is received from the cloud computer, unlike traditional methods that require rebuilding the system disk and data disk using complex image files, the system directly and quickly reads the most recently updated reset data from the preset storage area. This process avoids the steps of image generation and replacement, directly resetting the computer. Since the reset data is updated in real time, it contains all the configuration information of the cloud computer after the most recent update, including but not limited to user-defined settings, software installation status, and system configuration parameters. After the reset is completed, the cloud computer will directly restore to the working state set by the user last time, without the need for basic configuration and personalized settings, saving the user's time and effort. In summary, the technical solution of this application optimizes the cloud computer reset process by introducing a preset storage area and a mechanism for real-time updating of reset data. This not only shortens reset time and avoids long waiting times for users, but also ensures that the reset cloud computer can seamlessly transition back to the user's previous work status, thereby improving user experience and satisfaction. This reset method supports the application of cloud computers in multiple fields such as education, enterprise office, and remote work.
[0094] The above implementation steps can also be implemented through software modules to achieve the corresponding functions. Corresponding to the above-mentioned system reset method for cloud computers, this application embodiment can also provide a system reset device for cloud computers.
[0095] like Figure 5 As shown, a system reset device for a cloud computer is provided, which can be deployed in... Figure 1 In the cloud server 10, the above is used to execute... Figures 2 to 4 The cloud server can perform some or all of its operations in any of the embodiments. The device may include: a data reading module 51 and a reset module 52.
[0096] For example: the data reading module 51 is used to read the pre-stored reset data of the cloud computer in response to the reset command of the cloud computer. The reset data is extracted and stored from the cloud computer after the operating system of the cloud computer is updated; the reset module 52 is used to replace the corresponding operation data to be reset in the cloud computer with the reset data.
[0097] Optionally, the data reading module 51 is further configured to: determine the current operating status of the cloud computer; and read matching reset data from a preset storage area according to the current operating status of the cloud computer.
[0098] Optionally, the preset storage area includes an internal storage area and an external storage area. The internal storage area refers to the storage area allocated by the cloud server to the cloud computer, and the external storage area refers to the storage area not belonging to the cloud server. The step of reading matching reset data from the preset storage area based on the current operating status of the cloud computer includes: if the cloud computer is running, reading first configuration data of the cloud computer's operating system from the internal storage area; and reading second configuration data of the cloud computer from the external storage area; using the first configuration data and the second configuration data as the reset data; if the cloud computer is not running, reading first configuration data of the cloud computer's operating system from the external storage area; using the first configuration data as the reset data.
[0099] Optionally, the first configuration data is the operation record data of the cloud computer; the second configuration data includes operating system data and the user configuration data.
[0100] Optionally, the device is further configured to: in response to detecting the cloud computer update command, read the reset data according to the operating status of the cloud computer; and store the reset data in a preset storage area.
[0101] Optionally, the device is further configured to: if the cloud computer is in a running state, call a preset stop function interface to pause the operation of the cloud computer, read the first configuration data and the second configuration data of the cloud computer; use the first configuration data and the second configuration data as the reset data; if the cloud computer is not in a running state, read the second configuration data of the cloud computer; use the first configuration data as the reset data.
[0102] Optionally, the device is further configured to: if the cloud computer is in a running state, store the first configuration data in the internal storage area and store the second configuration data in the external storage area; if the cloud computer is not in a running state, store the second configuration data in the external storage area.
[0103] Optionally, the user configuration data includes at least one of domain joining data and system name data.
[0104] Optionally, the reset module 52 is further configured to: if the cloud computer is in a running state, call the preset stop function interface to pause the operation of the cloud computer, replace the original operation record data in the cloud computer with the operation record data; replace the original operating system data in the cloud computer with the operating system data; and replace the original user configuration data in the cloud computer with the user configuration data; if the cloud computer is not in a running state, replace the original operating system data in the cloud computer with the operating system data; and replace the original user configuration data in the cloud computer with the user configuration data.
[0105] As can be seen, in this embodiment, after each update, the cloud server stores the corresponding cloud computer's data in a preset storage area. Upon receiving a reset command from the cloud computer, reset data can be read from the preset storage area. The data to be reset in the cloud computer is then replaced with the read reset data, completing the cloud computer reset. Since the reset data in this embodiment is pre-stored after each update, subsequent resets only require reading the corresponding data and replacing the corresponding data in the current cloud computer, avoiding the process of regenerating the system disk and data disk based on the image file. Furthermore, since the reset data is saved by the user after each update, it includes the updated configuration data of the cloud computer, thus eliminating the need to reconfigure basic configuration information after resetting the computer using this solution. In summary, compared with existing technologies, the computer reset solution of this application reduces reset time to a certain extent, avoids long user wait times, and improves user experience.
[0106] Understandable, Figure 5 The division of the various modules is merely a logical functional division. In actual implementation, the functions of these modules can be integrated into the hardware entities of the electronic device. For example, the data reading module 51 mentioned above can be integrated into a communication interface, and the reset module 52 can be integrated into the processor.
[0107] Please refer to Figure 6 , Figure 6 This disclosure provides an electronic device, and further provides an electronic device that can be implemented as follows: Figure 1 The cloud computer host 101 of the cloud server 10 is used to execute some or all of the steps of the above-described system reset method for the cloud computer. Please refer to... Figure 6The electronic device includes a processor 600, a memory 601, a bus 602, and a communication interface 603. The processor 600, the communication interface 603, and the memory 601 are connected via the bus 602. The memory 601 can be implemented as the memory and storage in the cloud computer host 101. The memory 601 stores computer programs that can run on the processor 600. The processor 600 can be equivalent to the CPU in the cloud computer host 101. When running the computer program, it executes the aforementioned provisions of this disclosure. Figures 2 to 4 The system reset method for the cloud computer provided in any of the embodiments includes, during the execution of the aforementioned method, data and instructions are exchanged with the corresponding client through the communication interface 603.
[0108] The memory 601 may include high-speed random access memory (RAM) or non-volatile memory (NVM), such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one communication interface 603 (which can be wired or wireless), such as the Internet, wide area network, local area network, metropolitan area network, etc.
[0109] Bus 602 can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. Memory 601 is used to store programs, and the processor 600 executes the programs after receiving execution instructions. Figure 3 The illustrated implementation shows that the system reset method of the cloud computer can be applied to the processor 600, or implemented by the processor 600.
[0110] The processor 600 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of the processor 600 or by instructions in software form. The processor 600 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this disclosure. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this disclosure can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules may reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in memory 601. Processor 600 reads the information in memory 601 and, in conjunction with its hardware, completes the steps of the above method.
[0111] The electronic device provided in this disclosure and the system reset method of the cloud computer provided in this disclosure are based on the same inventive concept and have the same beneficial effects as the methods they adopt, operate or implement.
[0112] This application also provides a computer-readable storage medium storing instructions for resetting a cloud computer's system. When executed on a computer, these instructions cause the computer to perform some or all of the steps in the methods described in the foregoing embodiments.
[0113] This application also provides a computer program product that includes instructions for resetting a system on a cloud computer. When run on a computer, the computer performs some or all of the steps in the method described in the foregoing embodiments.
[0114] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0115] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection between apparatuses or units through some interfaces, and may be electrical, mechanical, or other forms.
[0116] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0117] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0118] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, smartphone, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0119] Although alternative embodiments of this application have been described, those skilled in the art, upon learning the basic inventive concept, can make further changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of this application.
[0120] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of this application. It should be understood that the above description is only a specific embodiment of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made on the basis of the technical solution of this application should be included within the scope of protection of this invention.
Claims
1. A system reset method for a cloud computer, characterized in that, The method is applied to a cloud server, which runs at least one cloud computer. For any cloud computer, the method includes: In response to the reset command of the cloud computer, the pre-stored reset data of the cloud computer is read. The reset data is extracted and stored from the cloud computer after the operating system of the cloud computer is updated. The reset data is used to replace the corresponding operation data to be reset in the cloud computer.
2. The method according to claim 1, characterized in that, The reading of the pre-stored reset data of the cloud computer includes: Determine the current operating status of the cloud computer; Based on the current operating status of the cloud computer, read the matching reset data from the preset storage area.
3. The method according to claim 2, characterized in that, The preset storage area includes an internal storage area and an external storage area. The internal storage area refers to the storage area allocated by the cloud server to the cloud computer, and the external storage area refers to the storage area not belonging to the cloud server. The step of reading matching reset data from the preset storage area based on the current operating status of the cloud computer includes: If the cloud computer is in a running state, read the first configuration data of the cloud computer's operating system from the internal storage area; and read the second configuration data of the cloud computer from the external storage area; use the first configuration data and the second configuration data as the reset data; If the cloud computer is not running, the first configuration data of the cloud computer's operating system is read from the external storage area; the first configuration data is used as the reset data.
4. The method according to claim 3, characterized in that, The first configuration data is the operation record data of the cloud computer; the second configuration data includes operating system data and user configuration data.
5. The method according to claim 1, characterized in that, The method further includes: In response to detecting the cloud computer update command, the reset data is read according to the cloud computer's operating status; The reset data is stored in a preset storage area.
6. The method according to claim 5, characterized in that, The step of reading the reset data based on the operating status of the cloud computer includes: If the cloud computer is running, call the preset stop function interface to pause the operation of the cloud computer, and read the first configuration data and the second configuration data of the cloud computer; use the first configuration data and the second configuration data as the reset data; If the cloud computer is not running, read the second configuration data of the cloud computer; use the first configuration data as the reset data.
7. The method according to claim 6, characterized in that, The step of storing the reset data in a preset storage area includes: If the cloud computer is in operation, the first configuration data is stored in the internal storage area and the second configuration data is stored in the external storage area. If the cloud computer is not running, the second configuration data is stored in the external storage area.
8. The method according to claim 4, characterized in that, The user configuration data includes at least one of domain addition data and system name data.
9. The method according to claim 4, characterized in that, The step of replacing the corresponding operation data to be reset in the cloud computer with the reset data to complete the reset of the cloud computer includes: If the cloud computer is running, the preset stop function interface is called to pause the operation of the cloud computer, and the operation record data replaces the original operation record data in the cloud computer; the operating system data replaces the original operating system data in the cloud computer; and the user configuration data replaces the original user configuration data in the cloud computer. If the cloud computer is not running, the operating system data replaces the original operating system data in the cloud computer; and the user configuration data replaces the original user configuration data in the cloud computer.
10. A cloud system, characterized in that, The cloud system includes a cloud server and at least one cloud computer running on the cloud server. For any cloud computer, the cloud computer is used to send a reset command to the cloud server; The cloud server is used to read the pre-stored reset data of the cloud computer, which is the data after the operating system of the cloud computer is updated and then extracted from the cloud computer and stored; and to replace the corresponding operation data to be reset in the cloud computer with the reset data.
11. A system reset device for a cloud computer, characterized in that, The device is applied to a cloud server, which runs at least one cloud computer. For any given cloud computer, the device includes: The data reading module is used to read the pre-stored reset data of the cloud computer in response to the reset command of the cloud computer. The reset data is extracted and stored from the cloud computer after the operating system of the cloud computer is updated. The reset module is used to replace the corresponding operation data to be reset in the cloud computer with the reset data.
12. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, The computer program is executed by the processor to cause the electronic device to perform the method as described in any one of claims 1-9.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that, The program is executed by a processor to implement the method as described in any one of claims 1-9.
14. A computer program product, characterized in that, Includes instructions that, when executed on a computer, cause the computer to perform the method as described in any one of claims 1-9.