CN113590269A - Method, device and equipment for connecting cloud desktop and storage medium - Google Patents

Method, device and equipment for connecting cloud desktop and storage medium Download PDF

Info

Publication number
CN113590269A
CN113590269A CN202110923370.2A CN202110923370A CN113590269A CN 113590269 A CN113590269 A CN 113590269A CN 202110923370 A CN202110923370 A CN 202110923370A CN 113590269 A CN113590269 A CN 113590269A
Authority
CN
China
Prior art keywords
cloud desktop
instance
virtual machine
snapshot file
desktop instance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110923370.2A
Other languages
Chinese (zh)
Inventor
黄冠
李帅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Weike Software Technology Co ltd
Original Assignee
Shenzhen Weike Software Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Weike Software Technology Co ltd filed Critical Shenzhen Weike Software Technology Co ltd
Priority to CN202110923370.2A priority Critical patent/CN113590269A/en
Publication of CN113590269A publication Critical patent/CN113590269A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/128Details of file system snapshots on the file-level, e.g. snapshot creation, administration, deletion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/4557Distribution of virtual machine instances; Migration and load balancing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45583Memory management, e.g. access or allocation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method, a device, equipment and a storage medium for connecting a cloud desktop, wherein the method comprises the following steps: responding to a connection request of a cloud desktop instance, and preloading a snapshot file formed by the cloud desktop instance in virtual operation, wherein the snapshot file is used for storing hardware operation data and memory operation data of the cloud desktop instance; and running the created empty virtual machine instance by using the hardware running data and the memory running data in the snapshot file to generate a cloud desktop instance which is finished to run. According to the scheme, when the cloud desktop instance which is completely operated is generated, the cloud desktop instance can be completely restored to the final operation state, a plurality of requesters do not need to operate again after being connected, the memory operation load of the cloud desktop instance is reduced, the problems that when a plurality of requesters operate the same cloud desktop instance at the same time, the operation load of the cloud desktop instance is too high, the operation time is too long are solved, the cloud desktop instance is quickly started, and the connection efficiency of the cloud desktop instance is improved.

Description

