CN102520881A - Virtual machine snapshot management method and system of cloud computing platform - Google Patents

Virtual machine snapshot management method and system of cloud computing platform Download PDF

Info

Publication number
CN102520881A
CN102520881A CN2011103971901A CN201110397190A CN102520881A CN 102520881 A CN102520881 A CN 102520881A CN 2011103971901 A CN2011103971901 A CN 2011103971901A CN 201110397190 A CN201110397190 A CN 201110397190A CN 102520881 A CN102520881 A CN 102520881A
Authority
CN
China
Prior art keywords
virtual machine
snapshot
instrument
virtual
disk
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
CN2011103971901A
Other languages
Chinese (zh)
Other versions
CN102520881B (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.)
China Standard Software Co Ltd
Original Assignee
China Standard Software 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 China Standard Software Co Ltd filed Critical China Standard Software Co Ltd
Priority to CN201110397190.1A priority Critical patent/CN102520881B/en
Publication of CN102520881A publication Critical patent/CN102520881A/en
Application granted granted Critical
Publication of CN102520881B publication Critical patent/CN102520881B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a virtual machine snapshot management method and a virtual machine snapshot management system of a cloud computing platform. The method comprises the following steps of: mainly performing the following steps when establishing a virtual machine snapshot for a virtual machine of a cluster node: a preparation step, if the virtual machine is in a running state, pausing the virtual machine by a control node of the cloud computing platform by calling a virtual machine management tool and establishing a memory snapshot of the virtual machine; disk snapshot step, calling a virtualization management tool to establish the disk snapshot of the virtual machine by the control node; and a subsequent processing step, if the virtual machine is in the running state, calling the virtualization management tool to restore running of the virtual machine by using the established memory snapshot. The invention provides good user snapshot management experience and guarantees consistency and stability of the cloud computing platform.

Description

