Disclosure of Invention
In order to overcome the defects in the prior art, the embodiment of the invention provides an IDV-based desktop synchronization implementation method.
In a first aspect, an IDV-based desktop synchronization implementation method provided in an embodiment of the present invention is applicable to a client, and includes:
loading an IDV template file, and linking and cloning one or more virtual desktop files generated by the IDV template file;
setting the IDV template file and the virtual desktop file to be in a sharable state;
and calculating the IDV template file and the virtual desktop file by using a message digest MD5 algorithm, generating a first feature code and uploading the first feature code and the IDV template file to a server.
In a second aspect, another method for implementing desktop synchronization based on an intelligent desktop virtualization IDV provided in an embodiment of the present invention is applicable to a server, and includes:
starting a tracker server;
receiving a first feature code and an IDV template file sent by a client and analyzing the IDV template file to generate a corresponding virtual desktop file;
calculating the IDV template file and the virtual desktop file by using a message digest MD5 algorithm, generating a second feature code, judging whether the first feature code and the second feature code are consistent, and if so, saving the IDV template file;
associating each terminal needing to be synchronized with the IDV template file;
and establishing connection with each client through the tracker server and issuing corresponding IDV template files to each client by utilizing a P2P transmission protocol.
Preferably, the determining whether the first feature code and the second feature code are consistent includes:
and if not, sending an IDV template file resending instruction to the client.
The desktop synchronization implementation method based on IDV provided by the embodiment of the invention has the following beneficial effects:
(1) the P2P protocol completely fits the synchronous scene under the IDV framework, a plurality of nodes correspond to a central server, and a plurality of terminals are generally required to be synchronized simultaneously, so most of schemes select the mode to carry out synchronization, and the synchronization efficiency is improved;
(2) the client and the server are different and have certain operability, the mirror image and related software can be easily installed after the client software is installed, and the compatibility with all the peripherals is better, in addition, the installed display card driver can automatically complete self-adaptive installation at the client, and the processing is not needed after synchronization, so that the synchronization process is simplified;
(3) the server meets the use scene of the central server under the P2P protocol, and the template exists on the server, thereby facilitating the uniform management and safe backup of an administrator;
(4) by adopting the template file of the link clone, after the first synchronization of the desktops, the synchronization can be completed only by modifying the virtual desktops without synchronizing the template files, so that the synchronization time is greatly shortened, a user can create a plurality of virtual desktops under one template, different desktop requirements can be met by differential modification, and the expandability is high.
Detailed Description
The invention is described in detail below with reference to the figures and the embodiments.
Referring to fig. 1, the method for implementing IDV-based desktop synchronization according to the embodiment of the present invention includes the following steps:
s101, the client loads the IDV template file and links one or more virtual desktop files generated by cloning the IDV template file.
Taking the IDV template file in qcow2 format as an example, assuming that the size of the IDV template file is 30G, one or more virtual desktops under its template can be linked and cloned. Because the file stores the content different from the template file, the subsequent updating efficiency can be greatly improved.
S102, the client sets the IDV template file and the virtual desktop file to be in a sharable state.
S103, the client calculates the IDV template file and the virtual desktop file by using a message digest MD5 algorithm, generates a first feature code and uploads the first feature code and the IDV template file to the server.
And S104, the server starts a tracker server.
And S105, the server receives the first feature code and the IDV template file sent by the client and analyzes the IDV template file to generate a corresponding virtual desktop file.
S106, the server calculates the IDV template file and the virtual desktop file by using a message digest MD5 algorithm, generates a second feature code and judges whether the first feature code and the second feature code are consistent, and if so, the IDV template file is stored.
S107, the server associates each terminal needing to be synchronized with the IDV template file.
And S108, the server establishes connection with each client through the tracker server and issues corresponding IDV template files to each client by utilizing a P2P transmission protocol.
The Tracker server is a program running on the server and used for information interaction among clients needing synchronization during synchronization.
As a specific embodiment, the information interaction between the Tracker server and each client that needs to be synchronized is shown in fig. 2.
Optionally, the determining whether the first feature code and the second feature code are consistent includes:
and if not, sending an IDV template file resending instruction to the client.
The method for realizing IDV-based desktop synchronization comprises the steps of loading an IDV template file by a client, linking one or more virtual desktop files generated by cloning the IDV template file, setting the IDV template file and the virtual desktop files to be in a sharable state, calculating the IDV template file and the virtual desktop files by using a message digest MD5 algorithm, generating a first feature code, uploading the first feature code and the IDV template file to a server, starting a tracker server by the server, receiving the first feature code and the IDV template file sent by the client, analyzing the IDV template file, generating corresponding virtual desktop files, calculating the IDV template file and the virtual desktop files by using a message digest MD5 algorithm, generating a second feature code, judging whether the first feature code and the second feature code are consistent, storing the IDV template file if the first feature code and the second feature code are consistent, associating each client needing to be synchronized with the IDV template file, and storing the IDV template file, The connection is established between the tracker server and each client, and the corresponding IDV template file is issued to each client by utilizing a P2P transmission protocol, so that the synchronization process is simplified, and the synchronization efficiency and the expandability are improved.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.