CN112596825A - Cloud desktop starting method and device - Google Patents

Cloud desktop starting method and device Download PDF

Info

Publication number
CN112596825A
CN112596825A CN202011350279.8A CN202011350279A CN112596825A CN 112596825 A CN112596825 A CN 112596825A CN 202011350279 A CN202011350279 A CN 202011350279A CN 112596825 A CN112596825 A CN 112596825A
Authority
CN
China
Prior art keywords
virtual machine
machine image
target
hot
shared storage
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.)
Granted
Application number
CN202011350279.8A
Other languages
Chinese (zh)
Other versions
CN112596825B (en
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.)
New H3C Big Data Technologies Co Ltd
Original Assignee
New H3C Big Data Technologies 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 New H3C Big Data Technologies Co Ltd filed Critical New H3C Big Data Technologies Co Ltd
Priority to CN202011350279.8A priority Critical patent/CN112596825B/en
Publication of CN112596825A publication Critical patent/CN112596825A/en
Application granted granted Critical
Publication of CN112596825B publication Critical patent/CN112596825B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/451Execution arrangements for user interfaces
    • G06F9/452Remote windowing, e.g. X-Window System, desktop virtualisation
    • 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
    • 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/45575Starting, stopping, suspending or resuming virtual machine instances

Abstract

The application relates to the technical field of cloud desktops, in particular to a cloud desktop starting method and device. The method comprises the following steps that: sending a hot virtual machine image list query request to a shared storage server based on a preset period so as to acquire a hot virtual machine image list from the shared storage server; determining a target hotspot virtual machine image which is not stored locally based on the locally stored virtual machine image and the hotspot virtual machine image list; sending a target hotspot virtual machine image acquisition request to a shared storage server so as to acquire a target hotspot virtual machine image from the shared storage server; and receiving a target cloud desktop starting instruction, and if determining that the required target virtual machine image belongs to the hotspot virtual machine image based on the target cloud desktop starting instruction, performing batch cloud desktop starting operation based on the target virtual machine image.

Description

