CN108206842B - Cloud desktop remote access method and system - Google Patents

Cloud desktop remote access method and system Download PDF

Info

Publication number
CN108206842B
CN108206842B CN201611169780.8A CN201611169780A CN108206842B CN 108206842 B CN108206842 B CN 108206842B CN 201611169780 A CN201611169780 A CN 201611169780A CN 108206842 B CN108206842 B CN 108206842B
Authority
CN
China
Prior art keywords
virtual machine
state
host
access
cloud desktop
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611169780.8A
Other languages
Chinese (zh)
Other versions
CN108206842A (en
Inventor
周冠宇
程庆年
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
GCI Science and Technology Co Ltd
Original Assignee
GCI Science and Technology Co Ltd
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 GCI Science and Technology Co Ltd filed Critical GCI Science and Technology Co Ltd
Priority to CN201611169780.8A priority Critical patent/CN108206842B/en
Publication of CN108206842A publication Critical patent/CN108206842A/en
Application granted granted Critical
Publication of CN108206842B publication Critical patent/CN108206842B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/26Special purpose or proprietary protocols or architectures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances

Abstract

The invention relates to a remote access method and a system for a cloud desktop, wherein the method comprises the following steps: sending a remote connection request to the host according to the acquired verification parameters, and receiving the type and the pre-access state of the virtual machine returned by the host; when the state before the virtual machine is accessed is a non-startup state or a startup and IP failure state, or the virtual machine is started and the IP is in an effective state and is a Linux virtual machine, sending an SPICE access request to a host, and remotely accessing a cloud desktop of the virtual machine by the host through an SPICE protocol; and when the state before the virtual machine is accessed is a starting state and an IP effective state, and the type of the virtual machine is a Windows virtual machine, acquiring the IP address and the port of the virtual machine and sending an RDP access request to the virtual machine, so that the virtual machine is remotely accessed to the cloud desktop by adopting an RDP protocol. And a proper access mode is selected according to the type and the state of the virtual machine, so that the cloud desktop access effect can be improved.

Description

Cloud desktop remote access method and system
Technical Field
The invention relates to the technical field of computers, in particular to a cloud desktop remote access method and system.
Background
With the advent of cloud computing technology, various cloud application products are gradually put into use, such as cloud desktops. The cloud desktop is a personal computer application based on a cloud computing technology, and a user needs to remotely connect a host providing a virtual machine through a local terminal and access the virtual machine through the host to obtain a virtual computer operation interface. Remote access of the cloud desktop needs to be realized by means of a desktop transmission protocol.
At present, cloud Desktop manufacturers in China generally only adopt RDP (Remote Desktop Protocol) or SPICE (Simple Protocol for Independent computer Environment) as a transmission Protocol for Remote access. The RDP protocol is carried by a Windows operating system, a virtual machine provides a server side, and a connection end point of the RDP protocol is arranged on the virtual machine of the Windows operating system, so that the RDP protocol does not support blue screen troubleshooting, self-help starting, Linux desktop or network card-free configuration; the SPICE protocol provides a service end by a host, has extremely high requirements on bandwidth occupation and terminal processing capacity, and has high occupied bandwidth and low graphic processing performance. Therefore, the traditional cloud desktop has poor access effect.
Disclosure of Invention
Therefore, in order to solve the above problems, a cloud desktop remote access method and system for improving the cloud desktop access effect are provided.
A cloud desktop remote access method comprises the following steps:
acquiring verification parameters, and sending a remote connection request to a host providing a virtual machine according to the verification parameters;
receiving the type and the pre-access state of the virtual machine corresponding to the verification parameters returned by the host according to the remote connection request;
when the pre-access state of the virtual machine is a non-boot state or a boot and IP failure state, sending an SPICE access request to the host for remotely accessing the cloud desktop of the virtual machine through the host by adopting an SPICE protocol;
when the pre-access state of the virtual machine is a startup and IP effective state, if the type of the virtual machine is a Windows virtual machine, acquiring an IP address and a port of the virtual machine, and sending an RDP access request to the virtual machine according to the IP address and the port of the virtual machine, wherein the RDP access request is used for remotely accessing a cloud desktop of the virtual machine by the virtual machine through an RDP protocol;
and when the pre-access state of the virtual machine is a startup and IP effective state, if the type of the virtual machine is a Linux virtual machine, sending the SPICE access request to the host for remotely accessing the cloud desktop of the virtual machine by the host through adopting an SPICE protocol.
A cloud desktop remote access system, comprising:
the remote connection module is used for acquiring verification parameters and sending a remote connection request to a host computer providing the virtual machine according to the verification parameters;
the data receiving module is used for receiving the type and the pre-access state of the virtual machine corresponding to the verification parameters, which are returned by the host according to the remote connection request;
a first state access module, configured to send a SPICE access request to the host when a pre-access state of the virtual machine is an un-powered on state or a powered on and IP failure state, where the SPICE access request is used to remotely access a cloud desktop of the virtual machine through the host by using a SPICE protocol;
the second state access module is used for acquiring an IP address and a port of the virtual machine if the type of the virtual machine is a Windows virtual machine when the state before the access of the virtual machine is a starting state and the IP is in an effective state, and sending an RDP access request to the virtual machine according to the IP address and the port of the virtual machine, wherein the RDP access request is used for remotely accessing a cloud desktop of the virtual machine by the virtual machine through an RDP protocol;
and the third state access module is used for sending the SPICE access request to the host if the type of the virtual machine is a Linux virtual machine when the pre-access state of the virtual machine is a startup and IP effective state, wherein the SPICE access request is used for remotely accessing the cloud desktop of the virtual machine by the host through adopting an SPICE protocol.
According to the cloud desktop remote access method and system, after the remote connection request is sent to the host according to the acquired verification parameters, the type and the pre-access state of the virtual machine corresponding to the verification parameters returned by the host are received; for a virtual machine with a state before access being a non-starting state or a starting state and an IP failure state and a virtual machine with a state before access being a starting state and an IP effective state and being a Linux virtual machine, sending an SPICE access request to a host, and remotely accessing a cloud desktop of the virtual machine by the host through adopting an SPICE protocol; for a virtual machine which is in a starting state before access, in an IP effective state and in a Windows virtual machine type, an RDP access request is sent to the virtual machine after the IP address and the port of the virtual machine are obtained, and therefore the virtual machine is remotely accessed to the cloud desktop of the virtual machine by adopting an RDP protocol. Therefore, the type and the state of the virtual machine are combined for analysis, a better access mode suitable for the type and the state of the virtual machine is selected from the SPICE protocol access mode and the RDP protocol access mode, and the cloud desktop access effect can be improved.
Drawings
FIG. 1 is a flow diagram of a cloud desktop remote access method in an embodiment;
FIG. 2 is a flowchart of a cloud desktop remote access method in another embodiment;
FIG. 3 is a block diagram of a cloud desktop remote access system in an embodiment;
FIG. 4 is a block diagram of a cloud desktop remote access system in another embodiment;
fig. 5 is an environment structure diagram of an application example.
Detailed Description
Referring to fig. 2, a cloud desktop remote access method in an embodiment may be applied to a terminal, and the method includes the following steps.
S110: and acquiring the verification parameters, and sending a remote connection request to the host providing the virtual machine according to the verification parameters.
The authentication parameters refer to data required for remote connection with the host. A host is a device that provides a virtual machine. After the remote connection request is generated according to the verification parameters and is sent to the host, the host can verify the verification parameters contained in the remote connection request, and after the verification is passed, the remote connection is established with the terminal sending the verification parameters.
In one embodiment, the authentication parameters include a host IP (internet protocol) address, a host port, host credentials, and a virtual machine ID (identification card). The host IP address, the host port and the host credential are used for specifying a host needing remote connection, and the virtual machine ID is used for specifying a virtual machine where the cloud desktop needing access is located.
S120: and receiving the type and the pre-access state of the virtual machine corresponding to the verification parameters returned by the host according to the remote connection request.
After the remote connection with the host computer is established, the host computer automatically returns the information of the virtual machine corresponding to the verification parameters, including the type and the state before the access. For example, if the virtual machine corresponding to the virtual machine ID in the verification parameter is virtual machine a, the host returns the type and pre-access state of virtual machine a.
The types of virtual machines include a Windows virtual machine and a Linux virtual machine. The Windows virtual machine refers to a virtual machine provided with a Windows operating system, and the Linux virtual machine refers to a virtual machine provided with a Linux operating system. The pre-access state of the virtual machine refers to the state of the virtual machine before the virtual machine is remotely accessed to the cloud desktop, and comprises a non-starting state, a starting and IP failure state and a starting and IP effective state.
S130: and when the state before the virtual machine is accessed is a non-boot state or a boot and IP failure state, sending an SPICE access request to the host for remotely accessing the cloud desktop of the virtual machine by adopting an SPICE protocol through the host.
The non-power-on state comprises power-off, standby, dormant and other states. The power-on and IP failure states include two states of power-on and no IP, power-on and unavailable IP. When the virtual machine is in a non-startup state or a startup and IP failure state, the virtual machine can not be connected with a network; at this time, no matter which one of the Windows virtual machine and the Linux virtual machine is used as the virtual machine, the SPICE access request is sent to the host, so that the host can access the cloud desktop corresponding to the virtual machine to the terminal sending the SPICE access request by adopting a SPICE protocol, and remote access of the cloud desktop is realized.
S140: when the pre-access state of the virtual machine is a startup state and an IP effective state, if the type of the virtual machine is a Windows virtual machine, the IP address and the port of the virtual machine are obtained, and an RDP access request is sent to the virtual machine according to the IP address and the port of the virtual machine, so that the virtual machine can be remotely accessed to a cloud desktop of the virtual machine by adopting an RDP protocol.
And when the computer is started and the IP is in an effective state, the virtual machine can be connected with a network, and the virtual machine of the Windows virtual machine type can adopt an RDP protocol. Therefore, the type of the virtual machine is judged when the virtual machine is started and the IP is in an effective state, if the virtual machine is a Windows virtual machine, the RDP access request is sent to the virtual machine according to the IP address and the port of the virtual machine, and therefore the virtual machine can access the cloud desktop to the terminal sending the RDP access request by adopting the RDP protocol, and remote access of the cloud desktop is achieved.
S150: when the state before the virtual machine is accessed is a startup state and an IP effective state, if the type of the virtual machine is a Linux virtual machine, sending an SPICE access request to a host for remotely accessing the cloud desktop of the virtual machine by the host through adopting an SPICE protocol.
The Linux operating system does not support the RDP protocol, and therefore, in a state of starting up and taking the IP into effect, if the type of the virtual machine is the Linux virtual machine, the SPICE protocol is still used to realize remote access of the cloud desktop.
According to the remote access method of the cloud desktop, after a remote connection request is sent to the host according to the acquired verification parameters, the type and the state before access of the virtual machine corresponding to the verification parameters returned by the host are received; for a virtual machine with a state before access being a non-starting state or a starting state and an IP failure state and a virtual machine with a state before access being a starting state and an IP effective state being a Linux virtual machine, sending an SPICE access request to a host, and remotely accessing a cloud desktop of the virtual machine by the host through an SPICE protocol; for a virtual machine which is in a starting state before access, in an IP effective state and in a Windows virtual machine type, an RDP access request is sent to the virtual machine after the IP address and the port of the virtual machine are obtained, and therefore the virtual machine is remotely accessed to the cloud desktop of the virtual machine by adopting an RDP protocol. Therefore, the type and the state of the virtual machine are combined for analysis, a better access mode suitable for the type and the state of the virtual machine is selected from the SPICE protocol access mode and the RDP protocol access mode, and the cloud desktop access effect can be improved.
In an embodiment, after sending the SPICE access request to the host when the current state of the virtual machine is the non-boot state, the method further includes the boot steps of: and displaying a virtual starting button of the virtual machine, acquiring a virtual starting instruction according to the displayed virtual starting button, sending the virtual starting instruction to the host, and starting a starting process of the virtual machine and entering the cloud desktop according to the virtual starting instruction by the host.
The virtual power-on button of the virtual machine can be displayed according to the button graphic information fed back by the host after the remote communication with the host. The virtual power-on instruction may be pre-stored, or may be an instruction triggered by a user performing a click operation on a displayed virtual power-on button. When the virtual machine is in the non-startup state, the virtual startup instruction is sent to the host, so that the host can control the virtual machine to be started. The boot-up step is applicable to Windows virtual machines and Linux virtual machines.
In an embodiment, after sending the SPICE access request to the host when the current state of the virtual machine is the power-on and IP failure state, the method further includes: and if the type of the virtual machine is the Windows virtual machine, displaying a login interface of the virtual machine, acquiring a login credential of the virtual machine according to the displayed login interface, and sending the login credential to the host.
The login interface of the virtual machine can be displayed according to the login interface graphic information fed back by the host after the remote communication with the host is carried out. The login credentials of the virtual machine can be pre-stored or can be input by a user according to a displayed login interface. For example, in one embodiment, the authentication parameters also include virtual machine login credentials. When the type of the virtual machine is the Windows virtual machine, the login credentials of the virtual machine are obtained and sent to the host machine, so that the virtual machine can be logged in.
In an embodiment, referring to fig. 2, after step S130, steps S160 to S190 are further included.
S160: and judging whether the type of the virtual machine is a Windows virtual machine. If yes, go to step S170.
S170: and acquiring the current state of the virtual machine.
The state of the virtual machine may change during operation. The current state of the virtual machine refers to the real-time state of the virtual machine in the process of remotely accessing the cloud desktop, and comprises a startup and IP failure state and a startup and IP effective state.
S180: in the process of remotely accessing the cloud desktop by the host machine through the SPICE protocol, if the current state of the virtual machine is the startup state and the IP is in an effective state, remotely accessing the cloud desktop by the host machine through the SPICE protocol is interrupted, and remotely accessing the cloud desktop by the virtual machine through the RDP protocol.
Before the host computer is remotely accessed to the cloud desktop by adopting the SPICE protocol, the pre-access state of the virtual machine is a startup and IP failure state or a non-startup state. If the current state is detected to be a starting-up and IP effective state, the state change of the virtual machine is represented, the virtual machine can be connected with a network, at the moment, the remote access to the cloud desktop through the SPICE protocol by the host is interrupted, and the remote access to the cloud desktop through the RDP protocol by the virtual machine is interrupted, so that the mode of SPICE protocol access is switched to the mode of RDP protocol access.
Specifically, the interrupt is remotely accessed to the cloud desktop by the host through the SPICE protocol, and can be realized by sending a SPICE interrupt request to the host, so that the host interrupts the SPICE protocol. The virtual machine is remotely accessed to the cloud desktop by adopting an RDP protocol, and the remote access method can be realized by sending an RDP access request to the virtual machine.
S190: in the process of remotely accessing the cloud desktop by the virtual machine through the RDP protocol, if the current state of the virtual machine is changed into a startup and IP failure state, the remote access of the cloud desktop by the virtual machine through the RDP protocol is interrupted, and the cloud desktop is remotely accessed by the host through the SPICE protocol.
Before the virtual machine is remotely accessed to the cloud desktop by adopting an RDP protocol, the state of the virtual machine before access is a starting state and an IP (Internet protocol) is in an effective state. If the current state is the startup and IP failure state, the state change of the virtual machine is represented, the virtual machine cannot be connected with the network, at the moment, the remote access to the cloud desktop through the virtual machine by adopting the RDP protocol is interrupted, and the remote access to the cloud desktop through the host by adopting the SPICE protocol is interrupted, so that the mode of the RDP protocol access is switched to the mode of the SPICE protocol access.
Specifically, the interruption is remotely accessed to the cloud desktop through the virtual machine by adopting an RDP protocol, and the RDP protocol can be automatically triggered to be disconnected after the IP of the virtual machine fails. The host computer is remotely accessed to the cloud desktop by adopting the SPICE protocol, and the method can be realized by sending the SPICE access request to the virtual machine.
In this embodiment, the current state of the virtual machine in step S170 is obtained in real time, and steps S170 to S190 are performed in a loop, so as to implement automatic switching between the two access modes.
In this embodiment, after step S140, steps S170 to S190 are further included. That is, after the RDP protocol access mode is adopted, the change of the current state of the virtual machine is detected, so that the automatic switching between the two access modes is realized.
In the cloud desktop access process, the two access modes, namely SPICE protocol access and RDP protocol access, are automatically switched according to the current state of the virtual machine, and the two access modes are fused; the method adopts an RDP protocol access mode in a starting and IP effective state to obtain the characteristics of improving user experience such as low bandwidth occupation, graphic acceleration capability, 4K high-definition redirection, terminal hardware acceleration and the like, and adopts SPICE access in a starting and IP invalid state to obtain the management experience characteristics such as starting support, blue screen troubleshooting, network troubleshooting and the like. Therefore, link loss in the virtual machine operation period due to the fact that a single RDP protocol is used for accessing is overcome, such as shutdown, failure, unavailable network disconnection and the like, low efficiency in operation due to the fact that a single SPICE protocol is used for accessing is avoided, such as the problems of high occupied bandwidth and low graphic performance are solved, the advantages of all links and high efficiency are achieved, and the cloud desktop access effect is good.
Referring to fig. 3, the cloud desktop remote access system in an embodiment, which is applicable to a terminal, includes a remote connection module 110, a data receiving module 120, a first status access module 130, a second status access module 140, and a third status access module 150.
The remote connection module 110 is configured to obtain the authentication parameter, and send a remote connection request to the host providing the virtual machine according to the authentication parameter.
In one embodiment, the authentication parameters include a host IP (internet protocol) address, a host port, host credentials, and a virtual machine ID (identification card). The host IP address, the host port and the host credential are used for specifying a host needing remote connection, and the virtual machine ID is used for specifying a virtual machine where the cloud desktop needing access is located.
The data receiving module 120 is configured to receive the type and the pre-access state of the virtual machine corresponding to the authentication parameter returned by the host according to the remote connection request.
The types of virtual machines include a Windows virtual machine and a Linux virtual machine. The Windows virtual machine refers to a virtual machine provided with a Windows operating system, and the Linux virtual machine refers to a virtual machine provided with a Linux operating system. The pre-access state of the virtual machine refers to the state of the virtual machine before the virtual machine is remotely accessed to the cloud desktop, and comprises a non-starting state, a starting and IP failure state and a starting and IP effective state.
The first state access module 130 is configured to send a SPICE access request to the host when the pre-access state of the virtual machine is an un-powered-on state or a powered-on and IP failure state. The SPICE access request is used for remotely accessing the cloud desktop of the virtual machine through the host by adopting the SPICE protocol.
The non-power-on state comprises power-off, standby, dormant and other states. The power-on and IP failure states include two states of power-on and no IP, power-on and unavailable IP. When the virtual machine is in a non-startup state or a startup and IP failure state, the virtual machine can not be connected with a network; at this time, no matter which one of the Windows virtual machine and the Linux virtual machine is used as the virtual machine, the SPICE access request is sent to the host, so that the host can access the cloud desktop corresponding to the virtual machine to the terminal sending the SPICE access request by adopting a SPICE protocol, and remote access of the cloud desktop is realized.
The second state access module 140 is configured to, when the pre-access state of the virtual machine is a boot-up state and an IP enabled state, obtain an IP address and a port of the virtual machine if the type of the virtual machine is a Windows virtual machine, and send an RDP access request to the virtual machine according to the IP address and the port of the virtual machine. The RDP access request is used for remotely accessing the cloud desktop of the virtual machine through the virtual machine by adopting an RDP protocol.
The type of the virtual machine is judged when the virtual machine is started and the IP is in an effective state, if the virtual machine is a Windows virtual machine, the RDP access request is sent to the virtual machine according to the IP address and the port of the virtual machine, and therefore the virtual machine can access the cloud desktop to a terminal sending the RDP access request by adopting an RDP protocol, and remote access of the cloud desktop is achieved.
The third state access module 150 is configured to send a SPICE access request to the host if the type of the virtual machine is the Linux virtual machine when the pre-access state of the virtual machine is the boot-up and IP-enabled state. The SPICE access request is used for remotely accessing the cloud desktop of the virtual machine through the host by adopting the SPICE protocol.
The Linux operating system does not support the RDP protocol, and therefore, in a state of starting up and taking the IP into effect, if the type of the virtual machine is the Linux virtual machine, the SPICE protocol is still used to realize remote access of the cloud desktop.
In the cloud desktop remote access system, after the remote connection module 110 sends the remote connection request to the host according to the acquired verification parameters, the data receiving module 120 receives the type and the pre-access state of the virtual machine, which is returned by the host according to the verification parameters; the first state access module 130 sends the SPICE access request to the host when the state before the virtual machine is accessed is the non-powered-on state or the powered-on and IP failure state, and the third state access module 150 sends the SPICE access request to the host when the state before the virtual machine is accessed is the powered-on and IP effective state and the type is the Linux virtual machine, so that the cloud desktop of the virtual machine is remotely accessed by the host through the SPICE protocol; when the virtual machine is in a state before being accessed, is powered on, is in an IP valid state, and is a Windows virtual machine, the second state access module 140 sends an RDP access request to the virtual machine by obtaining an IP address and a port of the virtual machine, so that the virtual machine is remotely accessed to the cloud desktop of the virtual machine by using an RDP protocol. Therefore, the type and the state of the virtual machine are combined for analysis, a better access mode suitable for the type and the state of the virtual machine is selected from the SPICE protocol access mode and the RDP protocol access mode, and the cloud desktop access effect can be improved.
In an embodiment, the cloud desktop remote access system further includes a boot module (not shown), configured to, when the current state of the virtual machine is an un-boot state, the first state access module 130, after sending the SPICE access request to the host, display a virtual boot button of the virtual machine, obtain a virtual machine boot instruction according to the displayed virtual boot button, and send the virtual machine boot instruction to the host. The virtual starting instruction is used for starting a starting process of the virtual machine and entering the cloud desktop according to the virtual machine starting instruction by the host.
When the virtual machine is in the non-startup state, the virtual startup instruction is sent to the host, so that the host can control the virtual machine to be started.
In an embodiment, the cloud desktop remote access system further includes a login module (not shown), configured to, after the first state access module 130 sends the SPICE access request to the host when the current state of the virtual machine is a boot state and an IP failure state, display a login interface of the virtual machine when the type of the virtual machine is a Windows virtual machine, obtain a login credential of the virtual machine according to the displayed login interface, and send the login credential to the host.
When the type of the virtual machine is a Windows virtual machine, the virtual machine login credentials are obtained and sent to the host machine, so that the virtual machine can be logged in.
Referring to fig. 4, in an embodiment, the cloud desktop remote access system further includes a status acquisition module 160, a first switching module 170, and a second switching module 180.
The state obtaining module 160 is configured to obtain a current state of the virtual machine when the type of the virtual machine is a Windows virtual machine after the first state access module 130 sends the SPICE access request to the host; and is configured to obtain the current state of the virtual machine after the second state access module 140 sends an RDP access request to the virtual machine according to the IP address and the port of the virtual machine.
The first switching module 170 is configured to, in the process of remotely accessing the cloud desktop through the host using the SPICE protocol, interrupt remote access to the cloud desktop through the host using the SPICE protocol if the current state of the virtual machine is the boot and IP is in an effective state, and remotely access to the cloud desktop through the virtual machine using the RDP protocol. Thus, the mode of accessing from the SPICE protocol is switched to the mode of accessing from the RDP protocol.
The second switching module 180 is configured to, in the process of remotely accessing the cloud desktop through the virtual machine by using the RDP protocol, interrupt remote access to the cloud desktop through the virtual machine by using the RDP protocol if the current state of the virtual machine is changed to the boot-up and IP failure state, and remotely access to the cloud desktop through the host by using the SPICE protocol. Thus, the mode of accessing from the RDP protocol is switched to the mode of accessing from the SPICE protocol.
In the cloud desktop access process, the two access modes, namely SPICE protocol access and RDP protocol access, are automatically switched according to the current state of the virtual machine, and the two access modes are fused; the method adopts an RDP protocol access mode in a starting and IP effective state to obtain the characteristics of improving user experience such as low bandwidth occupation, graphic acceleration capability, 4K high-definition redirection, terminal hardware acceleration and the like, and adopts SPICE access in a starting and IP invalid state to obtain the management experience characteristics such as starting support, blue screen troubleshooting, network troubleshooting and the like. Therefore, link loss in the virtual machine operation period due to the fact that a single RDP protocol is used for accessing is overcome, such as shutdown, failure, unavailable network disconnection and the like, low efficiency in operation due to the fact that a single SPICE protocol is used for accessing is avoided, such as the problems of high occupied bandwidth and low graphic performance are solved, the advantages of all links and high efficiency are achieved, and the cloud desktop access effect is good.
Referring to fig. 5, in a cloud computing environment providing a cloud desktop, including a host 210, a virtual machine 220, and a terminal 230, the host 210 installs a cloud operating system, provides the virtual machine 220, and the cloud operating system deploys a SPICE component, supporting SPICE protocols; virtual machine 220 installs a desktop operating system, such as: windows or Linux, the virtual machine 220 with the Windows operating system supports the RDP protocol; the terminal 230 installs remote access software to which the cloud desktop remote access method or the cloud desktop remote access system described above is applied. The terminal 230 obtains the authentication parameters through the remote access software and sends a remote connection request to the host 210, and the host 210 returns the type and the pre-access status of the virtual machine 220 to the terminal 230. The terminal 230 sends a SPICE access request to the host 210 through remote access software when the state before the access of the virtual machine 220 is a non-boot state, or a boot state and an IP failure state, or the type of the virtual machine 220 is a Linux virtual machine, and the host 210 communicates with the terminal 230 by adopting a SPICE protocol to realize the remote access of the cloud desktop of the virtual machine. The terminal 230 acquires the IP address and the port of the virtual machine 220 through remote access software when the state before the access of the virtual machine 220 is the boot state and the IP valid state, and the type of the virtual machine 220 is a Windows virtual machine, and sends an RDP access request to the virtual machine 220 according to the IP address and the port of the virtual machine 220, and the virtual machine 220 communicates with the terminal 230 by using an RDP protocol, so that the remote access of the cloud desktop of the virtual machine is realized. If the virtual machine 220 is a Windows virtual machine, in the remote access process, the terminal 230 detects the IP state of the virtual machine 220 in real time through remote access software, if the IP is valid, interrupts the SPICE protocol with the host 210, and sends an RDP access request to the virtual machine 220, and if the IP is invalid, triggers the RDP protocol with the virtual machine 220 to interrupt, and sends the SPICE access request to the host 210. Under any condition, the cloud desktop can keep control and system access, and the cloud desktop access effect is good by fusing two access modes.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A cloud desktop remote access method is characterized by comprising the following steps:
acquiring verification parameters, and sending a remote connection request to a host providing a virtual machine according to the verification parameters;
receiving the type and the pre-access state of the virtual machine corresponding to the verification parameters returned by the host according to the remote connection request;
when the pre-access state of the virtual machine is a non-boot state or a boot and IP failure state, sending an SPICE access request to the host for remotely accessing the cloud desktop of the virtual machine through the host by adopting an SPICE protocol;
when the pre-access state of the virtual machine is a startup and IP effective state, if the type of the virtual machine is a Windows virtual machine, acquiring an IP address and a port of the virtual machine, and sending an RDP access request to the virtual machine according to the IP address and the port of the virtual machine, wherein the RDP access request is used for remotely accessing a cloud desktop of the virtual machine by the virtual machine through an RDP protocol;
and when the pre-access state of the virtual machine is a startup and IP effective state, if the type of the virtual machine is a Linux virtual machine, sending the SPICE access request to the host for remotely accessing the cloud desktop of the virtual machine by the host through adopting an SPICE protocol.
2. The cloud desktop remote access method of claim 1, after sending the SPICE access request to the host when the current state of the virtual machine is an un-powered on state, further comprising:
displaying a virtual starting button of the virtual machine, acquiring a virtual starting instruction according to the displayed virtual starting button, sending the virtual starting instruction to the host, and enabling the host to start a starting process of the virtual machine according to the virtual starting instruction and enter a cloud desktop.
3. The cloud desktop remote access method of claim 1, after sending the SPICE access request to the host when the current state of the virtual machine is a power-on and IP failure state, further comprising:
and if the type of the virtual machine is a Windows virtual machine, displaying a login interface of the virtual machine, acquiring a login credential of the virtual machine according to the displayed login interface, and sending the login credential to the host.
4. The remote access method of the cloud desktop according to claim 1, wherein after sending an SPICE access request to the host, when the type of the virtual machine is a Windows virtual machine, or when the pre-access state of the virtual machine is a Windows virtual machine, when the pre-access state of the virtual machine is an un-powered on state, or a powered on and IP disabled state, if the type of the virtual machine is a Windows virtual machine, obtaining an IP address and a port of the virtual machine, and sending an RDP access request to the virtual machine according to the IP address and the port of the virtual machine, the method further comprising:
acquiring the current state of the virtual machine;
in the process of remotely accessing the cloud desktop by the host machine through the SPICE protocol, if the current state of the virtual machine is a startup and IP effective state, remotely accessing the cloud desktop by the host machine through the SPICE protocol is interrupted, and remotely accessing the cloud desktop by the virtual machine through the RDP protocol;
in the process of remotely accessing the cloud desktop by the virtual machine through the RDP protocol, if the current state of the virtual machine is changed into a startup and IP failure state, the remote access of the cloud desktop by the virtual machine through the RDP protocol is interrupted, and the cloud desktop is remotely accessed by the host through the SPICE protocol.
5. The cloud desktop remote access method of claim 1, wherein the authentication parameters comprise a host IP address, a host port, a host credential, and a virtual machine ID.
6. A cloud desktop remote access system, comprising:
the remote connection module is used for acquiring verification parameters and sending a remote connection request to a host computer providing the virtual machine according to the verification parameters;
the data receiving module is used for receiving the type and the pre-access state of the virtual machine corresponding to the verification parameters, which are returned by the host according to the remote connection request;
a first state access module, configured to send a SPICE access request to the host when a pre-access state of the virtual machine is an un-powered on state or a powered on and IP failure state, where the SPICE access request is used to remotely access a cloud desktop of the virtual machine through the host by using a SPICE protocol;
the second state access module is used for acquiring an IP address and a port of the virtual machine if the type of the virtual machine is a Windows virtual machine when the state before the access of the virtual machine is a starting state and the IP is in an effective state, and sending an RDP access request to the virtual machine according to the IP address and the port of the virtual machine, wherein the RDP access request is used for remotely accessing a cloud desktop of the virtual machine by the virtual machine through an RDP protocol;
and the third state access module is used for sending the SPICE access request to the host if the type of the virtual machine is a Linux virtual machine when the pre-access state of the virtual machine is a startup and IP effective state, wherein the SPICE access request is used for remotely accessing the cloud desktop of the virtual machine by the host through adopting an SPICE protocol.
7. The cloud desktop remote access system of claim 6, further comprising a boot module, configured to, when the current state of the virtual machine is a non-boot state, the first state access module, after sending the SPICE access request to the host, display a virtual boot button of the virtual machine, obtain a virtual boot instruction according to the displayed virtual boot button, and send the virtual boot instruction to the host, where the virtual boot instruction is used by the host to start a boot process of the virtual machine according to the virtual boot instruction and enter a cloud desktop.
8. The cloud desktop remote access system of claim 6, further comprising a login module, configured to, after the first state access module sends the SPICE access request to the host when the current state of the virtual machine is a boot-up and IP failure state, display a login interface of the virtual machine when the type of the virtual machine is a Windows virtual machine, obtain a login credential of the virtual machine according to the displayed login interface, and send the login credential to the host.
9. The cloud desktop remote access system of claim 6, further comprising:
a state obtaining module, configured to obtain a current state of the virtual machine when the type of the virtual machine is a Windows virtual machine after the first state access module sends the SPICE access request to the host; the second state access module is used for acquiring the current state of the virtual machine after sending the RDP access request to the virtual machine according to the IP address and the port of the virtual machine;
the first switching module is used for interrupting the remote access of the host to the cloud desktop by adopting the SPICE protocol and remotely accessing the cloud desktop by adopting the RDP protocol if the current state of the virtual machine is a startup and IP effective state in the process of remotely accessing the cloud desktop by adopting the SPICE protocol through the host;
and the second switching module is used for interrupting the remote access to the cloud desktop by the virtual machine by adopting the RDP protocol and remotely accessing the cloud desktop by the host machine by adopting the SPICE protocol if the current state of the virtual machine is changed into a startup and IP failure state in the process of remotely accessing the cloud desktop by adopting the RDP protocol through the virtual machine.
10. The cloud desktop remote access system of claim 6, wherein the authentication parameters comprise a host IP address, a host port, a host credential, and a virtual machine ID.
CN201611169780.8A 2016-12-16 2016-12-16 Cloud desktop remote access method and system Active CN108206842B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611169780.8A CN108206842B (en) 2016-12-16 2016-12-16 Cloud desktop remote access method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611169780.8A CN108206842B (en) 2016-12-16 2016-12-16 Cloud desktop remote access method and system

Publications (2)

Publication Number Publication Date
CN108206842A CN108206842A (en) 2018-06-26
CN108206842B true CN108206842B (en) 2020-09-15

Family

ID=62602591

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611169780.8A Active CN108206842B (en) 2016-12-16 2016-12-16 Cloud desktop remote access method and system

Country Status (1)

Country Link
CN (1) CN108206842B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110719309B (en) * 2018-07-13 2022-04-26 中兴通讯股份有限公司 Virtual desktop connection method, proxy device, system, equipment and storage medium
CN111107117A (en) * 2018-10-26 2020-05-05 中兴通讯股份有限公司 Virtual machine and remote control method, terminal, host server and storage medium thereof
CN109800042A (en) * 2018-12-28 2019-05-24 广东纬德信息科技有限公司 The graphic display method and system of cloud desktop
KR102331899B1 (en) * 2020-01-22 2021-11-26 네이버클라우드 주식회사 Method and system for remote terminal access through application of communication module during boot
CN111884919B (en) * 2020-07-02 2022-12-02 苏州浪潮智能科技有限公司 Method, device, equipment and readable medium for clearing invalid virtual IP
CN117149470A (en) * 2023-10-31 2023-12-01 西安雷风电子科技有限公司 Cloud desktop connection method, device, equipment and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102413150A (en) * 2010-09-20 2012-04-11 联想(北京)有限公司 Server and virtual desktop control method and virtual desktop control system
CN103209178A (en) * 2013-03-15 2013-07-17 汉柏科技有限公司 Method for operating simple protocol independent computing environment (SPICE) protocol on Cloud Stack platform in compatible way
CN103248654A (en) * 2012-02-10 2013-08-14 中兴通讯股份有限公司 Negotiation method, device and system for virtual desktop service parameters
KR101361838B1 (en) * 2010-12-09 2014-02-11 한국전자통신연구원 Method for accelerating virtual desktop protocol based on server virtualization and virtualization server for performing the same
CN104702624A (en) * 2015-03-27 2015-06-10 深圳市研唐科技有限公司 Method and system for logging virtual machine based on Cloud Stack platform
CN104901923A (en) * 2014-03-04 2015-09-09 杭州华三通信技术有限公司 Virtual machine access device and method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8135818B2 (en) * 2009-06-22 2012-03-13 Red Hat Israel, Ltd. Automatic virtual machine migration in mixed SBC/CBC environment
US10146566B2 (en) * 2009-12-21 2018-12-04 Microsoft Technology Licensing, Llc Enabling virtual desktop connections to remote clients

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102413150A (en) * 2010-09-20 2012-04-11 联想(北京)有限公司 Server and virtual desktop control method and virtual desktop control system
KR101361838B1 (en) * 2010-12-09 2014-02-11 한국전자통신연구원 Method for accelerating virtual desktop protocol based on server virtualization and virtualization server for performing the same
CN103248654A (en) * 2012-02-10 2013-08-14 中兴通讯股份有限公司 Negotiation method, device and system for virtual desktop service parameters
CN103209178A (en) * 2013-03-15 2013-07-17 汉柏科技有限公司 Method for operating simple protocol independent computing environment (SPICE) protocol on Cloud Stack platform in compatible way
CN104901923A (en) * 2014-03-04 2015-09-09 杭州华三通信技术有限公司 Virtual machine access device and method
CN104702624A (en) * 2015-03-27 2015-06-10 深圳市研唐科技有限公司 Method and system for logging virtual machine based on Cloud Stack platform

Also Published As

Publication number Publication date
CN108206842A (en) 2018-06-26

Similar Documents

Publication Publication Date Title
CN108206842B (en) Cloud desktop remote access method and system
US10148852B2 (en) Image processing system, control apparatus, image processing apparatus, and methods of controlling these
US10693813B1 (en) Enabling and disabling links of a networking switch responsive to compute node fitness
US20140115142A1 (en) Port Setting Method, Routing Device, and Computer Program Product
JP2015508273A (en) Shared network access via peer-to-peer link
US10063720B2 (en) Relay server enabling resumption of remote support, method of controlling the same, communication system and storage medium
EP2645252A1 (en) Information processing system and virtual address setting method
JP2010532955A (en) Electrical device configuration system and method
US10148764B2 (en) Backup wide area network connection for access points and routers
US20150106529A1 (en) Terminal apparatus and method for connecting to virtual server in virtual desktop infrastructure
CN103414740A (en) Private cloud account configuration method and device
US10931601B2 (en) Method and apparatus for conditional broadcasting of network configuration data
US9826047B2 (en) Information processing apparatus, method of controlling the same, and storage medium, for transmitting packet despite blockage
CN103490945A (en) Method for detecting maximum telnet user quantity
EP3979071B1 (en) Method, user equipment, and application server for downloading application
WO2016119623A1 (en) Method and device for realizing network sharing
TWI507889B (en) Management node , method , machine 一accessible medium and system for reservation and execution image writing of native computing devices
CN104376012A (en) Web page application reconnection method, web page application reconnection device and web page application reconnection system
WO2017053088A1 (en) Router connectivity for client devices
EP2874067B1 (en) Information processing system, information processing apparatus, terminal apparatus, control program, and control method
CN113965444A (en) Remote recovery method and device for home gateway
JP6281369B2 (en) Communication system and communication program
CN113347039B (en) Data processing method for virtualized network function
CN106332078B (en) dot1x user authentication system, method and device
US9501136B2 (en) Information processing device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant