CN110806911B - Cloud desktop management and control method, device and system - Google Patents

Cloud desktop management and control method, device and system Download PDF

Info

Publication number
CN110806911B
CN110806911B CN201810887624.8A CN201810887624A CN110806911B CN 110806911 B CN110806911 B CN 110806911B CN 201810887624 A CN201810887624 A CN 201810887624A CN 110806911 B CN110806911 B CN 110806911B
Authority
CN
China
Prior art keywords
application
virtual machine
cloud desktop
disk
side virtual
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.)
Active
Application number
CN201810887624.8A
Other languages
Chinese (zh)
Other versions
CN110806911A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201810887624.8A priority Critical patent/CN110806911B/en
Publication of CN110806911A publication Critical patent/CN110806911A/en
Application granted granted Critical
Publication of CN110806911B publication Critical patent/CN110806911B/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/45583Memory management, e.g. access or allocation

Abstract

The embodiment of the invention discloses a cloud desktop management and control method, a cloud desktop management and control device and a cloud desktop management and control system, wherein the method comprises the following steps: acquiring an application request which is sent by a user side virtual machine and aims at a first application to use a cloud desktop; the first application is uniformly managed and controlled by a cloud desktop management platform; creating a first application memory disk mirror image for the user side virtual machine based on the application request; and mounting the first application memory disk mirror image to the user side virtual machine so that the user side virtual machine can access the first application.

Description