Method, device and equipment for connecting cloud desktop and storage medium
Technical Field
The embodiment of the invention relates to a computer technology, in particular to a method, a device, equipment and a storage medium for connecting a cloud desktop.
Background
With the rapid development of virtualization and cloud computing technologies, the use of cloud desktops (also called desktop virtualization) is becoming more and more popular. The cloud desktop is characterized in that a plurality of operating systems are virtualized on a high-performance physical server by using a virtualization technology, desktop resources are distributed and managed in a centralized manner, and therefore the effective utilization rate of the resources is improved, the cost is saved, and the quality is improved.
In the prior art, when a cloud desktop is used, taking a teaching scene as an example, an administrator can prepare a corresponding number of cloud desktop instances in advance according to resource configuration and software environment required by courses and the number of students. In the process, an administrator copies the cloud desktop instance through the disk mirroring function of the virtual machine and installs teaching software for students, so that a remote desktop in a starting state is provided.
When the prior art is used for connecting a cloud desktop, teaching software cannot be operated in advance or courseware required by courses cannot be opened, namely, the running state of the software in a cloud desktop example cannot be kept, a student needs to synchronously operate the software used in the teaching process in the cloud desktop example under the prompt of a teacher, and the downloaded courseware is introduced to obtain the final experimental environment of the student. At this time, when a plurality of people run the same software in the cloud desktop instance at the same time, a large amount of software computing and disk reading and writing resources are consumed, that is, when the number of requesters requesting to connect to the cloud desktop instance is too large, the physical server responsible for running the cloud desktop instance is overloaded, and the waiting time for running the cloud desktop instance is too long, which affects the use experience.
Disclosure of Invention
The invention provides a method, a device, equipment and a storage medium for connecting a cloud desktop, which are used for reducing the memory operation load of a cloud desktop instance and improving the starting efficiency of the cloud desktop instance.
In a first aspect, an embodiment of the present invention provides a method for connecting a cloud desktop, including:
responding to a connection request of a cloud desktop instance, and preloading a snapshot file formed by the cloud desktop instance in virtual operation, wherein the snapshot file is used for storing hardware operation data and memory operation data of the cloud desktop instance;
and running the created empty virtual machine instance by using the hardware running data and the memory running data in the snapshot file to generate a cloud desktop instance which is finished to run.
In a second aspect, an embodiment of the present invention further provides an apparatus for connecting a cloud desktop, where the apparatus includes:
the snapshot preloading module is used for responding to a connection request of a cloud desktop instance and preloading a snapshot file formed by the cloud desktop instance in virtual operation, wherein the snapshot file is used for storing hardware operation data and memory operation data of the cloud desktop instance;
and the cloud desktop running module is used for running the created empty virtual machine instance by using the hardware running data and the memory running data in the snapshot file so as to generate a cloud desktop instance which is finished to run.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are enabled to implement the method for connecting the cloud desktop according to the embodiment of the invention.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for connecting a cloud desktop according to the embodiment of the present invention.
According to the scheme for connecting the cloud desktop, the virtual operation of the cloud desktop instance is made into the snapshot file, so that the hardware operation data and the memory operation data of the cloud desktop instance are stored in the snapshot file, when the requester connects the cloud desktop instance, the snapshot file pre-formed by the cloud desktop instance is directly preloaded, and the created empty virtual machine instance is operated by utilizing the hardware operation data and the memory operation data in the snapshot file, so that the cloud desktop instance which is operated is generated. According to the scheme, when the cloud desktop instance which is completely operated is generated, the cloud desktop instance can be completely restored to the final operation state, a plurality of requesters do not need to operate again after being connected, the memory operation load of the cloud desktop instance is reduced, the problems that when a plurality of requesters operate the same cloud desktop instance at the same time, the operation load of the cloud desktop instance is too high, the operation time is too long are solved, the cloud desktop instance is quickly started, and the connection efficiency of the cloud desktop instance is improved.
Drawings
Fig. 1 is a schematic flowchart of a method for connecting a cloud desktop according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a method for connecting a cloud desktop according to a second embodiment of the present invention;
fig. 3 is a block diagram of a device for connecting a cloud desktop according to a third embodiment of the present invention
Fig. 4 is a block diagram of a computer device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a schematic flowchart of a method for connecting a cloud desktop according to an embodiment of the present invention, where this embodiment is applicable to a situation that a cloud desktop needs to be connected for software access, and the method may be executed by a device connected to the cloud desktop, and specifically includes the following steps:
and S110, responding to a connection request of the cloud desktop instance, and preloading a snapshot file formed by the cloud desktop instance in virtual operation, wherein the snapshot file is used for storing hardware operation data and memory operation data of the cloud desktop instance.
Cloud desktops (also called desktop virtualization) are widely applied to various governments, enterprises and schools due to the advantages of information safety, convenience in maintenance, rapid deployment, low equipment replacement frequency and the like. Taking a teaching scene as an example, the cloud desktop example can be understood as teaching software and related operating environments thereof which need to be operated when students go to school.
In order to ensure that the cloud desktop instance can be quickly restored to the final running state when connected, a virtual machine is adopted to execute a complete running step on the cloud desktop instance, so that the complete running state of the cloud desktop instance in the virtual running process is saved as a corresponding snapshot file, and the snapshot file is used for storing hardware running data and memory running data of the cloud desktop instance. The hardware operation data may include: the state of a Central Processing Unit (CPU) of the computer, the memory of the display card, the state of hardware of the computer, and the like. The memory operation data may be: and when the user is connected with the cloud desktop through the browser, accessing the memory data required by the corresponding cloud desktop instance.
According to the method for connecting the cloud desktop, provided by the embodiment of the invention, the snapshot file is used for storing the complete running process of the cloud desktop instance, only an administrator needs to operate, and each user accessing the corresponding cloud desktop instance does not need to perform corresponding operation.
When a requester (such as a student) requests to connect to a certain cloud desktop instance, a connection request of the cloud desktop instance is generated and reported to a configuration end of the cloud desktop instance. Therefore, the configuration end responds to the connection request of the cloud desktop instance, and preloads the snapshot file formed by the corresponding cloud desktop instance in the virtual operation so as to obtain a hardware starting environment and a memory operation environment required by deploying the cloud desktop instance in the empty virtual machine in advance. The hardware starting environment represents the hardware running data contained in the snapshot file.
The preloading process may be reading a snapshot file pre-saved by the cloud desktop instance from a disk or a network disk, and loading the snapshot file into a memory of the physical machine. If the snapshot file is a compressed file, decompression can be performed in the process of loading the snapshot file into the memory of the physical machine, so that various snapshot data contained in the snapshot file are analyzed into the physical machine, and a requester has a connected hardware starting environment and a memory running environment when connecting a cloud desktop instance from the virtual machine.
It should be noted that the purpose of loading the snapshot file into the memory of the physical machine is as follows: and providing a hardware starting environment and a memory running environment required by the instance running for the empty virtual machine. A physical machine is a hardware system, such as a server or the like, that has physical devices relative to a null virtual machine.
And S120, running the created empty virtual machine instance by using the hardware running data and the memory running data in the snapshot file to generate a cloud desktop instance which is finished to run.
Since the snapshot file required in the virtual operation has been preloaded in step S110, the created empty virtual machine instance is directly operated, and the cloud desktop instance corresponding to the operation can be generated and operated.
In an alternative way, the way to run the created empty virtual machine instance may be: firstly, the created empty virtual machine instance is operated, so that the hardware operation data in the snapshot file can be loaded into the created empty virtual machine instance. At this time, the empty virtual machine instance in the current state does not contain memory operation data, and the cloud desktop instance can be quickly started. Then, in the operation process, memory operation data corresponding to the hardware operation data can be continuously loaded as required, so that a corresponding cloud desktop instance is automatically generated to be used for a plurality of requesters to perform cloud desktop instance connection.
According to the method for connecting the cloud desktop, provided by the embodiment of the invention, the virtual operation of the cloud desktop instance is made into the snapshot file, so that the hardware operation data and the memory operation data of the cloud desktop instance are stored in the snapshot file, when the requester connects the cloud desktop instance, the snapshot file pre-formed by the cloud desktop instance is directly preloaded, and the created empty virtual machine instance is operated by using the hardware operation data and the memory operation data in the snapshot file, so that the cloud desktop instance which is operated is generated. According to the scheme, when the cloud desktop instance which is completely operated is generated, the cloud desktop instance can be completely restored to the final operation state, a plurality of requesters do not need to operate again after being connected, the memory operation load of the cloud desktop instance is reduced, the problems that when a plurality of requesters operate the same cloud desktop instance at the same time, the operation load of the cloud desktop instance is too high, the operation time is too long are solved, the cloud desktop instance is quickly started, and the connection efficiency of the cloud desktop instance is improved.
Example two
The embodiment of the present invention is further optimized on the basis of the above embodiment, and the step of running the created empty virtual machine instance by using the hardware running data and the memory running data in the snapshot file is optimized, including: loading hardware running data in the snapshot file into the created empty virtual machine instance, and marking a memory address in the empty virtual machine instance as a missing state so as to run the empty virtual machine instance; and sequentially loading the memory operation data in the snapshot file into the empty virtual machine instance according to each missing memory address accessed by the empty virtual machine instance in the operation. The method has the advantages that the empty virtual machine instance performs targeted access to the memory operation data according to the missing memory address, a large amount of memory reading and writing cannot be generated, and the load of the server is reduced.
After the snapshot file formed by the cloud desktop instance in the virtual runtime is preloaded, the method further comprises the following steps: and analyzing the snapshot file, and separating and extracting hardware operation data and memory operation data in the snapshot file. The advantage of setting up like this is that can distinguish hardware operation data and memory operation data and handle, the analysis of being convenient for.
Further, before preloading the snapshot file formed by the cloud desktop instance at the virtual runtime, the method further comprises: in the virtual operation process of the cloud desktop instance, storing the complete operation data of the cloud desktop instance by adopting a thermal migration technology to obtain a snapshot file of the cloud desktop instance. The advantage of this arrangement is that the complete running data of the cloud desktop instance can be saved in the snapshot file, and the environment required for running the corresponding cloud desktop instance in real time when accessing the cloud desktop instance is not needed.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating a method for connecting a cloud desktop according to a second embodiment of the present invention; specifically, the method comprises the following steps:
s210, in the virtual operation process of the cloud desktop instance, storing complete operation data of the cloud desktop instance by adopting a thermal migration technology to obtain a snapshot file of the cloud desktop instance.
The Live Migration is also called Live Migration or Live Migration, that is, when an empty Virtual Machine (Virtual Machine) is saved or restored, the running state of the entire empty Virtual Machine is usually saved completely, and meanwhile, the empty Virtual Machine can be quickly restored to an original hardware platform or even different hardware platforms. After recovery, the empty virtual machines still run smoothly, and the user does not perceive any difference. The empty virtual machine is an emulator of a computer system, simulates a complete computer system with complete hardware system functions and running in a completely isolated environment through software, and can provide functions of a physical computer.
S220, responding to the connection request of the cloud desktop instance, and preloading a snapshot file formed by the cloud desktop instance in virtual operation.
The snapshot file stores hardware running data and memory running data for the cloud desktop instance.
And S230, analyzing the snapshot file, and separating and extracting hardware operation data and memory operation data in the snapshot file.
And analyzing the snapshot data in the snapshot file, extracting and separating the hardware operation data and the memory operation data in the cloud desktop instance corresponding to the snapshot file, and caching the hardware operation data and the memory operation data in the cloud desktop instance corresponding to the snapshot file.
Generally, the memory operation data occupies more than 95% of the capacity of the whole snapshot data, for example, the total amount of the snapshot data is denoted as M, and the total amount of the memory data is denoted as N, which satisfy the following relation:
N≥0.95M
the volume of the hardware operation data occupying the snapshot data is less than or equal to 0.5, so that all the memory operation data cannot be loaded when the cloud desktop instance is started in the embodiment of the invention.
S240, loading the hardware running data in the snapshot file into the created empty virtual machine instance, and marking the memory address in the empty virtual machine instance as a missing state so as to run the empty virtual machine instance.
For an empty virtual machine instance created when a request is made to connect to a cloud desktop instance, hardware operation data contained in a snapshot file can be loaded into the created empty virtual machine instance, memory operation data is not loaded at first, and a memory address in the current empty virtual machine instance is marked as a missing state. Then, the empty virtual machine instance is operated, and at the moment, the empty virtual machine instance can be directly started according to hardware operation data, so that the starting efficiency of the cloud desktop instance is greatly improved.
Illustratively, in the process of running the null virtual machine instance, when snapshot data included in the snapshot file is loaded, if the speed of loading the data is v, the content of the whole snapshot data is loaded, and time is required
Figure BDA0003208277900000081
Where M represents the total amount of snapshot data.
However, in the embodiment of the present invention, the hardware operation data is loaded in the empty virtual machine instance first, and the loading time is equal to
Figure BDA0003208277900000082
N represents the total amount of memory data, so that the loading rate is increased by more than 20 times, and the starting efficiency of the cloud desktop instance is greatly improved.
And S250, sequentially loading the memory operation data in the snapshot file into the empty virtual machine instance according to each missing memory address accessed by the empty virtual machine instance in the operation process.
In the specific memory access process, access is carried out according to the memory addresses which are missing in the operation of the empty virtual machine instance, and the memory operation data of the memory addresses which are missing in the snapshot file are sequentially loaded to the empty virtual machine instance, so that the process of loading the memory data as required is realized, all the memory data corresponding to the snapshot file do not need to be loaded at one time, the carrying load of a server is reduced, and the loading rate is increased.
An alternative scheme is that memory operation data in a snapshot file is sequentially loaded into an empty virtual machine instance according to each missing memory address accessed by the empty virtual machine instance in the operation, and the method includes:
a) and generating a corresponding page missing request when the missing memory address is accessed every time in the operation of the empty virtual machine instance, wherein the page missing request carries the missing memory address accessed this time.
When the hardware operation data occupying a small amount of snapshot data is loaded into the empty virtual machine instance, but the hardware operation data does not contain the corresponding memory operation data, all memory addresses in the empty virtual machine instance can be marked as missing. Therefore, the empty virtual machine instance state can be set to be the running state, and after the running, a user can see the image of the desktop screen by connecting the cloud desktop instance.
However, since there is no memory operation data in the empty virtual machine instance, when the empty virtual machine instance accesses the missing memory address in operation, a corresponding page missing request is generated, and the corresponding memory operation data can be accessed according to the page missing request.
Optionally, each time the empty virtual machine instance accesses a missing memory address once in operation, a corresponding page missing request is generated, and the page missing requests of the embodiments of the present application may be sequentially generated according to the requirements of the cloud desktop instance, so that a process of loading memory operation data as required by carrying the missing memory address accessed this time according to the page missing request is realized, and the loading rate of the memory data is increased.
b) And responding to the page missing request, controlling the empty virtual machine instance to be switched from the running state to the standby state so as to load memory running data corresponding to the missed memory address accessed at this time in the snapshot file into the empty virtual machine instance, controlling the empty virtual machine instance to be switched back to the running state from the standby state after the loading is completed, and continuously accessing the rest memory addresses in the running of the empty virtual machine instance until the empty virtual machine instance is completely run.
When a page missing request is responded, the empty virtual machine instance needs to load corresponding memory running data from the snapshot file according to the missing memory address, the process controls the empty virtual machine instance to be switched from a running state to a standby state, and then the memory running data corresponding to the missing memory address accessed at this time in the snapshot file is loaded into the empty virtual machine instance in the standby state. And then after the loading is finished, controlling the empty virtual machine instance to be switched from the standby state to the running state again so as to enable the empty virtual machine instance to run normally according to the currently loaded memory running data. In the current process, the empty virtual machine instance is started from the snapshot file without the processes of starting up the operating system and running corresponding software, so that a large amount of memory reading and writing can not be generated when the empty virtual machine instance starts running, and the loaded data volume is small. And repeatedly executing the steps until all the memory operation data required by the operation of the cloud desktop instance are loaded.
And S260, generating a cloud desktop instance which is operated.
Optionally, the number of created empty virtual machine instances is the same as the number of requesters requesting to connect to the cloud desktop instance, that is, the number of requesters requesting to connect to the cloud desktop instance is estimated, and then a corresponding number of empty virtual machine instances are created. Taking a teaching scene as an example, if 30 students need to connect with a cloud desktop instance, 30 empty virtual machine instances need to be established, when the students access the cloud desktop instance, the students only need to load corresponding memory data files according to the missing memory addresses corresponding to each empty virtual machine instance, and the completion process of starting the cloud desktop, downloading courseware, running teaching software and importing courseware is not needed, so that the access time is saved.
On the basis of the above embodiment, the embodiment of the present invention is further optimized, and after the cloud desktop instance that has completed running is generated, the method further includes: and configuring the cloud desktop instance which is completed to run on a requester which requests to connect with the cloud desktop instance.
The cloud desktop instance which is completely operated is configured on the requesting party, so that the direct application of the final cloud desktop instance environment can be realized, the process that each user operates the required software in real time after starting the cloud desktop is not needed, the loading time is saved, and the use experience of the user is improved.
In the method for connecting the cloud desktop, which is provided by the embodiment of the invention, by taking a teaching scene as an example, an administrator only needs to make a cloud desktop instance of an experimental environment into a snapshot file in advance, and then the cloud desktop instance is copied by using the snapshot file, so that the final operation environment is obtained when students are connected to a remote desktop. The read-write operation of the external storage device is greatly reduced through the preloading technology, the time is shortened from several minutes to within 1 second through the quick starting technology, and the teaching efficiency is greatly improved.
EXAMPLE III
Fig. 3 is a block diagram of a device for connecting a cloud desktop according to a third embodiment of the present invention, where the device may be implemented by software and/or hardware, and may be generally integrated in a computer device such as a server, and may connect the cloud desktop by executing a method for connecting the cloud desktop. As shown in fig. 3, the apparatus includes: a snapshot preloading module 31 and a cloud desktop running module 32, wherein:
a snapshot preloading module 31, configured to preload a snapshot file formed in a virtual runtime of a cloud desktop instance in response to a connection request of the cloud desktop instance, where the snapshot file is used to store hardware running data and memory running data of the cloud desktop instance;
and the cloud desktop running module 32 is configured to run the created empty virtual machine instance by using the hardware running data and the memory running data in the snapshot file, so as to generate a cloud desktop instance which is completed in running.
According to the device for connecting the cloud desktop, provided by the embodiment of the invention, the virtual operation of the cloud desktop instance is made into the snapshot file, so that the hardware operation data and the memory operation data of the cloud desktop instance are stored in the snapshot file, when the requester connects the cloud desktop instance, the snapshot file pre-formed by the cloud desktop instance is directly preloaded, and the created empty virtual machine instance is operated by using the hardware operation data and the memory operation data in the snapshot file, so that the cloud desktop instance which is operated is generated. According to the scheme, when the cloud desktop instance which is completely operated is generated, the cloud desktop instance can be completely restored to the final operation state, a plurality of requesters do not need to operate again after being connected, the memory operation load of the cloud desktop instance is reduced, the problems that when a plurality of requesters operate the same cloud desktop instance at the same time, the operation load of the cloud desktop instance is too high, the operation time is too long are solved, the cloud desktop instance is quickly started, and the connection efficiency of the cloud desktop instance is improved.
Optionally, the cloud desktop running module 32 includes: memory address mark unit and operation data load unit, wherein:
a memory address marking unit, configured to load hardware operation data in the snapshot file into a created empty virtual machine instance, and mark a memory address in the empty virtual machine instance as a missing state, so as to operate the empty virtual machine instance;
and the running data loading unit is used for sequentially loading the memory running data in the snapshot file into the empty virtual machine instance according to each missing memory address accessed by the empty virtual machine instance in the running process.
Optionally, the run data loading unit includes: a page missing request generation subunit and a page missing request access subunit, wherein:
a missing page request generation subunit, configured to generate a corresponding missing page request when a missing memory address is accessed each time in an operation of the empty virtual machine instance, where the missing page request carries the missing memory address accessed this time;
and the page missing request access subunit is configured to, in response to the page missing request, control the empty virtual machine instance to switch from an operating state to a standby state, so as to load memory operation data corresponding to the missing memory address accessed this time in the snapshot file into the empty virtual machine instance, control the empty virtual machine instance to switch from the standby state to the operating state after the current loading is completed, and continue to access the remaining memory addresses in the running of the empty virtual machine instance until the empty virtual machine instance completes running.
Optionally, the apparatus further comprises: a snapshot file parsing module, wherein:
and the snapshot file analysis module is used for analyzing the snapshot file and separating and extracting the hardware operating data and the memory operating data in the snapshot file.
Optionally, the apparatus further comprises: operating a data storage module, wherein:
and the operation data storage module is used for storing the complete operation data of the cloud desktop instance by adopting a thermal migration technology in the virtual operation process of the cloud desktop instance so as to obtain a snapshot file of the cloud desktop instance.
Optionally, the number of created empty virtual machine instances is the same as the number of requesters requesting to connect the cloud desktop instance.
Optionally, the apparatus further comprises: a cloud desktop instance configuration module, wherein:
and the cloud desktop instance configuration module is used for configuring the cloud desktop instance which is completed to run on a requesting party requesting to connect the cloud desktop instance.
The device for connecting the cloud desktop provided by the embodiment of the invention can execute the method for connecting the cloud desktop provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects for executing the method.
Example four
The embodiment of the invention provides computer equipment, wherein the device for connecting the cloud desktop, provided by the embodiment of the invention, can be integrated in the computer equipment. Fig. 4 is a block diagram of a computer device according to an embodiment of the present invention. The computer device 400 may include: the cloud desktop connection system comprises a memory 401, a processor 402 and a computer program stored on the memory 401 and capable of being executed by the processor, wherein the processor 402 executes the computer program to realize the cloud desktop connection method according to the embodiment of the invention.
The computer device provided by the embodiment of the invention can execute the method for connecting the cloud desktop provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects for executing the method.
EXAMPLE five
Embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a method for connecting a cloud desktop, the method including:
responding to a connection request of a cloud desktop instance, and preloading a snapshot file formed by the cloud desktop instance in virtual operation, wherein the snapshot file is used for storing hardware operation data and memory operation data of the cloud desktop instance;
and running the created empty virtual machine instance by using the hardware running data and the memory running data in the snapshot file to generate a cloud desktop instance which is finished to run.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDRRAM, SRAM, EDORAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided by the embodiment of the present invention includes computer-executable instructions, and the computer-executable instructions are not limited to the operation of connecting the cloud desktop as described above, and may also perform related operations in the method for connecting the cloud desktop provided by any embodiment of the present invention.
The device, the equipment and the storage medium for receiving the cloud desktop provided by the embodiments can execute the method for receiving the cloud desktop provided by any embodiment of the invention, and have corresponding functional modules and beneficial effects for executing the method. Technical details that are not described in detail in the above embodiments may be referred to a method for connecting a cloud desktop provided in any embodiment of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for connecting cloud desktops, comprising:
responding to a connection request of a cloud desktop instance, and preloading a snapshot file formed by the cloud desktop instance in virtual operation, wherein the snapshot file is used for storing hardware operation data and memory operation data of the cloud desktop instance;
and running the created empty virtual machine instance by using the hardware running data and the memory running data in the snapshot file to generate a cloud desktop instance which is finished to run.
2. The method according to claim 1, wherein the running the created empty virtual machine instance by using the hardware running data and the memory running data in the snapshot file comprises:
loading hardware running data in the snapshot file into the created empty virtual machine instance, and marking a memory address in the empty virtual machine instance as a missing state so as to run the empty virtual machine instance;
and sequentially loading the memory operation data in the snapshot file into the empty virtual machine instance according to each missing memory address accessed by the empty virtual machine instance in the operation.
3. The method according to claim 2, wherein the sequentially loading the memory operation data in the snapshot file into the empty virtual machine instance according to each missing memory address accessed by the empty virtual machine instance during the operation comprises:
generating a corresponding page missing request when a missing memory address is accessed every time in the operation of the empty virtual machine instance, wherein the page missing request carries the missing memory address accessed this time;
responding to the page missing request, controlling the empty virtual machine instance to be switched to a standby state from a running state, loading memory running data corresponding to the missed memory address accessed at this time in the snapshot file into the empty virtual machine instance, controlling the empty virtual machine instance to be switched back to the running state from the standby state after the loading is completed, and continuing to access the rest memory addresses in the running of the empty virtual machine instance until the empty virtual machine instance is completely run.
4. The method of claim 1, further comprising, after preloading the snapshot file formed by the cloud desktop instance at virtual runtime:
and analyzing the snapshot file, and separating and extracting hardware operation data and memory operation data in the snapshot file.
5. The method of claim 1, further comprising, prior to preloading the snapshot file formed by the cloud desktop instance at virtual runtime:
in the virtual operation process of the cloud desktop instance, storing the complete operation data of the cloud desktop instance by adopting a thermal migration technology to obtain a snapshot file of the cloud desktop instance.
6. The method of claim 1, wherein the number of null virtual machine instances created is the same as the number of requesters requesting to connect to the cloud desktop instance.
7. The method of claim 1, after generating the cloud desktop instance that completes execution, further comprising:
and configuring the cloud desktop instance which is completed to run on a requesting party which requests to connect the cloud desktop instance.
8. An apparatus for connecting a cloud desktop, comprising:
the snapshot preloading module is used for responding to a connection request of a cloud desktop instance and preloading a snapshot file formed by the cloud desktop instance in virtual operation, wherein the snapshot file is used for storing hardware operation data and memory operation data of the cloud desktop instance;
and the cloud desktop running module is used for running the created empty virtual machine instance by using the hardware running data and the memory running data in the snapshot file so as to generate a cloud desktop instance which is finished to run.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the method of connecting cloud desktops according to any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method of connecting a cloud desktop according to any one of claims 1 to 7.
CN202110923370.2A 2021-08-12 2021-08-12 Method, device and equipment for connecting cloud desktop and storage medium Pending CN113590269A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110923370.2A CN113590269A (en) 2021-08-12 2021-08-12 Method, device and equipment for connecting cloud desktop and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110923370.2A CN113590269A (en) 2021-08-12 2021-08-12 Method, device and equipment for connecting cloud desktop and storage medium

