A Cloud Desktop Multi-Connection Method Based on Virtual Device Grouping
By increasing the number of virtual devices in the cloud desktop and managing grouped, the problem of low resource utilization of cloud desktop is solved, and multiple users share CPU and memory resources is realized, and the utilization efficiency of cloud computing resources is improved.
Patent Information
- Application Number
- CN202311712676.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-13
- Publication Date
- 2025-07-29
- Estimated Expiration
- 2043-12-13
AI Technical Summary
In the prior art, cloud desktop resource utilization is low, especially in office use scenarios, it is difficult to maximize CPU and memory resources, resulting in waste of resources.
By increasing the number of virtual devices in the cloud desktop startup configuration file and assigning group GroupID to each virtual device during the virtual machine startup stage, group management of virtual devices is realized, and group legitimacy is verified when users log in, ensuring that different users use different virtual device groups to share the CPU and memory resources of the cloud desktop.
In the multi-user office scenario, the resource utilization rate of cloud desktop and the energy resource utilization rate of the overall cloud server are improved, and the utilization rate of cloud computing power is improved.
Smart Images

Figure CN118075257B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of IT and software development, and in particular to a cloud desktop multi-connection method based on virtual device grouping. Background Art
[0002] Currently, in the field of cloud computing, through virtualization technology, various physical entity resources of the original computer, such as CPU, memory, graphics card, disk, and various peripherals, can be abstracted through pure software or a combination of software and hardware, and the corresponding functions are virtually realized. The virtual devices with corresponding functions are combined and provided for users to use. In the view of users, there is not much difference between using a virtual computer and a physical entity computer.
[0003] Currently, the computer system implemented through virtualization technology is called a cloud desktop or a cloud computer, and the present invention collectively refers to it as a cloud desktop. Since the cloud desktop is virtualized from a server in the cloud, if a user wants to operate the cloud desktop locally, they must first connect to the server, and then they can see the screen of the cloud desktop through the local monitor, operate the cloud desktop through the mouse and keyboard, and use local peripherals such as cameras, USB flash drives, printers, and scanners through the cloud desktop.
[0004] In fact, in addition to the CPU and memory in the cloud desktop, virtual devices related to user input and output, such as graphics cards and peripherals, all need to have a real or logical channel connection with the local monitor and physical peripherals of the user. For example, when the user inserts a USB flash drive into the local USB interface, a corresponding USB flash drive inserted into the cloud computer will be seen in the cloud computer because we have established a unique correspondence between the local USB flash drive and the virtual USB flash drive in the cloud desktop. Operating the data in the USB flash drive in the cloud computer will be synchronized to our local physical USB flash drive in real time. Similar to a physical machine, in the prior art, usually a cloud desktop is equipped with rich peripheral interfaces, and users can conveniently insert the devices they need, so a group of virtual devices need to establish a one-to-one connection relationship with local physical devices.
[0005] The above prior art solutions have the following defects: Currently, only one user can log in and use a cloud desktop. Usually, the configuration of this cloud desktop can be a 4-core CPU and 8GB of memory, or an 8-core CPU and 16GB of memory. If the user only uses it for office work, in fact, the resource utilization rate is very low, and it is difficult to maximize the utilization of all CPU and memory resources, resulting in a waste of resources. Summary of the Invention
[0006] The purpose of the present invention is to provide a cloud desktop multi-connection method based on virtual device grouping that enables different users to use completely different virtual devices when connecting to the same cloud desktop and does not interfere with each other.
[0007] To achieve the above object, the present invention provides the following technical solutions:
[0008] A cloud desktop multi-connection method based on virtual device grouping, the method is as follows:
[0009] S1: Increase the number of virtual devices in the cloud desktop startup configuration file;
[0010] S2: In the virtual machine startup stage, the cloud desktop server renames the device to DeviceType.DeviceID.GroupID according to the type DeviceType, device serial number DeviceID, and group ID GroupID of each virtual device, and stores it;
[0011] S3: When the virtual device is hot-plugged, added, or reduced, the cloud desktop server updates the device information of the corresponding group according to the name of the device;
[0012] S4: When the user uses the cloud desktop client to connect to the cloud desktop, the cloud desktop server verifies the connection encryption certificate and the cloud desktop account password for the connection request;
[0013] S5: Multiple cloud desktop users, after logging in to the same cloud desktop, use different virtual device groups and share the CPU and memory resources of the cloud desktop.
[0014] Further, the specific steps of S1 are assumed that there are originally t types of virtual devices M1, M2,..., Mt in the cloud desktop, and each type of device has M1a, M2b,..., Mtq respectively, that is, a total of M1a + M2b +... + Mtq = M virtual devices.
[0015] Further, in S1, if this cloud desktop is allocated to N users for use, then the number of virtual devices is increased to M * N, which is equivalent to configuring N groups of the same virtual devices in the cloud desktop, and each cloud desktop can be connected by N users at the same time.
[0016] Further, in S1, M is the number of cloud desktop virtual devices configured for each user, which is determined by actual usage requirements.
[0017] Further, in S1, N is the number of users that each desktop can serve at the same time, which is determined by the cloud desktop specification and the resources used by each user. N can be dynamically adjusted, that is, if the average resource requirement of each user increases, then N is reduced, and fewer users log in to the same desktop.
[0018] Further, in S1, if the average resource occupancy of each user is very low, then N is increased to allow more users to log in to a desktop at the same time.
[0019] Further, after the devices are renamed in S2, devices in the same group are associated, and the device information is stored using a database.
[0020] Further, after the device information of the corresponding group is updated in S3, the database is updated.
[0021] Further, in S4, a legal validity verification of the GroupID is added. If it is illegal, the cloud desktop client is taken offline. If it is legal, the corresponding virtual device group is searched from the virtual device management relationship, such as from the database, and the connection channel corresponding to the virtual device group is sent to the cloud desktop client.
[0022] Further, when each cloud desktop user uses peripherals such as office suites, browses the web, uses cameras, USB drives, and printers for normal office work in S5, they do not affect each other.
[0023] In summary, the beneficial technical effects of the present invention are as follows:
[0024] 1. The present invention proposes the grouping concept of GroupID, incorporating different types of devices into the same group. During use, it is possible to search and manage according to the group information proposed by the present invention, and it is also possible to search according to the device type in the prior art, improving the problem in the prior art that it is impossible to distinguish a certain type of virtual device or only search by type. In the prior art, it is even more impossible to enable different users to use completely different virtual devices when connecting to the same cloud desktop and not interfere with each other;
[0025] 2. In the existing connection process of the present invention, the recognition of the group number GroupID for connection requests is newly added. The cloud desktop server can quickly find out which group of devices the user needs to connect according to the GroupID, and send the corresponding channel information to the user. Specifically, the cloud desktop management system will allocate cloud desktops to each user, and the allocation granularity is based on the desktop group number GroupID. When the user uses the cloud desktop client to connect, in addition to the existing desktop information, the GroupID will also be provided to the cloud desktop server. In addition to normal authentication of the desktop information, the cloud desktop server will also verify whether the GroupID is legal. If it is legal, it will send the channel information corresponding to the corresponding virtual device group to the cloud desktop client, and the cloud desktop client will connect to the corresponding virtual device. When different users log in at the same time, they will not interfere with each other. Although different users are in the same cloud desktop, since the pictures they see and the virtual devices they use are different, they will not know the existence of each other. However, since they share the same CPU and memory resources, the CPU and memory resource occupancy of the entire cloud desktop will remain at a relatively high level. Given that the user is using it for office work, just typing and browsing the web simply, there will be no high requirements for CPU and memory resources;
[0026] 3. The present invention solves the problem that in the simple office scenario of using cloud desktops, the CPU and memory occupancy rates of cloud desktops are low, resulting in low overall utilization rate of cloud server resources. On the premise of sharing the same cloud desktop CPU and memory resources, by configuring multiple sets of virtual devices in one cloud desktop, introducing the concept of groups to effectively manage these virtual devices, and adding the verification and recognition of groups during the connection process of the cloud desktop client, the effect of different cloud desktop clients connecting to different device groups in the same cloud desktop is achieved, solving the current situation in the prior art that only one user can use one cloud desktop. Finally, multiple users can use one cloud desktop, improving the resource utilization rate of the cloud desktop, correspondingly improving the resource utilization rate of the entire cloud server, maximizing the utilization rate of energy resources, and maximizing the utilization rate of cloud computing computing power. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 It is a schematic diagram of the overall structure of the prior art;
[0028] Figure 2 It is a schematic diagram of the overall structure of the present invention;
[0029] Figure 3 It is a schematic diagram of the cloud desktop configuration and connection process of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0030] The method of the present invention will be further described in detail below with reference to the accompanying drawings.
[0031] Embodiment 1
[0032] Refer to Figure 2 , a multi-connection method for cloud desktops based on virtual device grouping, the method is as follows:
[0033] S1: Increase the number of virtual devices in the cloud desktop startup configuration file. Assume that there are originally t types of virtual devices M1, M2,..., Mt in the cloud desktop, and each type of device has M1a, M2b,..., Mtq respectively, that is, a total of M1a + M2b +... + Mtq = M virtual devices. If this cloud desktop is assigned to N users for use, then increase the number of virtual devices to M * N, which is equivalent to configuring N groups of the same virtual devices in the cloud desktop. Each cloud desktop can be connected by N users simultaneously. M is the number of cloud desktop virtual devices configured for each user, which is determined by actual usage requirements. N is the number of users that each desktop can serve simultaneously, which is determined by the cloud desktop specifications and the resources used by each user. N can be dynamically adjusted. That is, if the average resource requirement of each user increases, then N is reduced, and fewer users log in to the same desktop. If the average resource occupancy of each user is very low, then N is increased to allow more users to log in to a desktop simultaneously;
[0034] S2: At the virtual machine startup stage, the cloud desktop server renames the device to DeviceType.DeviceID.GroupID according to the type DeviceType, device serial number DeviceID, and group ID GroupID of each virtual device, and stores it. After the device is renamed, establish a connection for devices of the same group, and store the device information using a database;
[0035] S3: When a virtual device is hot-plugged, added, or reduced, the cloud desktop server updates the device information of the corresponding group according to the device name, and updates the database after updating the device information of the corresponding group;
[0036] Refer to Figure 3 , S4: When a user uses the cloud desktop client to connect to the cloud desktop, the cloud desktop server verifies the connection encryption certificate and the cloud desktop account password for the connection request, and adds a verification of the legality of the GroupID. If it is illegal, the cloud desktop client is taken offline. If it is legal, find the corresponding virtual device group from the virtual device management relationship, such as from the database, and send the connection channel corresponding to the virtual device group to the cloud desktop client;
[0037] S5: After multiple cloud desktop users log in to the same cloud desktop, they use different virtual device groups and share the CPU and memory resources of the cloud desktop. When each cloud desktop user uses office suites, browses the web, uses peripherals such as cameras, USB drives, and printers for normal office work, they do not affect each other.
[0038] Example 2
[0039] The present invention is applicable to the simple office scenario of cloud desktops. When the CPU and memory occupancy rates of a single user for a cloud desktop are not high, in order to improve the resource utilization efficiency of the cloud desktop, the number of virtual devices is increased within a cloud desktop. There are M virtual devices in the original cloud desktop, including a total of t types of virtual devices such as M1, M2,..., Mt, and each type of device has M1a, M2b,..., Mtq respectively, that is, a total of M1a + M2b +... + Mtq = M virtual devices. Now, this cloud desktop is to be allocated for N users to use, so the number of virtual devices is increased to M * N, which is equivalent to configuring N groups of the same virtual devices within the cloud desktop. Each cloud desktop can be connected by N users simultaneously, and they respectively use different M virtual devices within the cloud desktop. The structural schematic diagram is as shown in Figure 2 the figure, where Y is the number of cloud desktops that can be created by the cloud server, which is determined by the specifications of the cloud server; M is the number of cloud desktop virtual devices configured for each user, which is determined by the actual usage requirements; N is the number of users that each desktop can serve simultaneously, which is determined by the cloud desktop specifications and the resources used by each user, and N can be dynamically adjusted. That is, if the average resource requirement of each user increases, then N is reduced, and fewer users log in to the same desktop. On the contrary, if the average resource occupancy of each user is very low, then N is increased to allow more users to log in to a desktop simultaneously;
[0040] When a cloud desktop user connects to a cloud desktop using a cloud desktop client, in addition to normal authentication of desktop information, the cloud desktop server adds a judgment on the GroupID to verify whether the GroupID is legal. If it is legal, the channel information corresponding to the corresponding virtual device group will be sent to the cloud desktop client, and the cloud desktop client connects to the corresponding virtual device. The cloud desktop configuration and connection process are as shown in Figure 3 the figure;
[0041] Specifically:
[0042] The number of virtual devices is increased in the cloud desktop startup configuration file. Assume that there are a total of t types of virtual devices such as M1, M2,..., Mt in the original cloud desktop, and each type of device has M1a, M2b,..., Mtq respectively, that is, a total of M1a + M2b +... + Mtq = M virtual devices. Assume M = 10, and these virtual devices can be used for peripherals such as cameras, USB flash drives, printers, and five-in-one devices. Now, each cloud desktop needs to serve N users. Assume N = 3. Then the cloud desktop now needs to configure 10 * 3 = 30 virtual devices, which is 3 sets of virtual device configurations the same as the original cloud desktop;
[0043] During the virtual machine startup phase, the cloud desktop server renames the devices to DeviceType.DeviceID.GroupID according to the type (DeviceType), device serial number (DeviceID), and group ID (GroupID) of each virtual device, and establishes connections for devices in the same group. The device information can be stored, for example but not limited to, using a database.
[0044] When a virtual device is hot-plugged, added, or removed, the cloud desktop server updates the device information of the corresponding group according to the device name, including but not limited to updating the database.
[0045] When a user connects to the cloud desktop using the cloud desktop client, the cloud desktop server validates the connection encryption certificate and the cloud desktop account password for the connection request, and additionally validates the legality of the GroupID. If it is illegal, the cloud desktop client will be disconnected. If it is legal, the corresponding virtual device group will be retrieved from the virtual device management relationship, such as from a database, and the connection channel corresponding to the virtual device group will be sent to the cloud desktop client.
[0046] After multiple cloud desktop users log in to the same cloud desktop and use different virtual device groups, they share the CPU and memory resources of the cloud desktop. When each cloud desktop user uses office suites, browses the web, uses peripherals such as cameras, USB drives, and printers for normal office work, they do not affect each other.
[0047] The technical key point of the present invention is a multi-connection method for cloud desktops based on virtual device grouping. Compared with the prior art where each cloud desktop can only be connected by one user, it improves the utilization rate of resources such as the CPU and memory of this cloud desktop in normal office scenarios, and overall improves the computing power utilization rate of the cloud computing server.
[0048] Specifically, the technical key point is that within the same cloud desktop, N groups of exactly the same virtual devices are configured. Each group of virtual devices has t types of virtual devices, namely M1, M2,..., Mt. Each type of device has M1a, M2b,..., Mtq respectively, that is, there are a total of M1a + M2b +... + Mtq = M virtual devices, which can meet the use of different types of devices such as cameras, USB drives, and printers. Therefore, a total of N * M virtual devices are equipped within one cloud desktop, which is beneficial for multiple users to use different virtual devices without interference from each other.
[0049] Specifically, the technical key point is that the cloud desktop server renames the N * M virtual devices, including but not limited to according to device type, device serial number, and group information, and establishes connections for these virtual devices according to groups, including but not limited to storing this information using a database to facilitate management operations such as querying, adding, and deleting.
[0050] The number of users to whom each cloud desktop is finally assigned is determined by the cloud desktop specifications and the resources used by each user. N can be adjusted dynamically. That is, if the average resource requirement per user increases, then N is decreased, and fewer users log in to the same desktop. Conversely, if the average resource occupancy per user is very low, then N is increased to allow more users to log in to a single desktop simultaneously;
[0051] The specific technical key point is that when connecting to the cloud desktop, in addition to the normal connection authentication process, a verification process for the group is added. Only after passing the verification will the cloud desktop client be allowed to connect, and the corresponding virtual device group will be informed to the cloud desktop client for connection and use.
[0052] It is important to note that the construction and arrangement of the present application shown in multiple different exemplary embodiments are merely illustrative. Although only a few embodiments are described in detail in this disclosure, those who refer to this disclosure should easily understand that many modifications are possible without substantially departing from the novel teachings and advantages of the subject matter described in this application (for example, the dimensions, scales, structures, shapes and proportions of various elements, as well as parameter values (such as temperature, pressure, etc.), installation arrangements, use of materials, color, orientation changes, etc.). For example, an element shown as integrally formed may be composed of multiple parts or elements, the position of the element may be inverted or otherwise changed, and the nature, number or position of discrete elements may be changed or altered. Therefore, all such modifications are intended to be included within the scope of the present invention. The order or sequence of any process or method steps may be changed or reordered according to alternative embodiments. In the claims, any "means-plus-function" clause is intended to cover the structure that performs the recited function herein, and not only structural equivalents but also equivalent structures. Other substitutions, modifications, changes and omissions may be made in the design, operating conditions and arrangement of the exemplary embodiments without departing from the scope of the present invention. Therefore, the present invention is not limited to a specific embodiment, but extends to various modifications that still fall within the scope of the appended claims.
[0053] In addition, in order to provide a concise description of the exemplary embodiments, not all features of the actual embodiments may be described (i.e., those features that are not relevant to the currently considered best mode of implementing the present invention or those features that are not relevant to the implementation of the present invention).
[0054] It should be understood that in the development of any actual implementation, such as in any engineering or design project, a large number of specific implementation decisions may be made. Such development efforts may be complex and time-consuming, but for those of ordinary skill in the art who benefit from this disclosure, without excessive experimentation, such development efforts will be a routine task of design, manufacturing and production
[0055] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit them. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be modified or equivalently replaced without departing from the spirit and scope of the technical solutions of the present invention, and they should all be covered by the scope of the claims of the present invention.
Claims
1. A cloud desktop multi-connection method based on virtual device grouping, characterized in that: The method is as follows: S1: Increase the number of virtual devices in the cloud desktop startup configuration file; The specific steps are as follows: Assume that there are a total of t types of virtual devices, namely M1, M2,..., Mt, in the original cloud desktop, and each type of device has M1a, M2b,..., Mtq respectively, that is, a total of M1a + M2b +... + Mtq = M virtual devices; If this cloud desktop is allocated to N users for use, then increase the number of virtual devices to M * N, which is equivalent to configuring N groups of the same virtual devices in the cloud desktop, and each cloud desktop can be connected to by N users simultaneously; S2: During the virtual machine startup phase, the cloud desktop server renames the device to DeviceType.DeviceID.GroupID according to the type DeviceType, device serial number DeviceID, and group ID GroupID of each virtual device, and stores it; S3: When a virtual device is hot-plugged, added, or reduced, the cloud desktop server updates the device information of the corresponding group according to the name of the device; S4: When a user uses the cloud desktop client to connect to the cloud desktop, the cloud desktop server verifies the connection encryption certificate and the cloud desktop account password for the connection request; Add a validation of the legality of GroupID. If it is illegal, log off the cloud desktop client. If it is legal, search for the corresponding virtual device group from the virtual device management relationship, such as from a database, and send the connection channel corresponding to the virtual device group to the cloud desktop client; S5: After multiple cloud desktop users log in to the same cloud desktop, they use different virtual device groups and share the CPU and memory resources of the cloud desktop.
2. The multi-connection method of a cloud desktop based on virtual device grouping according to claim 1, wherein: In S1, M is the number of cloud desktop virtual devices configured for each user, which is determined by the actual usage requirements.
3. A cloud desktop multi-connection method based on virtual device grouping according to claim 2, characterized in that: In S1, N is the number of users that each desktop can serve simultaneously, which is determined by the cloud desktop specifications and the resources used by each user. N can be dynamically adjusted, that is, if the average resource requirement of each user increases, then N is reduced, and fewer users log in to the same desktop.
4. A cloud desktop multi-connection method based on virtual device grouping according to claim 3, characterized in that: In S1, if the average resource occupancy of each user is very low, then N is increased to allow more users to log in to a desktop simultaneously.
5. A cloud desktop multi-connection method based on virtual device grouping according to claim 4, characterized in that: In S2, after the device is renamed, establish a connection between devices of the same group and store the device information using a database.
6. A cloud desktop multi-connection method based on virtual device grouping according to claim 5, characterized in that: In S3, update the database after updating the device information of the corresponding group.
7. A cloud desktop multi-connection method based on virtual device grouping according to claim 3, characterized in that: In S5, when each cloud desktop user uses office suites, browses the web, uses peripherals such as cameras, USB flash drives, and printers for normal office work, they do not affect each other.
Citation Information
Patent Citations
Method and device for processing cloud desktop resources
CN106354559A