Cloud desktop starting method and device
Technical Field
The application relates to the technical field of cloud desktops, in particular to a cloud desktop starting method and device.
Background
In the application field of cloud desktop software, there is an application that needs to distribute desktop images quickly. The essential principle is as follows: based on a shared virtual machine file (Base virtual machine), a large number of virtual machines are quickly cloned in batches for users to use. Typically, the operating system and necessary software already exist in the shared virtual machine files. The cloned virtual machine completely inherits the systems and software, so that all users can use the desktop with consistent experience. The use scenes of the functions are common in colleges, libraries, training institutions and the like.
As the scale of cloud desktop systems continues to increase, the carrying capacity of a physical server is limited. Fast cloning of desktop images beyond the size of a single server needs to be carried through the cluster. At this time, in order to enable all servers to perform fast cloning based on the same Base virtual machine file, the shared Base virtual machine is generally borne by means of shared storage and distributed storage. Therefore, all servers can access the same storage, and respective rapid cloning of the servers is realized.
However, this method has the following problems:
because the Base virtual machine is stored in the shared storage, when all servers perform batch fast cloning concurrently, huge storage IO pressure and network load are caused, and the network bandwidth is likely to run out, resulting in slow speed. The larger the scale, the more pronounced the bottleneck.
When the storage network fails or the shared storage is closed due to human factors, the rapid cloning cannot be performed.
Disclosure of Invention
The application provides a cloud desktop starting method and device, which are used for solving the problem of low image transmission efficiency caused by repeated image transmission in the prior art.
In a first aspect, the present application provides a cloud desktop starting method, which is applied to a service server in a cluster, where the cluster further includes a shared storage server, where virtual machine images corresponding to multiple types of services are stored in the shared storage server, and a hot virtual machine image list is maintained, and the service server is in communication connection with the shared storage server, and the method includes:
sending a hot virtual machine image list query request to the shared storage server based on a preset period so as to acquire the hot virtual machine image list from the shared storage server;
determining a target hot spot virtual machine image which is not stored locally based on a locally stored virtual machine image and the hot spot virtual machine image list;
sending a target hotspot virtual machine image acquisition request to the shared storage server so as to acquire the target hotspot virtual machine image from the shared storage server;
and receiving a target cloud desktop starting instruction, and if it is determined that the required target virtual machine image belongs to the hot virtual machine image based on the target cloud desktop starting instruction, performing batch cloud desktop starting operation based on the target virtual machine image.
Optionally, the hot virtual machine image list includes a hot virtual machine image name and summary information of the hot virtual machine image;
the step of determining a target hotspot virtual machine image which is not stored locally based on the locally stored virtual machine image and the hotspot virtual machine image list comprises:
traversing the hot virtual machine image list, and judging whether a virtual machine image with the same name as that of each hot virtual machine image exists locally or not aiming at each hot virtual machine image included in the hot virtual machine image list;
if the hot virtual machine image does not exist, determining that the hot virtual machine image is a target hot virtual machine image which is not stored locally;
if the target hotspot virtual machine image exists, judging whether the summary information of the locally stored virtual machine image is the same as the summary information of the hotspot virtual machine image, and if not, determining that the hotspot virtual machine image is the target hotspot virtual machine image which is not locally stored.
Optionally, the method further comprises:
if it is determined that the required target virtual machine image does not belong to the hot virtual machine image based on the target cloud desktop starting instruction, sending a target virtual machine image acquisition request to the shared storage server to acquire the target virtual machine image from the shared storage server, and performing batch cloud desktop starting operation based on the target virtual machine image.
Optionally, the method further comprises:
and determining and deleting the locally stored virtual machine image which does not belong to the hot virtual machine image based on the hot virtual machine image list.
In a second aspect, the present application provides a cloud desktop starting method, which is applied to a shared storage server in a cluster, where the shared storage server stores virtual machine images corresponding to multiple types of services, and the cluster further includes multiple service servers in communication connection with the shared storage server, where the method includes:
marking a hot spot virtual machine mirror image corresponding to the hot spot service based on a preset rule, and generating a corresponding hot spot virtual machine mirror image list;
receiving a hot virtual machine image list query request sent by a service server, and sending the hot virtual machine image list to the service server, so that the service server determines a target hot virtual machine image which is not locally stored based on a locally stored virtual machine image and the hot virtual machine image list;
and receiving a target hot spot virtual machine image acquisition request sent by the service server, and sending the target hot spot virtual machine image to the service server.
In a third aspect, the present application provides a cloud desktop starting apparatus, which is applied to a service server in a cluster, where the cluster further includes a shared storage server, where virtual machine images corresponding to multiple types of services are stored in the shared storage server, and a hot virtual machine image list is maintained, and the service server is in communication connection with the shared storage server, and the apparatus includes:
the first sending unit is used for sending a hot virtual machine image list query request to the shared storage server based on a preset period so as to acquire the hot virtual machine image list from the shared storage server;
the determining unit is used for determining a target hot spot virtual machine image which is not stored locally based on the locally stored virtual machine image and the hot spot virtual machine image list;
a second sending unit, configured to send a target hotspot virtual machine image acquisition request to the shared storage server, so as to acquire the target hotspot virtual machine image from the shared storage server;
and the starting unit is used for receiving a target cloud desktop starting instruction, and if the target virtual machine image required by the target cloud desktop starting instruction belongs to the hot virtual machine image, performing batch cloud desktop starting operation based on the target virtual machine image.
Optionally, the hot virtual machine image list includes a hot virtual machine image name and summary information of the hot virtual machine image;
when determining a target hotspot virtual machine image which is not locally stored based on the locally stored virtual machine image and the hotspot virtual machine image list, the determining unit is specifically configured to:
traversing the hot virtual machine image list, and judging whether a virtual machine image with the same name as that of each hot virtual machine image exists locally or not aiming at each hot virtual machine image included in the hot virtual machine image list;
if the hot virtual machine image does not exist, determining that the hot virtual machine image is a target hot virtual machine image which is not stored locally;
if the target hotspot virtual machine image exists, judging whether the summary information of the locally stored virtual machine image is the same as the summary information of the hotspot virtual machine image, and if not, determining that the hotspot virtual machine image is the target hotspot virtual machine image which is not locally stored.
Optionally, the starting unit is further configured to:
if it is determined that the required target virtual machine image does not belong to the hot virtual machine image based on the target cloud desktop starting instruction, sending a target virtual machine image acquisition request to the shared storage server to acquire the target virtual machine image from the shared storage server, and performing batch cloud desktop starting operation based on the target virtual machine image.
Optionally, the apparatus further comprises:
and the deleting unit is used for determining and deleting the locally stored virtual machine mirror image which is not belonged to the hot virtual machine mirror image based on the hot virtual machine mirror image list.
In a fourth aspect, the present application provides a cloud desktop starting apparatus, which is applied to a shared storage server in a cluster, where virtual machine images corresponding to multiple types of services are stored in the shared storage server, the cluster further includes a plurality of service servers in communication connection with the shared storage server, and the apparatus includes:
the marking unit is used for marking the hot spot virtual machine mirror image corresponding to the hot spot service based on a preset rule and generating a corresponding hot spot virtual machine mirror image list;
the first receiving unit is used for receiving a hotspot virtual machine image list query request sent by a service server and sending the hotspot virtual machine image list to the service server so that the service server determines a target hotspot virtual machine image which is not locally stored based on a locally stored virtual machine image and the hotspot virtual machine image list;
and the second receiving unit is used for receiving a target hot spot virtual machine image acquisition request sent by the service server and sending the target hot spot virtual machine image to the service server.
In a fifth aspect, an embodiment of the present application provides a cloud desktop starting apparatus, where the cloud desktop starting apparatus includes:
a memory for storing program instructions;
a processor for calling program instructions stored in said memory and for executing the steps of the method according to any one of the above first aspects in accordance with the obtained program instructions.
In a sixth aspect, the present application further provides a computer-readable storage medium, which stores computer-executable instructions for causing the computer to perform the steps of the method according to any one of the above first aspects.
In a seventh aspect, an embodiment of the present application provides a cloud desktop starting apparatus, where the cloud desktop starting apparatus includes:
a memory for storing program instructions;
a processor for calling the program instructions stored in the memory and executing the steps of the method according to any one of the above second aspects in accordance with the obtained program instructions.
In an eighth aspect, the present embodiments also provide a computer-readable storage medium, which stores computer-executable instructions for causing the computer to perform the steps of the method according to any one of the above second aspects.
In summary, the cloud desktop starting method provided in the embodiment of the present application is applied to a service server in a cluster, where the cluster further includes a shared storage server, the shared storage server stores virtual machine images corresponding to multiple types of services, and maintains a hot virtual machine image list, and the service server is in communication connection with the shared storage server, and the method includes: sending a hot virtual machine image list query request to the shared storage server based on a preset period so as to acquire the hot virtual machine image list from the shared storage server; determining a target hot spot virtual machine image which is not stored locally based on a locally stored virtual machine image and the hot spot virtual machine image list; sending a target hotspot virtual machine image acquisition request to the shared storage server so as to acquire the target hotspot virtual machine image from the shared storage server; and receiving a target cloud desktop starting instruction, and if it is determined that the required target virtual machine image belongs to the hot virtual machine image based on the target cloud desktop starting instruction, performing batch cloud desktop starting operation based on the target virtual machine image.
By adopting the cloud desktop starting method provided by the embodiment of the application, the hot virtual machine image is determined according to the preset rule, and the hot virtual machine image is cached to the local of each service server in advance, so that the method does not rely on shared storage strongly, can effectively reduce the pressure on shared storage IO and storage bandwidth flow in the process of batch and quick virtual machine cloning, and achieves quicker cloning and starting. The scheme can avoid the risk of service interruption caused by single point failure of shared storage to a certain extent.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments of the present application or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art according to the drawings of the embodiments of the present application.
Fig. 1 is a schematic structural diagram of a cluster according to an embodiment of the present disclosure;
fig. 2 is a detailed flowchart of a cloud desktop booting method provided in an embodiment of the present application;
fig. 3 is a detailed flowchart of another cloud desktop booting method provided in an embodiment of the present application;
fig. 4 is a schematic structural diagram of a cloud desktop starting apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of another cloud desktop starting device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a service server according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a shared storage server according to an embodiment of the present application.
Detailed Description
The terminology used in the embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein is meant to encompass any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in the embodiments of the present application to describe various information, the information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. Depending on the context, moreover, the word "if" as used may be interpreted as "at … …" or "when … …" or "in response to a determination".
The cluster structure provided by the embodiment of the present application is described below with reference to a specific application scenario, for example, as shown in fig. 1, a schematic diagram of a cluster structure provided by the embodiment of the present application is shown, where the cluster includes a shared storage server and a plurality of service servers (e.g., service server 1, service server 2, … …, service server n), each service server is in communication connection with the shared storage server, the shared storage server stores virtual machine images (e.g., virtual machine image 1, virtual machine image 2, … …, virtual machine image m) corresponding to a plurality of types of services, respectively, and maintains a hot virtual machine image list, each service server may obtain a hot virtual machine image from the shared storage server in advance and cache the hot virtual machine image locally, when it is determined that a batch cloud desktop starting operation needs to be performed based on a certain hot virtual machine image, the hotspot virtual machine image does not need to be acquired from the shared storage server.
Exemplarily, referring to fig. 2, a detailed flowchart of a cloud desktop booting method provided in an embodiment of the present application is shown, where the method is applied to a service server in a cluster, where the cluster further includes a shared storage server, where the shared storage server stores virtual machine images corresponding to multiple types of services respectively, and maintains a hot virtual machine image list, and the service server is in communication connection with the shared storage server, and the method includes the following steps:
step 200: and sending a hot virtual machine image list query request to the shared storage server based on a preset period so as to acquire the hot virtual machine image list from the shared storage server.
In practical application, a virtual machine template (i.e., a virtual machine image) is stored in a shared storage (shared storage server) in a cluster, the virtual machine image stored in the shared storage server can be accessed by all service servers in the cluster, a virtual machine created and started based on one type of virtual machine can provide a corresponding type of service, and the service servers can perform batch cloning and starting based on any virtual machine image. In the embodiment of the application, the shared storage server may mark the hot virtual machine image corresponding to the hot service based on the preset rule and generate the corresponding hot virtual machine image list, and further, the service server may acquire the hot virtual machine image list from the shared storage server based on the preset period. By hotspot virtual machine image is meant a virtual machine image that the service server will need to use.
In practical application, when the shared storage server marks the hot virtual machine image, the hot virtual machine image can be marked according to actual service, and various methods can be realized:
the first way is that in an educational scene, according to a resource planning table such as a class schedule, a virtual machine image which needs to be used the next day can be estimated. Such virtual machine images that are to be taken into use may be marked as hot virtual machine images.
The second way is that the operation log is recorded every time the link clone is done based on the virtual machine image. Therefore, the virtual machine image with higher recent use frequency can be analyzed and marked as a hot virtual machine image based on the operation log.
It should be noted that the hot spot virtual machine image marking manner is only used for illustration, and is not used for limiting the hot spot virtual machine image marking manner of the present application.
In the embodiment of the application, the service server can acquire the hot virtual machine image list from the service server by actively sending the hot virtual machine image list query request to the shared storage server; for example, the shared storage server wants the shared storage server to send the query request based on a preset period, or wants the shared storage server to send the query request based on an acquisition instruction triggered by a user.
Certainly, the sharing server may also actively push the hot virtual machine image list to each service server based on a preset rule, for example, when the hot virtual machine image list is updated once, the updated hot virtual machine image list is pushed to each service server.
Step 210: and determining a target hot spot virtual machine image which is not stored locally based on the locally stored virtual machine image and the hot spot virtual machine image list.
Specifically, after acquiring the hot virtual machine image list, the service server needs to determine which hot virtual machines in the hot virtual machine image list are not locally stored, specifically, if the service server does not locally store any virtual machine image, it is determined that each hot virtual machine in the hot virtual machine image list is not a target hot virtual machine image which is not locally stored, and at this time, all hot virtual machine images included in the hot virtual machine image list need to be acquired from the shared storage server.
For example, the hot virtual machine image list includes a virtual machine image 1, a virtual machine image 2, and a virtual machine image 3, and if the service server does not locally store a virtual machine image, it is determined that the virtual machine image 1, the virtual machine image 2, and the virtual machine image 3 are all target hot virtual machine images, and the virtual machine image 1, the virtual machine image 2, and the virtual machine image 3 need to be acquired from the shared storage server. If the service server locally stores the virtual machine image 1, the virtual machine image 2 is determined, and the virtual machine image 3 is the target hotspot virtual machine image, at this time, only the virtual machine image 2 and the virtual machine image 3 need to be acquired from the shared storage server.
Further, in the embodiment of the present application, the hot virtual machine image list includes a hot virtual machine image name and summary information of a hot virtual machine image;
then, when determining a target hot virtual machine image that is not locally stored based on a locally stored virtual machine image and the hot virtual machine image list, a preferred implementation manner is:
traversing the hot virtual machine image list, and judging whether a virtual machine image with the same name as that of each hot virtual machine image exists locally or not aiming at each hot virtual machine image included in the hot virtual machine image list;
if the hot virtual machine image does not exist, determining that the hot virtual machine image is a target hot virtual machine image which is not stored locally;
if the target hotspot virtual machine image exists, judging whether the summary information of the locally stored virtual machine image is the same as the summary information of the hotspot virtual machine image, and if not, determining that the hotspot virtual machine image is the target hotspot virtual machine image which is not locally stored.
For example, the service server performs traversal statistics on the hot virtual machine image list, and checks whether an image with the same name as that in the hot virtual machine image list exists in the local storage of the server. If the virtual machine image with the same name exists, the MD5 value of the local existing virtual machine image of the server is calculated. And comparing the MD5 value of the local virtual machine image of the server with the MD5 value corresponding to the hot virtual machine image in the hot virtual machine image list. If MD5 is the same, it indicates that the latest version of the hot virtual machine image already exists locally and does not need to be downloaded. If the values of MD5 are different, it indicates that there is an update to the hot virtual machine image in the shared storage server, and the virtual machine image local to the overlay server needs to be downloaded.
Further, the service server may also determine and delete a locally stored virtual machine image that does not belong to the hotspot virtual machine image based on the hotspot virtual machine image list.
That is to say, a part of the virtual machine images stored locally by the service server is no longer the hot virtual machine images in the latest hot virtual machine image list, and at this time, due to the limitation of storage resources, such virtual machine images can be deleted, so as to avoid that too many virtual machine images are cached locally by the service server, thereby improving the utilization rate of the storage resources.
Step 220: and sending a target hotspot virtual machine image acquisition request to the shared storage server so as to acquire the target hotspot virtual machine image from the shared storage server.
In the embodiment of the application, when determining that the target hotspot virtual machine image which is not stored locally in the hotspot virtual machine image list is determined by the service server, the service server needs to acquire the target hotspot virtual machine image from the shared storage server, and specifically, the service server sends an acquisition request to the shared storage server to download and cache the target hotspot virtual machine image from the shared storage server to the local service server.
Step 230: and receiving a target cloud desktop starting instruction, and if the required target virtual machine image is determined to belong to the hot virtual machine image based on the target cloud desktop starting instruction, performing batch cloud desktop starting operation based on the target virtual machine image.
That is to say, on the premise that all the hot virtual machine images included in the hot virtual machine image list are cached locally in the service server, if the service server receives a target cloud desktop start instruction, it is determined whether the target virtual machine image required for starting the target cloud desktop is one of the current hot virtual machine images based on the target cloud desktop start instruction, and if so, batch fast cloning is directly performed according to the target virtual machine cached locally in the server, and the batch cloud desktop starting is completed.
Further, if it is determined that the required target virtual machine image does not belong to the hot virtual machine image based on the target cloud desktop startup instruction, sending a target virtual machine image acquisition request to the shared storage server to acquire the target virtual machine image from the shared storage server, and performing a batch cloud desktop startup operation based on the target virtual machine image.
That is to say, the target virtual machine image required for starting the cloud desktop at this time is not one of the current hotspot virtual machine images, that is, the target virtual machine image is not cached locally by the service server, then, the target virtual machine image needs to be acquired from the shared storage server first, and after the target virtual machine image is acquired, a batch cloud desktop starting operation is performed based on the target virtual machine image.
Based on the same inventive concept as the above method embodiment applied to a service server, for example, referring to fig. 3, a detailed flowchart of another cloud desktop booting method provided in the embodiment of the present application is shown, where the method is applied to a shared storage server in a cluster, the shared storage server stores virtual machine images corresponding to multiple types of services, the cluster further includes multiple service servers in communication connection with the shared storage server, and the method includes the following steps:
step 300: and marking the hot spot virtual machine mirror image corresponding to the hot spot service based on a preset rule, and generating a corresponding hot spot virtual machine mirror image list.
Step 310: receiving a hot spot virtual machine image list query request sent by a service server, and sending the hot spot virtual machine image list to the service server, so that the service server determines a target hot spot virtual machine image which is not locally stored based on a locally stored virtual machine image and the hot spot virtual machine image list.
Step 320: and receiving a target hot spot virtual machine image acquisition request sent by the service server, and sending the target hot spot virtual machine image to the service server.
Based on the same inventive concept as the above method embodiment applied to the service server, for example, referring to fig. 4, a schematic structural diagram of a cloud desktop starting apparatus provided in the embodiment of the present application is shown, the apparatus is applied to a service server in a cluster, the cluster further includes a shared storage server, the shared storage server stores virtual machine images corresponding to multiple types of services respectively, and maintains a hot virtual machine image list, the service server is in communication connection with the shared storage server, and the apparatus includes:
a first sending unit 40, configured to send a hotspot virtual machine image list query request to the shared storage server based on a preset period, so as to obtain the hotspot virtual machine image list from the shared storage server;
a determining unit 41, configured to determine, based on a locally stored virtual machine image and the hot spot virtual machine image list, a target hot spot virtual machine image that is not locally stored;
a second sending unit 42, configured to send a target hotspot virtual machine image acquisition request to the shared storage server, so as to acquire the target hotspot virtual machine image from the shared storage server;
a starting unit 43, configured to receive a target cloud desktop starting instruction, and if it is determined that a required target virtual machine image belongs to the hotspot virtual machine image based on the target cloud desktop starting instruction, perform a batch cloud desktop starting operation based on the target virtual machine image.
Optionally, the hot virtual machine image list includes a hot virtual machine image name and summary information of the hot virtual machine image;
when determining a target hotspot virtual machine image which is not locally stored based on the locally stored virtual machine image and the hotspot virtual machine image list, the determining unit 41 is specifically configured to:
traversing the hot virtual machine image list, and judging whether a virtual machine image with the same name as that of each hot virtual machine image exists locally or not aiming at each hot virtual machine image included in the hot virtual machine image list;
if the hot virtual machine image does not exist, determining that the hot virtual machine image is a target hot virtual machine image which is not stored locally;
if the target hotspot virtual machine image exists, judging whether the summary information of the locally stored virtual machine image is the same as the summary information of the hotspot virtual machine image, and if not, determining that the hotspot virtual machine image is the target hotspot virtual machine image which is not locally stored.
Optionally, the starting unit 43 is further configured to:
if it is determined that the required target virtual machine image does not belong to the hot virtual machine image based on the target cloud desktop starting instruction, sending a target virtual machine image acquisition request to the shared storage server to acquire the target virtual machine image from the shared storage server, and performing batch cloud desktop starting operation based on the target virtual machine image.
Optionally, the apparatus further comprises:
and the deleting unit is used for determining and deleting the locally stored virtual machine mirror image which is not belonged to the hot virtual machine mirror image based on the hot virtual machine mirror image list.
Based on the same inventive concept as the above-mentioned method applied to the shared storage server, exemplarily, referring to fig. 5, a schematic structural diagram of a cloud desktop booting apparatus provided in the embodiment of the present application is shown, where the apparatus is applied to a shared storage server in a cluster, the shared storage server stores virtual machine images respectively corresponding to multiple types of services, the cluster further includes multiple service servers in communication connection with the shared storage server, and the apparatus includes:
the marking unit 50 is configured to mark a hot virtual machine image corresponding to a hot service based on a preset rule, and generate a corresponding hot virtual machine image list;
a first receiving unit 51, configured to receive a hotspot virtual machine image list query request sent by a service server, and send the hotspot virtual machine image list to the service server, so that the service server determines a target hotspot virtual machine image that is not locally stored based on a locally stored virtual machine image and the hotspot virtual machine image list;
a second receiving unit 52, configured to receive a target hotspot virtual machine image acquisition request sent by the service server, and send the target hotspot virtual machine image to the service server.
The above units may be one or more integrated circuits configured to implement the above methods, for example: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. For another example, when one of the above units is implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, these units may be integrated together and implemented in the form of a system-on-a-chip (SOC).
Further, in the service server provided in the embodiment of the present application, from a hardware level, a hardware architecture schematic diagram of the service server may be shown in fig. 6, where the service server may include: a memory 60 and a processor 61, which,
the memory 60 is used to store program instructions; the processor 61 calls the program instructions stored in the memory 60 and executes the above-described embodiment of the method applied to the service server according to the obtained program instructions. The specific implementation and technical effects are similar, and are not described herein again.
Optionally, the present application also provides a service server, which includes at least one processing element (or chip) for executing the above method embodiment applied to the service server.
Optionally, the present application also provides a program product, such as a computer-readable storage medium, which stores computer-executable instructions for causing the computer to perform the above-mentioned method embodiment applied to the service server.
Further, in the shared storage server provided in the embodiment of the present application, from a hardware aspect, a schematic diagram of a hardware architecture of the shared storage server may be shown in fig. 7, where the service server may include: a memory 70 and a processor 71, which,
the memory 70 is used to store program instructions; the processor 71 calls the program instructions stored in the memory 70 and executes the above-described embodiment of the method applied to the shared storage server according to the obtained program instructions. The specific implementation and technical effects are similar, and are not described herein again.
Optionally, the present application also provides a shared storage server, including at least one processing element (or chip) for executing the above method embodiment applied to the shared storage server.
Optionally, the present application also provides a program product, such as a computer-readable storage medium, storing computer-executable instructions for causing a computer to perform the above-mentioned method embodiments applied to a shared storage server.
Here, a machine-readable storage medium may be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, and so forth. For example, the machine-readable storage medium may be: a RAM (random Access Memory), a volatile Memory, a non-volatile Memory, a flash Memory, a storage drive (e.g., a hard drive), a solid state drive, any type of storage disk (e.g., an optical disk, a dvd, etc.), or similar storage medium, or a combination thereof.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer, which may take the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Furthermore, these computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (10)