A kind of virtual machine snapshot management method and system of cloud computing platform
Technical field
The present invention relates to the virtual machine snapshot administrative skill under the cloud computing platform, refer to especially a kind of under the Linux environment, the method for in cloud computing platform, carrying out virtual machine snapshot management based on Virtual Machine Manager instruments such as Libvirt.
Background technology
Cloud computing is a kind of method of emerging shared architecture, and it is distributed in calculation task on the resource pool that great amount of calculation mechanism becomes, and makes various application systems can obtain computing power, storage space and various software service as required.The bottom of cloud computing needs the Intel Virtualization Technology support.Through Intel Virtualization Technology, cloud computing can realize the using flexibly and efficiently of resource, thereby quality services is provided for the user.
Libvirt is that a cover is free, the C function library of the virtual instrument of main flow under the support Linux that increases income, and its purpose is that a cover is convenient, DLL, and support reliably and the binding of multiple main flow development language for multiple virtual instrument provides.Current, Linux supports the main flow cloud computing platform major part of multiple virtual instrument to be to use the Libvirt storehouse to come the multiple virtual instrument of compatible management down.Through the Libvirt storehouse, cloud computing platform can shield the isomerism of various virtual instruments, thereby need all not develop the corresponding management interface of a cover for every kind of virtual instrument, has reduced the complicacy of cloud computing platform.
Virtual machine snapshot is the duplicate that virtual machine backs up dummy machine system at some point.When dummy machine system collapses or be unusual, can return to virtual machine snapshot through use and keep file system and system's storage.Virtual machine snapshot residing state of dummy machine system when creating snapshot is divided into start snapshot and shutdown snapshot.The start snapshot has comprised the snapshot that internal memory and disk two parts are created, and is the virtual machine snapshot of when dummy machine system is in running status, creating.The shutdown snapshot comprises creates snapshot to disk, is the virtual machine snapshot of when dummy machine system is in closed condition, creating.
Libvirt is that the snapshot management provides DLL.The registration virtual machine has dual mode in Libvirt, and a kind of is permanent registration, and a kind of is provisional registration.Permanent registration is meant in the virtual machine operational process; Some bookkeepings that the user carries out virtual machine all can by Libvirt record, after virtual machine was closed, these operations can not disappear; Only if in Libvirt, nullify this virtual machine; For example: the snapshot of when virtual machine moves, creating, when virtual machine startup next time, still can operate on it, in Libvirt, nullified this virtual machine up to the user.Provisional registration be meant virtual machine by the life cycle of Libvirt management for to close during this period of time to it from the one-shot of virtual machine; That is to say; The user virtual machine when cura generalis that time operation is done the time operates in virtual machine close after, in Libvirt, all do not have respective record.For example: the snapshot of when virtual machine moves, creating, the snapshot record before when virtual machine startup next time, can't finding also just can't be operated the snapshot of creating before, although it exists.
The principle that Libvirt creates snapshot is that the current internal memory of the virtual machine that is moving, CPU register and disc information etc. all are kept in the middle of the disk image of virtual machine; Can't directly operate from the disk outside, can only call the Libvirt DLL the snapshot that utilizes Libvirt to create; In case can't find the recorded information of this snapshot among the Libvirt, this snapshot can't use so, this also is the provisional defective that the snapshot management aspect exists that is registered in.
The provisional registration of the use Libvirt that under the Linux there is the cloud computing platform of main flow, the permanent registration of the use that has.Current, the problem that the cloud platform that uses provisional registration exists when carrying out the snapshot management clearly, created impinge upon virtual machine soon and restart after possibly can't use, thereby can't realize the management function of snapshot.
Summary of the invention
Carry out the defective of cloud computing platform existence when carrying out the snapshot management of Virtual Machine Manager in view of Virtual Machine Manager instruments such as under Linux, using Libvirt; Especially the provisional registration problem of Virtual Machine Manager instrument has proposed a kind of virtual machine snapshot management method and system of cloud computing platform.
In order to solve the problems of the technologies described above; The invention provides a kind of cloud computing platform virtual machine snapshot management method; It is characterized in that; When will be for the virtual machine creating virtual machine snapshot of clustered node, carry out following steps: preparation process: if the state of said virtual machine is for moving, the Control Node of cloud computing platform is through calling the Virtual Machine Manager instrument with said virtual machine time-out and create the memory image of said virtual machine; The disk snapshot step: said Control Node is called the disk snapshot that the virtual management instrument is created said virtual machine; Subsequent processing steps:, then utilize the memory image of being created to make said virtual machine resume operation through calling said virtual management instrument if the state of said virtual machine is for moving.
Further; This method also comprises: in the time will utilizing the virtual machine snapshot of being created to recover said virtual machine, said Control Node is recovered the disk snapshot of said virtual machine through the disk snapshot that calls said virtual management instrument and utilize said disk snapshot step to be generated.
Further, this method also comprises: if the state of said virtual machine is for moving, and the type of the virtual machine snapshot of the being created snapshot that is set to start shooting, on the contrary the type of the virtual machine snapshot of then being created is set to the snapshot that shuts down.
Further; This method also comprises: in the time will utilizing the virtual machine snapshot type of being created to recover said virtual machine for the virtual machine snapshot of start snapshot: if the state of current said virtual machine is for moving; Then call the Virtual Machine Manager instrument earlier and suspend virtual machine; And current virtual machine state preserved into memory image, utilize disk snapshot and memory image in the virtual machine snapshot of being created to recover said virtual machine again; And, then utilize disk snapshot and memory image in the virtual machine snapshot of being created to recover said virtual machine if the state of current said virtual machine is not to move.
Further; This method also comprises: in the time will utilizing the virtual machine snapshot type of being created to recover said virtual machine for the virtual machine snapshot of shutdown snapshot; If the state of current said virtual machine is to move; Then call the Virtual Machine Manager instrument earlier virtual machine is closed, utilize the disk snapshot in the snapshot of being created to recover said virtual machine again; And, then utilize the disk snapshot in the virtual machine snapshot of being created to recover said virtual machine if the state of current said virtual machine is not to move.
Further; This method also comprises: when the virtual machine snapshot that deletion is created; If the state of current said virtual machine is to move; Then call said Virtual Machine Manager instrument earlier and suspend said virtual machine, after the virtual machine snapshot that deletion is created, call said Virtual Machine Manager instrument again and recover said virtual machine; If the state of current said virtual machine is not to move, then directly delete the virtual machine snapshot of being created.
Further, this method also comprises: call said Virtual Machine Manager instrument memory image is deleted, and call the virtual management instrument disk snapshot is deleted.
Further, this method also comprises: said Virtual Machine Manager instrument is Libvirt, and said virtual management instrument is KVM or Xen.
The present invention also provides a kind of virtual machine snapshot management system based on cloud computing platform, it is characterized in that, comprises with lower unit: whether virtual machine state judging unit, the current state that is used to judge said virtual machine be for just in running status; The snapshot type judging unit is used to judge that said snapshot type is start snapshot or shutdown snapshot; The snapshot creation unit is used to call the Virtual Machine Manager instrument and creates memory image, and calls the virtual management instrument and create disk snapshot; The snapshot restore unit is used to call said Virtual Machine Manager instrument said memory image is recovered, and calls said virtual management instrument said disk snapshot is recovered; The snapshot delete cells is used to call said Virtual Machine Manager instrument said memory image is deleted, and calls said virtual management instrument said disk snapshot is deleted.
Further, this system also comprises: said Virtual Machine Manager instrument is Libvirt, and said virtual management instrument is KVM or Xen.
Compared with prior art, the present invention has the following advantages at least:
The present invention need not revise the Libvirt source code and be suitable under the Linux carrying out based on Libvirt the cloud computing platform of any kind of of Virtual Machine Manager, guarantees the consistance of cloud computing platform simultaneously, and provides good user's snapshot management to experience.
The present invention only revises the platform management code on the cloud computing platform Control Node; And need not revise clustered node and on virtual management instrument such as Virtual Machine Manager instrument such as Libvirt and KVM; Through introducing the mode of a kind of new snapshot management method under the cloud computing platform, make that the change to cloud computing platform is limited in minimum scope.
The present invention provides a kind of general snapshot management method for the cloud computing platform that carries out Virtual Machine Manager based on Virtual Machine Manager instruments such as Libvirt under the Linux; Effectively remedied the existing defective that can't carry out effective snapshot management of existing cloud computing platform based on Virtual Machine Manager tool management virtual machines such as Libvirt; When providing good user's snapshot management to experience, guaranteed the stability of cloud computing platform.
The present invention mainly is the cloud computing platform that carries out Virtual Machine Manager to the provisional registration of using Virtual Machine Manager instruments such as Libvirt, all has versatility for all cloud computing platforms that carry out Virtual Machine Manager based on Virtual Machine Manager instruments such as Libvirt.The virtual machine snapshot management method that the present invention proposes comprises virtual machine snapshot establishment, snapshot restore and three aspects of snapshot deletion, has contained all main behavior operations of virtual machine snapshot management.The present invention does not influence the operate as normal of cloud computing platform when not carrying out the snapshot management.
Other features and advantages of the present invention will be set forth in instructions subsequently, and, partly from instructions, become obvious, perhaps understand through embodiment of the present invention.The object of the invention can be realized through the structure that in instructions, claims and accompanying drawing, is particularly pointed out and obtained with other advantages.
Description of drawings
Accompanying drawing is used to provide further understanding of the present invention, and constitutes the part of instructions, is used to explain the present invention with embodiments of the invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the cloud computing platform general frame figure of the embodiment of the invention;
Fig. 2 is the process flow diagram according to the establishment virtual machine snapshot in the snapshot management method of the cloud computing platform of the embodiment of the invention one;
Fig. 3 is the process flow diagram according to the recovery virtual machine snapshot in the snapshot management method of the cloud computing platform of the embodiment of the invention one;
Fig. 4 is the process flow diagram according to the deletion virtual machine snapshot in the snapshot management method of the cloud computing platform of the embodiment of the invention one;
Fig. 5 is the structural representation based on the snapshot management system of cloud computing platform according to the embodiment of the invention two.
Embodiment
Below will combine accompanying drawing and embodiment to specify embodiment of the present invention, how the application technology means solve technical matters to the present invention whereby, and the implementation procedure of reaching technique effect can make much of and implement according to this.Need to prove that only otherwise constitute conflict, each embodiment among the present invention and each characteristic among each embodiment can mutually combine, formed technical scheme is all within protection scope of the present invention.
In addition; Can in computer system, carry out in the step shown in the process flow diagram of accompanying drawing such as a set of computer-executable instructions, and, though logical order has been shown in process flow diagram; But in some cases, can carry out step shown or that describe with the order that is different from here.
The present invention mainly is the defect problem that carries out cloud computing platform existence when carrying out the snapshot management of Virtual Machine Manager at Virtual Machine Manager instruments such as using Libvirt under the Linux environment in order to solve, and has proposed a kind of virtual machine snapshot management method based on cloud computing.
Comprise virtual machine snapshot establishment, snapshot restore and three aspects of snapshot deletion in the embodiments of the invention, will combine accompanying drawing to explain respectively.Preferably, embodiments of the invention adopt the cloud computing platform NKSCLOUD in the acceptance of the bid kylin secure cloud operating system to realize various functions and effect, and wherein cloud computing platform NKSCLOUD can use the provisional registration of Libvirt to come managing virtual machines.
Fig. 1 be according under the Linux of the present invention based on the cloud computing platform general frame figure of Virtual Machine Manager tool management virtual machines such as Libvirt.Control Node is the management end of cloud computing platform, moves the service that all are managed cloud computing platform above that, like network management, storage administration, Virtual Machine Manager, snapshot management and database service etc.Clustered node provides the server of virtual machine service; Above that except moving a plurality of virtual machines; Also moving Libvrit function library of carrying out Virtual Machine Manager and the virtual management instrument that virtualization is provided, KVM (Kernel-based Virtual Machine) for example, Xen etc.; KVM is the virtual machine monitor of increasing income that is integrated in the linux kernel, and Xen is the virtual machine monitor of increasing income by Cambridge University's exploitation.KVM and Xen are the virtual management instruments of main flow under the Linux.In cloud computing platform, allow to have a Control Node and a plurality of clustered node, Control Node is carried out corresponding management through network to a plurality of clustered nodes.
Embodiment one
Fig. 2 is the process flow diagram based on the establishment virtual machine snapshot in the snapshot management method of cloud computing platform according to the embodiment of the invention one.Wherein the direction indication of arrow the direction of workflow.This flow process specifically may further comprise the steps
Step S110, the Control Node of cloud computing platform is sent the order of creating snapshot to virtual machine.
Step S111, Control Node is made the preliminary work before the snapshot creation.
Wherein specifically comprise: the record that in database, adds a new snapshot according to user's input information; This record comprises snapshot title, snapshot description, snapshot creation time etc., and it is unavailable that this snapshot state is set, and write down this snapshot type for the start snapshot or the shutdown snapshot; Concrete; Control Node is confirmed the type of current snapshot according to the current running status of virtual machine, if virtual machine is current for moving, then snapshot type is the snapshot of starting shooting; If the virtual machine current state is an off-mode, then snapshot type is the shutdown snapshot.
Step S112, Control Node is selected snapshot type and is carried out corresponding steps according to the current virtual machine state.If virtual machine state for moving, then gets into step S113,, then directly get into step S114 if virtual machine state is an off-mode.
Step S113; The long-range clustered node that is connected to of Control Node calls the Virtual Machine Manager instrument, at first virtual machine is suspended, and then current virtual machine state is preserved into file; Memory image just; After the Virtual Machine Manager instrument is preserved current virtual machine state success, the notice Control Node, and get into step S115.
Step S114, Control Node is long-range to be connected to clustered node and to call the virtual management instrument virtual machine disk image is made disk snapshot.After clustered node is done the disk snapshot success to virtual machine, the notice Control Node, and get into step S117.
Step S115, Control Node is long-range to be connected to clustered node and to call the virtual management instrument virtual machine disk image is made disk snapshot.After clustered node is done the disk snapshot success to virtual machine, the notice Control Node.
Step S116, Control Node is long-range be connected to clustered node call the Virtual Machine Manager instrument with virtual machine from before the file preserved revert to running status.After the Virtual Machine Manager tool operation runs succeeded, the notice Control Node.Get into step S117.
Step S117, the snapshot creation subsequent treatment that Control Node is carried out.
Specifically comprise: the snapshot state of revising in the database is available, increases the virtual machine snapshot reference count, and revises the current active snapshot and create successful snapshot etc. for this.
Wherein, among the step S111, in database, add a snapshot record and comprise whether inspection exists snapshot of the same name, existing snapshot number whether to reach the upper limit etc.
Wherein, among the step S113, the file of establishment (that is memory image) has been preserved total data and the current C PU buffer status in the middle of the current internal memory of virtual machine.This document can be preserved, so that when recovering virtual machine, use as memory image.
Wherein, among step S113, S114, S115 and the S116, if operation failure is defined as this snapshot creation failure, corresponding snapshot record in the deletion Control Node database.
Wherein, among step S114 and the S115, the disk snapshot that the virtual management instrument is produced is to be kept in the middle of the virtual machine disk image, is not kept at the outside of disk image.
By on can know that when creating virtual machine snapshot, if the state of virtual machine is for moving, then said virtual machine snapshot comprises memory image of being created and the disk snapshot of being created, otherwise said virtual machine snapshot comprises the disk snapshot of being created.
Thus, according to the visioning procedure of Fig. 2, can create start snapshot or shutdown snapshot through judging the current running status of virtual machine.
Fig. 3 is that wherein the direction of arrow has been represented the direction of workflow according to the process flow diagram of the recovery virtual machine snapshot in the snapshot management method of the embodiment of the invention.Specifically may further comprise the steps:
Step S210, the cloud computing platform Control Node is sent the order that recovers virtual machine snapshot to virtual machine.
Step S211, Control Node is made the preliminary work before the snapshot restore.
Specifically comprise: according to the snapshot name of user input in database, search appointment snapshot, obtain the virtual machine current state, obtain snapshot type etc.
Step S212 judges the current running status of virtual machine, if the state of virtual machine for moving, then enters into step S213, otherwise enters into step S214.
Step S213 judges that whether snapshot type to be recovered is the start snapshot, if then enter into step S215, otherwise enters into step S217.
Step S214 judges that whether snapshot type to be recovered is the start snapshot, if then enter into step S216, otherwise enters into step S218.
Step S215, the long-range clustered node that is connected to of Control Node calls the Virtual Machine Manager instrument, at first suspends virtual machine; Then current virtual machine state is preserved into file (that is, saving as memory image), after the Virtual Machine Manager instrument is preserved the virtual machine success; The notice Control Node, and get into step S216.
Step S216, clustered node call the virtual management instrument and according to the snapshot of appointment the virtual machine disk are carried out the disk recovery operation, after the disk snapshot recovery operation success of clustered node to virtual machine, and the notice Control Node, and get into step S219.
Step S217, clustered node call the Virtual Machine Manager instrument current virtual machine are carried out power-off operation, and get into step S218.
Step S218, clustered node call the virtual management instrument and according to the snapshot of appointment the virtual machine disk are carried out the disk recovery operation, after the disk snapshot recovery operation success of clustered node to virtual machine, and the notice Control Node, and get into step S220.Need to prove, in Fig. 2, comprise two step S218, these two steps are same steps as, are merely to draw convenient and separately expression.
Step S219, clustered node call the Virtual Machine Manager instrument and according to the memory image file of appointment virtual machine are reverted to running status.After the Virtual Machine Manager tool operation runs succeeded, the notice Control Node, and get into step S220.
Step S220, Control Node is carried out subsequent treatment to snapshot restore.
Specifically comprise: revise the current active snapshot for the successful snapshot of this recovery etc.;
More than be the flow process of recovering snapshot, wherein, find the snapshot of appointment among the step S211, comprise relevant SNAPSHOT INFOs such as whether available the memory image name, disk snapshot name and this snapshot that obtain this snapshot.The file of among the step S215 virtual machine state being preserved is in order to prevent that can't virtual machine be returned to correct running status when the snapshot restore procedure failure uses.
Wherein, in step S215, if operation failure, promptly the Virtual Machine Manager instrument is preserved into the file failure with virtual machine, and the Virtual Machine Manager instrument can revert to running status with virtual machine automatically.
Wherein, in step S216 and S218,, virtual machine is reverted to running status according to the file of the preservation among the step S215 if operation failure is defined as this snapshot restore operation failure.
Thus; Recovery flow process according to Fig. 2; Can snapshot be recovered through judging current running status of virtual machine and the type of specifying snapshot, can preserve the virtual machine running status simultaneously and can't virtual machine be returned to correct running status when avoiding recovering to fail.
Fig. 4 is that wherein the direction of arrow has been represented the direction of workflow according to the process flow diagram of the deletion virtual machine snapshot in the snapshot management method of the embodiment of the invention.Specifically may further comprise the steps:
Step S310, the cloud computing platform Control Node is sent the order of deletion virtual machine snapshot to virtual machine.
Step S311, Control Node is done the preliminary work before the snapshot deletion.Specifically comprise: in database, search snapshot, the current running status of virtual machine etc.
Step S312 judges the current running status of virtual machine.If virtual machine state gets into step S313 for moving, otherwise get into step S316.
Step S313, clustered node call tentative this virtual machine of Virtual Machine Manager instrument.After the Virtual Machine Manager instrument suspends the virtual machine success, the notice Control Node.
Step S314, Control Node is long-range to be connected to clustered node deletion memory image and to call the disk snapshot of virtual management instrument deletion appointment.After clustered node is deleted corresponding snapshot document, the notice Control Node, and get into step S315.
Step S315, Control Node is long-range to be connected to clustered node and to call the Virtual Machine Manager instrument and virtual machine state is reverted to by time-out move, after the Virtual Machine Manager tool operation runs succeeded, the notice Control Node, and get into step S317.
Step S316, Control Node is long-range to be connected to clustered node deletion memory image and to call the disk snapshot of virtual management instrument deletion appointment.After clustered node is deleted corresponding snapshot document, the notice Control Node, and get into step S317.
Step S317, cloud computing platform carry out the subsequent treatment of snapshot deletion.
Specifically comprise: the snapshot record in the delete database, reduce virtual machine and can count with snapshot, revise current active snapshot etc.
Wherein, find the snapshot of appointment among the step S311, comprise the memory image name of obtaining this snapshot, disk snapshot name etc.
Wherein, the time-out virtual machine of step S313 is can the operating system of moving not to be exerted an influence when the virtual machine disk image operated in order to guarantee.
Wherein, step S313, among S315 and the S316, if operation failure then defines this deletion snapshot operation failure, this snapshot deletion failure of clustered node notice Control Node, Control Node is carried out corresponding subsequent processing according to the different commands return results.
Wherein, among the step S314, if operation failure then defines this deletion snapshot operation failure, clustered node calls the Virtual Machine Manager instrument and virtual machine state is reverted to by time-out moves.
Wherein, among step S314 and the S316, Control Node can be judged snapshot type, if snapshot type is for the start snapshot, then according to the execution of describing among step S314 and the S316; If snapshot type is the shutdown snapshot, then clustered node only need be deleted disk snapshot.
Embodiment two
Fig. 5 is the structural representation based on the snapshot management system of cloud computing platform according to the embodiment of the invention two, specifies the composition of this system's each several part below according to Fig. 5.
Whether virtual machine state judging unit, the current state that is used to judge virtual machine be for just in running status.
The snapshot type judging unit is used to judge that snapshot type is start snapshot or shutdown snapshot.
The snapshot creation unit is used to call the Virtual Machine Manager instrument and creates memory image, and calls the virtual management instrument and create disk snapshot.Concrete, create the start snapshot when moving at the state of virtual machine, create the shutdown snapshot at virtual machine during for off-mode, the start snapshot comprises memory image and disk snapshot two parts, the snapshot that shuts down only comprises disk snapshot.Call the Virtual Machine Manager instrument current virtual machine state is preserved into file to form memory image through the long-range clustered node that is connected to of the Control Node of cloud computing platform.Call the virtual management instrument virtual machine disk image is made disk snapshot through the long-range clustered node that is connected to of Control Node.
The snapshot restore unit is used to call said Virtual Machine Manager instrument said memory image is recovered, and calls said virtual management instrument said disk snapshot is recovered.Concrete; Be in just under running status at virtual machine; For the start snapshot, at first call the Virtual Machine Manager instrument current virtual machine state is preserved into file (that is, saving as memory image) through the long-range clustered node that is connected to of Control Node; Utilize clustered node to call the virtual management instrument again and the virtual machine disk is carried out the disk recovery operation, call the Virtual Machine Manager instrument and virtual machine is reverted to running status according to the memory image file of appointment according to the disk snapshot of appointment; For the shutdown snapshot, at first utilize clustered node to call the Virtual Machine Manager instrument current virtual machine is carried out power-off operation, utilize clustered node to call the virtual management instrument again and the virtual machine disk is carried out the disk recovery operation according to the disk snapshot of appointment.Under off-mode; For the start snapshot; Utilize clustered node to call the virtual management instrument and the virtual machine disk is carried out the disk recovery operation, call the Virtual Machine Manager instrument and virtual machine is reverted to running status according to the memory image file of appointment according to the disk snapshot of appointment; For the shutdown snapshot, clustered node calls the virtual management instrument and according to the disk snapshot of appointment the virtual machine disk is carried out the disk recovery operation.
The snapshot delete cells is used to call said Virtual Machine Manager instrument said memory image is deleted, and calls said virtual management instrument said disk snapshot is deleted.Concrete; Be in just under running status at virtual machine; At first utilize clustered node to suspend virtual machine; Utilize again that Control Node is long-range to be connected to the disk snapshot that clustered node calls Virtual Machine Manager instrument deletion memory image and calls virtual management instrument deletion appointment, utilize the long-range clustered node that is connected to of Control Node to call the Virtual Machine Manager instrument and virtual machine state is reverted to by time-out move afterwards; Under off-mode, directly utilize the long-range clustered node that is connected to of Control Node to call Virtual Machine Manager instrument deletion memory image and call the disk snapshot of virtual management instrument deletion appointment.
The present invention is applicable under the Linux that all use the cloud computing platform that Virtual Machine Manager instrument such as Libvirt carries out Virtual Machine Manager.Virtual machine snapshot management method provided by the invention has effectively solved the defect problem that Virtual Machine Manager instruments such as in cloud computing environment, using Libvirt carries out the virtual machine snapshot management.Virtual machine snapshot management method provided by the invention comprises establishment, recovery and the deletion of cloud computing platform to virtual machine snapshot.
The present invention is that example describes with the cloud computing platform NKSCLOUD in the acceptance of the bid kylin secure cloud operating system only, and in fact all use the snapshot management of cloud computing platform that Virtual Machine Manager instrument such as Libvirt carries out Virtual Machine Manager all within solution scope of the present invention.
Those skilled in the art should be understood that; Above-mentioned each module of the present invention or each step can realize that they can concentrate on the single calculation element with the general calculation device, perhaps are distributed on the network that a plurality of calculation element forms; Alternatively; They can realize with the executable program code of calculation element, thereby, can they be stored in the memory storage and carry out by calculation element; Perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
Though the embodiment that the present invention disclosed as above, the embodiment that described content just adopts for the ease of understanding the present invention is not in order to limit the present invention.Technician under any the present invention in the technical field; Under the prerequisite of spirit that does not break away from the present invention and disclosed and scope; Can do any modification and variation what implement in form and on the details; But scope of patent protection of the present invention still must be as the criterion with the scope that appending claims was defined.

