CN103501295A - Virtual machine migration-based remote access method and equipment - Google Patents

Virtual machine migration-based remote access method and equipment Download PDF

Info

Publication number
CN103501295A
CN103501295A CN201310450732.6A CN201310450732A CN103501295A CN 103501295 A CN103501295 A CN 103501295A CN 201310450732 A CN201310450732 A CN 201310450732A CN 103501295 A CN103501295 A CN 103501295A
Authority
CN
China
Prior art keywords
vnc
physical host
server end
virtual machine
address
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.)
Granted
Application number
CN201310450732.6A
Other languages
Chinese (zh)
Other versions
CN103501295B (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.)
New H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201310450732.6A priority Critical patent/CN103501295B/en
Publication of CN103501295A publication Critical patent/CN103501295A/en
Application granted granted Critical
Publication of CN103501295B publication Critical patent/CN103501295B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a virtual machine migration-based remote access method and virtual machine migration-based remote access equipment. The method comprises the following steps: when a virtual machine is required to be migrated from a source physical host to a destination physical host, a VNC (Virtual Network Computing) client receives a VNC protocol message from a first VNC server, wherein the VNC protocol message carries with port information on the second VNC server and an IP (Internet Protocol) address of the destination physical host; after the VNC client determines that the virtual machine is migrated to the destination physical host, the connection between the VNC client and the second VNC server is established by using the port information on the second VNC server and the IP address of the destination physical host. In the embodiment of the invention, the interruption of a virtual desktop or a remote desktop represented on a user side can be avoided.

Description

