WO2018001023A1 - 一种云终端登录虚拟桌面方法及装置 - Google Patents

一种云终端登录虚拟桌面方法及装置 Download PDF

Info

Publication number
WO2018001023A1
WO2018001023A1 PCT/CN2017/086313 CN2017086313W WO2018001023A1 WO 2018001023 A1 WO2018001023 A1 WO 2018001023A1 CN 2017086313 W CN2017086313 W CN 2017086313W WO 2018001023 A1 WO2018001023 A1 WO 2018001023A1
Authority
WO
WIPO (PCT)
Prior art keywords
connection information
server
virtual desktop
cloud terminal
vmc
Prior art date
Application number
PCT/CN2017/086313
Other languages
English (en)
French (fr)
Inventor
许少凡
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2018001023A1 publication Critical patent/WO2018001023A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and an apparatus for logging in a virtual desktop by a cloud terminal.
  • VMC virtual machine configuration management server
  • the cloud terminal cannot log in to the virtual desktop through the management server VMC, and the user cannot use the cloud terminal, which brings inconvenience to the user experience.
  • VMC management server
  • An embodiment of the present invention provides a method and an apparatus for logging in a virtual desktop to a cloud terminal, so as to at least solve the related art, the cloud terminal cannot log in to the virtual desktop through the management server VMC, and the user cannot use the cloud terminal, and the user experience band is used.
  • the problem is inconvenient.
  • a method for a cloud terminal to log in to a virtual desktop including: when the connection information for logging in to the virtual desktop is failed by the virtual machine configuration management server VMC, the foregoing is stored from the foregoing
  • the local storage space of the cloud terminal that connects the information and/or the backup server acquires the connection information; and logs the virtual desktop according to the connection information.
  • connection information from a local storage space of the cloud terminal that stores the connection information in advance, and/or a backup server that stores the connection information in advance, including: determining from the local Whether the connection information is obtained by the local storage space; if the determination result is yes, the connection information is not obtained from the backup server; if the determination result is no, the connection is obtained from the backup server information.
  • acquiring the connection information from the backup server that stores the connection information in advance includes: initiating a connection request for acquiring the connection information to the backup server; receiving the backup after the connection request passes the verification The connection information sent by the server.
  • connection information includes at least an address of the host server and a port of the host server
  • the login to the virtual desktop according to the connection information includes: initiating, according to the address of the host server, a port of the host server, to the host server a login request for logging in to the virtual desktop; after the login request is verified, logging in to the virtual desktop by using the host server.
  • the method may further include: when the cloud terminal acquires the connection information by using the VMC, and logs the virtual desktop through the host server according to the connection information, saving the connection information in the local storage space, And/or transmitting the connection information to the backup server to cause the backup server to save the connection information.
  • the method may further include: in the case that the obtaining the connection information from the local storage space and the backup server fails, returning to log in to the virtual desktop fails.
  • an apparatus for logging in a virtual desktop by a cloud terminal may include: an obtaining module configured to fail to acquire connection information for logging in to the virtual desktop through the virtual machine configuration management server VMC
  • the connection information is acquired from a local storage space and/or a backup server of the cloud terminal that stores the connection information in advance
  • the login module is configured to log in to the virtual desktop according to the connection information.
  • the obtaining module may include: a determining unit, configured to determine whether the connection information is acquired from the local storage space; and the first acquiring unit is configured to: if the determination result is yes, not from the The backup server acquires the connection information; and the second obtaining unit is configured to acquire the connection information from the backup server if the determination result is no.
  • connection information includes at least: an address of the host server, a host server
  • the login module may include: an initiating unit, configured to initiate a login request for logging in to the virtual desktop to the host server according to an address of the host server, a port of the host server; and a login unit, configured to be After the login request is verified, the login to the virtual desktop is performed by the host server.
  • the device may further include a saving module, where the saving module may include: a saving unit, configured to acquire connection information by the VMC through the VMC, and log in to the virtual desktop by using the host server according to the connection information. And saving the connection information in the local storage space; and/or, the sending unit is configured to send the connection information to the backup server, so that the backup server saves the connection information.
  • the saving module may include: a saving unit, configured to acquire connection information by the VMC through the VMC, and log in to the virtual desktop by using the host server according to the connection information. And saving the connection information in the local storage space; and/or, the sending unit is configured to send the connection information to the backup server, so that the backup server saves the connection information.
  • a computer storage medium is further provided, and the computer storage medium may be configured with an execution instruction, where the execution instruction is used to implement the cloud terminal login virtual desktop method in the foregoing embodiment.
  • the cloud terminal fails to acquire the connection information for logging in the virtual desktop through the VMC, the connection information is obtained from the local storage space and/or the backup server storing the connection information in advance; and according to the connection information Log in to the virtual desktop and use the technical solution to solve the problem in the related technologies.
  • the cloud terminal cannot log in to the virtual desktop through the management server VMC, and the user cannot use the cloud terminal, which brings inconvenience to the user experience and realizes the cloud.
  • the terminal can log in to the virtual desktop without using the VMC, which improves the way the cloud terminal logs in to the virtual desktop and brings a good user experience.
  • FIG. 1 is a schematic diagram of a cloud terminal network connection in the related art
  • FIG. 2 is a flowchart 1 of a method for logging in a virtual desktop by a cloud terminal according to an embodiment of the present invention
  • FIG. 3 is a flowchart of another method for logging in a virtual desktop by a cloud terminal according to an embodiment of the present invention. two;
  • FIG. 4 is a structural block diagram of an apparatus for logging in a virtual desktop by a cloud terminal according to an embodiment of the present invention
  • FIG. 5 is a schematic diagram of a cloud terminal network connection according to a preferred embodiment of the present invention.
  • FIG. 6 is a flowchart of a method for a cloud terminal to log in to a virtual desktop according to a preferred embodiment of the present invention.
  • FIG. 1 is a schematic diagram of a cloud terminal network connection in the related art.
  • the VMC management server mainly functions as a bridge.
  • the VMC is mainly used to store and manage all user information and virtual desktop information bound by the user.
  • the host server mainly carries the running environment of the virtual desktop.
  • One host server can have multiple virtual desktops, and one VMC server can manage multiple hosts.
  • Step 1 The user sets the VMC management server address on the cloud terminal interface, fills in the username and password, clicks the login button, and the terminal initiates an active request to the VMC management server to connect to the VMC management server.
  • Step 2 Establish a connection with the VMC, verify that the username and password are passed, the VMC management server allocates the corresponding desktop resource to the user, presents the connectable virtual desktop in the user's resource pool, and returns the IP/port of the desktop. /Connection information (including username and password, check code, etc.).
  • Step 3 The user initiates the selected virtual desktop, and the terminal initiates a connection request to the host server according to the IP and port returned by the VMC management server, and sends the username/password/other connection information.
  • Step 4 The host server verifies the request, and if the verification passes, the desktop is established with the terminal. The session is connected and the terminal successfully starts the virtual desktop. If not, the corresponding error code is returned.
  • the disadvantage of the traditional network layout login method is that it relies too much on the bridging effect between the cloud terminal and the host server by the VMC management server, so that the VMC management server becomes the bottleneck of the cloud terminal connecting the virtual machine. If the cloud terminal cannot connect to the VMC, As a result, the virtual desktop cannot be logged in through the VMC, and the user cannot use the cloud terminal, which brings inconvenience to the user experience.
  • the VMC management server becomes the bottleneck of the cloud terminal connecting the virtual machine.
  • FIG. 2 is a flowchart of a method for a cloud terminal to log in to a virtual desktop according to an embodiment of the present invention. As shown in FIG. 1 , the process may include the following steps:
  • Step S200 If the connection information for logging in to the virtual desktop fails to be obtained by the virtual machine configuration management server VMC, the connection is obtained from the local storage space of the cloud terminal and/or the backup server that stores the connection information in advance. information;
  • the VMC management server can return the relevant desktop connection information of the terminal, and can also control the host server to allocate users and virtual desktops.
  • the VMC management server mainly serves as a bridge.
  • the cloud terminal needs to obtain the connection information of the connected virtual desktop through the VMC, and if the connection information cannot be obtained, the connection information can be obtained from other devices (servers) or storage spaces storing the related connection information.
  • the cloud terminal can select one of the devices or storage space, or can initiate a request to multiple parties at the same time to request connection information.
  • connection information of the corresponding virtual desktop you can bypass the VMC management server and establish a connection directly with the host server.
  • the verification of the host server is independent of the verification of the VMC server, and the two do not have dependency and linkage.
  • the host server starts the corresponding virtual desktop according to the connection information (mainly by the port number and the encrypted startup parameter).
  • Step S202 logging in the virtual desktop according to the connection information.
  • the cloud terminal obtains the connection information of the target virtual desktop, and the connection can be established through the host server.
  • the host server starts the corresponding virtual desktop according to the request of the cloud terminal. And make the cloud terminal log in to the virtual desktop.
  • the cloud terminal when the cloud terminal fails to acquire the connection information for logging in the virtual desktop through the VMC, the cloud terminal acquires the connection information from the local storage space and/or the backup server that stores the connection information in advance; and logs in according to the connection information.
  • the technical solution is adopted to solve the problem that the cloud terminal cannot log in to the virtual desktop through the management server VMC, and the user cannot use the cloud terminal, which brings inconvenience to the user experience and realizes the cloud terminal. You can log in to the virtual desktop without using the VMC. This improves the way the cloud terminal logs in to the virtual desktop and brings a good user experience.
  • FIG. 3 is a flowchart of another method for logging in to a virtual desktop by a cloud terminal according to an embodiment of the present invention. The process can include the following steps:
  • Step S300 if the connection information for logging in to the virtual desktop fails to be obtained by the VMC, determining whether the connection information is acquired from the local storage space;
  • Cloud terminal local storage space such as storage medium such as local storage area, hard disk or flash memory.
  • a backup server can also be connected to the cloud terminal, and the backup server stores connection information for logging in to the virtual desktop.
  • the backup server can adopt the same authentication and encryption mode of the VMC management server, and is used to provide cloud terminal users with connection information for login purposes.
  • Step S302 in the case of YES, not acquiring the connection information from the backup server;
  • Step S304 in the case of NO, acquiring the connection information from the backup server
  • the cloud terminal cannot obtain the connection information through the VMC, and logs in to the virtual desktop through the host server according to the connection information.
  • the cloud terminal can initiate another path to obtain connection information. Priority is obtained from the local storage space of the cloud terminal. If the information cannot be obtained, the connection information is obtained from the backup server that establishes the connection.
  • the terminal when the terminal is re-flashed, or the local database is damaged, or the user replaces the terminal login, the terminal cannot obtain the login information of the corresponding user in the local database, and then the connection server is switched to the backup server. Get the corresponding connection information to connect to the main The corresponding virtual desktop under the machine.
  • Step S306 logging in to the virtual desktop according to the connection information.
  • the connection information in the local database is attempted, and the corresponding virtual desktop under the host is connected according to the connection information.
  • the backup server only takes the emergency login process when the management server cannot respond, and preferentially uses the local backup login information. Its frequency of use is low, and the throughput of data is not required. Therefore, the hardware configuration of the backup server is not high, and a PC with a low hardware configuration can be used, or even the cloud terminal itself can be used instead. Therefore, in the whole scheme, the hardware part only needs to add a PC with a relatively low-end configuration as a server, which is low in price and controllable in cost.
  • obtaining the connection information from the backup server that stores the connection information in advance comprises: initiating a connection request for acquiring the connection information to the backup server; and verifying the connection request After receiving the connection information sent by the backup server.
  • the username and password verification of the backup server can be verified in the same manner as the VMC management server. This verification is done on the backup server.
  • the backup server can be seen as a clone of the user management module on the VMC management server, which is only used to store the relevant connection information of the user. After the backup server verifies that the terminal request is passed, it returns the relevant connection information of the desktop requested by the terminal.
  • the connection information mainly includes the address, port and related connection parameters of the host server.
  • the cloud terminal obtains the connection information, it can initiate a connection request to the host server and log in to the virtual desktop.
  • connection information includes at least: an address of the host server, a port of the host server, and other related connection parameters; and logging in the virtual desktop according to the connection information includes: according to an address of the host server, The port of the host server initiates a login request for logging in to the virtual desktop to the host server; after the login request is verified, the host server logs in to the virtual desktop.
  • the connection information mainly includes the address, port and related connection parameters of the host server. N desktops are hung under the host server, and different desktops have different port numbers. Different terminal connections The desktop distinguishes requests by connecting the same IP address (host server address), different port numbers, and connection parameters. Related connection parameters mainly include: user name, password, domain value (used to identify which domain user group the user belongs to), k value (MD5 generated authentication value), virtual desktop IP (for redirecting device), desktop Types of. The username and the password are used for authentication; the domain value is whether the authentication user belongs to the user group allocated by the host; the K value, which is a check value, is also used for authentication.
  • the cloud terminal obtains the connection information of the corresponding virtual desktop, and can bypass the VMC management server and directly establish a connection with the host server.
  • the backup server After the backup server verifies that the terminal request is passed, it returns the information about the desktop requested by the terminal, mainly the address, port, and related connection parameters of the host server. Or the cloud terminal obtains relevant connection information from the local storage space. When the cloud terminal obtains the address, port and related connection parameters of the host server, it can initiate a connection request to the host server. After the host server verifies the request of the terminal, it starts to establish a connection with the terminal, thereby logging in to the virtual desktop.
  • the method further includes: when the cloud terminal obtains the connection information by using the VMC, and logs the virtual desktop through the host server according to the connection information, saving the connection information in the local The storage space, and/or, the connection information is sent to the backup server to cause the backup server to save the connection information.
  • the cloud terminal has a local storage space, and the backup server stores connection information for logging in the virtual desktop, and the connection information can be manually set or input manually.
  • the cloud terminal obtains the connection information through the VMC management server, and saves the connection information to the local storage; or sends a copy to the backup server, and the backup server receives the message and saves the connection information for
  • the cloud terminal requests to obtain connection information. For example, after obtaining the host address and port number of the corresponding desktop, the cloud terminal uploads the login information such as the corresponding user name, desktop name, host address, port number, and startup parameters to the backup server. At the same time, copy an encrypted backup to the local database.
  • the method further includes: in the case that the obtaining the connection information from the local storage space and the backup server fails, returning to log in to the virtual desktop fails. Failed to obtain connection information through VMC in cloud terminal, and cannot be backed up from local storage space. If the server obtains the virtual desktop through the host server, the cloud terminal cannot log in to the virtual desktop and the user fails to log in.
  • a device for logging in to a virtual desktop is provided, and the device is used to implement the foregoing embodiments and preferred embodiments, and details are not described herein.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 4 is a structural block diagram of an apparatus for logging in a virtual desktop by a cloud terminal according to an embodiment of the present invention. As shown in FIG. 4, the apparatus may include an obtaining module 40 and an obtaining module 42. The device will be described below.
  • the obtaining module 40 is configured to obtain, when the connection information for logging in the virtual desktop is failed by the virtual machine configuration management server VMC, from the local storage space and/or the backup server of the cloud terminal that stores the connection information in advance The connection information;
  • the login module 42 is configured to log in to the virtual desktop according to the connection information. .
  • the cloud terminal when the cloud terminal fails to acquire the connection information for logging in the virtual desktop through the VMC, the cloud terminal acquires the connection information from the local storage space and/or the backup server that stores the connection information in advance; and according to the connection information Log in to the virtual desktop and use the technical solution to solve the problem in the related technologies.
  • the cloud terminal cannot log in to the virtual desktop through the management server VMC, and the user cannot use the cloud terminal, which brings inconvenience to the user experience and realizes the cloud.
  • the terminal can log in to the virtual desktop without using the VMC, which improves the way the cloud terminal logs in to the virtual desktop and brings a good user experience.
  • the obtaining module 40 includes: a determining unit, configured to determine whether the connection information is acquired from the local storage space; and the first acquiring unit is configured to, if the determination result is yes, The connection information is not obtained from the backup server; the second obtaining unit is configured to acquire the connection information from the backup server if the determination result is negative.
  • Cloud terminal local storage space such as local storage area, hard disk or flash memory storage medium.
  • a backup server can also be connected to the cloud terminal, and the backup server stores connection information for logging in to the virtual desktop.
  • the backup server can adopt the same authentication and encryption mode of the VMC management server, and is used to provide cloud terminal users with connection information for login purposes.
  • the cloud terminal cannot obtain the connection information through the VMC, and logs in to the virtual desktop through the host server according to the connection information.
  • the cloud terminal can initiate another path to obtain connection information. Priority is obtained from the local storage space of the cloud terminal. If the information cannot be obtained, the connection information is obtained from the backup server that establishes the connection. Or, when the terminal is re-flashed, or the local database is damaged, or the user replaces the terminal login, the terminal cannot obtain the login information of the corresponding user in the local database, and then the connection server is switched to the backup server. The corresponding connection information is obtained to connect to the corresponding virtual desktop under the host.
  • the login module 42 includes: an initiating unit, configured to initiate a login request for logging in to the virtual desktop to the host server according to an address of the host server, a port of the host server; And being configured to log in to the virtual desktop by the host server after the login request passes the verification.
  • the device further includes a saving module, and the saving module includes: a saving unit, configured to: when the cloud terminal acquires connection information through the VMC, and logs in the virtual desktop through the host server according to the connection information, the connection is Information is stored in the local storage space; and/or a sending unit is configured to send the connection information to the backup server to cause the backup server to save the connection information.
  • a saving unit configured to: when the cloud terminal acquires connection information through the VMC, and logs in the virtual desktop through the host server according to the connection information, the connection is Information is stored in the local storage space
  • a sending unit is configured to send the connection information to the backup server to cause the backup server to save the connection information.
  • the cloud terminal has a local storage space, and the backup server stores connection information for logging in the virtual desktop, and the connection information can be manually set or input manually.
  • the cloud terminal obtains the connection information through the VMC management server, and saves the connection information to the local storage; or sends a copy to the backup server, and the backup server receives the message and saves the connection information for
  • the cloud terminal requests to obtain connection information. For example, after obtaining the host address and port number of the corresponding desktop, the cloud terminal uploads the login information such as the corresponding user name, desktop name, host address, port number, and startup parameters to the backup server. At the same time, copy another encrypted backup to this In the local database.
  • obtaining the connection information from the backup server that stores the connection information in advance comprises: initiating a connection request for acquiring the connection information to the backup server; and verifying the connection request After receiving the connection information sent by the backup server.
  • the username and password verification of the backup server can be verified in the same manner as the VMC management server. This verification is done on the backup server.
  • the backup server can be seen as a clone of the user management module on the VMC management server, which is only used to store the relevant connection information of the user. After the backup server verifies that the terminal request is passed, it returns the relevant connection information of the desktop requested by the terminal.
  • the connection information mainly includes the address, port and related connection parameters of the host server.
  • the cloud terminal obtains the connection information, it can initiate a connection request to the host server and log in to the virtual desktop.
  • connection information includes at least: an address of the host server, a port of the host server, and other related connection parameters; and logging in the virtual desktop according to the connection information includes: according to an address of the host server, The port of the host server initiates a login request for logging in to the virtual desktop to the host server; after the login request is verified, the host server logs in to the virtual desktop.
  • the connection information mainly includes the address, port and related connection parameters of the host server. N desktops are hung under the host server, and different desktops have different port numbers. The terminal connects to different desktops by distinguishing between the same IP address (host server address), different port numbers, and connection parameters.
  • Related connection parameters mainly include: user name, password, domain value (used to identify which domain user group the user belongs to), k value (MD5 generated authentication value), virtual desktop IP (for redirecting device), desktop Types of.
  • the username and the password are used for authentication; the domain value is whether the authentication user belongs to the user group allocated by the host; the K value, which is a check value, is also used for authentication.
  • the cloud terminal obtains the connection information of the corresponding virtual desktop, and can bypass the VMC management server and directly establish a connection with the host server.
  • the backup server After the backup server verifies that the terminal request has passed, it will return to the desktop of the requested desktop.
  • the information is mainly the address, port and related connection parameters of the host server.
  • the cloud terminal obtains relevant connection information from the local storage space.
  • the cloud terminal can initiate a connection request to the host server.
  • the host server After the host server verifies the request of the terminal, it starts to establish a connection with the terminal, thereby logging in to the virtual desktop.
  • the apparatus may further include: a returning module, configured to return to log in to the virtual desktop if the obtaining of the connection information fails from the local storage space and the backup server.
  • a returning module configured to return to log in to the virtual desktop if the obtaining of the connection information fails from the local storage space and the backup server.
  • FIG. 5 is a schematic diagram of a cloud terminal network connection according to a preferred embodiment of the present invention.
  • a virtual machine configuration management server VMC In the traditional cloud terminal network topology: a virtual machine configuration management server VMC, a host server 1-N, a virtual desktop 1-N connected to each host server, and a cloud terminal 56 connected to the VMC.
  • the local database 20 may be further configured to store the connection information of the cloud terminal to log in to the virtual desktop, may be connected to the cloud terminal 56, or may be a local storage space inside the cloud terminal.
  • the backup server 52 is connected to the cloud terminal 52 and configured to store connection information of the cloud terminal to log in to the virtual desktop.
  • the above connection information includes at least: the address, port, and related connection parameters of the host server.
  • the connection parameters mainly include: user name, password, domain value (used to identify which domain user group the user belongs to), k value (MD5 generated authentication value), virtual desktop IP (for redirecting device), desktop type, etc. .
  • the cloud terminal 56 can take the host server's address, port and related connection parameters to initiate a connection request to the host server. After the host server verifies the request of the terminal, it starts to establish a connection with the terminal, thereby logging in to the virtual desktop.
  • a network topology of a cloud terminal logging in to a virtual desktop, and a login method thereof Depending on the bridging role between the cloud terminal and the host server of the VMC management server, the VMC management server becomes a bottleneck for the cloud terminal to connect to the virtual machine, and specifically has the following defects: (1) a certain time When many terminals are connected to the VMC management server at the same time, it is limited by the hardware processing performance bottleneck of the VMC server itself, which may cause some concurrent requests at the same time to fail to respond. Therefore, some terminals can successfully log in, and another part of the terminal connects to the VMC server and times out.
  • a preferred embodiment of the present invention provides a method for a cloud terminal to log in to a virtual desktop, and the method may include the following steps:
  • Step 1 When the terminal is connected to the VMC management server and there is no connection failure and the login timeout occurs, the login process is consistent with the normal login process.
  • Step 2 In the case that the cloud terminal normally logs in to the virtual desktop, the VMC returns the desktop connection information corresponding to the user.
  • the cloud terminal can encrypt and backup the connection information (including the user name, password, host address, port, startup parameters, etc.) to the database 50 of the local storage area, and if there is a backup, update the connection information.
  • step 3 the cloud terminal initiates a connection request to the backup server. After the connection request is verified, after the connection is established with the backup server, the cloud terminal sends the connection information to the backup server, and the backup server saves the connection information.
  • Step 4 When the VMC management server fails to connect, and the cloud terminal cannot obtain the connection information through the VMC, and fails to log in to the virtual desktop, the emergency login process is started.
  • Step 5 The cloud terminal queries the local database for backup of the connection information of the user. If it can be found that the local database has matching user login information, the terminal downloads the connection information, and uses the connection information to initiate a connection request to the host server.
  • Step 6 If the local database is damaged or the login information of the corresponding user is not found, the terminal initiates an active connection to the backup server (address + port).
  • Backup server username and Password verification takes the same verification method as the VMC management server.
  • the backup server can be seen as a clone of the user management module on the VMC management server to store information about the user. This verification is done on the backup server.
  • Step 7 After verifying that the terminal request is passed, the backup server returns the desktop connection information requested by the terminal.
  • the format of the connection information is the same as that returned by the VMC management server.
  • the content is the address, port, and startup parameters of the host server.
  • the terminal obtains the connection information and initiates a connection request to the host server.
  • Step 8 The host server receives the connection information sent by the terminal (mainly the port number and the encrypted startup parameter), establishes a connection with the terminal, and starts the corresponding virtual desktop.
  • a new database for backing up login information is created in the cloud terminal local storage area.
  • a backup server is added between the cloud terminal and the VMC management server.
  • the backup server adopts the same authentication and encryption mode of the VMC management server, and is used to back up the login information of the user.
  • the cloud terminal obtains the host address and port number of the corresponding desktop through the VMC management server
  • the cloud terminal uploads the login information such as the user name, desktop name, host address, port number, and startup parameters to the backup server.
  • copy an encrypted backup to the local database Because the backup server only takes the emergency login process when the management server cannot respond, and preferentially uses the local backup login information. Its frequency of use is low, and the throughput of data is not required.
  • the hardware configuration of the backup server is not high, and a PC with a low hardware configuration can be used, or even the cloud terminal itself can be used instead. Therefore, in the whole scheme, the hardware part only needs to add a PC with a relatively low-end configuration as a server, which is low in price and controllable in cost.
  • the solution of the preferred embodiment solves the problem that the cloud terminal cannot log in to the virtual desktop through the management server VMC, and the user cannot use the cloud terminal, which brings inconvenience to the user experience and realizes the cloud terminal. You can log in to the virtual desktop without using the VMC. This improves the way the cloud terminal logs in to the virtual desktop and brings a good user experience.
  • FIG. 6 is a schematic flowchart of a method for a cloud terminal to log in to a virtual desktop according to a preferred embodiment of the present invention. As shown in FIG. 6, the method process may include the following steps:
  • Step S600 inputting a username/password and a VMC server address
  • Step S601 initiating active connection to the VMC service manager
  • the user inputs the login user name and password, and the VMC server using an input device such as a keyboard or a mouse.
  • the cloud terminal requests to establish a connection with the VMC server, and attempts to obtain connection information for logging in to the virtual desktop.
  • step S603 it is determined whether the connection VMC is successful; in the case of YES, step S604 is performed, and in the case of NO, step S608 is performed.
  • step S604 it is verified whether the username/password is correct. In the case of YES, step S605 is performed, and in the case of no, step S608 is performed.
  • the VMC passes the user name and password input by the user, the cloud terminal continues to perform steps S605, S606, and S607, and after step S607, step S614 is performed.
  • the S608 is started to start the emergency login process. In a preferred mode, when the number of times of inputting the username/password reaches the threshold, S608 is performed.
  • the method may further include updating the connection information to a local database of the cloud terminal, or sending the connection information to the backup server for saving by the backup server.
  • step S608 is performed.
  • Step S608 starting an emergency login process
  • Step S609 querying a local database
  • step S610 it is determined whether the connection information is acquired from the local database; if yes, step S614 is performed, and if no, step S611 is performed.
  • Step S611 connecting to the backup server
  • the cloud terminal cannot obtain the connection information through the VMC server.
  • the user can enable the connection.
  • Urgent login process When the cloud terminal is not connected to the VMC management server, it will try to read the login information in the local database, and connect to the corresponding virtual desktop under the host according to the host address and port number recorded in the login information.
  • the terminal When the terminal is re-flashed, or the local database is damaged, or the user replaces the terminal login, the terminal cannot obtain the login information of the corresponding user in the local database, and then connects to the backup server and obtains the corresponding information from the backup server. Connection information.
  • step S612 it is determined whether the connection information is acquired from the backup server; if YES, step S614 is performed, and if no, step S613 is performed.
  • step S614 it is verified whether the connection information is correct; in the case of YES, step S615 is performed, and in the case of NO, step S613 is performed.
  • the cloud terminal requests to connect to the host server according to the connection information.
  • the host server determines whether the connection information is correct.
  • Step S613 fails to log in to the virtual desktop.
  • the cloud terminal may return a message to the user to notify the user that the cloud terminal fails to log in.
  • Step S615 establishing a session with the virtual desktop of the host
  • step S616 the virtual desktop is started, and the login process is ended.
  • the connection information mainly includes the address, port and related connection parameters of the host server. N desktops are hung under the host server, and different desktops have different port numbers. The terminal connects to different desktops by distinguishing between the same IP address (host server address), different port numbers, and connection parameters.
  • Related connection parameters mainly include: user name, password, domain value (used to identify which domain user group the user belongs to), k value (MD5 generated authentication value), virtual desktop IP (for redirecting device), desktop Types of.
  • the username and the password are used for authentication; the domain value is whether the authentication user belongs to the user group allocated by the host; the K value, which is a check value, is also used for authentication.
  • the role of the local database and backup server is to back up these addresses, ports, and boot parameters.
  • the terminal can obtain the connection information directly from the backup server or the local database. Once the host server of the site is established, the addresses, ports, and startup parameters assigned to the user will not change substantially. On the backup server Log in to the VM using the address, port, and connection parameters.
  • the cloud terminal When the cloud terminal obtains the address, port and related connection parameters of the host server, it can initiate a connection request to the host server. After the host server verifies the request of the terminal, it starts to establish a connection with the terminal, thereby logging in to the virtual desktop.
  • the foregoing embodiments, the preferred embodiments, and the implementation solutions solve the problem that the cloud terminal cannot log in to the virtual desktop through the management server VMC, and the user cannot use the cloud terminal, thereby bringing the user experience.
  • the inconvenient problem is that the cloud terminal can log in to the virtual desktop without going through the VMC, and the way that the cloud terminal logs in to the virtual desktop is improved, which brings a good user experience.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the foregoing technical solution provided by the embodiment of the present invention may be applied to a process in which a cloud terminal logs in to a virtual machine desktop, and if the cloud terminal fails to obtain connection information for logging in to the virtual desktop through the VMC, the local connection information is pre-stored.
  • the storage space and/or the backup server obtains the connection information; and logs in to the virtual desktop according to the connection information, and the technical solution is adopted to solve the phase
  • the cloud terminal cannot log in to the virtual desktop through the management server VMC, and the user cannot use the cloud terminal, which brings inconvenience to the user experience.
  • the cloud terminal can log in to the virtual desktop without going through the VMC, and the cloud is improved. How the terminal logs in to the virtual desktop.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