Cloud desktop management and control method, device and system
Technical Field
The invention relates to the technical field of cloud, in particular to a cloud desktop management and control method, device and system.
Background
Because the cloud desktop has the advantages of data security, environmental protection, unified operation and maintenance and the like, more and more enterprises use the cloud desktop at present. In an enterprise, a plurality of posts exist, different posts use the cloud desktop to do different things, some have light load and some have heavy load, which causes different posts to have different requirements on the performance of the cloud desktop. Meanwhile, the action of a person using the computer cannot be predicted, and the cloud desktop which always runs light load can also suddenly run heavy load software. These all test the concurrent performance of the virtual machine, especially the Input/Output (I/O) performance of the storage. The I/O performance provided by the storage server is limited, and in many concurrencies, one image consumes too much I/O and tends to affect the performance of the other virtual machine images. In the past, the speed of the mirror image is limited, and the maximum allowable number of times of reading and writing I/O operation Per Second is set (I/OPS, I/O OperatI/Ons Per Second). In the solution, a new problem is introduced, on one hand, the mirroring performance is limited, on the other hand, the resource utilization rate is limited, and under the condition that the system has a large amount of idle resources, the virtual machine which needs the resources cannot be utilized.
Disclosure of Invention
In order to solve the technical problem, embodiments of the present invention are expected to provide a cloud desktop management and control method, device, and system, which can solve the problem of contention for virtual machine disk mirror image resources.
In a first aspect, an embodiment of the present invention provides a cloud desktop management and control method, where the method includes:
acquiring an application request which is sent by a user side virtual machine and aims at a first application to use a cloud desktop; the first application is uniformly managed and controlled by a cloud desktop management platform;
creating a first application memory disk mirror image for the user side virtual machine based on the application request;
and mounting the first application memory disk mirror image to the user side virtual machine so that the user side virtual machine can access the first application by using a cloud desktop.
In this embodiment of the present invention, optionally, the creating a first application memory disk image for the user-side virtual machine includes:
dividing a memory from a system memory pool, and creating the memory into a memory disk mirror image;
and cloning the first application template to the memory disk mirror image to obtain a first application memory disk mirror image.
In this embodiment of the present invention, optionally, the cloning the first application template onto the memory disk image to obtain the first application memory disk image includes:
and cloning the first application template to the memory disk mirror image in a complete cloning or differential cloning manner to obtain the first application memory disk mirror image.
In this embodiment of the present invention, optionally, the method further includes:
creating a system side virtual machine based on the application request;
allocating an independent space from a shared storage library of a cloud desktop system, and creating a first independent disk; the first independent disk is a disk image which is not distributed to any user side virtual machine;
mounting the first independent disk to the system side virtual machine;
formatting the first independent disk into a new drive letter of the system side virtual machine;
installing a first application in the new drive letter;
and unloading the new drive from the system side virtual machine to form a second independent disk, wherein the second independent disk is a first application template provided with a first application.
In this embodiment of the present invention, optionally, the method further includes:
acquiring an unloading request which is sent by a user side virtual machine and aims at a first application to use a cloud desktop; the first application is uniformly controlled and controlled by a cloud desktop management platform;
determining an identification code corresponding to the user side virtual machine based on the unloading request;
and unloading the first application memory disk mirror image corresponding to the identification code.
In this embodiment of the present invention, optionally, before creating the first application memory disk image for the user-side virtual machine based on the application request, the method further includes:
determining an identification code corresponding to the user side virtual machine based on the application request;
searching whether a first application memory disk mirror image identification code corresponding to the identification code exists or not;
if yes, finding a first application memory disk image matched with the first application memory disk image identification code;
and if not, creating a first application memory disk mirror image for the user side virtual machine.
In a second aspect, an embodiment of the present invention provides a cloud desktop management and control device, which is applied to a cloud desktop management platform, where the cloud desktop management and control device includes:
the acquisition module is used for acquiring an application request which is sent by a user side virtual machine and aims at the first application to use the cloud desktop; the first application is uniformly controlled and controlled by a cloud desktop management platform;
the creating module is used for creating a first application memory disk mirror image for the user side virtual machine based on the application request;
and the management and control module is used for mounting the first application memory disk mirror image to the user side virtual machine so that the user side virtual machine can access the first application by using a cloud desktop.
In this embodiment of the present invention, optionally, the creating module is further configured to:
dividing a memory from a system memory pool, and creating the memory into a memory disk mirror image;
and cloning the first application template to the memory disk mirror image to obtain a first application memory disk mirror image.
In this embodiment of the present invention, optionally, the creating module is further configured to:
and cloning the first application template to the memory disk mirror image in a complete cloning or differential cloning mode to obtain the first application memory disk mirror image.
In this embodiment of the present invention, optionally, the apparatus further includes:
a template formulation module for:
creating a system side virtual machine based on the application request;
allocating an independent space from a shared storage library of a cloud desktop system, and creating a first independent disk; the first independent disk is a disk image which is not distributed to any user side virtual machine;
mounting the first independent disk to the system side virtual machine;
formatting the first independent disk into a new drive letter of the system side virtual machine;
installing a first application in the new drive letter;
and unloading the new drive from the system side virtual machine to form a second independent disk, wherein the second independent disk is a first application template provided with a first application.
In embodiments of the present invention, the first and second electrodes may, optionally,
the obtaining module is further configured to: acquiring an unloading request which is sent by a user side virtual machine and aims at a first application to use a cloud desktop; the first application is uniformly managed and controlled by a cloud desktop management platform;
the management and control module is further configured to: determining an identification code corresponding to the user side virtual machine based on the unloading request; and unloading the first application memory disk mirror image corresponding to the identification code.
In this embodiment of the present invention, optionally, the creating module is further configured to: before creating a first application memory disk image for the user-side virtual machine based on the application request,
determining an identification code corresponding to the user side virtual machine based on the application request;
searching whether a first application memory disk mirror image identification code corresponding to the identification code exists or not;
if so, finding a first application memory disk image matched with the first application memory disk image identification code;
and if not, creating a first application memory disk mirror image for the user side virtual machine.
In a third aspect, an embodiment of the present invention provides a cloud desktop management and control system, where the system includes:
the cloud desktop management platform is used for acquiring an application request which is sent by a user side virtual machine and aims at a first application to use a cloud desktop; the first application is uniformly managed and controlled by a cloud desktop management platform; creating a first application memory disk mirror image for the user side virtual machine based on the application request; mounting the first application memory disk mirror image to the user side virtual machine so that the user side virtual machine can access the first application by using a cloud desktop;
the cloud desktop client is used for sending an application request for the first application to use the cloud desktop to the cloud desktop management platform through the user side virtual machine; the first application is uniformly managed and controlled by a cloud desktop management platform; and accessing a first application provided by a cloud desktop client through the user side virtual machine.
In an embodiment of the present invention, optionally, the cloud desktop management platform includes the cloud desktop management and control device described above.
According to the technical scheme of the embodiment of the invention, an application request which is sent by a user side virtual machine and aims at a first application to use a cloud desktop is obtained; the first application is uniformly controlled and controlled by a cloud desktop management platform; creating a first application memory disk mirror image for the user side virtual machine based on the application request; mounting the first application memory disk mirror image to the user side virtual machine so that the user side virtual machine can access the first application by using a cloud desktop; therefore, the cloud desktop management platform uniformly manages and controls the first application as the heavy load, and the problem of disk image resource contention of the virtual machine can be solved.
Drawings
Fig. 1 is a schematic flow diagram of a cloud desktop management and control method according to an embodiment of the present invention;
fig. 2 is a schematic system architecture diagram of a cloud desktop system according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating a first application memory disk mirroring manufacturing and application process according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a cloud desktop management and control device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a cloud desktop management and control system according to an embodiment of the present invention.
Detailed Description
So that the manner in which the features and aspects of the embodiments of the present invention can be understood in detail, a more particular description of the embodiments of the invention, briefly summarized above, may be had by reference to the embodiments, some of which are illustrated in the appended drawings.
Fig. 1 is a schematic flow diagram of a cloud desktop management and control method according to an embodiment of the present invention, which is applied to a cloud desktop management platform, and as shown in fig. 1, the method includes:
step 101: acquiring an application request which is sent by a user side virtual machine and aims at a first application to use a cloud desktop; the first application is uniformly managed and controlled by a cloud desktop management platform.
The first application is an application with high requirements on cloud desktop performance.
Optionally, the cloud desktop capabilities include I/O capabilities.
For example, the first application is a heavily loaded soft application that requires system performance to meet certain criteria.
Of course, the first application can also be customized by an administrator according to actual conditions or customer requirements.
In some optional embodiments, after acquiring the application request for the first application to use the cloud desktop, the method further includes:
and judging whether the first application belongs to a preset application list, and if so, executing the step 102 and the step 103.
Here, the preset application list is recorded with an identifier or an identification code of an application that needs to be uniformly managed and controlled by the cloud desktop management platform.
That is to say, the applications recorded in the preset application list are prohibited to be installed by the user side alone, and need to be uniformly managed and controlled by the cloud desktop management platform.
For example, in daily work, a survey method can be used to count which software has high requirements on system performance, so as to form a list. On a cloud desktop management platform, the software is added into a blacklist, a user is prohibited from installing the software privately, and the management platform provides application images in a unified mode.
Step 102: and creating a first application memory disk mirror image for the user side virtual machine based on the application request.
The application request carries an identification code of the user side virtual machine, and the identification code has uniqueness and can be distinguished from other user side virtual machines.
Optionally, before creating the first application memory disk image for the user-side virtual machine based on the application request, the method further includes:
determining an identification code corresponding to the user side virtual machine based on the application request;
searching whether a first application memory disk mirror image identification code corresponding to the identification code exists or not;
if so, finding a first application memory disk image matched with the first application memory disk image identification code;
and if not, creating a first application memory disk mirror image for the user side virtual machine.
That is to say, whether a first application memory disk image created for the user side virtual machine already exists is searched first, and if yes, the first application memory disk image is not required to be created, and only the first application memory disk image corresponding to the user side virtual machine needs to be found; and if the virtual machine does not exist, a first application memory disk image needs to be created for the user side virtual machine.
In some optional embodiments, the creating a first application memory disk image for the user-side virtual machine includes:
dividing a memory from a system memory pool, and creating the memory into a memory disk mirror image;
and cloning the first application template to the memory disk mirror image to obtain a first application memory disk mirror image.
That is, a block of memory is partitioned from the memory pool of the server and virtualized as a disk image. Therefore, the disk mirror image belongs to the memory disk mirror image, and can be mounted to a virtual machine for direct read-write use.
Therefore, by using the memory disk mirror image, the read-write performance of the application software is equal to the I/O performance of the memory, and the performance of the application software is greatly improved. The application software which is originally required to be installed in the virtual machine and heavily loaded is not required to be installed at present, and a memory application software disk image is directly created for the virtual machine, namely the application software is stripped from a common disk image to which the virtual machine belongs and is independent to a single memory storage, so that the virtual machine disk image does not need to be used as an I/O speed limit, resources of storage equipment can be fully utilized, and serious resource conflict is avoided.
In some optional embodiments, the cloning the first application template onto the memory disk image to obtain the first application memory disk image includes:
and cloning the first application template to the memory disk mirror image in a complete cloning or differential cloning manner to obtain the first application memory disk mirror image.
Specifically, when a plurality of users need the first application, a memory disk image needs to be created for each user.
Wherein, the complete cloning means that a copy of the identical memory disk image is created.
The differential cloning refers to sharing a master disk, wherein the master disk is read only, each virtual machine is allocated with a memory leaf disk, the modification of a file is written into the leaf disk, and the master disk and the leaf disks form a disk chain to form a disk image which can be read and written by the virtual machine.
In this way, a memory disk image is created for the virtual machine in a fully cloned or differentially cloned manner, and the virtual machine can use the application software. Because the application software is actually stored in the memory, disk I/O is essentially memory/O, which has far better performance than physical disk I/O. If the differential cloning technology is adopted, a plurality of virtual machines share the same master disk, so that the disk space can be saved.
In some alternative embodiments, a method of making a first application template comprises:
creating a system side virtual machine based on the application request;
allocating an independent space from a shared storage library of a cloud desktop system, and creating a first independent disk; the first independent disk is a disk image which is not distributed to any user side virtual machine;
mounting the first independent disk to the system side virtual machine;
formatting the first independent disk into a new drive letter of the system side virtual machine;
installing a first application in the new drive letter;
and unloading the new drive from the system side virtual machine to form a second independent disk, wherein the second independent disk is a first application template provided with a first application.
In practical applications, each first application requires a first application template.
Thus, an independent physical disk image is mounted on a virtual machine, the specified application software is installed on the disk image, and then the disk image is uninstalled, so that the disk image becomes an independent application software template.
Step 103: and mounting the first application memory disk mirror image to the user side virtual machine so that the user side virtual machine can access the first application by using a cloud desktop.
Therefore, the first application memory disk mirror image is mounted to the user side virtual machine, the user side virtual machine can see the newly added disk, and application software can be directly used.
Therefore, the first application memory disk mirror image is mounted to the user side virtual machine, and by using the memory disk mirror image, the read-write performance of the application software is equal to the I/O performance of the memory, so that the performance of the application software is greatly improved. The application software which is originally required to be installed in the virtual machine and heavily loaded is not required to be installed at present, and a memory application software disk image is directly created for the virtual machine, namely the application software is stripped from a common disk image to which the virtual machine belongs and is independently stored in an independent memory, so that the disk image of the virtual machine is not required to be used as an I/O speed limit, the resources of storage equipment can be fully utilized, and serious resource conflict cannot be generated.
Further, the method further comprises:
acquiring an unloading request which is sent by a user side virtual machine and aims at a first application to use a cloud desktop; the first application is uniformly managed and controlled by a cloud desktop management platform;
determining an identification code corresponding to the user side virtual machine based on the unloading request;
and unloading the first application memory disk mirror image corresponding to the identification code.
That is, if the target virtual machine no longer needs to use some application software, the memory disk corresponding to the target virtual machine is dynamically unloaded from the cloud desktop system, and the memory resources return to the memory pool, thereby achieving the purpose of releasing the resources.
For example, the cloud desktop management platform forms a software list by investigating heavily loaded software used in the cloud desktop system; in the cloud desktop system, a user is prohibited from independently installing the software, and the cloud desktop system makes application software templates for the software; the user applies for the application software as required, the cloud desktop system makes the memory disk mirror image of the application software according to the application of the user, the memory disk mirror image is mounted to the virtual machine of the user, and when the memory disk mirror image is not needed, the resources are unloaded and released.
According to the technical scheme, an application request which is sent by a user side virtual machine and aims at a first application to use a cloud desktop is obtained; the first application is uniformly managed and controlled by a cloud desktop management platform; creating a first application memory disk mirror image for the user side virtual machine based on the application request; mounting the first application memory disk mirror image to the user side virtual machine so that the user side virtual machine can access the first application by using a cloud desktop; therefore, the cloud desktop management platform uniformly manages and controls the first application as the heavy load, the memory disk mirror image is provided by the host, and the problem of contention of disk mirror image resources of the virtual machine can be solved.
Fig. 2 is a schematic diagram of a system architecture of a cloud desktop system according to an embodiment of the present invention, and as shown in fig. 2, the system architecture includes a cloud desktop management platform, a host, a magnetic array, and a virtual machine.
The cloud desktop management platform is a management node of the cloud desktop system and is responsible for managing all physical resources, such as hosts, storage, networks and the like. The cloud desktop management platform is also responsible for managing all virtual machines, including the full life management cycle of the virtual machines, such as creation, allocation, starting, closing, destruction and the like of the virtual machines. The cloud desktop management platform collects, distributes and manages and controls the resources of the host through a host agent; and managing and controlling the virtual machine through the virtual machine agent. The cloud desktop management platform is also responsible for providing a user operation interface for an administrator to use.
Wherein the host is a host of the virtual machine. The host is usually configured with a high-performance CPU, a large-capacity memory, and various I/O devices as providers of virtualized resources. And the host agent runs on the host, communicates with the cloud desktop management platform, receives the instruction of the cloud desktop management platform and executes the specified operation. After the virtual machine is started, necessary resources, such as a CPU, a memory and I/O equipment, are allocated from the host machine to support the operation of the virtual machine. Disk mirroring for virtual machines is typically provided by storage devices such as magnetic arrays. In this scheme, the memory disk image is provided by the host. The host can be configured with a large capacity of memory to form a memory pool. It can provide two kinds of memory resources: one is a memory (MEM) configured for normal operation of the virtual machine, such as 4G, which supports reading and exchange of data; the other type is a memory Disk mirror (RAM Disk) provided by the scheme, which runs in a Disk mirror mode, and is internally provided with application software, wherein the application software has the response speed of a memory for reading and writing data.
The magnetic array is responsible for providing a large-capacity storage space, and the mirror image file of the virtual machine is stored on the magnetic array. The magnetic arrays can provide different performances with different storage media, such as SSD > SAS > SATA. In general, an SSD or SAS disk is used as an operating system disk of a virtual machine, and a SATA disk is used as a data disk. The data processing speed of a mechanical hard disk is much slower than that of a memory. There are two types of image files provided by magnetic arrays: one is a disk Image (Image) of a virtual machine, such as a C-disk, D-disk of Windows; the other type is an application software template disk Image (APP Image), which is an independently manufactured disk Image and is internally provided with some application software, and the APP Image is a copy source of the memory disk Image.
The virtual machine is a logical entity, hardware resources supported by normal operation of the virtual machine are provided with a CPU, a memory and I/O (input/output) equipment by a host, and a magnetic array provides a disk mirror image. The memory disk mirror image provided by the scheme is provided by the host.
According to the cloud desktop system, the disk mirror image is manufactured by using the memory, the application software template is loaded, the performance of the application software is accelerated, and meanwhile the problem of I/O resource contention of the disk mirror image of the virtual machine is solved.
Fig. 3 is a schematic diagram of a first application memory disk mirroring manufacturing and application process according to an embodiment of the present invention, where as shown in fig. 3, the process includes the following steps:
step 301, create a virtual machine.
In some optional embodiments, when it is necessary to make an application memory disk image for a certain type of application, a system administrator first creates a virtual machine. The virtual machine is used for making application software templates.
In some alternative embodiments, a clean operating system is required when creating the virtual machine. For example, the operating system may be a windows operating system or a linux operating system.
Specifically, the new installation can be performed by using the installation optical disc in an empty virtual machine, or a new virtual machine can be cloned by using the template.
Step 302, create a standalone disk.
Here, the independent disk refers to a disk image that is not allocated to any virtual machine.
In some alternative embodiments, a system administrator may allocate a separate space from a shared repository of a cloud desktop system, creating a separate disk.
Specifically, the disk format may be raw, qcow2, or the like.
Step 303, mount the independent disk to the virtual machine, and format the independent disk into a new drive letter of the virtual machine.
In some optional embodiments, the system administrator mounts the independent disk to the virtual machine, that is, adds parameters such as UUID, size, format, path, etc. of the disk to a disk list of a configuration file of the virtual machine, so that the user can see the disk from the operating system after the virtual machine is started.
The new disk is formatted by a formatting command provided by the operating system, and the operating system can read and write. The formatted new disk becomes a readable and writable data disk of the virtual machine.
In step 304, the first application is installed in the new letter.
That is, the first application is installed into the new disk.
In some optional embodiments, the system administrator copies the installation file of the first application to the data disk of the virtual machine for installation.
Specifically, for the windows operating system, an additional file filter driver needs to be installed, and the registry key of the first application is copied to a new disk.
In step 305, the new drive is unloaded to become a free-standing disk, which becomes the first application template.
In some optional embodiments, in the shutdown state, the new disk is deleted from the configuration file of the virtual machine.
Therefore, after the new disk is deleted from the configuration file of the virtual machine, the new disk is not associated with any virtual machine and becomes an independent disk again. Because the first application is installed, it becomes the first application template.
Step 306, the memory is segmented from the memory pool to make a memory disk.
In practical applications, a large memory pool is generally provided on a server for virtualization.
In some alternative embodiments, a block of memory may be allocated from the memory pool for use in manufacturing the memory disk. The disk format may be in raw format.
Step 307, cloning the first application template to the memory disk to form a first application memory disk.
In some alternative embodiments, the first application template is cloned to the memory disk by a disk copy-to-copy technique, such as using dd commands, to form the first application memory disk.
Because the application software template is a formatted independent disk, the memory disk copies the contents completely, and formatting is not needed.
Step 308, the target virtual machine mounts the first application memory disk.
In some optional embodiments, a dynamic mount technology is adopted in the cloud desktop system to mount a memory disk on the target virtual machine.
Specifically, in the startup state of the virtual machine, a disk list of the configuration file is modified, parameters such as the UUID, the size, the format, the path and the like of the disk are added, and simultaneously, in the virtualization layer, a virsh attach command is sent to dynamically mount the disk to the virtual machine, so that the disk can be seen from the operating system of the virtual machine.
Specifically, for the Windows virtual machine, the saved registry key needs to be written into the registry of the new virtual machine.
Therefore, an independent disk image is created, mounted to a virtual machine, and the application software is installed. And after the installation is finished, the machine is shut down, and the disk mirror image is unloaded, so that the application software template is manufactured.
Step 309, the first application is used.
In some optional embodiments, the virtual machine operating system may see a new application memory disk, and may use the application installed thereon.
In step 310, when the system is powered off, the virtual machine is actively unloaded, and the memory disk becomes an independent disk.
In some optional embodiments, if the virtual machine needs to be shut down, the virtual machine internal agent process captures a shutdown instruction and sends the shutdown instruction to the cloud desktop system, and the cloud desktop system unloads the memory disk from the virtual machine by using a dynamic unloading technology. And sending a virsh dettach command in the virtualization layer, and separating the memory disk from the virtual machine. The virtual machine may then be shut down.
It should be noted that the virtual machine is unloaded, the memory disk is reserved, and the next boot mount can be used continuously.
Step 311, when the computer is started, the virtual machine actively loads the memory disk.
In some optional embodiments, the virtual machine is started, after the system is started, the virtual machine internal agent process sends a starting instruction to the cloud desktop system, and the cloud desktop system mounts the memory disk to the virtual machine by using a dynamic mounting technology.
In step 312, the target virtual machine uninstalls the first application memory disk.
That is, if the target virtual machine no longer needs to use the first application, the memory disk may be dynamically unloaded from the target virtual machine from the cloud desktop system.
Step 313, destroy the memory disk, and release the resources.
That is, the memory disk no longer needed can be destroyed, the resource is released, and the memory disk returns to the memory pool.
In practical application, a user uses application software as required, specifically, the user applies for trying a certain application software to the cloud desktop management platform; the cloud desktop management platform is used for manufacturing an application software memory disk mirror image and mounting the application software memory disk mirror image to a user virtual machine; the user virtual machine can see the newly added disk of the cloud desktop management platform and can directly use the application software; a user applies for uninstalling application software to a cloud desktop management platform; and the cloud desktop management platform unloads the memory disk mirror image of the application software from the user virtual machine and releases resources.
The technical solution of this embodiment provides a solution for accelerating application performance by using a memory to manufacture an application template disk mirror image. Specifically, the heavily loaded application software is identified, a template mirror image is made by adopting a memory, the application software is loaded and distributed to required users, the application performance is improved, and the performance pressure of the storage server can be relieved.
Fig. 4 is a schematic structural diagram of a cloud desktop management and control device according to an embodiment of the present invention, and is applied to a cloud desktop management platform; as shown in fig. 4, the apparatus includes:
the acquisition module 10 is configured to acquire an application request, which is sent by a user-side virtual machine and is for a first application to use a cloud desktop; the first application is uniformly managed and controlled by a cloud desktop management platform;
a creating module 20, configured to create a first application memory disk image for the user-side virtual machine based on the application request;
the management and control module 30 is configured to mount the disk mirror image of the first application memory to the user-side virtual machine, so that the user-side virtual machine accesses the first application by using a cloud desktop.
In some optional embodiments, the creating module 20 is further configured to:
dividing a memory from a system memory pool, and creating the memory into a memory disk mirror image;
and cloning the first application template to the memory disk mirror image to obtain a first application memory disk mirror image.
In some optional embodiments, the creating module 20 is further configured to:
and cloning the first application template to the memory disk mirror image in a complete cloning or differential cloning manner to obtain the first application memory disk mirror image.
Optionally, the apparatus further comprises:
a template formulation module 40 for:
creating a system side virtual machine based on the application request;
allocating an independent space from a shared storage library of a cloud desktop system, and creating a first independent disk; the first independent disk is a disk image which is not distributed to any user side virtual machine;
mounting the first independent disk to the system side virtual machine;
formatting the first independent disk into a new drive letter of the system side virtual machine;
installing a first application in the new drive letter;
and unloading the new drive from the system side virtual machine to form a second independent disk, wherein the second independent disk is a first application template provided with a first application.
In some optional embodiments, the obtaining module 10 is further configured to: acquiring an unloading request which is sent by a user side virtual machine and aims at a first application to use a cloud desktop; the first application is uniformly controlled and controlled by a cloud desktop management platform; the management and control module 30 is further configured to: determining an identification code corresponding to the user side virtual machine based on the unloading request; and unloading the first application memory disk mirror image corresponding to the identification code.
In some optional embodiments, the creating module 20 is further configured to: before creating a first application memory disk image for the user-side virtual machine based on the application request,
determining an identification code corresponding to the user side virtual machine based on the application request;
searching whether a first application memory disk mirror image identification code corresponding to the identification code exists or not;
if so, finding a first application memory disk image matched with the first application memory disk image identification code;
and if not, creating a first application memory disk mirror image for the user side virtual machine.
In practical applications, the obtaining module 10, the creating module 20, the management and control module 30, and the template making module 40 may be implemented by a Central Processing Unit (CPU), a Microprocessor Unit (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like, which are located in the cloud desktop management and control device.
According to the cloud desktop management and control device, the disk image is manufactured by using the memory, the application software template is loaded, the performance of the application software can be accelerated, and meanwhile the problem of I/O resource contention of the disk image of the virtual machine is solved.
Fig. 5 is a schematic structural diagram of a cloud desktop management and control system according to an embodiment of the present invention, and as shown in fig. 5, the system includes:
the cloud desktop management platform is used for acquiring an application request which is sent by a user side virtual machine and aims at a first application to use a cloud desktop; the first application is uniformly managed and controlled by a cloud desktop management platform; creating a first application memory disk mirror image for the user side virtual machine based on the application request; mounting the first application memory disk mirror image to the user side virtual machine so that the user side virtual machine can access the first application by using a cloud desktop;
the cloud desktop client is used for sending an application request for the first application to use the cloud desktop to the cloud desktop management platform through the user side virtual machine; the first application is uniformly managed and controlled by a cloud desktop management platform; and accessing a first application provided by a cloud desktop client through the user side virtual machine.
Optionally, the cloud desktop management platform includes the cloud desktop management and control apparatus described above.
According to the cloud desktop management and control system, the disk mirror is manufactured by using the memory, the application software template is loaded, the performance of the application software can be accelerated, and meanwhile the problem of I/O resource contention of the disk mirror of the virtual machine is solved.
The present embodiment also provides a storage medium, where a computer program is stored, and after the computer program is executed by a processor, the cloud desktop management and control method according to any one or more of the foregoing methods can be implemented.
The computer storage medium may be of various types, and in this embodiment may preferably be a non-transitory storage medium.
It should be understood by those skilled in the art that the functions of each program in the storage medium of this embodiment can be understood by referring to the relevant description of the cloud desktop management and control method described in this embodiment.
The technical schemes described in the embodiments of the present invention can be combined arbitrarily without conflict.
In the embodiments provided in the present invention, it should be understood that the disclosed method and intelligent device may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one second processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.

Claims (10)

1. A cloud desktop management and control method is applied to a cloud desktop management platform, wherein the cloud desktop management platform is a management node of a cloud desktop system and is responsible for managing all physical resources and all virtual machines, and the method comprises the following steps:
acquiring an application request which is sent by a user side virtual machine and aims at a first application to use a cloud desktop; the first application is uniformly managed and controlled by a cloud desktop management platform;
creating a first application memory disk image for the user side virtual machine based on the application request so as to strip the first application from a common disk image to which the virtual machine belongs and independently store the first application in an independent memory;
and mounting the first application memory disk mirror image to the user side virtual machine so that the user side virtual machine can access the first application by using a cloud desktop.
2. The method of claim 1, wherein creating the first application memory disk image for the user-side virtual machine comprises:
dividing a memory from a system memory pool, and creating the memory into a memory disk mirror image;
and cloning the first application template to the memory disk mirror image to obtain a first application memory disk mirror image.
3. The method of claim 2, wherein cloning the first application template onto the memory disk image to obtain the first application memory disk image comprises:
and cloning the first application template to the memory disk mirror image in a complete cloning or differential cloning mode to obtain the first application memory disk mirror image.
4. The method of claim 2, further comprising:
creating a system side virtual machine based on the application request;
allocating an independent space from a shared storage library of a cloud desktop system, and creating a first independent disk; the first independent disk is a disk image which is not distributed to any user side virtual machine;
mounting the first independent disk to the system side virtual machine;
formatting the first independent disk into a new drive letter of the system side virtual machine;
installing a first application in the new drive letter;
and unloading the new drive letter from the system side virtual machine to become a second independent disk, wherein the second independent disk becomes a first application template provided with a first application.
5. The method of claim 1, further comprising:
acquiring an unloading request which is sent by a user side virtual machine and aims at a first application to use a cloud desktop; the first application is uniformly managed and controlled by a cloud desktop management platform;
determining an identification code corresponding to the user side virtual machine based on the unloading request;
and unloading the first application memory disk mirror image corresponding to the identification code.
6. The method according to any one of claims 1 to 5, wherein before creating the first application memory disk image for the user-side virtual machine based on the application request, the method further comprises:
determining an identification code corresponding to the user side virtual machine based on the application request;
searching whether a first application memory disk mirror image identification code corresponding to the identification code exists or not;
if so, finding a first application memory disk image matched with the first application memory disk image identification code;
and if not, creating a first application memory disk mirror image for the user side virtual machine.
7. The utility model provides a cloud desktop management and control device, is applied to cloud desktop management platform, its characterized in that, cloud desktop management platform is the management node of cloud desktop system, is responsible for managing all physical resources and all virtual machines, the device includes:
the acquisition module is used for acquiring an application request which is sent by a user side virtual machine and aims at a first application to use a cloud desktop; the first application is uniformly controlled and controlled by a cloud desktop management platform;
the creation module is used for creating a first application memory disk image for the user side virtual machine based on the application request so as to strip the first application from a common disk image to which the virtual machine belongs and independently store the first application in an independent memory;
and the management and control module is used for mounting the first application memory disk mirror image to the user side virtual machine so that the user side virtual machine can access the first application by using a cloud desktop.
8. The apparatus of claim 7, wherein the creation module is further configured to:
dividing a memory from a system memory pool, and creating the memory into a memory disk mirror image;
and cloning the first application template to the memory disk mirror image to obtain a first application memory disk mirror image.
9. The apparatus of claim 8, further comprising:
a template formulation module for:
creating a system side virtual machine based on the application request;
allocating an independent space from a shared storage library of a cloud desktop system, and creating a first independent disk; the first independent disk is a disk image which is not distributed to any user side virtual machine;
mounting the first independent disk to the system side virtual machine;
formatting the first independent disk into a new drive letter of the system side virtual machine;
installing a first application in the new drive letter;
and unloading the new drive from the system side virtual machine to form a second independent disk, wherein the second independent disk is a first application template provided with a first application.
10. A cloud desktop management and control system, the system comprising:
the cloud desktop management platform is a management node of a cloud desktop system, is responsible for managing all physical resources and all virtual machines, and is used for acquiring an application request which is sent by a user side virtual machine and aims at a first application to use a cloud desktop; the first application is uniformly managed and controlled by a cloud desktop management platform; creating a first application memory disk image for the user side virtual machine based on the application request so as to strip the first application from a common disk image to which the virtual machine belongs and independently store the first application in an independent memory; mounting the first application memory disk mirror image to the user side virtual machine so that the user side virtual machine can access the first application by using a cloud desktop;
the cloud desktop client is used for sending an application request for the first application to use the cloud desktop to the cloud desktop management platform through the user side virtual machine; the first application is uniformly managed and controlled by a cloud desktop management platform; and accessing a first application provided by a cloud desktop client through the user side virtual machine.
CN201810887624.8A 2018-08-06 2018-08-06 Cloud desktop management and control method, device and system Active CN110806911B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810887624.8A CN110806911B (en) 2018-08-06 2018-08-06 Cloud desktop management and control method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810887624.8A CN110806911B (en) 2018-08-06 2018-08-06 Cloud desktop management and control method, device and system

Publications (2)

Publication Number Publication Date
CN110806911A CN110806911A (en) 2020-02-18
CN110806911B true CN110806911B (en) 2022-09-13

Family

ID=69487257

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810887624.8A Active CN110806911B (en) 2018-08-06 2018-08-06 Cloud desktop management and control method, device and system

Country Status (1)

Country Link
CN (1) CN110806911B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113806007A (en) * 2020-06-15 2021-12-17 中兴通讯股份有限公司 Disk mounting method, disk mounting device, storage medium, and electronic device
EP4191401A4 (en) * 2020-08-11 2024-01-10 Huawei Cloud Computing Tech Co Ltd Application installation method based on cloud phone, and cloud platform and related device
CN112596757A (en) * 2020-11-26 2021-04-02 新华三大数据技术有限公司 Method and device for upgrading agent component of cloud desktop virtual machine and storage medium
CN112379963B (en) * 2020-11-30 2022-08-19 联想(北京)有限公司 Remote application window control method and device and computer equipment
CN112860493B (en) * 2021-02-03 2022-09-27 广东中兴新支点技术有限公司 Linux virtual machine cloud packing partition chain-breaking protection method, system and medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298472A (en) * 2014-10-12 2015-01-21 张维加 Layered computing virtualization implementing method and device
CN104331375B (en) * 2014-10-29 2018-08-07 中国建设银行股份有限公司 Shared virtual resource management method under shared virtualization resource pool environment and device
CN104461698A (en) * 2014-12-29 2015-03-25 成都致云科技有限公司 Dynamic virtual disk mounting method, virtual disk management device and distributed storage system
CN107959701A (en) * 2016-10-17 2018-04-24 中兴通讯股份有限公司 Data sharing method, cloud terminal, cloud desktop virtual machine and pass-through proxy server

Also Published As

Publication number Publication date
CN110806911A (en) 2020-02-18

Similar Documents

Publication Publication Date Title
CN110806911B (en) Cloud desktop management and control method, device and system
JP5496254B2 (en) Converting a machine to a virtual machine
US9448728B2 (en) Consistent unmapping of application data in presence of concurrent, unquiesced writers and readers
US8122212B2 (en) Method and apparatus for logical volume management for virtual machine environment
US8312471B2 (en) File system independent content aware cache
US8898116B2 (en) Partitioning management of system resources across multiple users
US8639876B2 (en) Extent allocation in thinly provisioned storage environment
US8966188B1 (en) RAM utilization in a virtual environment
US11693789B2 (en) System and method for mapping objects to regions
US20150378921A1 (en) Systems and methods for storage service automation
US9354907B1 (en) Optimized restore of virtual machine and virtual disk data
JP2017037665A (en) Techniques for surfacing host-side flash storage device capacity to virtual machines
US20140082275A1 (en) Server, host and method for reading base image through storage area network
WO2012155707A1 (en) Preventing data loss during reboot and logical storage resource management device
US8566541B2 (en) Storage system storing electronic modules applied to electronic objects common to several computers, and storage control method for the same
US10983819B2 (en) Dynamic provisioning and delivery of virtual applications
US20210117094A1 (en) Mirroring data onto disparate types of non-volatile data storage
AU2012200600B2 (en) "Converting machines to virtual machines"
KR20220169895A (en) Apparatus and method for managing container storage based on in-memory

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