A kind of remote access method and equipment based on virtual machine (vm) migration
Technical field
The present invention relates to communication technical field, especially related to a kind of remote access method and equipment based on virtual machine (vm) migration.
Background technology
Along with improving constantly of hardware speed, server performance promotes greatly, and the utilization rate of the part server of data center descends to some extent, and in order to improve the hardware utilance of server, in recent years, Intel Virtualization Technology is greatly developed.Pass through software virtual machine, can on a physical computer, simulate one or many virtual machines, these virtual machines carry out work fully just as real computer, for example, and can installing operating system on virtual machine, set up applications, accesses network resource etc.
VNC(Virtual Network Computing, Virtual network computer) be a Long-distance Control tool software, mainly by VNC client (vncviewer) and VNC server end (vncserver), formed, and the VNC server end can improve by modes such as setting codes the fail safe of access to netwoks.
Virtual machine (vm) migration refers to the virtual machine (vm) migration on the physical host of source is arrived to the purpose physical host, and can normally move on the purpose physical host.Wherein, if while moving, virtual machine, in running status, is called online migration; If during migration, virtual machine is in halted state, be called the off-line migration.Further, by virtual machine (vm) migration, can simplify the maintenance and management of system, realize the load balancing of system, and strengthen system survivability, and optimization system power management and energy savings etc.
In order to realize the virtual of desktop, the desktop of long-range physical host or virtual machine is presented on to local terminal by network, usually need the VNC client to be directly connected to the VNC server end, as shown in Figure 1, for the VNC client is directly connected to the schematic diagram of VNC server end.The VNC client, after the port information of the IP address of knowing physical host and VNC server end corresponding to virtual machine, can be connected to the VNC server end, then can be connected on the virtual machine of appointment and use this virtual machine.
But, virtual machine (vm) migration on the physical host of source is on the purpose physical host time, after virtual machine (vm) migration, being connected and will disconnecting between the source physical host at VNC client and VNC server end place, and the VNC client need to re-establish the connection of the purpose physical host after virtual machine (vm) migration, thereby the virtual desktop (or being called remote desktop) that causes being presented on user's side occur to interrupt.
Summary of the invention
The embodiment of the present invention provides a kind of remote access method and equipment based on virtual machine (vm) migration, to avoid the virtual desktop or the remote desktop that are presented on user's side, occurs interrupting, and improves the user and uses impression.
In order to achieve the above object, the embodiment of the present invention provides a kind of remote access method based on virtual machine (vm) migration, and the method comprises:
When virtual machine need to move to the purpose physical host from the source physical host, before described virtual machine (vm) migration arrives described purpose physical host, Virtual network computer VNC client is from the VNC protocol message of described virtual machine corresponding VNC server end on the physical host of described source; Wherein, carry the port information of described virtual machine the 2nd corresponding VNC server end on described purpose physical host and the IP address of described purpose physical host in described VNC protocol message;
Described VNC client perceive self with a described VNC server end between be connected while disconnecting, determine that described virtual machine has moved to described purpose physical host, and utilize the IP address of port information and the described purpose physical host of described the 2nd VNC server end, set up being connected between this VNC client and described the 2nd VNC server end, to login the desktop of described virtual machine.
Before the VNC protocol message of described VNC client from a VNC server end, described method also comprises: described VNC client is from the notification message of Virtual Machine Manager platform, carry the IP address of port information and the described source physical host of a described VNC server end in described notification message, and utilize the IP address of port information and the described source physical host of a described VNC server end, set up being connected between this VNC client and a described VNC server end.
The type of message of described VNC protocol message is VmMigrateInfo, carries ipv4 and ipv6 shared address texture field, vnc port information field in described VNC protocol message;
Wherein, described ipv4 and the ipv6 shared address texture field IP address for carrying described purpose physical host, described vnc port information field is for carrying the port information of described the 2nd VNC server end.
The embodiment of the present invention proposes a kind of remote access method based on virtual machine (vm) migration, and the method comprises:
When virtual machine need to move to the purpose physical host from the source physical host, described virtual machine first corresponding Virtual network computer VNC server end on the physical host of source obtains the port information of virtual machine the 2nd corresponding VNC server end on the purpose physical host and the IP address of described purpose physical host;
Before described virtual machine (vm) migration arrives described purpose physical host, the VNC client that a described VNC server end is corresponding to described virtual machine sends VNC protocol message, the IP address of carrying port information and the described purpose physical host of described the 2nd VNC server end in described VNC protocol message;
By described VNC client perceive self with a described VNC server end between be connected while disconnecting, determine that described virtual machine has moved to described purpose physical host, and utilize the IP address of port information and the described purpose physical host of described the 2nd VNC server end, set up being connected between described VNC client and described the 2nd VNC server end, to login the desktop of described virtual machine.
A described VNC server end obtains the IP address of port information and the described purpose physical host of the 2nd VNC server end, comprising:
A described VNC server end receives from the port information of described the 2nd VNC server end of the libvirt middleware on the physical host of source and the IP address of described purpose physical host; Wherein, described libvirt middleware is for moving to the purpose physical host by virtual machine from the source physical host, and the information that when moves to described purpose physical host for IP address and the described virtual machine of the port information by described the 2nd VNC server end and described purpose physical host, notice is to a described VNC server end.
The type of message of described VNC protocol message is VmMigrateInfo, carries ipv4 and ipv6 shared address texture field, vnc port information field in described VNC protocol message;
Wherein, described ipv4 and the ipv6 shared address texture field IP address for carrying described purpose physical host, described vnc port information field is for carrying the port information of described the 2nd VNC server end.
The embodiment of the present invention proposes a kind of Virtual network computer VNC client, and this VNC client comprises:
Receiver module, for when virtual machine need to move to the purpose physical host from the source physical host, before described virtual machine (vm) migration arrives described purpose physical host, receive the VNC protocol message from described virtual machine corresponding VNC server end on the physical host of described source; Wherein, carry the port information of described virtual machine the 2nd corresponding VNC server end on described purpose physical host and the IP address of described purpose physical host in described VNC protocol message;
Processing module, for perceive between VNC client and a described VNC server end be connected disconnection the time, determine that described virtual machine has moved to described purpose physical host, and utilize the IP address of port information and the described purpose physical host of described the 2nd VNC server end, set up being connected between this VNC client and described the 2nd VNC server end, to login the desktop of described virtual machine.
Described receiver module, also for before the VNC protocol message receiving from a VNC server end, reception, from the notification message of Virtual Machine Manager platform, is carried the IP address of port information and the described source physical host of a described VNC server end in described notification message;
Described processing module, also for the port information that utilizes a VNC server end and the IP address of source physical host, set up being connected between this VNC client and a described VNC server end.
The type of message of described VNC protocol message is VmMigrateInfo, carries ipv4 and ipv6 shared address texture field, vnc port information field in described VNC protocol message;
Wherein, described ipv4 and the ipv6 shared address texture field IP address for carrying described purpose physical host, described vnc port information field is for carrying the port information of described the 2nd VNC server end.
The embodiment of the present invention proposes a kind of Virtual network computer VNC server end, and as the VNC server end of virtual machine correspondence on the physical host of source, described VNC server end specifically comprises:
Acquisition module, for when described virtual machine need to move to the purpose physical host from described source physical host, obtain the port information of described virtual machine the 2nd corresponding VNC server end on described purpose physical host and the IP address of described purpose physical host;
Sending module, before at described virtual machine (vm) migration, arriving described purpose physical host, the VNC client corresponding to described virtual machine sends VNC protocol message, the IP address of carrying port information and the described purpose physical host of described the 2nd VNC server end in described VNC protocol message;
By described VNC client perceive self with a described VNC server end between be connected while disconnecting, determine that described virtual machine has moved to described purpose physical host, and utilize the IP address of port information and the described purpose physical host of described the 2nd VNC server end, set up being connected between described VNC client and described the 2nd VNC server end, to login the desktop of described virtual machine.
Described acquisition module, specifically for receiving from the port information of described the 2nd VNC server end of the libvirt middleware on the physical host of source and the IP address of described purpose physical host; Wherein, described libvirt middleware is for moving to the purpose physical host by virtual machine from the source physical host, and the information that when moves to described purpose physical host for IP address and the described virtual machine of the port information by the 2nd VNC server end and described purpose physical host, notice is to a described VNC server end.
The type of message of described VNC protocol message is VmMigrateInfo, carries ipv4 and ipv6 shared address texture field, vnc port information field in described VNC protocol message;
Wherein, described ipv4 and the ipv6 shared address texture field IP address for carrying described purpose physical host, described vnc port information field is for carrying the port information of described the 2nd VNC server end.
Compared with prior art, the embodiment of the present invention at least has the following advantages: in the embodiment of the present invention, when virtual machine need to move to the purpose physical host from the source physical host, before virtual machine (vm) migration arrives the purpose physical host, IP address notification by the port information by the 2nd VNC server end and purpose physical host is to the VNC client, make the VNC client after definite virtual machine (vm) migration arrives the purpose physical host, can directly utilize the IP address of port information and the purpose physical host of the 2nd VNC server end, set up being connected between this VNC client and the 2nd VNC server end, thereby avoid the virtual desktop or the remote desktop that are presented on user's side to occur interrupting, improve the user and use impression.Concrete, in the transition process of virtual machine, can realize the uninterrupted operation of virtual desktop or remote desktop, and improve user's experience of virtual desktop or remote desktop in the virtual machine (vm) migration process.
The accompanying drawing explanation
Fig. 1 is the schematic diagram that in prior art, the VNC client is directly connected to the VNC server end;
Fig. 2 is the system configuration schematic diagram of the embodiment of the present invention;
Fig. 3 is the schematic diagram that in the embodiment of the present invention, the VNC client is directly connected to the VNC server end;
Fig. 4 is a kind of remote access method flow chart based on virtual machine (vm) migration that the embodiment of the present invention provides;
Fig. 5 is the structural representation of a kind of VNC client of providing of the embodiment of the present invention;
Fig. 6 is the structural representation of a kind of VNC server end of providing of the embodiment of the present invention.
Embodiment
For problems of the prior art, the embodiment of the present invention provides a kind of remote access method based on virtual machine (vm) migration, the method is applied to comprise in the system of Virtual Machine Manager platform and a plurality of physical hosts, and on each physical host, operation has more than one virtual machine.As shown in Figure 2, be the system configuration schematic diagram that comprises Virtual Machine Manager platform and a plurality of physical hosts, this system comprises physical host 1, physical host 2 and physical host 3.Under this application scene, the system that three physical hosts of take form describes as example, and in actual networking, the node number of physical host elastic stretch flexibly, do not repeat them here.
Wherein, can move the KVM(kernel-based Virtual Machine based on Linux on each physical host, the virtual machine based on kernel) a kind of specific implementation of virtual platform (this KVM is VMM(Virtual Machine Monitor, virtual machine)), the function library of operation libvirt(virtual instrument) the virtual middleware such as.In addition, a plurality of virtual machines of operation on each physical host, move respectively different business (as DataBase server(database service), web server(network service on each virtual machine), file server(file service), ftp serve(file transfer services), mail server(mail service) etc.).
As shown in Figure 3, application scenarios schematic diagram for the embodiment of the present invention, in the remote access method provided in the embodiment of the present invention, corresponding system configuration comprises Virtual Machine Manager platform (vManager), VNC client, VNC server end, moves the physical host of the KVM virtual platform based on Linux, operates in the libvirt middleware of increasing income on each physical host.Wherein, KVM is the virtual platform on Linux, and can create virtual machine on physical host, makes a plurality of virtual machines of operation on each physical host.
In the embodiment of the present invention, the Virtual Machine Manager platform is by SSH(Secure Shell, safety shell protocol) etc. remote tools is carried out the managing physical main frame, realizes the unified management of virtual machine to moving on all physical hosts, all physical hosts, virtual switch, storage resources etc.Further, the Virtual Machine Manager platform can be managed each physical host by remote tools such as SSH, as: (1) realizes the operations such as increase to physical host, deletion; (2) realize virtual machine creating, deletion, start, stop, suspending, move relevant operation and the management of all virtual machine life cycles such as virtual machine by the virtual tool software of libvirt; (3) after the user selects designated virtual machine, button is provided, click after this button and start the VNC client, connect the virtual machine of appointment, the desktop of remote virtual machine is represented in face of the user.
In the embodiment of the present invention, the virtual middleware such as the KVM virtual platform of operation based on Linux, operation libvirt on each physical host, and each physical host is the carrier of virtual machine, virtual switch, storage.Wherein, on each physical host, also need to move the VNC server end, and a port on the corresponding VNC server end of the virtual machine of each starting state, and the VNC client can be connected to by this port the desktop of this virtual machine, thereby realize the remote dummy desktop, then operate this virtual machine.
Concrete, after on physical host, creating virtual machine, can specify the port information of this virtual machine on the VNC server end etc. by modes such as order lines, and the VNC client is in the IP address of knowing this physical host and this virtual machine after the port information on the VNC server end, can be connected to this VNC server end, then can be connected on the virtual machine of appointment and use this virtual machine.
In the embodiment of the present invention, VNC client and VNC server end are the virtual desktop tool software of increasing income.The VNC client operates in customer side, the user chooses certain virtual machine on the Virtual Machine Manager platform, and while carrying out " remote desktop " order, by the IP address of long-range physical host and virtual machine, the information such as port on the VNC server end send to the VNC client to the Virtual Machine Manager platform, make the VNC client can login the virtual machine desktop.The VNC server end operates on each physical host, when creating virtual machine, can specify the port of this virtual machine on the VNC server end by the KVM virtual platform.
Based on above-mentioned Virtual Machine Manager platform, physical host, VNC client and VNC server end, as shown in Figure 4, should comprise the following steps by the remote access method based on virtual machine (vm) migration:
Step 401, the user logins the Virtual Machine Manager platform on the browsers such as IE, creates virtual machine VM1 on the physical host of source, specifies this virtual machine VM1 to be based upon on the physical host of source.
Step 402, the Virtual Machine Manager platform obtains the port information of virtual machine VM1 corresponding VNC server end on the physical host of source and the IP address of source physical host, and sends a notification message to the VNC client; Wherein, at least carried the IP address of port information and the source physical host of a VNC server end in this notification message.Further, this port information can be port numbers.
Wherein, the IP address of source physical host can be IPV4 address or IPV6 address.
Concrete, while as the user, carrying out login " remote desktop " button on the Virtual Machine Manager platform, the Virtual Machine Manager platform obtains the IP address (as 192.168.0.188) of source physical host (being the physical host of current operation virtual machine), and log on this IP address (as 192.168.0.188) by SSH, afterwards, the Virtual Machine Manager platform can get the port information (being port numbers) of a VNC server end by the libvirt order virsh vncdisplay vm1 that increases income.For example, based on libvirt order virsh vncdisplay vm1, the port numbers of the VNC server end that following presentation of results virtual machine VM1 is corresponding is 0.
root@cvknode2:~/build#virsh?vncdisplay?vm1
:0
root@cvknode2:~/build#
Step 403, the VNC client is from the notification message of Virtual Machine Manager platform, utilize the IP address of port information and the source physical host of a VNC server end, set up being connected between this VNC client and a VNC server end, to utilize this connection, sign in to the remote desktop of virtual machine VM1.
Concrete, the Virtual Machine Manager platform can start the VNC client on user's the browsers such as IE, and provide the information (as 192.168.0.188:0) such as IP address of port information and the source physical host of a VNC server end on the browsers such as IE, make the VNC client utilize the IP address of the port information of a VNC server end and source physical host to set up being connected between this VNC client and a VNC server end, to utilize this connection, sign in to the remote desktop of virtual machine VM1.
Step 404, when virtual machine VM1 need to move to the purpose physical host from the source physical host, (now virtual machine VM1 does not also move to the purpose physical host from the source physical host, the demand that moves to the purpose physical host from the source physical host is just arranged) time, a VNC server end obtains the port information of virtual machine VM1 the 2nd corresponding VNC server end on the purpose physical host and the IP address of purpose physical host.
Wherein, the IP address of purpose physical host can be IPV4 address or IPV6 address.
Concrete, when need to moving to the purpose physical host from the source physical host, virtual machine VM1 (operates the reasons such as driving or scheduling of resource LB driving based on the keeper, can cause virtual machine VM1 to move to the purpose physical host from the source physical host) time, can virtual machine be moved to the purpose physical host from the source physical host by the libvirt middleware on the physical host of source, such as the libvirt middleware as issue orders for by virtual machine VM1 from main frame host1(source physical host) move to main frame host2(purpose physical host), time-out time is 300s, when surpassing 300s, transition process will suspend virtual machine VM1, continue again migration.
virsh-c?qemu+ssh://host1/system?migrate--live--persistent?vm1?qemu+ssh://host2/system--timeout300
Based on this, the libvirt middleware is the process (moving to the process of purpose physical host from the source physical host) of carrying out virtual machine (vm) migration, and the libvirt middleware can get the port information (as the port numbers of the VNC server end of virtual machine VM1 on host2 after moving successfully) of the 2nd VNC server end and the IP address (as the IP address of host2) of purpose physical host; In addition, when virtual machine VM1 completes the process that moves to the purpose physical host from the source physical host, and itself also can know the libvirt middleware.
The libvirt middleware is behind the IP address of the port information that gets the 2nd VNC server end and purpose physical host, give a VNC server end by the IP address notification of the port information of the 2nd VNC server end and purpose physical host, known the IP address of port information and the purpose physical host of the 2nd VNC server end by a VNC server end.In addition, the libvirt middleware is when getting virtual machine and when move to the purpose physical host, the information that when virtual machine is moved to the purpose physical host is notified to a VNC server end, by a VNC server end, knows when virtual machine moves to the purpose physical host.
Step 405, before virtual machine (vm) migration arrives the purpose physical host, a VNC server end sends the VNC protocol message to the VNC client.Wherein, at least carried the IP address of port information and the purpose physical host of the 2nd VNC server end in this VNC protocol message.
Concrete, the information that when virtual machine can be moved to the purpose physical host due to the libvirt middleware is notified to a VNC server end, make a VNC server end can know when virtual machine moves to the purpose physical host, therefore, the one VNC server end can be at virtual machine (vm) migration to before the purpose physical host, by the VNC protocol message by the IP address notification of the port information of the 2nd VNC server end and purpose physical host to the VNC client.
Step 406, the VNC client is from the VNC protocol message (wherein having carried the IP address of port information and the purpose physical host of the 2nd VNC server end) of a VNC server end, and perceiving while disconnecting being connected between this VNC client and a VNC server end, the VNC client determines that virtual machine VM1 has moved to the purpose physical host, and utilize the IP address of port information and the purpose physical host of the 2nd VNC server end, set up being connected between this VNC client and the 2nd VNC server end, with the desktop of login virtual machine VM1.
Concrete, the VNC client is after the VNC protocol message of receiving from a VNC server end, can get the IP address of port information and the purpose physical host of the 2nd VNC server end, and preserve the IP address of port information and the purpose physical host of the 2nd VNC server end.In process afterwards, after virtual machine VM1 moves to the purpose physical host, being connected and will disconnecting between VNC client and a VNC server end, and the VNC client is perceiving while disconnecting being connected between this VNC client and a VNC server end, to determine that virtual machine VM1 has moved to the purpose physical host, the port information of the 2nd VNC server end that now the VNC client is preserved before can directly utilizing and the IP address of purpose physical host, set up being connected between this VNC client and the 2nd VNC server end, again to sign in to the remote desktop of virtual machine VM1, and avoid the virtual desktop or the remote desktop that are presented on user's side to occur interrupting, thereby improve the user and use impression.
In a kind of preferred implementation of the embodiment of the present invention, the type of message of VNC protocol message is VmMigrateInfo, carries ipv4 and ipv6 shared address texture field, vnc port information field in the VNC protocol message; Wherein, ipv4 and the ipv6 shared address texture field IP address for carrying the purpose physical host, vnc port information field is for carrying the port information of the 2nd VNC server end.
Concrete, the VNC protocol message sent to the VNC client for a VNC server end, by expanding a type of message VmMigrateInfo(data type, be U8, an i.e. byte), and take a free time number (as 211) after existing message number, make the VNC protocol message can carry the IP address of purpose physical host and the port information of the 2nd VNC server end.
As follows, a kind of concrete message format for the VNC protocol message, this VNC protocol message carries the IP address of purpose physical host by ipv4 and ipv6 shared address texture field, and by the port information of vnc port information field carrying the 2nd VNC server end.
Figure BDA0000388751460000111
In sum, in the embodiment of the present invention, when virtual machine need to move to the purpose physical host from the source physical host, before virtual machine (vm) migration arrives the purpose physical host, the one VNC server end passes through the IP address notification of the port information of the 2nd VNC server end and purpose physical host to the VNC client, make the VNC client after definite virtual machine (vm) migration arrives the purpose physical host, can directly utilize the IP address of port information and the purpose physical host of the 2nd VNC server end, set up being connected between this VNC client and the 2nd VNC server end, thereby avoid the virtual desktop or the remote desktop that are presented on user's side to occur interrupting, improve the user and use impression.Concrete, in the transition process of virtual machine, can realize the uninterrupted operation of virtual desktop or remote desktop, and improve user's experience of virtual desktop or remote desktop in the virtual machine (vm) migration process.
Inventive concept based on same with said method, also provide a kind of Virtual network computer VNC client in the embodiment of the present invention, as shown in Figure 5, this VNC client comprises:
Receiver module 11, for when virtual machine need to move to the purpose physical host from the source physical host, before described virtual machine (vm) migration arrives described purpose physical host, receive the VNC protocol message from described virtual machine corresponding VNC server end on the physical host of described source; Wherein, carry the port information of described virtual machine the 2nd corresponding VNC server end on described purpose physical host and the IP address of described purpose physical host in described VNC protocol message;
Processing module 12, for perceive between VNC client and a described VNC server end be connected disconnection the time, determine that described virtual machine has moved to described purpose physical host, and utilize the IP address of port information and the described purpose physical host of described the 2nd VNC server end, set up being connected between this VNC client and described the 2nd VNC server end, to login the desktop of described virtual machine.
Described receiver module 11, also for before the VNC protocol message receiving from a VNC server end, reception, from the notification message of Virtual Machine Manager platform, is carried the IP address of port information and the described source physical host of a described VNC server end in described notification message;
Described processing module 12, also for the port information that utilizes a VNC server end and the IP address of source physical host, set up being connected between this VNC client and a described VNC server end.
In the embodiment of the present invention, the type of message of described VNC protocol message is VmMigrateInfo, carries ipv4 and ipv6 shared address texture field, vnc port information field in described VNC protocol message; Wherein, described ipv4 and the ipv6 shared address texture field IP address for carrying described purpose physical host, described vnc port information field is for carrying the port information of described the 2nd VNC server end.
Wherein, the modules of apparatus of the present invention can be integrated in one, and also can separate deployment.Above-mentioned module can be merged into a module, also can further split into a plurality of submodules.
Inventive concept based on same with said method, also provide a kind of Virtual network computer VNC server end in the embodiment of the present invention, as the VNC server end of virtual machine correspondence on the physical host of source, as shown in Figure 6, described VNC server end specifically comprises:
Acquisition module 21, for when described virtual machine need to move to the purpose physical host from described source physical host, obtain the port information of described virtual machine the 2nd corresponding VNC server end on described purpose physical host and the IP address of described purpose physical host;
Sending module 22, before at described virtual machine (vm) migration, arriving described purpose physical host, the VNC client corresponding to described virtual machine sends VNC protocol message, the IP address of carrying port information and the described purpose physical host of described the 2nd VNC server end in described VNC protocol message;
By described VNC client perceive self with a described VNC server end between be connected while disconnecting, determine that described virtual machine has moved to described purpose physical host, and utilize the IP address of port information and the described purpose physical host of described the 2nd VNC server end, set up being connected between described VNC client and described the 2nd VNC server end, to login the desktop of described virtual machine.
Described acquisition module 21, specifically for receiving from the port information of described the 2nd VNC server end of the libvirt middleware on the physical host of source and the IP address of described purpose physical host; Wherein, described libvirt middleware is for moving to the purpose physical host by virtual machine from the source physical host, and the information that when moves to described purpose physical host for IP address and the described virtual machine of the port information by the 2nd VNC server end and described purpose physical host, notice is to a described VNC server end.
In the embodiment of the present invention, the type of message of described VNC protocol message is VmMigrateInfo, carries ipv4 and ipv6 shared address texture field, vnc port information field in described VNC protocol message; Wherein, described ipv4 and the ipv6 shared address texture field IP address for carrying described purpose physical host, described vnc port information field is for carrying the port information of described the 2nd VNC server end.
Wherein, the modules of apparatus of the present invention can be integrated in one, and also can separate deployment.Above-mentioned module can be merged into a module, also can further split into a plurality of submodules.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add essential general hardware platform by software and realize, can certainly pass through hardware, but in a lot of situation, the former is better execution mode.Understanding based on such, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, or the network equipment etc.) the described method of execution each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, the module in accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device in embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from the present embodiment.The module of above-described embodiment can be merged into a module, also can further split into a plurality of submodules.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Above disclosed be only several specific embodiment of the present invention, still, the present invention is not limited thereto, the changes that any person skilled in the art can think of all should fall into protection scope of the present invention.