本发明实施例公开了一种云终端登录虚拟桌面的方法及装置。其中,该方法包括:在通过VMC获取用于登录虚拟桌面的连接信息失败的情况下,从预先存储连接信息的本地存储空间和/或备份服务器获取连接信息;并根据该连接信息登录到虚拟桌面,采用该技术方案,解决了相关技术中存在的,云终端无法通过管理服务器VMC登录虚拟桌面,而导致用户无法使用云终端,给用户使用体验带来不便的问题,实现了云终端可以不经过VMC登录虚拟桌面,完善了云终端登录虚拟桌面的方式,带来了良好的用户体验。

Description

一种云终端登录虚拟桌面方法及装置 技术领域
本发明涉及通信领域,具体而言,涉及一种云终端登录虚拟桌面的方法及装置。
背景技术
如今,云计算在政企、教育等领域中应用广泛,方兴未艾。在云计算系统中,云终端往往部署在使用者桌面,是系统中离用户最为贴近的设备之一。而在整个使用虚拟桌面的过程中,用户往往比较关心的一个问题是登录虚拟桌面的稳定性与时效性。但由于应用场景和服务器配置的多变性和局限性,可能造成用户无法正常连接虚拟机配置管理服务器(Virtual Machine Configuration,以下简称为VMC)而登录虚拟机桌面的情况。
针对相关技术中,云终端无法通过管理服务器VMC登录虚拟桌面,而导致用户无法使用云终端,给用户使用体验带来不便的问题,目前尚未提出有效的解决方案。
发明内容
本发明的实施例提供了一种云终端登录虚拟桌面的方法及装置,以至少解决相关技术中,云终端无法通过管理服务器VMC登录虚拟桌面,而导致用户无法使用云终端,给用户使用体验带来不便的问题。
根据本发明实施例的一个方面,提供了一种云终端登录虚拟桌面的方法,包括:在通过虚拟机配置管理服务器VMC获取用于登录虚拟桌面的连接信息失败的情况下,从预先存储所述连接信息的所述云终端的本地存储空间和/或备份服务器获取所述连接信息;根据所述连接信息登录所述虚拟桌面。
从预先存储所述连接信息的所述云终端的本地存储空间,和/或,预先存储所述连接信息的备份服务器获取所述连接信息,包括:判断从所述本 地存储空间是否获取到所述连接信息;在判断结果为是的情况下,不从所述备份服务器获取所述连接信息;在判断结果为否的情况下,从所述备份服务器获取所述连接信息。
进一步地,从预先存储所述连接信息的所述备份服务器获取所述连接信息包括:向所述备份服务器发起用于获取所述连接信息的连接请求;在所述连接请求通过验证后,接收备份服务器发送的所述连接信息。
进一步地,所述连接信息至少包括:主机服务器的地址、主机服务器的端口,根据所述连接信息登录所述虚拟桌面包括:根据所述主机服务器的地址、主机服务器的端口向所述主机服务器发起用于登录所述虚拟桌面的登录请求;在所述登录请求通过验证后,通过所述主机服务器登录到所述虚拟桌面。
进一步地,所述方法还可以包括:在云终端通过所述VMC获取连接信息,并根据所述连接信息通过主机服务器登录虚拟桌面的情况下,将所述连接信息保存在所述本地存储空间,和/或,将所述连接信息发送至所述备份服务器,以使所述备份服务器保存所述连接信息。
进一步地,所述方法还可以包括:在从所述本地存储空间和备份服务器获取所述连接信息均失败的情况下,返回登录所述虚拟桌面失败。
根据本发明实施例的另一方面,提供了一种云终端登录虚拟桌面的装置,该装置可以包括:获取模块,设置为在通过虚拟机配置管理服务器VMC获取用于登录虚拟桌面的连接信息失败的情况下,从预先存储所述连接信息的所述云终端的本地存储空间和/或备份服务器获取所述连接信息;登录模块,设置为根据所述连接信息登录所述虚拟桌面。
进一步地,所述获取模块可以包括:判断单元,设置为判断从所述本地存储空间是否获取到所述连接信息;第一获取单元,设置为在判断结果为是的情况下,不从所述备份服务器获取所述连接信息;第二获取单元,设置为在判断结果为否的情况下,从所述备份服务器获取所述连接信息。
进一步地,所述连接信息至少包括:主机服务器的地址、主机服务器 的端口,所述登录模块可以包括:发起单元,设置为根据所述主机服务器的地址、主机服务器的端口向所述主机服务器发起用于登录所述虚拟桌面的登录请求;登录单元,设置为在所述登录请求通过验证后,通过所述主机服务器登录到所述虚拟桌面。
进一步地,所述装置还可以包括保存模块,所述保存模块可以包括:保存单元,设置为在云终端通过所述VMC获取连接信息,并根据所述连接信息通过主机服务器登录虚拟桌面的情况下,将所述连接信息保存在所述本地存储空间;和/或,发送单元,设置为将所述连接信息发送至所述备份服务器,以使所述备份服务器保存所述连接信息。
在本发明实施例中,还提供了一种计算机存储介质,该计算机存储介质可以存储有执行指令,该执行指令用于执行上述实施例中的云终端登录虚拟桌面方法的实现。
通过本发明及实施例,如果云终端在通过VMC获取用于登录虚拟桌面的连接信息失败的情况下,从预先存储连接信息的本地存储空间和/或备份服务器获取连接信息;并根据该连接信息登录到虚拟桌面,采用该技术方案,解决了相关技术中存在的,云终端无法通过管理服务器VMC登录虚拟桌面,而导致用户无法使用云终端,给用户使用体验带来不便的问题,实现了云终端可以不经过VMC登录虚拟桌面,完善了云终端登录虚拟桌面的方式,带来了良好的用户体验。
附图说明
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1是相关技术中云终端网络连接示意图;
图2是根据本发明实施例的一种云终端登录虚拟桌面的方法流程图一;
图3是根据本发明实施例的另一种云终端登录虚拟桌面的方法流程图 二;
图4是根据本发明实施例的一种云终端登录虚拟桌面的装置结构框图;
图5是根据本发明优选实施例的一种云终端网络连接示意图;
图6是根据本发明优选实施例的一种云终端登录虚拟桌面的方法流程图。
具体实施方式
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
图1是相关技术中云终端网络连接示意图。如图1所示,在相关技术中云终端、虚拟机配置服务管理器VMC、主机服务器、虚拟桌面的网络拓扑图中,VMC管理服务器主要起一个桥接的作用。VMC主要用于存储与管理所有的用户信息,以及该用户绑定的虚拟桌面信息。一般在同一网络拓扑中,有一台VMC管理服务器。而主机服务器主要承载虚拟桌面的运行环境,一台主机服务器下可以挂有多个虚拟桌面,一台VMC服务器可以管理多台主机。
在相关技术中,云终端登录虚拟桌面的方法流程大致为:
步骤一,用户在云终端界面设置好VMC管理服务器地址,填写用户名与密码,点击登陆按钮,终端向VMC管理服务器发起主动请求,连接VMC管理服务器。
步骤二,与VMC建立起连接,校验用户名密码通过后,VMC管理服务器分配给该用户对应的桌面资源,在用户的资源池中呈现可连接的虚拟桌面,并返回该桌面的IP/端口/连接信息(包含用户名密码、校验码等)。
步骤三,用户启动选中的虚拟桌面,终端根据VMC管理服务器返回的IP及端口向主机服务器发起连接请求,并发送用户名/密码/其他连接信息。
步骤四,主机服务器校验此请求,若校验通过,则与终端建立起桌面 会话连接,终端成功启动虚拟桌面。若不通过,则返回对应的错误码。
由上可见,传统网络布局的登录方式缺点在于过于依赖VMC管理服务器在云终端与主机服务器之间的桥接作用,使得VMC管理服务器成为云终端连接虚拟机的瓶颈,如果云终端无法连接到VMC,也就无法通过VMC登录虚拟桌面,而导致用户无法使用云终端,给用户使用体验带来不便的问题,而目前业界并无解决方案。
为了解决相关技术中云终端登录虚拟桌面存在的问题,在本发明的实施例中提供了一种云终端登录虚拟桌面的方法,该方法流程如图2所示。图2是根据本发明实施例的一种云终端登录虚拟桌面的方法的流程图,如图1所示,该流程可以包括如下步骤:
步骤S200,在通过虚拟机配置管理服务器VMC获取用于登录虚拟桌面的连接信息失败的情况下,从预先存储所述连接信息的所述云终端的本地存储空间和/或备份服务器获取所述连接信息;
通常情况下,VMC管理服务器可以返回终端的相关桌面连接信息,又可以控制主机服务器来分配用户和虚拟桌面,VMC管理服务器主要起一个桥接的作用。
云终端需要通过VMC获取连接虚拟桌面的连接信息,而无法获取该连接信息的情况下,可以向其他存储有相关连接信息的设备(服务器)或存储空间获取该连接信息。云终端可以选择其中一种设备或存储空间,也可以同时去多方发起请求,要求获取连接信息。
只要能拿到对应虚拟桌面的连接信息,是可以绕过VMC管理服务器,直接与主机服务器建立连接。主机服务器的校验与VMC服务器的校验各自独立,两者不具有依赖性与联动性。主机服务器根据连接信息(主要靠端口号与加密的启动参数),启动对应的虚拟桌面。
步骤S202,根据所述连接信息登录所述虚拟桌面。
通常情况下,云终端获取到目标虚拟桌面的连接信息,可以通过主机服务器建立连接。主机服务器根据云终端的请求,启动对应的虚拟桌面, 并使得云终端登陆至虚拟桌面的。
通过采用图2的方法,云终端在通过VMC获取用于登录虚拟桌面的连接信息失败的情况下,从预先存储连接信息的本地存储空间和/或备份服务器获取连接信息;并根据该连接信息登录到虚拟桌面,采用该技术方案,解决了相关技术中存在的,云终端无法通过管理服务器VMC登录虚拟桌面,而导致用户无法使用云终端,给用户使用体验带来不便的问题,实现了云终端可以不经过VMC登录虚拟桌面,完善了云终端登录虚拟桌面的方式,带来了良好的用户体验。
在本发明的实施例中还提供了另一种云终端登陆虚拟桌面的方法,图3是根据本发明实施例的另一种云终端登陆虚拟桌面的方法的流程图,如图3所示,该流程可以包括如下步骤:
步骤S300,在通过VMC获取用于登录虚拟桌面的连接信息失败的情况下,判断从所述本地存储空间是否获取到所述连接信息;
云终端本地存储空间,例如本地存储区、硬盘或者flash闪存等存储介质。在本地存储空间建立一个保存用于登录虚拟桌面的连接信息的数据库。同时在云终端也可以连接一台备份服务器,备份服务器存储有用于登录虚拟桌面的连接信息。备份服务器可以采取VMC管理服务器同样的鉴权与加密方式,用于给云终端用户提供登录用途的连接信息。
步骤S302,在是的情况下,不从所述备份服务器获取所述连接信息;
步骤S304,在否的情况下,从所述备份服务器获取所述连接信息;
云终端无法通过VMC获取连接信息,并根据该连接信息通过主机服务器登录虚拟桌面。云终端可以启动另外的路径获取连接信息。优先从云终端本地存储空间获取,如不能获取,再向建立连接的备份服务器获取连接信息。
亦或者是,当终端被重新刷机、或本地数据库遭到破坏、或用户更换终端登录的时候,终端获取不到本地数据库中对应用户的登录信息,则会转而去连接备份服务器,从备份服务器上获取对应的连接信息,以连接主 机下对应的虚拟桌面。
步骤S306,根据所述连接信息登陆所述虚拟桌面。
采用本实施例的方法,当云终端连接不上VMC管理服务器时,会尝试读取本地数据库中的连接信息,根据连接信息去连接主机下对应的虚拟桌面。因备份服务器只有在管理服务器无法响应的时候走应急登录流程,同时优先使用本地的备份登录信息。其使用频率低,同时数据的吞吐率也要求不高。因此对备份服务器的硬件配置并不高,可以用一台硬件配置并不高的PC机,甚至使用云终端本身来代替。因此,整个方案中,硬件部分只需要加入一个配置比较低端的PC做服务器,价格低廉,成本可控。
在优选的实施方式中,从预先存储所述连接信息的所述备份服务器获取所述连接信息包括:向所述备份服务器发起用于获取所述连接信息的连接请求;在所述连接请求通过验证后,接收备份服务器发送的所述连接信息。
备份服务器的用户名与密码校验可以采取与VMC管理服务器一致的校验方式。此验证在备份服务器上进行。备份服务器可以看做是VMC管理服务器上用户管理模块的一份克隆,只用于保存用户的相关连接信息。备份服务器校验终端请求通过后,会返回给终端所去请求的桌面的相关连接信息。连接信息主要包括主机服务器的地址、端口以及相关的连接参数。云终端获取到连接信息,便可以主动向主机服务器发起连接请求,并登陆虚拟桌面。
在优选的实施方式中,所述连接信息至少包括:主机服务器的地址、主机服务器的端口,以及其他相关连接参数;根据所述连接信息登录所述虚拟桌面包括:根据所述主机服务器的地址、主机服务器的端口向所述主机服务器发起用于登录所述虚拟桌面的登录请求;在所述登录请求通过验证后,通过所述主机服务器登录到所述虚拟桌面。
连接信息主要包括主机服务器的地址、端口以及相关的连接参数。主机服务器下挂了N个桌面,不同的桌面对应不同的端口号。终端连接不同 桌面,是通过连接同一IP地址(主机服务器地址),不同的端口号和连接参数来区别请求。相关的连接参数主要包括:用户名、密码、域值(用于鉴别该用户属于哪个域用户组)、k值(MD5生成的鉴权值)、虚拟桌面IP(用于重定向设备)、桌面类型。其中,用户名,密码,是鉴权用的;域值:是鉴权用户是否属于该主机分配的用户组;K值,他是一个校验值,也是用于鉴权的。云终端获取到对应虚拟桌面的连接信息,是可以绕过VMC管理服务器,直接与主机服务器建立连接。
备份服务器校验终端请求通过后,会返回给终端所去请求的桌面的相关信息,主要为主机服务器的地址、端口以及相关的连接参数。或者云终端从本地存储空间获取到相关连接信息。云终端拿到主机服务器的地址,端口和相关连接参数,便可以主动向主机服务器发起连接请求。主机服务器校验终端的请求后,开始与终端建立起连接,从而登录到虚拟桌面。
在优选的实施方式中,所述方法还包括:在云终端通过所述VMC获取连接信息,并根据所述连接信息通过主机服务器登录虚拟桌面的情况下,将所述连接信息保存在所述本地存储空间,和/或,将所述连接信息发送至所述备份服务器,以使所述备份服务器保存所述连接信息。
云终端本地存储空间,备份服务器保存有登陆虚拟桌面的连接信息,该连接信息是可以通过手动预先设置或输入的。也可以是正常情况下,云终端通过VMC管理服务器获取到连接信息,而将该连接信息保存至本地存储;或者发送一份拷贝至备份服务器,备份服务器收到消息并将该连接信息保存,供云终端请求获取连接信息。例如云终端获取到对应桌面的主机地址和端口号后,将对应的用户名,桌面名称,主机地址,端口号、启动参数等登录信息上传到备份服务器上。同时,再拷贝一份加密备份到本地数据库中。
在优选的实施方式中,所述方法还包括:在从所述本地存储空间和备份服务器获取所述连接信息均失败的情况下,返回登录所述虚拟桌面失败。在云终端通过VMC获取连接信息失败,并且无法从本地存储空间,备份 服务器获取,并通过主机服务器登陆虚拟桌面的情况下,说明云终端无法登录虚拟桌面,反馈用户登录失败的消息。
在本发明的实施例中提供了一种云终端登录虚拟桌面的装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
图4是根据本发明实施例的云终端登录虚拟桌面的装置的结构框图,如图4所示,该装置可以包括获取模块40、获取模块42。下面对该装置进行说明。
获取模块40,设置为在通过虚拟机配置管理服务器VMC获取用于登录虚拟桌面的连接信息失败的情况下,从预先存储所述连接信息的所述云终端的本地存储空间和/或备份服务器获取所述连接信息;
登录模块42,设置为根据所述连接信息登录所述虚拟桌面。。
通过本实施例提供的装置,云终端在通过VMC获取用于登录虚拟桌面的连接信息失败的情况下,从预先存储连接信息的本地存储空间和/或备份服务器获取连接信息;并根据该连接信息登录到虚拟桌面,采用该技术方案,解决了相关技术中存在的,云终端无法通过管理服务器VMC登录虚拟桌面,而导致用户无法使用云终端,给用户使用体验带来不便的问题,实现了云终端可以不经过VMC登录虚拟桌面,完善了云终端登录虚拟桌面的方式,带来了良好的用户体验。
在优选的实施方式中,所述获取模块40包括:判断单元,设置为判断从所述本地存储空间是否获取到所述连接信息;第一获取单元,设置为在判断结果为是的情况下,不从所述备份服务器获取所述连接信息;第二获取单元,设置为在判断结果为否的情况下,从所述备份服务器获取所述连接信息。
云终端本地存储空间,例如本地存储区、硬盘或者flash闪存等存储 介质。在本地存储空间建立一个保存用于登录虚拟桌面的连接信息的数据库。同时在云终端也可以连接一台备份服务器,备份服务器存储有用于登录虚拟桌面的连接信息。备份服务器可以采取VMC管理服务器同样的鉴权与加密方式,用于给云终端用户提供登录用途的连接信息。
云终端无法通过VMC获取连接信息,并根据该连接信息通过主机服务器登录虚拟桌面。云终端可以启动另外的路径获取连接信息。优先从云终端本地存储空间获取,如不能获取,再向建立连接的备份服务器获取连接信息。亦或者是,当终端被重新刷机、或本地数据库遭到破坏、或用户更换终端登录的时候,终端获取不到本地数据库中对应用户的登录信息,则会转而去连接备份服务器,从备份服务器上获取对应的连接信息,以连接主机下对应的虚拟桌面。
在优选的实施方式中,所述登录模块42包括:发起单元,设置为根据所述主机服务器的地址、主机服务器的端口向所述主机服务器发起用于登录所述虚拟桌面的登录请求;登录单元,设置为在所述登录请求通过验证后,通过所述主机服务器登录到所述虚拟桌面。
所述装置还包括保存模块,所述保存模块包括:保存单元,设置为在云终端通过所述VMC获取连接信息,并根据所述连接信息通过主机服务器登录虚拟桌面的情况下,将所述连接信息保存在所述本地存储空间;和/或,发送单元,设置为将所述连接信息发送至所述备份服务器,以使所述备份服务器保存所述连接信息。
云终端本地存储空间,备份服务器保存有登陆虚拟桌面的连接信息,该连接信息是可以通过手动预先设置或输入的。也可以是正常情况下,云终端通过VMC管理服务器获取到连接信息,而将该连接信息保存至本地存储;或者发送一份拷贝至备份服务器,备份服务器收到消息并将该连接信息保存,供云终端请求获取连接信息。例如云终端获取到对应桌面的主机地址和端口号后,将对应的用户名,桌面名称,主机地址,端口号、启动参数等登录信息上传到备份服务器上。同时,再拷贝一份加密备份到本 地数据库中。
在优选的实施方式中,从预先存储所述连接信息的所述备份服务器获取所述连接信息包括:向所述备份服务器发起用于获取所述连接信息的连接请求;在所述连接请求通过验证后,接收备份服务器发送的所述连接信息。
备份服务器的用户名与密码校验可以采取与VMC管理服务器一致的校验方式。此验证在备份服务器上进行。备份服务器可以看做是VMC管理服务器上用户管理模块的一份克隆,只用于保存用户的相关连接信息。备份服务器校验终端请求通过后,会返回给终端所去请求的桌面的相关连接信息。连接信息主要包括主机服务器的地址、端口以及相关的连接参数。云终端获取到连接信息,便可以主动向主机服务器发起连接请求,并登陆虚拟桌面。
在优选的实施方式中,所述连接信息至少包括:主机服务器的地址、主机服务器的端口,以及其他相关连接参数;根据所述连接信息登录所述虚拟桌面包括:根据所述主机服务器的地址、主机服务器的端口向所述主机服务器发起用于登录所述虚拟桌面的登录请求;在所述登录请求通过验证后,通过所述主机服务器登录到所述虚拟桌面。
连接信息主要包括主机服务器的地址、端口以及相关的连接参数。主机服务器下挂了N个桌面,不同的桌面对应不同的端口号。终端连接不同桌面,是通过连接同一IP地址(主机服务器地址),不同的端口号和连接参数来区别请求。相关的连接参数主要包括:用户名、密码、域值(用于鉴别该用户属于哪个域用户组)、k值(MD5生成的鉴权值)、虚拟桌面IP(用于重定向设备)、桌面类型。其中,用户名,密码,是鉴权用的;域值:是鉴权用户是否属于该主机分配的用户组;K值,他是一个校验值,也是用于鉴权的。云终端获取到对应虚拟桌面的连接信息,是可以绕过VMC管理服务器,直接与主机服务器建立连接。
备份服务器校验终端请求通过后,会返回给终端所去请求的桌面的相 关信息,主要为主机服务器的地址、端口以及相关的连接参数。或者云终端从本地存储空间获取到相关连接信息。云终端拿到主机服务器的地址,端口和相关连接参数,便可以主动向主机服务器发起连接请求。主机服务器校验终端的请求后,开始与终端建立起连接,从而登录到虚拟桌面。
在优选的实施方式中,所述装置还可以包括:返回模块,设置为在从所述本地存储空间和备份服务器获取所述连接信息均失败的情况下,返回登录所述虚拟桌面失败。在云终端通过VMC获取连接信息失败,并且无法从本地存储空间,备份服务器获取,并通过主机服务器登陆虚拟桌面的情况下,说明云终端无法登录虚拟桌面,反馈用户登录失败的消息。
下面再结合具体实施例对本发明进行说明。
图5是根据本发明优选实施例的一种云终端网络连接示意图。在网络拓扑示意图中,可以包括:
传统的云终端网络拓扑中的:虚拟机配置管理服务器VMC、主机服务器1-N、与每一台主机服务器连接的虚拟桌面1-N、与VMC连接的云终端56。
还可以包括本地数据库20,设置为存储云终端登录虚拟桌面的连接信息,可以与云终端56连接,也可以是在云终端内部的本地存储空间。
备份服务器52,与云终端52连接,设置为存储云终端登录虚拟桌面的连接信息。以上连接信息至少包括:主机服务器的地址、端口以及相关的连接参数。连接参数主要包括:用户名、密码、域值(用于鉴别该用户属于哪个域用户组)、k值(MD5生成的鉴权值)、虚拟桌面IP(用于重定向设备)、桌面类型等。云终端56拿到主机服务器的地址,端口和相关连接参数,便可以主动向主机服务器发起连接请求。主机服务器校验终端的请求后,开始与终端建立起连接,从而登录到虚拟桌面。
相关技术中,云终端登录虚拟桌面的网络拓扑,及其登录方法。依赖于VMC管理服务器在云终端与主机服务器之间的桥接作用,使得VMC管理服务器成为云终端连接虚拟机的瓶颈,具体有如下缺陷:(1)某一时 刻很多台终端同时连接VMC管理服务器时,受限于VMC服务器自身的硬件处理性能瓶颈,会导致达到同一时刻的部分并发请求无法响应。因此,会出现一部分终端能成功登陆,而另外一部分终端连接VMC服务器出现超时的现象。(2)VMC管理服务器一旦由于某种原因宕机或重启时,终端发起的连接请求便无法响应,造成所有终端无法获取主机的连接参数及相关登录信息,无法建立与虚拟桌面的连接。(3)当VMC服务器的自身网络或软件出现问题,而终端到主机的网络仍然通信正常时,本可以正常建立终端与主机服务器的会话连接,但由于VMC无法返回主机相关的连接信息,导致云终端登录虚拟桌面失败。
为了至少解决以上问题,本发明的优选实施例提供一种云终端登录虚拟桌面的方法,该方法可以包括以下步骤:
步骤一,当终端连接VMC管理服务器,没有出现连接无法响应、登录超时的情况时,则登录流程与正常的登录流程一致。
步骤二,在云终端正常登录虚拟桌面的情况下,VMC返回了此用户对应的桌面连接信息。云终端可以将该连接信息(包括用户名、密码、主机地址、端口、启动参数等)加密备份到本地存储区的数据库50,若有备份过则更新此连接信息。
步骤三,云终端向备份服务器发起连接请求。连接请求验证通过后,与备份服务器建立起连接后,云终端发送连接信息到备份服务器中,备份服务器保存该连接信息。
步骤四,当VMC管理服务器连接不上,云终端无法通过VMC获取到连接信息,并无法登录虚拟桌面的情况下,启动应急登录流程。
步骤五,云终端查询本地数据库是否有该用户的连接信息备份。若能查到本地数据库有匹配的用户登录信息,则终端下载此连接信息,利用此连接信息向主机服务器发起连接请求。
步骤六,若本地数据库遭到破坏或查询不到对应用户的登录信息,则终端向备份服务器(地址+端口)发起主动连接。备份服务器的用户名与 密码校验采取与VMC管理服务器一致的校验方式。备份服务器可以看做是VMC管理服务器上用户管理模块的一份克隆,用于保存用户的相关信息。此验证在备份服务器上进行。
步骤七,备份服务器校验终端请求通过后,返回给终端所请求的桌面连接信息。连接信息的格式与VMC管理服务器返回的一致。内容为主机服务器的地址、端口以及启动参数等。终端拿到这些连接信息,向主机服务器发起连接请求。
步骤八,主机服务器接收终端发来的连接信息(主要为端口号与加密的启动参数),建立与终端的连接,启动对应的虚拟桌面。
在该优选实施例中,在云终端本地存储区,新建一个用于备份登录信息的数据库。同时在云终端与VMC管理服务器之间,加入一台备份服务器。备份服务器采取VMC管理服务器同样的鉴权与加密方式,用于备份用户的登录信息。正常情况下,云终端通过VMC管理服务器获取到对应桌面的主机地址和端口号后,将对应的用户名,桌面名称,主机地址,端口号、启动参数等登录信息上传到备份服务器上。同时,再拷贝一份加密备份到本地数据库中。因备份服务器只有在管理服务器无法响应的时候走应急登录流程,同时优先使用本地的备份登录信息。其使用频率低,同时数据的吞吐率也要求不高。因此对备份服务器的硬件配置并不高,可以用一台硬件配置并不高的PC机,甚至使用云终端本身来代替。因此,整个方案中,硬件部分只需要加入一个配置比较低端的PC做服务器,价格低廉,成本可控。采用该本优选实施例的方案,解决了相关技术中存在的,云终端无法通过管理服务器VMC登录虚拟桌面,而导致用户无法使用云终端,给用户使用体验带来不便的问题,实现了云终端可以不经过VMC登录虚拟桌面,完善了云终端登录虚拟桌面的方式,带来了良好的用户体验。
图6是根据本发明优选实施例的一种云终端登录虚拟桌面的方法的流程示意图,如图6所示,该方法流程可以包括如下步骤:
步骤S600,输入用户名/密码、VMC服务器地址;
步骤S601,发起主动连接VMC服务管理器;
用户使用输入设备,例如键盘、鼠标等,输入登录用户名、密码,VMC服务器。云终端请求与VMC服务器建立连接,试图获取用于登录虚拟桌面的连接信息。
步骤S603,判断连接VMC是否成功;在是的情况下,执行步骤S604,在否的情况下,执行步骤S608.
步骤S604,校验用户名/密码是否正确。在是的情况下,执行步骤S605,在否情况下,执行步骤S608.
在云终端正常连接到VMC的情况下,VMC通过了用户输入的用户名和密码,云终端继续执行步骤S605、S606、S607,并在步骤S607之后,执行步骤S614。
在云终端正常连接到VMC的情况下,校验用户名/密码失败的情况下,执行S608启动应急登录流程。在优选的方式是,在输入用户名/密码的次数达到阈值时,执行S608。
在S606,获取用户连接信息之后,该方法流程还可以包括将所述连接信息更新至云终端的本地数据库,或者将连接信息发送至备份服务器,供备份服务器保存。
在相关技术中还可能存在云终端无法连接上VMC的情况。当云终端连接不上VMC管理服务器时,执行步骤S608。
步骤S608,启动应急登录流程;
步骤S609,查询本地数据库;
步骤S610,判断从本地数据库是否获取到连接信息;在是的情况下,执行步骤S614,在否的情况下,执行步骤S611。
步骤S611,连接至备份服务器;
云终端无法正常通过VMC服务器获取到连接信息,用户可以启用应 急登录流程。当云终端连接不上VMC管理服务器时,会尝试读取本地数据库中的登录信息,根据登录信息中记录的主机地址和端口号,去连接主机下对应的虚拟桌面。当终端被重新刷机、或本地数据库遭到破坏、或用户更换终端登录的时候,终端获取不到本地数据库中对应用户的登录信息,则会转而去连接备份服务器,从备份服务器上获取对应的连接信息。
步骤S612,判断从备份服务器是否获取到连接信息;在是的情况下,执行步骤S614,在否的情况下,执行步骤S613。
步骤S614,校验连接信息是否正确;在是的情况下执行步骤S615,在否的情况下,执行步骤S613。
无论是云终端通过VMC、本地数据库、还是备份服务器获取的连接信息,云终端根据该连接信息去请求连接主机服务器。主机服务器判断该连接信息是否正确。
步骤S613登录虚拟桌面失败;在实施例中,云终端可以向用户返回一个消息,用于告知用户云终端登录失败。
步骤S615,与主机的虚拟桌面建立会话;
步骤S616,启动虚拟桌面,结束登录流程。
连接信息主要包括主机服务器的地址、端口以及相关的连接参数。主机服务器下挂了N个桌面,不同的桌面对应不同的端口号。终端连接不同桌面,是通过连接同一IP地址(主机服务器地址),不同的端口号和连接参数来区别请求。相关的连接参数主要包括:用户名、密码、域值(用于鉴别该用户属于哪个域用户组)、k值(MD5生成的鉴权值)、虚拟桌面IP(用于重定向设备)、桌面类型。其中,用户名,密码,是鉴权用的;域值:是鉴权用户是否属于该主机分配的用户组;K值,他是一个校验值,也是用于鉴权的。本地数据库、备份服务器的作用就是这些地址、端口和启动参数备份。一旦云终端无法连上VMC服务器,终端就可以直接从备份服务器或者本地数据库获取连接信息(局点的主机服务器一旦建好,分配给用户的这些地址、端口、启动参数基本不会发生改变),用备份服务器上 的地址、端口、连接参数登录虚拟机。
云终端拿到主机服务器的地址,端口和相关连接参数,便可以主动向主机服务器发起连接请求。主机服务器校验终端的请求后,开始与终端建立起连接,从而登录到虚拟桌面。
综上所述,通过上述实施例、优选实施例和实施方式,解决了相关技术中存在的,云终端无法通过管理服务器VMC登录虚拟桌面,而导致用户无法使用云终端,给用户使用体验带来不便的问题,实现了云终端可以不经过VMC登录虚拟桌面,完善了云终端登录虚拟桌面的方式,带来了良好的用户体验。
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
工业实用性
本发明实施例提供的上述技术方案,可以应用于云终端登录虚机桌面的过程中,如果云终端在通过VMC获取用于登录虚拟桌面的连接信息失败的情况下,从预先存储连接信息的本地存储空间和/或备份服务器获取连接信息;并根据该连接信息登录到虚拟桌面,采用该技术方案,解决了相 关技术中存在的,云终端无法通过管理服务器VMC登录虚拟桌面,而导致用户无法使用云终端,给用户使用体验带来不便的问题,实现了云终端可以不经过VMC登录虚拟桌面,完善了云终端登录虚拟桌面的方式。