Publications (1)

Publication Number Publication Date
CN113590269A true CN113590269A (en) 2021-11-02

Family

ID=78257439

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110923370.2A Pending CN113590269A (en) 2021-08-12 2021-08-12 Method, device and equipment for connecting cloud desktop and storage medium

Country Status (1)

Country Link
CN (1) CN113590269A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103647849A (en) * 2013-12-24 2014-03-19 华为技术有限公司 Method and device for migrating businesses and disaster recovery system
CN103888530A (en) * 2014-03-18 2014-06-25 成都盛思睿信息技术有限公司 Experiment teaching system based on cloud desktop
CN104156255A (en) * 2014-07-31 2014-11-19 华为技术有限公司 Virtual machine migration method, virtual machine migration device and source physical host
CN105681454A (en) * 2016-02-29 2016-06-15 广东顺德中山大学卡内基梅隆大学国际联合研究院 Method and system for self-adaptively connecting cloud desktop
CN109189546A (en) * 2018-07-11 2019-01-11 新华三云计算技术有限公司 A kind of production method and device of the online snapshot of virtual machine

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103647849A (en) * 2013-12-24 2014-03-19 华为技术有限公司 Method and device for migrating businesses and disaster recovery system
CN103888530A (en) * 2014-03-18 2014-06-25 成都盛思睿信息技术有限公司 Experiment teaching system based on cloud desktop
CN104156255A (en) * 2014-07-31 2014-11-19 华为技术有限公司 Virtual machine migration method, virtual machine migration device and source physical host
CN105681454A (en) * 2016-02-29 2016-06-15 广东顺德中山大学卡内基梅隆大学国际联合研究院 Method and system for self-adaptively connecting cloud desktop
CN109189546A (en) * 2018-07-11 2019-01-11 新华三云计算技术有限公司 A kind of production method and device of the online snapshot of virtual machine

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘瑞丰: "云平台可自迁移系统的设计与实现", 《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑(月刊)》 *
赵敬 等: "《操作系统》", 31 August 2007, 中国铁道出版社 *