Claims (12)

1. the remote access method based on virtual machine (vm) migration, is characterized in that, the method comprises:
When virtual machine need to move to the purpose physical host from the source physical host, before described virtual machine (vm) migration arrives described purpose physical host, Virtual network computer VNC client is from the VNC protocol message of described virtual machine corresponding VNC server end on the physical host of described source; Wherein, carry the port information of described virtual machine the 2nd corresponding VNC server end on described purpose physical host and the IP address of described purpose physical host in described VNC protocol message;
Described VNC client perceive self with a described VNC server end between be connected while disconnecting, determine that described virtual machine has moved to described purpose physical host, and utilize the IP address of port information and the described purpose physical host of described the 2nd VNC server end, set up being connected between this VNC client and described the 2nd VNC server end, to login the desktop of described virtual machine.
2. the method for claim 1, is characterized in that, before the VNC protocol message of described VNC client from a VNC server end, described method also comprises:
Described VNC client is from the notification message of Virtual Machine Manager platform, carry the IP address of port information and the described source physical host of a described VNC server end in described notification message, and utilize the IP address of port information and the described source physical host of a described VNC server end, set up being connected between this VNC client and a described VNC server end.
3. the method for claim 1, is characterized in that,
The type of message of described VNC protocol message is VmMigrateInfo, carries ipv4 and ipv6 shared address texture field, vnc port information field in described VNC protocol message;
Wherein, described ipv4 and the ipv6 shared address texture field IP address for carrying described purpose physical host, described vnc port information field is for carrying the port information of described the 2nd VNC server end.
4. the remote access method based on virtual machine (vm) migration, is characterized in that, the method comprises:
When virtual machine need to move to the purpose physical host from the source physical host, described virtual machine first corresponding Virtual network computer VNC server end on the physical host of source obtains the port information of virtual machine the 2nd corresponding VNC server end on the purpose physical host and the IP address of described purpose physical host;
Before described virtual machine (vm) migration arrives described purpose physical host, the VNC client that a described VNC server end is corresponding to described virtual machine sends VNC protocol message, the IP address of carrying port information and the described purpose physical host of described the 2nd VNC server end in described VNC protocol message;
By described VNC client perceive self with a described VNC server end between be connected while disconnecting, determine that described virtual machine has moved to described purpose physical host, and utilize the IP address of port information and the described purpose physical host of described the 2nd VNC server end, set up being connected between described VNC client and described the 2nd VNC server end, to login the desktop of described virtual machine.
5. method as claimed in claim 4, is characterized in that, a described VNC server end obtains the IP address of port information and the described purpose physical host of the 2nd VNC server end, comprising:
A described VNC server end receives from the port information of described the 2nd VNC server end of the libvirt middleware on the physical host of source and the IP address of described purpose physical host; Wherein, described libvirt middleware is for moving to the purpose physical host by virtual machine from the source physical host, and the information that when moves to described purpose physical host for IP address and the described virtual machine of the port information by described the 2nd VNC server end and described purpose physical host, notice is to a described VNC server end.
6. method as claimed in claim 4, is characterized in that,
The type of message of described VNC protocol message is VmMigrateInfo, carries ipv4 and ipv6 shared address texture field, vnc port information field in described VNC protocol message;
Wherein, described ipv4 and the ipv6 shared address texture field IP address for carrying described purpose physical host, described vnc port information field is for carrying the port information of described the 2nd VNC server end.
7. a Virtual network computer VNC client, is characterized in that, this VNC client comprises:
Receiver module, for when virtual machine need to move to the purpose physical host from the source physical host, before described virtual machine (vm) migration arrives described purpose physical host, receive the VNC protocol message from described virtual machine corresponding VNC server end on the physical host of described source; Wherein, carry the port information of described virtual machine the 2nd corresponding VNC server end on described purpose physical host and the IP address of described purpose physical host in described VNC protocol message;
Processing module, for perceive between VNC client and a described VNC server end be connected disconnection the time, determine that described virtual machine has moved to described purpose physical host, and utilize the IP address of port information and the described purpose physical host of described the 2nd VNC server end, set up being connected between this VNC client and described the 2nd VNC server end, to login the desktop of described virtual machine.
8. VNC client as claimed in claim 7, is characterized in that,
Described receiver module, also for before the VNC protocol message receiving from a VNC server end, reception, from the notification message of Virtual Machine Manager platform, is carried the IP address of port information and the described source physical host of a described VNC server end in described notification message;
Described processing module, also for the port information that utilizes a VNC server end and the IP address of source physical host, set up being connected between this VNC client and a described VNC server end.
9. VNC client as claimed in claim 7, is characterized in that,
The type of message of described VNC protocol message is VmMigrateInfo, carries ipv4 and ipv6 shared address texture field, vnc port information field in described VNC protocol message;
Wherein, described ipv4 and the ipv6 shared address texture field IP address for carrying described purpose physical host, described vnc port information field is for carrying the port information of described the 2nd VNC server end.
10. a Virtual network computer VNC server end, as virtual machine corresponding VNC server end on the physical host of source, is characterized in that, described VNC server end specifically comprises:
Acquisition module, for when described virtual machine need to move to the purpose physical host from described source physical host, obtain the port information of described virtual machine the 2nd corresponding VNC server end on described purpose physical host and the IP address of described purpose physical host;
Sending module, before at described virtual machine (vm) migration, arriving described purpose physical host, the VNC client corresponding to described virtual machine sends VNC protocol message, the IP address of carrying port information and the described purpose physical host of described the 2nd VNC server end in described VNC protocol message;
By described VNC client perceive self with a described VNC server end between be connected while disconnecting, determine that described virtual machine has moved to described purpose physical host, and utilize the IP address of port information and the described purpose physical host of described the 2nd VNC server end, set up being connected between described VNC client and described the 2nd VNC server end, to login the desktop of described virtual machine.
11. VNC server end as claimed in claim 10, is characterized in that,
Described acquisition module, specifically for receiving from the port information of described the 2nd VNC server end of the libvirt middleware on the physical host of source and the IP address of described purpose physical host; Wherein, described libvirt middleware is for moving to the purpose physical host by virtual machine from the source physical host, and the information that when moves to described purpose physical host for IP address and the described virtual machine of the port information by the 2nd VNC server end and described purpose physical host, notice is to a described VNC server end.
12. VNC server end as claimed in claim 10, is characterized in that,
The type of message of described VNC protocol message is VmMigrateInfo, carries ipv4 and ipv6 shared address texture field, vnc port information field in described VNC protocol message;
Wherein, described ipv4 and the ipv6 shared address texture field IP address for carrying described purpose physical host, described vnc port information field is for carrying the port information of described the 2nd VNC server end.
CN201310450732.6A 2013-09-27 2013-09-27 A kind of remote access method based on virtual machine (vm) migration and equipment Active CN103501295B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310450732.6A CN103501295B (en) 2013-09-27 2013-09-27 A kind of remote access method based on virtual machine (vm) migration and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310450732.6A CN103501295B (en) 2013-09-27 2013-09-27 A kind of remote access method based on virtual machine (vm) migration and equipment