Claims (10)

  1. 一种云终端登录虚拟桌面方法,包括:
    在通过虚拟机配置管理服务器VMC获取用于登录虚拟桌面的连接信息失败的情况下,从预先存储所述连接信息的所述云终端的本地存储空间和/或备份服务器获取所述连接信息;
    根据所述连接信息登录所述虚拟桌面。
  2. 根据权利要求1所述的方法,其中,从预先存储所述连接信息的所述云终端的本地存储空间,和/或,预先存储所述连接信息的备份服务器获取所述连接信息,包括:
    判断从所述本地存储空间是否获取到所述连接信息;
    在判断结果为是的情况下,不从所述备份服务器获取所述连接信息;
    在判断结果为否的情况下,从所述备份服务器获取所述连接信息。
  3. 根据权利要求1所述的方法,其中,
    从预先存储所述连接信息的所述备份服务器获取所述连接信息包括:
    向所述备份服务器发起用于获取所述连接信息的连接请求;
    在所述连接请求通过验证后,接收备份服务器发送的所述连接信息。
  4. 根据权利要求1至3任意一项所述的方法,其中,所述连接信息至少包括:主机服务器的地址、主机服务器的端口,
    根据所述连接信息登录所述虚拟桌面包括:
    根据所述主机服务器的地址、主机服务器的端口向所述主机服务器发起用于登录所述虚拟桌面的登录请求;
    在所述登录请求通过验证后,通过所述主机服务器登录到所述虚拟桌面。
  5. 根据权利要求4所述的方法,其中,所述方法还包括:
    在云终端通过所述VMC获取连接信息,并根据所述连接信息通过主机服务器登录虚拟桌面的情况下,将所述连接信息保存在所述本地存储空 间,和/或,将所述连接信息发送至所述备份服务器,以使所述备份服务器保存所述连接信息。
  6. 根据权利要求4所述的方法,其中,所述方法还包括:
    在从所述本地存储空间和备份服务器获取所述连接信息均失败的情况下,返回登录所述虚拟桌面失败。
  7. 一种云终端登录虚拟桌面的装置,包括:
    获取模块,设置为在通过虚拟机配置管理服务器VMC获取用于登录虚拟桌面的连接信息失败的情况下,从预先存储所述连接信息的所述云终端的本地存储空间和/或备份服务器获取所述连接信息;
    登录模块,设置为根据所述连接信息登录所述虚拟桌面。
  8. 根据权利要求7所述的装置,其中,所述获取模块包括:
    判断单元,设置为判断从所述本地存储空间是否获取到所述连接信息;
    第一获取单元,设置为在判断结果为是的情况下,不从所述备份服务器获取所述连接信息;
    第二获取单元,设置为在判断结果为否的情况下,从所述备份服务器获取所述连接信息。
  9. 根据权利要求7或8任意一项所述的装置,其中,所述连接信息至少包括:主机服务器的地址、主机服务器的端口,所述登录模块包括:
    发起单元,设置为根据所述主机服务器的地址、主机服务器的端口向所述主机服务器发起用于登录所述虚拟桌面的登录请求;
    登录单元,设置为在所述登录请求通过验证后,通过所述主机服务器登录到所述虚拟桌面。
  10. 根据权利要求9所述的装置,其中,所述装置还包括保存模块,所述保存模块包括:
    保存单元,设置为在云终端通过所述VMC获取连接信息,并根据所述连接信息通过主机服务器登录虚拟桌面的情况下,将所述连接信息保存 在所述本地存储空间;和/或,
    发送单元,设置为将所述连接信息发送至所述备份服务器,以使所述备份服务器保存所述连接信息。