1. A cloud desktop starting method is applied to a service server in a cluster, the cluster further comprises a shared storage server, the shared storage server stores virtual machine images corresponding to multiple types of services respectively, a hotspot virtual machine image list is maintained, and the service server is in communication connection with the shared storage server, and the method comprises the following steps:
sending a hot virtual machine image list query request to the shared storage server based on a preset period so as to acquire the hot virtual machine image list from the shared storage server;
determining a target hot spot virtual machine image which is not stored locally based on a locally stored virtual machine image and the hot spot virtual machine image list;
sending a target hotspot virtual machine image acquisition request to the shared storage server so as to acquire the target hotspot virtual machine image from the shared storage server;
and receiving a target cloud desktop starting instruction, and if it is determined that the required target virtual machine image belongs to the hot virtual machine image based on the target cloud desktop starting instruction, performing batch cloud desktop starting operation based on the target virtual machine image.
2. The method of claim 1, wherein the list of hotspot virtual machine images includes a hotspot virtual machine image name and summary information of the hotspot virtual machine image;
the step of determining a target hotspot virtual machine image which is not stored locally based on the locally stored virtual machine image and the hotspot virtual machine image list comprises:
traversing the hot virtual machine image list, and judging whether a virtual machine image with the same name as that of each hot virtual machine image exists locally or not aiming at each hot virtual machine image included in the hot virtual machine image list;
if the hot virtual machine image does not exist, determining that the hot virtual machine image is a target hot virtual machine image which is not stored locally;
if the target hotspot virtual machine image exists, judging whether the summary information of the locally stored virtual machine image is the same as the summary information of the hotspot virtual machine image, and if not, determining that the hotspot virtual machine image is the target hotspot virtual machine image which is not locally stored.
3. The method of claim 1, wherein the method further comprises:
if it is determined that the required target virtual machine image does not belong to the hot virtual machine image based on the target cloud desktop starting instruction, sending a target virtual machine image acquisition request to the shared storage server to acquire the target virtual machine image from the shared storage server, and performing batch cloud desktop starting operation based on the target virtual machine image.
4. The method of claim 1, wherein the method further comprises:
and determining and deleting the locally stored virtual machine image which does not belong to the hot virtual machine image based on the hot virtual machine image list.
5. A cloud desktop starting method is applied to a shared storage server in a cluster, the shared storage server stores virtual machine images corresponding to multiple types of services respectively, the cluster further comprises a plurality of service servers in communication connection with the shared storage server, and the method comprises the following steps:
marking a hot spot virtual machine mirror image corresponding to the hot spot service based on a preset rule, and generating a corresponding hot spot virtual machine mirror image list;
receiving a hot virtual machine image list query request sent by a service server, and sending the hot virtual machine image list to the service server, so that the service server determines a target hot virtual machine image which is not locally stored based on a locally stored virtual machine image and the hot virtual machine image list;
and receiving a target hot spot virtual machine image acquisition request sent by the service server, and sending the target hot spot virtual machine image to the service server.
6. The utility model provides a cloud desktop starting drive, its characterized in that is applied to the business server in the cluster, the cluster still includes shared storage server, virtual machine mirror image that the shared storage server storage has multiclass business to correspond respectively, and maintains and have the hot virtual machine mirror image list, the business server with shared storage server communication connection, the device includes:
the first sending unit is used for sending a hot virtual machine image list query request to the shared storage server based on a preset period so as to acquire the hot virtual machine image list from the shared storage server;
the determining unit is used for determining a target hot spot virtual machine image which is not stored locally based on the locally stored virtual machine image and the hot spot virtual machine image list;
a second sending unit, configured to send a target hotspot virtual machine image acquisition request to the shared storage server, so as to acquire the target hotspot virtual machine image from the shared storage server;
and the starting unit is used for receiving a target cloud desktop starting instruction, and if the target virtual machine image required by the target cloud desktop starting instruction belongs to the hot virtual machine image, performing batch cloud desktop starting operation based on the target virtual machine image.
7. The apparatus of claim 6, wherein the list of hotspot virtual machine images comprises a hotspot virtual machine image name and summary information of the hotspot virtual machine image;
when determining a target hotspot virtual machine image which is not locally stored based on the locally stored virtual machine image and the hotspot virtual machine image list, the determining unit is specifically configured to:
traversing the hot virtual machine image list, and judging whether a virtual machine image with the same name as that of each hot virtual machine image exists locally or not aiming at each hot virtual machine image included in the hot virtual machine image list;
if the hot virtual machine image does not exist, determining that the hot virtual machine image is a target hot virtual machine image which is not stored locally;
if the target hotspot virtual machine image exists, judging whether the summary information of the locally stored virtual machine image is the same as the summary information of the hotspot virtual machine image, and if not, determining that the hotspot virtual machine image is the target hotspot virtual machine image which is not locally stored.
8. The apparatus of claim 6, wherein the activation unit is further to:
if it is determined that the required target virtual machine image does not belong to the hot virtual machine image based on the target cloud desktop starting instruction, sending a target virtual machine image acquisition request to the shared storage server to acquire the target virtual machine image from the shared storage server, and performing batch cloud desktop starting operation based on the target virtual machine image.
9. The apparatus of claim 6, wherein the apparatus further comprises:
and the deleting unit is used for determining and deleting the locally stored virtual machine mirror image which is not belonged to the hot virtual machine mirror image based on the hot virtual machine mirror image list.
10. The utility model provides a cloud desktop starting drive, characterized in that, be applied to shared storage server in the cluster, virtual machine mirror image that many kinds of businesses respectively correspond is stored to shared storage server, the cluster still includes a plurality of with shared storage server communication connection's business server, the device includes:
the marking unit is used for marking the hot spot virtual machine mirror image corresponding to the hot spot service based on a preset rule and generating a corresponding hot spot virtual machine mirror image list;
the first receiving unit is used for receiving a hotspot virtual machine image list query request sent by a service server and sending the hotspot virtual machine image list to the service server so that the service server determines a target hotspot virtual machine image which is not locally stored based on a locally stored virtual machine image and the hotspot virtual machine image list;
and the second receiving unit is used for receiving a target hot spot virtual machine image acquisition request sent by the service server and sending the target hot spot virtual machine image to the service server.
CN202011350279.8A 2020-11-26 2020-11-26 Cloud desktop starting method and device Active CN112596825B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011350279.8A CN112596825B (en) 2020-11-26 2020-11-26 Cloud desktop starting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011350279.8A CN112596825B (en) 2020-11-26 2020-11-26 Cloud desktop starting method and device

