Disclosure of Invention
The invention aims to provide a method and a device for roaming and sharing user cloud desktop data, which are used for realizing the roaming and sharing of user data under the non-AD condition.
According to a first aspect of the present invention, a method for roaming and sharing user cloud desktop data is provided, including:
in the process that a user logs in a cloud desktop, the cloud desktop establishes connection with a distributed data storage system (DFS) by using user information;
through the connection with the DFS, the cloud desktop loads the user personalized configuration acquired from the DFS so as to establish a user personalized desktop environment;
and after the user personalized configuration acquired from the DFS is loaded successfully, the cloud desktop acquires the user personalized data stored in the DFS for the user to use.
The method for roaming and sharing the user cloud desktop data further comprises the following steps: and synchronizing the user personalized data generated and updated in the process of using the cloud desktop by the user to the DFS in the process of using the cloud desktop by the user.
The method for roaming and sharing the user cloud desktop data further comprises the following steps: after loading of the user personalized configuration acquired from the DFS fails, the cloud desktop temporarily establishes a configuration file for starting an operating system locally; and the cloud desktop starts the operating system by using the established configuration file.
The method for roaming and sharing the user cloud desktop data further comprises the following steps: after the user performs the login operation of the cloud desktop, the cloud desktop uploads the user personalized configuration information including the increment to the DFS.
Preferably, a user personalized data mounting point and a user personalized configuration mounting point are arranged on the DFS.
Preferably, the user information includes path information of a user personalized configuration mount point of the DFS; the cloud desktop loading the user personalized configuration obtained from the DFS comprises: and the virtual desktop roaming component of the cloud desktop pulls the user personalized configuration from the user personalized configuration mounting point of the DFS according to the path information of the user personalized configuration mounting point of the DFS, and loads the pulled user personalized configuration.
Preferably, the user information includes path information of a user-customized data mount point of the DFS; the cloud desktop obtaining the user personalized data stored in the DFS comprises the following steps: and the virtual desktop roaming component of the cloud desktop acquires the user personalized data from the user personalized configuration mounting point of the DFS according to the path information of the user personalized data mounting point in the DFS.
According to a second aspect of the present invention, there is provided an apparatus for roaming and sharing cloud desktop data of a user, including:
the virtual desktop component is used for acquiring user information in the process that a user logs in the cloud desktop; loading the user personalized configuration acquired by the virtual desktop roaming component from the DFS, and establishing a user personalized desktop environment;
the virtual desktop roaming component is used for establishing connection with the distributed data storage system DFS by utilizing the user information; and acquiring the user personalized configuration from the DFS through the connection with the DFS, and acquiring the user personalized data stored in the DFS after the user personalized configuration is loaded successfully for the user to use.
Preferably, a user personalized data mounting point and a user personalized configuration mounting point are arranged on the DFS.
Preferably, the user information includes path information of a user personalized configuration mount point of the DFS; and the virtual desktop roaming component pulls the user personalized configuration from the user personalized configuration mounting point of the DFS according to the path information of the user personalized configuration mounting point, and loads the pulled user personalized configuration.
Preferably, the user information includes path information of a user-customized data mount point of the DFS; and the virtual desktop roaming component acquires the user personalized data from the user personalized configuration mounting point of the DFS according to the path information of the user personalized data mounting point.
Compared with the prior art, the method has the advantages that 1) the user data and the cloud desktop are unbound, the user accesses different cloud desktop environments to use the same user data, the dynamic distribution of the cloud desktop is realized, and the advantages of the cloud desktop are reflected; 2) the problem and the defect that data roaming depends on AD in the prior art are overcome, and the expenditure of an AD server and the link of authentication of the AD server are saved. 3) The pressure of a service network and a core network is relieved, and the data of the user is stored in a data center and is positioned in the user home environment. The user can access nearby, and less network resources are consumed to achieve roaming.
The present invention will be described in detail with reference to the accompanying drawings.
Detailed Description
Fig. 1A shows a method for roaming and sharing user cloud desktop data according to the present invention, as shown in fig. 1, the method includes: in the process that a user logs in a cloud desktop, the cloud desktop establishes connection with a distributed data storage system (DFS) (distributed Filesystem) by using user information; through the connection with the DFS, the cloud desktop loads the user personalized configuration acquired from the DFS so as to establish a user personalized desktop environment; and after the user personalized configuration acquired from the DFS is loaded successfully, the cloud desktop acquires the user personalized data stored in the DFS for the user to use.
By using the method, the user can roam to any cloud desktop to load the user personalized configuration and establish the user personalized desktop environment, so that the data roaming and sharing of the cloud desktop of the user are realized.
The above aspect of the present invention further includes: and in the process that the user uses the cloud desktop, the user personalized data generated and updated in the process that the user uses the cloud desktop is synchronized to the DFS, so that when the user roams to another cloud desktop, the user personalized data can be obtained from the DFS, and the user personalized data sharing is realized.
The above aspect of the present invention further includes: after loading of the user personalized configuration acquired from the DFS fails, the cloud desktop temporarily establishes a configuration file for starting an operating system locally; and the cloud desktop starts the operating system by using the established configuration file. After the operating system is started, the cloud desktop can be used, and user personalized data generated by a user using the cloud desktop is synchronized to the DFS; and when the user logs out of the cloud desktop, uploading the user personalized configuration created by the user on the cloud desktop to the DFS.
Generally, the reason why the user personalized configuration obtained from the DFS fails to be loaded is that no user personalized configuration is available in the DFS, for example, a user logs in a cloud desktop for the first time, and therefore a temporary configuration file needs to be established to start an operating system
The above aspect of the present invention further includes: after the user performs the login operation of the cloud desktop, the cloud desktop uploads the user personalized configuration information including the increment to the DFS. In one example, the cloud desktop can upload current user personalized configuration information to the DFS, and update the original user personalized configuration in the DFS.
The above aspect of the present invention further includes: after the user performs the login operation of the cloud desktop, the cloud desktop uploads the user personalized configuration information including the increment to the DFS.
One of the characteristics of the invention is that the DFS is provided with a user personalized data mounting point and a user personalized configuration mounting point. A virtual desktop roaming component of the cloud desktop acquires path information of a user personalized configuration mounting point of the DFS, which is obtained from user login information; and the virtual desktop roaming component pulls the user personalized configuration from the user personalized configuration mounting point of the DFS according to the path information of the user personalized configuration mounting point, and loads the pulled user personalized configuration. The virtual desktop roaming component of the cloud desktop acquires path information of a user personalized data mounting point of the DFS, which is obtained from user login information; and the virtual desktop roaming component acquires the user personalized data from the user personalized configuration mounting point of the DFS according to the path information of the user personalized data mounting point.
In a specific example of the present invention, the virtual desktop component of the cloud desktop obtains the user information from a user login process, where the user information includes path information of a user personalized configuration mount point and path information of a user personalized data mount point of the DFS. And the virtual desktop roaming component of the cloud desktop pulls the user personalized configuration from the user personalized configuration mounting point of the DFS according to the path information of the user personalized configuration mounting point transmitted by the virtual desktop component, and loads the pulled user personalized configuration. And the virtual desktop roaming component of the cloud desktop acquires the user personalized data from the user personalized configuration mounting point of the DFS according to the path information of the user personalized data mounting point of the DFS transmitted by the virtual desktop component.
The method of the invention belongs to a method for roaming user personalized configuration files under the non-AD condition. Firstly, an administrator opens an account for a user on a cloud desktop platform, allocates a desktop, allocates a mount point on a distributed data system DFS, and sets attributes such as a storage quota. Then, the cloud desktop client, the server and the virtual machine need to update corresponding components; then, a user logs in a cloud desktop access module to perform authentication to obtain system parameters and desktop information; secondly, the user logs in the virtual desktop, and the virtual machine updates related strategies according to the input user parameters; then, the virtual desktop roaming component loads the desktop environment according to the configuration stored in the DFS by the user; finally, the user logs out of the virtual machine, the virtual desktop roaming component uploads the personalized information data configured by the user to the DFS, and the configuration file stored at the far end is updated
Fig. 1B shows a non-AD data roaming overall system structure, which includes a client, a cloud desktop access controller, a plurality of cloud desktop servers, such as cloud desktop servers 1,2 … … n, a cloud desktop corresponding to each cloud desktop server, such as cloud desktop 1,2 … … n, and a distributed data storage system DFS; wherein each cloud desktop includes a virtual desktop component and a virtual desktop roaming component.
In the system shown in fig. 1B, other components exist in the existing cloud desktop data roaming system, except for the virtual desktop roaming component and the distributed data storage system DFS. The invention is characterized in that the method is realized by utilizing the virtual desktop roaming component and the DFS.
The components of the non-AD data roaming system of the present invention shown in FIG. 1B function as follows
And the cloud desktop access module is used for logging in the component by a user and acquiring information such as a user name, a user password and the like.
The cloud desktop client runs on the cloud terminal equipment, connection is established with the cloud desktop through the obtained connection parameters, and a user can interact with the cloud desktop through the client. The client informs the user personalized configuration and the personalized data mounting point to the virtual desktop component.
Cloud desktop server, cloud desktop virtualization platform server.
And the virtual desktop component is operated in the cloud desktop as a cloud desktop agent program and is responsible for information interaction with the cloud desktop client. And meanwhile, the system is responsible for updating the user personalized configuration mounting point and writing the user personalized data into the mounting point.
And the virtual desktop roaming component operates in the cloud desktop, updates the user personalized data mounting point and loads the user desktop environment.
And the distributed data storage system stores user data. And carrying out data interaction with the cloud desktop through the samba protocol.
Application data separation generally refers to separation of user data and a desktop operating system, and the distributed data storage system DFS is used as a remote storage system of the user data. The user data is divided into two parts, namely user personalized configuration and user personalized data. The user personalized configuration refers to loading a configuration file of a user desktop environment, and the user personalized data is a data file generated and updated in the process of using a desktop by a user. Therefore, two mount points are required to be allocated to the user in the distributed data storage system, namely, a user personalized configuration point and a user personalized data mount point.
The virtual desktop roaming component is responsible for acquiring the mounting address in the virtual machine from the virtual desktop component and updating the corresponding network path into the virtual machine policy. DAT loads desktop environment by pulling remote desktop configuration file NTUSER.DAT to establish samba connection to 445 port of distributed storage server host computer during user logging virtual machine; dat to DFS upon user log-off.
In the process that a user logs in an access module of a cloud desktop client, the access module interacts with a cloud desktop access controller to acquire a series of connection parameters of the cloud desktop, including a host address, a port number, a mounting point network address and the like. The cloud desktop access controller adopts a non-AD authentication mode; the cloud desktop client desktop component is connected with the cloud desktop host server through the parameters provided by the access module; the cloud desktop host server transmits a user mounting point address (which refers to a storage address distributed by the DFS for the user, and the storage address is shared, and the user can access the network resource by using a shared name.
In the process of logging in the virtual machine by a user, the virtual desktop roaming component firstly checks necessary conditions of logging in the user, a network environment and the like, establishes connection with a distributed data storage system DFS by taking a user password as a proof under the condition that the conditions are met, pulls user personalized configuration on the distributed data storage system, and loads a personalized desktop environment of the user. If the loading is successful, synchronizing user data stored in the distributed file system by the user to the local, and if the loading is failed, starting an operating system by a configuration file temporarily from the local; and in the process of using the desktop by the user, incrementally synchronizing the data updated by the user to the distributed storage system in real time. After the user performs the log-out operation, the virtual desktop roaming component uploads information increment such as personalized configuration of the user to the distributed storage system.
The invention discloses a device for roaming and sharing user cloud desktop data, which is a device for realizing the method and relates to a virtual desktop component, a virtual desktop roaming component and a distributed data storage system (DFS) in a system shown in figure 1B, and the specific description is as follows:
the virtual desktop component is used for acquiring user information in the process that a user logs in the cloud desktop; loading the user personalized configuration acquired by the virtual desktop roaming component from the DFS, and establishing a user personalized desktop environment;
the virtual desktop roaming component is used for establishing connection with the distributed data storage system DFS by utilizing the user information; through the connection with the DFS, obtaining the user personalized configuration from the DFS, and obtaining the user personalized data stored in the DFS for the user to use after the user personalized configuration is loaded successfully;
a distributed data storage system DFS for storing user personalized configurations (data) and user personalized data.
As shown in fig. 1B, a user-customized data mount point and a user-customized configuration mount point are provided on the DFS.
The user information acquired by the virtual desktop component in the process of logging in the cloud desktop by the user comprises path information of a user personalized configuration mount point of the DFS. And the virtual desktop roaming component pulls the user personalized configuration from the user personalized configuration mounting point of the DFS according to the path information of the user personalized configuration mounting point transmitted by the virtual desktop component, and loads the pulled user personalized configuration.
On the other hand, the user information acquired by the virtual desktop component in the process of logging in the cloud desktop by the user also comprises path information of the user personalized data mounting point of the DFS. And the virtual desktop roaming component acquires the user personalized data from the user personalized configuration mounting point of the DFS according to the path information of the user personalized data mounting point transmitted by the virtual desktop component.
Fig. 2 shows an overall flow of non-AD data roaming, including:
step S201, a user inputs a cloud desktop user password in a cloud desktop login component, and a cloud desktop client authenticates by a cloud desktop server by using the password input by the user;
step S202, the cloud desktop server returns virtual machine connection parameters of the user, wherein the virtual machine connection parameters comprise server ip, port number, virtual machine id, connection mode and the like, and the connection parameters are generated according to virtual machine configuration, user permission and the like set for the user by an administrator on a management platform;
step S203, the cloud desktop client calls up a display window, receives desktop stream data and establishes connection with the virtual machine;
step S204, a user inputs a virtual machine user password on a virtual machine lock screen interface, a virtual machine roaming component takes the current user and the password name to carry out DFS authentication, successfully downloads a user configuration file, loads the user configuration file and logs in a desktop;
in step S205, the user logs out of the cloud desktop (i.e., the user logs out of the cloud desktop), and the virtual machine desktop component uploads a user profile to the DFS.
Fig. 3 shows a non-AD data roaming authentication procedure, which includes:
step S301, a user inputs a cloud desktop user password in a cloud desktop login component and the authentication is removed by an authentication module;
step S302, the authentication is successful, and the login password token is returned;
step S303, the client login component acquires a virtual machine list of the current user by using a token cloud-removing desktop access controller;
step S304, the desktop access controller returns to the desktop list, and the user selects the cloud desktop in the list and clicks to log in;
step S305, the cloud desktop client requests the desktop access controller for selecting the connection parameters of the desktop (namely, the user roaming path);
step S306, the desktop access controller returns the desktop connection parameters including the user roaming path
In step S307, the client desktop component is invoked to receive the desktop stream. Transmitting the user roaming path to the virtual desktop component through the message, and writing the roaming path into a configuration file;
step S308, the virtual machine roaming component reads the roaming path, and initiates a Samba request to the DFS to acquire a user configuration file;
and step S309, comparing the user name and the password by the DFS, verifying the user name and the password, receiving the Samba request, downloading the user configuration file by the virtual machine roaming component, loading the operating system, and logging in the cloud desktop by the user.
FIG. 4 shows a process of a user logging into a virtual machine for a non-first time, which includes:
step S401, a user logs in a cloud desktop for a non-first time, inputs a virtual machine password and logs in a virtual machine (cloud desktop); the virtual machine carries out local verification, and the following operations are carried out after the verification is successful: a user logs in to create a user, inquires a new user identification ID, sends the user identification ID to the DFS, and downloads a roaming configuration file; and logging in an operating system.
Step S402, the virtual machine reports the user password to the DFS, and after the DFS passes the authentication, the virtual machine side downloads the user configuration file and loads the operating system;
specifically, the virtual machine synchronizes a user name and the current login user identification ID to the distributed storage system; and after the distributed storage system is successfully verified, allowing the user to log in locally, simultaneously pulling the personalized configuration stored at the remote end from the distributed storage, and loading the personalized desktop environment of the user.
Step S403, the virtual machine maps the shared path of the DFS to a local disk, and the user data newly created and updated by the user is synchronized to the DFS in real time;
step S404, the user logs out of the cloud desktop, and the virtual machine roaming component uploads the user personal data to the DFS.
FIG. 5 shows a process of a user logging in a virtual machine for the first time, which includes:
step S501, a user logs in a cloud desktop for the first time and loads an operating system according to a virtual machine template;
step S502, the cloud desktop system reports the user name and the password to the distributed storage system DFS, the DFS opens an account for the user after receiving the user name and the password, and a mount point is distributed
Specifically, a user locally opens an account for the user through a cloud desktop management platform, configures a cloud storage space, distributes a mount point for the user at a distributed storage server, and sets authority and quota limit of a shared file
Step S503, the virtual machine maps the shared path of the DFS to a local disk, and the user data newly built and updated by the user is synchronized to the DFS in real time; after receiving the data, the distributed storage server synchronously updates the file system, the password and the user identification ID; and after the verification is successful, the user logs in for the first time, the desktop environment is initialized, and the operating system is started, wherein the desktop environment of the user depends on the setting of the desktop template. In the starting process, the virtual desktop roaming component sets a mounting path of the user personalized data according to the connection parameters; meanwhile, the data file generated by the user by using the virtual machine is mapped to the corresponding network path.
Step S504, the user logs out of the cloud desktop, and the virtual machine roaming component uploads the user personality data to the DFS.
In conclusion, the invention makes progress that the cloud desktop application data depends on the AD short board, achieves the effect of separating the cloud desktop operating system and the application personal data, saves AD of the user and the configuration of the AD, and improves the experience and the use effect of the cloud desktop.
Although the present invention has been described in detail hereinabove, the present invention is not limited thereto, and various modifications can be made by those skilled in the art in light of the principle of the present invention. Thus, modifications made in accordance with the principles of the present invention should be understood to fall within the scope of the present invention.