PCT/CN2017/086313 2016-06-30 2017-05-27 一种云终端登录虚拟桌面方法及装置 WO2018001023A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610512636.3 2016-06-30
CN201610512636.3A CN107566433A (zh) 2016-06-30 2016-06-30 一种云终端登录虚拟桌面方法及装置

Publications (1)

Publication Number Publication Date
WO2018001023A1 true WO2018001023A1 (zh) 2018-01-04

Family

ID=60786651

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/086313 WO2018001023A1 (zh) 2016-06-30 2017-05-27 一种云终端登录虚拟桌面方法及装置

Country Status (2)

Country Link
CN (1) CN107566433A (zh)
WO (1) WO2018001023A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111475258A (zh) * 2020-03-27 2020-07-31 南京英诺森软件科技有限公司 一种基于容器云的企业技术架构方案
CN116112485A (zh) * 2022-12-16 2023-05-12 亿航智能设备(广州)有限公司 一种云端资源使用方法及相关设备

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108366103B (zh) * 2018-01-29 2021-03-02 广州杰赛科技股份有限公司 远程连接方法、装置、计算机设备和存储介质
CN110808943B (zh) * 2018-08-06 2022-04-29 中兴通讯股份有限公司 客户端连接应急管理方法、客户端及计算机可读存储介质
CN110191158A (zh) * 2019-05-09 2019-08-30 厦门网宿有限公司 一种云桌面服务实现方法和系统
CN117997941A (zh) * 2022-11-02 2024-05-07 中兴通讯股份有限公司 一种虚拟桌面连接方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103179080A (zh) * 2011-12-20 2013-06-26 中国电信股份有限公司 一种面向互联网用户的云电脑系统以及连接云电脑的方法
CN103618768A (zh) * 2013-11-15 2014-03-05 华为技术有限公司 一种部署虚拟机的方法以及相关设备
CN103823638A (zh) * 2014-02-08 2014-05-28 华为技术有限公司 一种虚拟设备访问方法及装置
US20150244787A1 (en) * 2014-02-21 2015-08-27 Andrew T. Fausak Front-end high availability proxy

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103179080A (zh) * 2011-12-20 2013-06-26 中国电信股份有限公司 一种面向互联网用户的云电脑系统以及连接云电脑的方法
CN103618768A (zh) * 2013-11-15 2014-03-05 华为技术有限公司 一种部署虚拟机的方法以及相关设备
CN103823638A (zh) * 2014-02-08 2014-05-28 华为技术有限公司 一种虚拟设备访问方法及装置
US20150244787A1 (en) * 2014-02-21 2015-08-27 Andrew T. Fausak Front-end high availability proxy

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111475258A (zh) * 2020-03-27 2020-07-31 南京英诺森软件科技有限公司 一种基于容器云的企业技术架构方案
CN116112485A (zh) * 2022-12-16 2023-05-12 亿航智能设备(广州)有限公司 一种云端资源使用方法及相关设备