Publications (2)

Publication Number Publication Date
CN112596825A true CN112596825A (en) 2021-04-02
CN112596825B CN112596825B (en) 2022-04-01

Family

ID=75184685

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011350279.8A Active CN112596825B (en) 2020-11-26 2020-11-26 Cloud desktop starting method and device

Country Status (1)

Country Link
CN (1) CN112596825B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114003328A (en) * 2021-11-01 2022-02-01 北京天融信网络安全技术有限公司 Data sharing method and device, terminal equipment and desktop cloud system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080263258A1 (en) * 2007-04-19 2008-10-23 Claus Allwell Method and System for Migrating Virtual Machines Between Hypervisors
CN102629941A (en) * 2012-03-20 2012-08-08 武汉邮电科学研究院 Caching method of a virtual machine mirror image in cloud computing system
CN104504331A (en) * 2014-12-19 2015-04-08 北京奇虎科技有限公司 Virtualization security detection method and system
CN106487850A (en) * 2015-08-29 2017-03-08 华为技术有限公司 The methods, devices and systems of mirror image are obtained under a kind of cloud environment
CN106933654A (en) * 2017-03-17 2017-07-07 中山大学 A kind of virtual machine based on caching starts method
CN109508223A (en) * 2017-09-14 2019-03-22 顺丰科技有限公司 A kind of virtual machine batch creation method, system and equipment
CN109814980A (en) * 2019-01-25 2019-05-28 新华三云计算技术有限公司 Image file acquisition methods and device
CN110427342A (en) * 2019-07-09 2019-11-08 苏州浪潮智能科技有限公司 A kind of method, equipment and readable medium creating mirror site

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080263258A1 (en) * 2007-04-19 2008-10-23 Claus Allwell Method and System for Migrating Virtual Machines Between Hypervisors
CN102629941A (en) * 2012-03-20 2012-08-08 武汉邮电科学研究院 Caching method of a virtual machine mirror image in cloud computing system
CN104504331A (en) * 2014-12-19 2015-04-08 北京奇虎科技有限公司 Virtualization security detection method and system
CN106487850A (en) * 2015-08-29 2017-03-08 华为技术有限公司 The methods, devices and systems of mirror image are obtained under a kind of cloud environment
CN106933654A (en) * 2017-03-17 2017-07-07 中山大学 A kind of virtual machine based on caching starts method
CN109508223A (en) * 2017-09-14 2019-03-22 顺丰科技有限公司 A kind of virtual machine batch creation method, system and equipment
CN109814980A (en) * 2019-01-25 2019-05-28 新华三云计算技术有限公司 Image file acquisition methods and device
CN110427342A (en) * 2019-07-09 2019-11-08 苏州浪潮智能科技有限公司 A kind of method, equipment and readable medium creating mirror site

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
WEI LU等: "Fast Service Migration Method Based on Virtual Machine Technology for MEC", 《 IEEE INTERNET OF THINGS JOURNAL》 *
罗伟: "面向多级缓存的大规模虚拟机镜像存储系统的研究与实现", 《中国优秀硕士学位论文全文数据库(电子期刊)》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114003328A (en) * 2021-11-01 2022-02-01 北京天融信网络安全技术有限公司 Data sharing method and device, terminal equipment and desktop cloud system
CN114003328B (en) * 2021-11-01 2023-07-04 北京天融信网络安全技术有限公司 Data sharing method and device, terminal equipment and desktop cloud system