Claims (10)

1. a cloud computing platform virtual machine snapshot management method is characterized in that, when will be for the virtual machine creating virtual machine snapshot of clustered node, carries out following steps:
Preparation process: if the state of said virtual machine is for moving, the Control Node of cloud computing platform is through calling the memory image that the Virtual Machine Manager instrument suspends said virtual machine and create said virtual machine;
The disk snapshot step: said Control Node is called the disk snapshot that the virtual management instrument is created said virtual machine;
Subsequent processing steps:, then utilize the memory image of being created to make said virtual machine resume operation through calling said virtual management instrument if the state of said virtual machine is for moving.
2. method according to claim 1; It is characterized in that; In the time will utilizing the virtual machine snapshot of being created to recover said virtual machine, said Control Node is recovered the disk snapshot of said virtual machine through the disk snapshot that calls said virtual management instrument and utilize said disk snapshot step to be generated.
3. method according to claim 1 is characterized in that, if the state of said virtual machine is for moving, and the type of the virtual machine snapshot of the being created snapshot that is set to start shooting, on the contrary the type of the virtual machine snapshot of then being created is set to the snapshot that shuts down.
4. method according to claim 3 is characterized in that, in the time will utilizing the virtual machine snapshot type of being created to recover said virtual machine for the virtual machine snapshot of start snapshot:
If the state of current said virtual machine is for moving; Then call the Virtual Machine Manager instrument earlier and suspend virtual machine; And current virtual machine state preserved into memory image, utilize disk snapshot and memory image in the virtual machine snapshot of being created to recover said virtual machine again; And
If the state of current said virtual machine is not to move, then utilize disk snapshot and memory image in the virtual machine snapshot of being created to recover said virtual machine.
5. method according to claim 3 is characterized in that, in the time will utilizing the virtual machine snapshot type of being created to recover said virtual machine for the virtual machine snapshot of shutdown snapshot,
If the state of current said virtual machine is to move, then call the Virtual Machine Manager instrument earlier virtual machine is closed, utilize the disk snapshot in the snapshot of being created to recover said virtual machine again; And
If the state of current said virtual machine is not to move, then utilize the disk snapshot in the virtual machine snapshot of being created to recover said virtual machine.
6. method according to claim 3 is characterized in that, when the virtual machine snapshot that deletion is created,
If the state of current said virtual machine is to move, then call said Virtual Machine Manager instrument earlier and suspend said virtual machine, after the virtual machine snapshot that deletion is created, call said Virtual Machine Manager instrument again and recover said virtual machine;
If the state of current said virtual machine is not to move, then directly delete the virtual machine snapshot of being created.
7. method according to claim 6 is characterized in that, calls said Virtual Machine Manager instrument memory image is deleted, and call the virtual management instrument disk snapshot is deleted.
8. according to described each method of claim 1 to 7, it is characterized in that said Virtual Machine Manager instrument is Libvirt, said virtual management instrument is KVM or Xen.
9. the virtual machine snapshot management system based on cloud computing platform is characterized in that, comprises with lower unit:
Whether virtual machine state judging unit, the current state that is used to judge said virtual machine be for just in running status;
The snapshot type judging unit is used to judge that said snapshot type is start snapshot or shutdown snapshot;
The snapshot creation unit is used to call the Virtual Machine Manager instrument and creates memory image, and calls the virtual management instrument and create disk snapshot;
The snapshot restore unit is used to call said Virtual Machine Manager instrument said memory image is recovered, and calls said virtual management instrument said disk snapshot is recovered;
The snapshot delete cells is used to call said Virtual Machine Manager instrument said memory image is deleted, and calls said virtual management instrument said disk snapshot is deleted.
10. system according to claim 9 is characterized in that, said Virtual Machine Manager instrument is Libvirt, and said virtual management instrument is KVM or Xen.
CN201110397190.1A 2011-12-02 2011-12-02 A kind of virtual machine snapshot management method of cloud computing platform and system Active CN102520881B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110397190.1A CN102520881B (en) 2011-12-02 2011-12-02 A kind of virtual machine snapshot management method of cloud computing platform and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110397190.1A CN102520881B (en) 2011-12-02 2011-12-02 A kind of virtual machine snapshot management method of cloud computing platform and system