Similar Documents

Publication Publication Date Title
US11210109B2 (en) Method and system for loading resources
CN105765534B (en) Virtual computing system and method
US10496497B1 (en) Live object level inter process communication in federated backup environment
US11487523B2 (en) Updating machine emulator
CN107209683B (en) Backup image restore
US9058197B2 (en) Method for sharing memory of virtual machine and computer system using the same
US10922090B1 (en) Methods and systems for executing a software application using a container
CN112363795B (en) Method and system for quickly starting virtual machine of network security practical training platform
US8972944B2 (en) Coordinating and controlling debuggers in a simulation environment
US11886302B1 (en) System and method for execution of applications in a container
CN110704161B (en) Virtual machine creation method and device and computer equipment
US20230336624A1 (en) Persistent storage overlay
US10963538B2 (en) Client application for web application execution
EP3264254B1 (en) System and method for a simulation of a block storage system on an object storage system
CN112433812A (en) Method, system, equipment and computer medium for virtual machine cross-cluster migration
JP2010500671A (en) Customizing space in a network environment
CN113590269A (en) Method, device and equipment for connecting cloud desktop and storage medium
CN111414240B (en) Kernel state process copying method and device, container expanding method and device
JP2020194521A (en) Method, apparatus, device, and medium for starting virtual machine
JP2010277578A (en) Electronic device and booting method
CN113590564A (en) Data storage method and device, electronic equipment and storage medium
CN108762957B (en) Method and device for generating cloud platform demonstration system
WO2020138386A1 (en) Cooperative simulation repeater employing previous trace data
US10430291B1 (en) Effective method to backup VMs in larger VM infrastructure
CN111124907A (en) Mobile phone game testing method and device and server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20211102

RJ01 Rejection of invention patent application after publication