Also Published As

Publication number Publication date
CN107566433A (zh) 2018-01-09

Similar Documents

Publication Publication Date Title
WO2018001023A1 (zh) 一种云终端登录虚拟桌面方法及装置
US11245576B2 (en) Blockchain-based configuration profile provisioning system
US10833949B2 (en) Extension resource groups of provider network services
US7669235B2 (en) Secure domain join for computing devices
US11907745B2 (en) Methods and systems for securely and efficiently clustering distributed processes using a consistent database
US10135623B2 (en) Method and system for checking revocation status of digital certificates in a virtualization environment
WO2019184164A1 (zh) 自动部署Kubernetes从节点的方法、装置、终端设备及可读存储介质
US10379894B1 (en) Lineage-based trust for virtual machine images
WO2021139314A1 (zh) 操作系统初始化方法、系统、计算机设备及存储介质
US20200159555A1 (en) Provider network service extensions
US20220123950A1 (en) Multi-party cloud authenticator
US20210297409A1 (en) Systems and methods for provisioning network devices
US11444785B2 (en) Establishment of trusted communication with container-based services
US8302165B2 (en) Establishing trust relationships between computer systems
US20170279806A1 (en) Authentication in a Computer System
US11868476B2 (en) Boot-specific key access in a virtual device platform
US11805182B2 (en) User profile distribution and deployment systems and methods
CN114363165A (zh) 一种电子设备的配置方法、电子设备和服务器
US20200329012A1 (en) System and method for dedicated storage, through a secure internet connection, in a remote location
US8972532B2 (en) Providing hardware configuration management for heterogeneous computers
WO2022127583A1 (zh) 虚拟机控制方法、云管理设备及存储介质
US11055079B2 (en) Systems and methods for just-in-time application implementation
WO2020001617A1 (zh) 获取验证信息的方法和数据中心
US11489824B2 (en) Automated key management for remote devices using single sign-on techniques
US11012434B2 (en) Method for automated authentication of VoIP phone

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17819020

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17819020

Country of ref document: EP

Kind code of ref document: A1