Publications (2)

Publication Number Publication Date
CN102520881A true CN102520881A (en) 2012-06-27
CN102520881B CN102520881B (en) 2015-09-09

Family

ID=46291826

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110397190.1A Active CN102520881B (en) 2011-12-02 2011-12-02 A kind of virtual machine snapshot management method of cloud computing platform and system

Country Status (1)

Country Link
CN (1) CN102520881B (en)

Cited By (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103729223A (en) * 2013-12-31 2014-04-16 曙光云计算技术有限公司 PAAS platform quick deployment and application method and system
WO2014086150A1 (en) * 2012-12-07 2014-06-12 华为技术有限公司 Snapshot method, service node, main control node and system
CN104375877A (en) * 2014-10-15 2015-02-25 国云科技股份有限公司 Virtual machine online snapshot generating and deleting method
CN104572138A (en) * 2013-10-10 2015-04-29 腾讯科技(深圳)有限公司 Application program starting method and device
CN104636125A (en) * 2013-11-13 2015-05-20 联想(北京)有限公司 Information processing method and device
CN104793981A (en) * 2014-01-20 2015-07-22 联想(北京)有限公司 Online snapshot managing method and device for virtual machine cluster
CN105022656A (en) * 2014-04-21 2015-11-04 中国电信股份有限公司 Management method and device of virtual machine snapshot
CN105354127A (en) * 2015-10-27 2016-02-24 北京天华星航科技有限公司 Cloud management platform based monitoring method
CN105446834A (en) * 2015-11-30 2016-03-30 华为技术有限公司 Virtual machine snapshot generation method and apparatus
CN105468433A (en) * 2015-11-19 2016-04-06 北京北信源软件股份有限公司 Method and system for acquiring disc data of virtual machines
CN105740042A (en) * 2016-01-15 2016-07-06 北京京东尚科信息技术有限公司 Management method and management system for memories of virtual machines
CN106293535A (en) * 2016-08-12 2017-01-04 浪潮(北京)电子信息产业有限公司 The performance optimization method of a kind of NAS and device
CN106775939A (en) * 2016-12-06 2017-05-31 爱普(福建)科技有限公司 Memory image management method in a kind of industrial control system
CN107179934A (en) * 2016-03-10 2017-09-19 中标软件有限公司 The method and system of virtual machine automatic reduction in cloud computing environment
CN109002343A (en) * 2017-06-07 2018-12-14 中兴通讯股份有限公司 A kind of method and device for realizing virtual machine batch creation
CN109032327A (en) * 2018-07-26 2018-12-18 郑州云海信息技术有限公司 A kind of energy consumption of virtual machine management method and device
CN109101323A (en) * 2018-09-10 2018-12-28 南京铱迅信息技术股份有限公司 Snapshot implementing method based on qcow2 format under virtual machine operating status
CN109284171A (en) * 2018-09-17 2019-01-29 广州惠创信息科技有限公司 A kind of privately owned cloud management platform of enterprise
CN109313565A (en) * 2016-05-02 2019-02-05 诺基亚通信公司 Snapshot creation in virtual network environment
CN109358947A (en) * 2018-10-08 2019-02-19 郑州云海信息技术有限公司 A kind of realization method and system of virtual machine snapshot
CN109739687A (en) * 2018-12-03 2019-05-10 国云科技股份有限公司 A kind of snapshot management system and method based on Elasticsearch
CN110502392A (en) * 2019-07-17 2019-11-26 华东计算技术研究所(中国电子科技集团公司第三十二研究所) Cloud platform management and monitoring system
CN110865873A (en) * 2019-11-20 2020-03-06 西安雷风电子科技有限公司 Dynamic shutdown and recovery method for virtual machine resources
CN111078368A (en) * 2019-12-26 2020-04-28 浪潮电子信息产业股份有限公司 Memory snapshot method and device of cloud computing platform virtual machine and readable storage medium
CN111158954A (en) * 2019-12-29 2020-05-15 北京浪潮数据技术有限公司 Cloud host snapshot method, system, equipment and computer readable storage medium
CN114237988A (en) * 2022-02-25 2022-03-25 广州锦行网络科技有限公司 Memory snapshot processing method and device, storage medium and electronic device
CN114968670A (en) * 2022-07-27 2022-08-30 国网信息通信产业集团有限公司 Virtual machine backup and recovery method and device
CN117093332A (en) * 2023-10-20 2023-11-21 杭州优云科技有限公司 Method and device for realizing cloning of virtual machine
CN117130980A (en) * 2023-10-24 2023-11-28 杭州优云科技有限公司 Virtual machine snapshot management method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101609419A (en) * 2009-06-29 2009-12-23 北京航空航天大学 The data back up method and the device of the migration of virtual machine consistently online
CN101770410A (en) * 2009-01-07 2010-07-07 联想(北京)有限公司 System restore method, virtual machine managing device and system based on client operating system
CN101515978B (en) * 2008-02-21 2011-06-15 佳能株式会社 Information processing apparatus and method of controlling therefor
CN102147843A (en) * 2011-05-16 2011-08-10 湖南大学 Rootkit intrusion detection and system recovery method based on inner core invariant protection
GB2478625A (en) * 2010-03-09 2011-09-14 Fujitsu Ltd Deleting snapshot backups for unstable virtual machine configurations

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101515978B (en) * 2008-02-21 2011-06-15 佳能株式会社 Information processing apparatus and method of controlling therefor
CN101770410A (en) * 2009-01-07 2010-07-07 联想(北京)有限公司 System restore method, virtual machine managing device and system based on client operating system
CN101609419A (en) * 2009-06-29 2009-12-23 北京航空航天大学 The data back up method and the device of the migration of virtual machine consistently online
GB2478625A (en) * 2010-03-09 2011-09-14 Fujitsu Ltd Deleting snapshot backups for unstable virtual machine configurations
CN102147843A (en) * 2011-05-16 2011-08-10 湖南大学 Rootkit intrusion detection and system recovery method based on inner core invariant protection

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
楮福勇等: "虚拟机备份机制研究", 《计算机工程与科学》 *
赵华茗: "机的高可用信息服务平台建设", 《现代图书情报技术》 *
陈权威: "虚拟机控制系统的研究与实现", 《CNKI数据库》 *

Cited By (48)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103853632B (en) * 2012-12-07 2016-08-10 华为技术有限公司 Snapshot Method, service node, main controlled node and system
WO2014086150A1 (en) * 2012-12-07 2014-06-12 华为技术有限公司 Snapshot method, service node, main control node and system
CN104572138B (en) * 2013-10-10 2018-10-30 腾讯科技(深圳)有限公司 The startup method and device of application program
CN104572138A (en) * 2013-10-10 2015-04-29 腾讯科技(深圳)有限公司 Application program starting method and device
CN104636125A (en) * 2013-11-13 2015-05-20 联想(北京)有限公司 Information processing method and device
CN104636125B (en) * 2013-11-13 2018-03-23 联想(北京)有限公司 A kind of information processing method and device
CN103729223A (en) * 2013-12-31 2014-04-16 曙光云计算技术有限公司 PAAS platform quick deployment and application method and system
CN104793981A (en) * 2014-01-20 2015-07-22 联想(北京)有限公司 Online snapshot managing method and device for virtual machine cluster
CN104793981B (en) * 2014-01-20 2018-08-31 联想(北京)有限公司 A kind of online snapshot management method and device of cluster virtual machine
CN105022656A (en) * 2014-04-21 2015-11-04 中国电信股份有限公司 Management method and device of virtual machine snapshot
CN105022656B (en) * 2014-04-21 2018-09-14 中国电信股份有限公司 virtual machine snapshot management method and device
CN104375877A (en) * 2014-10-15 2015-02-25 国云科技股份有限公司 Virtual machine online snapshot generating and deleting method
CN105354127A (en) * 2015-10-27 2016-02-24 北京天华星航科技有限公司 Cloud management platform based monitoring method
CN105468433A (en) * 2015-11-19 2016-04-06 北京北信源软件股份有限公司 Method and system for acquiring disc data of virtual machines
CN105468433B (en) * 2015-11-19 2019-03-29 北京北信源软件股份有限公司 A kind of acquisition methods and system of magnetic disk of virtual machine data
US11436091B2 (en) 2015-11-30 2022-09-06 Huawei Technologies Co., Ltd. Method and apparatus for generating virtual machine snapshot
CN105446834A (en) * 2015-11-30 2016-03-30 华为技术有限公司 Virtual machine snapshot generation method and apparatus
CN105446834B (en) * 2015-11-30 2018-10-19 华为技术有限公司 The generation method and device of virtual machine snapshot
US10503607B2 (en) 2015-11-30 2019-12-10 Huawei Technologies Co., Ltd. Method and apparatus for generating virtual machine snapshot
CN105740042A (en) * 2016-01-15 2016-07-06 北京京东尚科信息技术有限公司 Management method and management system for memories of virtual machines
CN105740042B (en) * 2016-01-15 2019-07-02 北京京东尚科信息技术有限公司 The management method and management system of virutal machine memory
CN107179934B (en) * 2016-03-10 2021-03-05 中标软件有限公司 Method and system for automatically restoring virtual machine in cloud computing environment
CN107179934A (en) * 2016-03-10 2017-09-19 中标软件有限公司 The method and system of virtual machine automatic reduction in cloud computing environment
CN109313565A (en) * 2016-05-02 2019-02-05 诺基亚通信公司 Snapshot creation in virtual network environment
CN106293535A (en) * 2016-08-12 2017-01-04 浪潮(北京)电子信息产业有限公司 The performance optimization method of a kind of NAS and device
CN106293535B (en) * 2016-08-12 2020-04-03 浪潮(北京)电子信息产业有限公司 NAS performance optimization method and device
CN106775939B (en) * 2016-12-06 2019-12-31 爱普(福建)科技有限公司 Memory snapshot management method in industrial control system
CN106775939A (en) * 2016-12-06 2017-05-31 爱普(福建)科技有限公司 Memory image management method in a kind of industrial control system
CN109002343A (en) * 2017-06-07 2018-12-14 中兴通讯股份有限公司 A kind of method and device for realizing virtual machine batch creation
CN109002343B (en) * 2017-06-07 2023-08-25 中兴通讯股份有限公司 Method and device for realizing batch creation of virtual machines
CN109032327A (en) * 2018-07-26 2018-12-18 郑州云海信息技术有限公司 A kind of energy consumption of virtual machine management method and device
CN109101323A (en) * 2018-09-10 2018-12-28 南京铱迅信息技术股份有限公司 Snapshot implementing method based on qcow2 format under virtual machine operating status
CN109284171A (en) * 2018-09-17 2019-01-29 广州惠创信息科技有限公司 A kind of privately owned cloud management platform of enterprise
CN109358947B (en) * 2018-10-08 2023-01-10 郑州云海信息技术有限公司 Method and system for realizing virtual machine snapshot
CN109358947A (en) * 2018-10-08 2019-02-19 郑州云海信息技术有限公司 A kind of realization method and system of virtual machine snapshot
CN109739687A (en) * 2018-12-03 2019-05-10 国云科技股份有限公司 A kind of snapshot management system and method based on Elasticsearch
CN110502392A (en) * 2019-07-17 2019-11-26 华东计算技术研究所(中国电子科技集团公司第三十二研究所) Cloud platform management and monitoring system
CN110865873A (en) * 2019-11-20 2020-03-06 西安雷风电子科技有限公司 Dynamic shutdown and recovery method for virtual machine resources
CN111078368A (en) * 2019-12-26 2020-04-28 浪潮电子信息产业股份有限公司 Memory snapshot method and device of cloud computing platform virtual machine and readable storage medium
CN111078368B (en) * 2019-12-26 2023-03-21 浪潮电子信息产业股份有限公司 Memory snapshot method and device of cloud computing platform virtual machine and readable storage medium
CN111158954A (en) * 2019-12-29 2020-05-15 北京浪潮数据技术有限公司 Cloud host snapshot method, system, equipment and computer readable storage medium
CN114237988A (en) * 2022-02-25 2022-03-25 广州锦行网络科技有限公司 Memory snapshot processing method and device, storage medium and electronic device
CN114968670A (en) * 2022-07-27 2022-08-30 国网信息通信产业集团有限公司 Virtual machine backup and recovery method and device
CN114968670B (en) * 2022-07-27 2022-11-18 国网信息通信产业集团有限公司 Virtual machine backup and recovery method and device
CN117093332A (en) * 2023-10-20 2023-11-21 杭州优云科技有限公司 Method and device for realizing cloning of virtual machine
CN117093332B (en) * 2023-10-20 2024-02-27 杭州优云科技有限公司 Method and device for realizing cloning of virtual machine
CN117130980A (en) * 2023-10-24 2023-11-28 杭州优云科技有限公司 Virtual machine snapshot management method and device
CN117130980B (en) * 2023-10-24 2024-02-27 杭州优云科技有限公司 Virtual machine snapshot management method and device

Also Published As

Publication number Publication date
CN102520881B (en) 2015-09-09

Similar Documents

Publication Publication Date Title
CN102520881A (en) Virtual machine snapshot management method and system of cloud computing platform
CN107431696B (en) Method and cloud management node for application automation deployment
US11544137B2 (en) Data processing platform monitoring
US7779298B2 (en) Distributed job manager recovery
CN100530120C (en) Method for controlling a software process, method and system for redistributing or continuing operation in a multi-computer architecture
CN112035172B (en) Operating system starting method, device, server and storage medium
CN112269640B (en) Method for realizing life cycle management of container cloud component
CN112667362B (en) Method and system for deploying Kubernetes virtual machine cluster on Kubernetes
US20190340048A1 (en) Methods and systems to manage alerts in a distributed computing system
US9710332B1 (en) Data provenance in computing infrastructure
WO2014209359A1 (en) Hook framework
US8893272B2 (en) Method and device for recombining runtime instruction
JP2010086516A (en) Method for analyzing fault caused in virtualized environment, management server, and program
WO2006092047A1 (en) System and method for porting a mobile device application
CN106130763A (en) Server cluster and be applicable to the database resource group method for handover control of this cluster
CN103077071A (en) Method and system for acquiring process information of KVM (Kernel-based Virtual Machine)
CN105183591A (en) High-availability cluster implementation method and system
CN110196749A (en) The restoration methods and device of virtual machine, storage medium and electronic device
Tran et al. Proactive stateful fault-tolerant system for kubernetes containerized services
CN109725916B (en) Topology updating system and method for stream processing
CN103856502A (en) Method and NAS cluster system for realizing mirror image document thermal migration of virtual machine
CN113326098B (en) Cloud management platform supporting KVM virtualization and container virtualization
Pan et al. Design and Implementation of Server Management System Based on Docker
Lufei et al. vStarCloud: An operating system architecture for Cloud computing
US10853131B2 (en) Dataflow life cycles

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