Publications (2)

Publication Number Publication Date
CN103501295A true CN103501295A (en) 2014-01-08
CN103501295B CN103501295B (en) 2017-03-08

Family

ID=49866467

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310450732.6A Active CN103501295B (en) 2013-09-27 2013-09-27 A kind of remote access method based on virtual machine (vm) migration and equipment

Country Status (1)

Country Link
CN (1) CN103501295B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105389198A (en) * 2015-10-16 2016-03-09 浪潮(北京)电子信息产业有限公司 Automatic reconnection method and device of virtual machine console
CN105700944A (en) * 2015-12-31 2016-06-22 赛尔网络有限公司 Online migration method and device for virtual machine not in shared storage condition
CN106254419A (en) * 2016-07-15 2016-12-21 北京首都在线科技股份有限公司 System and method virtual machine operated by control station server
CN109062665A (en) * 2018-07-26 2018-12-21 郑州云海信息技术有限公司 A kind of virtual machine desktop environment configurations method, apparatus and system
CN109194742A (en) * 2018-09-04 2019-01-11 郑州云海信息技术有限公司 A kind of connection method, device and the storage medium of virtual machine console
CN111327509A (en) * 2020-01-21 2020-06-23 新华三信息安全技术有限公司 Information updating method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100257269A1 (en) * 2009-04-01 2010-10-07 Vmware, Inc. Method and System for Migrating Processes Between Virtual Machines
CN102143138A (en) * 2010-09-15 2011-08-03 华为技术有限公司 Method and device for configuring virtual local area network (VLAN) in live migration process of virtual machine
CN102316001A (en) * 2011-10-13 2012-01-11 杭州华三通信技术有限公司 Virtual network connection configuration realizing method and network equipment
CN103207801A (en) * 2012-01-11 2013-07-17 华为技术有限公司 Method, device and system for migrating virtual machine and fiber channel switch

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100257269A1 (en) * 2009-04-01 2010-10-07 Vmware, Inc. Method and System for Migrating Processes Between Virtual Machines
CN102143138A (en) * 2010-09-15 2011-08-03 华为技术有限公司 Method and device for configuring virtual local area network (VLAN) in live migration process of virtual machine
CN102316001A (en) * 2011-10-13 2012-01-11 杭州华三通信技术有限公司 Virtual network connection configuration realizing method and network equipment
CN103207801A (en) * 2012-01-11 2013-07-17 华为技术有限公司 Method, device and system for migrating virtual machine and fiber channel switch

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105389198A (en) * 2015-10-16 2016-03-09 浪潮(北京)电子信息产业有限公司 Automatic reconnection method and device of virtual machine console
CN105700944A (en) * 2015-12-31 2016-06-22 赛尔网络有限公司 Online migration method and device for virtual machine not in shared storage condition
CN106254419A (en) * 2016-07-15 2016-12-21 北京首都在线科技股份有限公司 System and method virtual machine operated by control station server
CN109062665A (en) * 2018-07-26 2018-12-21 郑州云海信息技术有限公司 A kind of virtual machine desktop environment configurations method, apparatus and system
CN109194742A (en) * 2018-09-04 2019-01-11 郑州云海信息技术有限公司 A kind of connection method, device and the storage medium of virtual machine console
CN109194742B (en) * 2018-09-04 2021-07-02 郑州云海信息技术有限公司 Virtual machine console connection method and device and storage medium
CN111327509A (en) * 2020-01-21 2020-06-23 新华三信息安全技术有限公司 Information updating method and device