Also Published As

Publication number Publication date
CN112596825B (en) 2022-04-01

Similar Documents

Publication Publication Date Title
CN109976667B (en) Mirror image management method, device and system
EP3547648A1 (en) Service processing and consensus method and device
CN105677250B (en) The update method and updating device of object data in object storage system
JP2017084334A (en) Method and device for extracting virtual machine image file
KR20190116479A (en) Application program processing methods, devices, and storage media
US20140237024A1 (en) Network communication devices and file tracking methods thereof
CN109032803B (en) Data processing method and device and client
CN107179940B (en) Task execution method and device
CN102857578A (en) File uploading method and file uploading system of network drive and network drive client
US10873552B2 (en) Large data management in communication applications through multiple mailboxes
CN109145053B (en) Data processing method and device, client and server
CN111090440A (en) Information processing method, system, device and storage medium
CN108399175B (en) Data storage and query method and device
CN112596825B (en) Cloud desktop starting method and device
CN113382024B (en) Rotation method of credential, computing device and storage medium
CN112600931B (en) API gateway deployment method and device
US10097628B2 (en) Resource affinity in a dynamic resource pool
CN111259012B (en) Data homogenizing method, device, computer equipment and storage medium
US10387887B2 (en) Bloom filter driven data synchronization
CN112596669A (en) Data processing method and device based on distributed storage
CN110581784B (en) Node health check method, device and equipment
CN114900497B (en) Identification sequence number generation method and device, electronic equipment and storage medium
CN110555020B (en) Mapping relation establishing and data querying methods, devices and equipment
CN110545296A (en) Log data acquisition method, device and equipment
CN114385596A (en) Data processing method and device

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
GR01 Patent grant
GR01 Patent grant