Also Published As

Publication number Publication date
CN103501295B (en) 2017-03-08

Similar Documents

Publication Publication Date Title
US10698717B2 (en) Accelerator virtualization method and apparatus, and centralized resource manager
EP3242217B1 (en) Systems and methods for flexible hdd/ssd storage support
EP3386157B1 (en) Packet transmission method, device and system
CN101924693B (en) Method and system for migrating processes between virtual machines
CN103501295A (en) Virtual machine migration-based remote access method and equipment
US20140188977A1 (en) Appratus, method for deploying applications in a virtual desktop interface system
US10171294B2 (en) Information processing device and system design support method
US9268588B2 (en) Optimizing virtual machine migration via identification and treatment of virtual memory swap file
US10541862B2 (en) VNF processing policy determining method, apparatus, and system
CN103812913A (en) Remote access method and device based on VNC (virtual network computing)
CN102316043B (en) Port virtualization method, switch and communication system
CN103986786A (en) Remote cloud desktop operation system
CN103414626A (en) Message processing method and device based on network virtualization
CN103595801A (en) Cloud computing system and real-time monitoring method for virtual machine in cloud computing system
US20160254958A1 (en) Method, apparatus and system for virtualizing a policy and charging rules function
US11747986B2 (en) Container-based cloud service providing system and method therefor
EP4030736A1 (en) Load balancing system, method and apparatus, and storage medium
CN112787913A (en) Intelligent network card assembly, physical machine, cloud service system and message sending method
CN117061352A (en) Method, device, equipment and medium for implementing multi-mode virtual network element
EP3873038B1 (en) Communication between private networks
CN105681424A (en) Desktop cloud system
CN110795209B (en) Control method and device
US8898314B2 (en) Direct communication between applications in a cloud computing environment
CN112073499A (en) Dynamic service method of multi-machine type cloud physical server
CN115633037A (en) Method, device, virtual gateway equipment, medium and system for forwarding data packet

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: Huasan Communication Technology Co., Ltd.