Virtual machine life cycle management system and its management methodTechnical field
The present invention relates to field of cloud calculation, and in particular to virtual machine life cycle management system and its management method.
Background technology
As cloud desktop is in the popularization of enterprises, virtual desktop system will access different client and remote desktopConnection protocol scheme, different cloud platform backend infrastructures, management of each scheme manufacturer to virtual machine is not quite similar.Various cloudsPouring in for platform means that virtual machine desktop system needs to carry out unitized Virtual Machine Manager.
In terms of user's request, virtual machine is discrepant, and mirror image, CPU, hard disk configuration etc. all can be different, correspondenceDifferent department or the user of different demands.Carry out also in the middle of unitized management process in the virtual machine to these differentiationFrequently refer to the rotation of virtual machine.In enterprises, virtual machine image often frequent updating such as installs software matrixIncrease and decrease, the change of configuration etc..
Meanwhile, from Consumer's Experience for, system needs quickly to provide the user virtual machine, accomplishes " log in can must ";On the other hand, resource is limited, and for the machine not used for a long time, system needs to accomplish detection automatically, takes strategy to carry outReclaim and delete.
The content of the invention
It is an object of the invention to for the virtual machine of different vendor is existed using process in order to solve prior artThe appearance of the problems such as coherency management;Virtual machine life cycle management system and its management method are provided.
In order to achieve the above object, the present invention is achieved through the following technical solutions:
A kind of virtual machine life cycle management method, the management method is included:
When meeting establishment and requiring, virtual machine is created;
When recovery standard is met, at least one virtual machine for being present in cloud platform is reclaimed;
When any type of virtual machine have updated configuration parameter, create comprising the virtual machine for updating configuration parameterAnd replace correspondence with old configuration parameter the virtual machine;
It is preferred that in the step of when meeting establishment and requiring, creating virtual machine, specifically including:
Judge untapped same type of virtual machine quantity whether less than corresponding surplus quota lower limit;
When being less than, the virtual machine of at least one correspondence type is created and preserved.
It is preferred that in the step for when recovery standard is met, reclaiming at least one virtual machine for being present in cloud platformIn rapid, specifically include:
Judge each virtual machine in arbitrary cloud platform idle periods whether reach the upper limit and each described inWhether the configuration parameter of virtual machine needs to update;
When the configuration parameter that the idle periods of arbitrary virtual machine reach the upper limit or the virtual machine needs to update, reclaimThe virtual machine.
It is preferred that updating configuration ginseng when any type of virtual machine have updated configuration parameter, creating to includeSeveral virtual machine and the step of replace virtual machine of the correspondence with old configuration parameter in, specifically include:
The configuration parameter for determining whether any kind virtual machine updates;
When configuration parameter is updated described in presence, all same types comprising the old configuration parameter are searched and deleted emptyPlan machine, while creating equal number comprising the same type virtual machine for having updated configuration parameter.
It is preferred that the management method is also included:
The basic operation of the virtual machine that control at least one is working;The basic operation is included:It is described virtualThe restarting of machine, dormancy, recover and reconfigure.
A kind of virtual machine life cycle management system, the management system is included:
Virtual machine life cycle control module, for when meeting establishment and requiring, creating virtual machine;It is additionally operable to work as and meets backDuring receipts standard, at least one virtual machine for being present in cloud platform is reclaimed;It is additionally operable to create include and updates configuration parameterVirtual machine and replace correspondence with old configuration parameter the virtual machine;
Virtual machine differential management module, is inside provided with multiple virtual machine pools, virtual machine configuration table;Each described virtual machine poolInside it is provided with untapped one or more the described virtual machines of same type;The virtual machine configuration table includes the virtual machine differenceChange the configuration parameter of each virtual machine in management module;
Cloud platform layer, is provided with multiple cloud platforms, and the plurality of cloud platform is corresponded with the plurality of virtual machine pool, eachThe cloud platform is provided with described of a sort one or more described virtual machines;
Unified interface module, is the virtual machine life cycle control module, the virtual machine differential management module pointCommunications conduit is not provided with cloud platform layer communication.
It is preferred that when meeting establishment and requiring, the virtual machine life cycle control module is created in virtual machine:
The virtual machine life cycle control module judges arbitrary described virtual in the virtual machine differential management moduleWhether the quantity of the virtual machine is less than corresponding surplus quota lower limit in machine pond;
When being less than, the virtual machine life cycle control module creates the virtual machine of type described at least one, describedVirtual machine differential management module preserves the virtual machine of type described at least one to the corresponding virtual machine pool.
It is preferred that when recovery standard is met, the virtual machine life cycle control module reclaims at least one and depositsBe cloud platform the virtual machine in:
The virtual machine life cycle control module judges arbitrary in the cloud platform layer by the unified interface moduleWhether the idle periods of each virtual machine in the cloud platform reach the configuration parameter of the upper limit and each virtual machineWhether need to update;
It is described when the configuration parameter that the idle periods of arbitrary virtual machine reach the upper limit or the virtual machine needs to updateVirtual machine life cycle control module reclaims the virtual machine by the unified interface module.
It is preferred that creating comprising the virtual machine for updating configuration parameter and replacing in the virtual machine life cycle control moduleIn changing the virtual machine of the correspondence with old configuration parameter:
The virtual machine life cycle control module determines whether that any kind is virtual according to the virtual machine configuration tableThe configuration parameter of machine updates;
When configuration parameter is updated described in presence, all bags are searched and deleted to the virtual machine life cycle control moduleSame type virtual machine containing the old configuration parameter, while create equal number has updated the described same of configuration parameter comprising describedType Virtual machine, and preserve into the virtual machine differential management module in the corresponding virtual machine pool.
It is preferred that the virtual machine life cycle control module controls the base of at least one virtual machine for workingThis operation;The basic operation is included:The restarting of virtual machine, dormancy, recover and reconfigure.
On the basis of common sense in the field is met, above-mentioned each optimum condition can be combined, and obtain final product each preferable reality of the present inventionExample.
The present invention positive effect be:
Virtual machine life cycle management system disclosed by the invention and its management method, when meeting establishment and requiring, createVirtual machine;When recovery standard is met, at least one virtual machine for being present in cloud platform is reclaimed;When any type of virtual machineWhen have updated configuration parameter, correspondence is created comprising the virtual machine for updating configuration parameter and replaced virtual with old configuration parameterMachine.The present invention adopts virtual machine life cycle control module, virtual machine differential management module, cloud platform layer and unified interfaceModule forms virtual machine life cycle management system.The present invention can easily and quickly meet different virtual machine configuration needsClient, by automatically creating virtual machine, is embodied as user and quickly provides virtual machine, and can automatically reclaim waste and old virtual machine,Release resource in time is realized, the ecological closed loop of virtual machine can be flexibly completed on the demand of business.
Description of the drawings
Fig. 1 is the overall structure diagram of virtual machine life cycle management system of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, completeSite preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based onEmbodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not madeEmbodiment, belongs to the scope of protection of the invention.
As shown in figure 1, a kind of virtual machine life cycle management system, management system is included:Virtual machine life cycle is controlledModule 1, virtual machine differential management module 2, unified interface module 3 and cloud platform layer 4.Wherein, virtual machine life cycle controlMolding block 1 carries out data communication, virtual machine life cycle control module 1, virtual machine difference with virtual machine differential management module 2Change management module 2 and respectively cloud platform layer 4 is accessed by unified interface module 3.
In the present invention, specifically effect is as follows for virtual machine life cycle control module 1:
For when meeting establishment and requiring, creating virtual machine;It is additionally operable to, when recovery standard is met, reclaim at least oneIt is present in the virtual machine of cloud platform;It is additionally operable to create comprising the virtual machine for updating configuration parameter and replace correspondence with old configurationThe virtual machine of parameter.
In the present invention, in virtual machine differential management module 2 multiple virtual machine pools, virtual machine configuration table are provided with.Each is emptyUntapped one or more virtual machines of same type are provided with plan machine pond.Virtual machine configuration table includes virtual machine differential managementThe configuration parameter of each virtual machine in module 2.
In the present embodiment, configuration parameter includes the mirror image of virtual machine, the virtual machine whether tool distributed to cloud platform layer 4In body cloud platform, hard disk praameter, CPU parameters and mirror image whether undated parameter, distributed to cloud platform layer 4 when virtual machineIn concrete cloud platform, the active time of virtual machine.
Multiple cloud platforms are provided with cloud platform layer 4, multiple cloud platforms are corresponded with multiple virtual machine pools, each cloud platformIt is provided with of a sort one or more virtual machines.
As shown in figure 1, being provided with virtual machine differential management module 2:Virtual machine pool a, virtual machine pool b, virtual machine pool c,Virtual machine pool d.Wherein, the type of the multiple virtual machines in virtual machine pool a is identical, that is, the multiple virtual machines in virtual machine pool aCloud platform X is can be used in, the image parameter of each virtual machine is X, comprising 1 CPU;Multiple virtual machines in virtual machine pool bType is identical, that is, the multiple virtual machines in virtual machine pool b can be used in cloud platform Y, the image parameter of each virtual machine is Y,Comprising 1 CPU;The type of the multiple virtual machines in virtual machine pool c is identical, that is, the multiple virtual machines in virtual machine pool c all may be usedFor cloud platform Z, the image parameter of each virtual machine is Z, comprising 4 CPU;The type of the multiple virtual machines in virtual machine pool dIdentical, that is, the multiple virtual machines in virtual machine pool d can be used in cloud platform W, the image parameter of each virtual machine is W, comprising1 CPU.
As shown in figure 1, being provided with cloud platform X, cloud platform Y, cloud platform Z and cloud platform W in cloud platform layer 4.Wherein, in cloudThe virtual machine that can be provided with platform X in one or more virtual machine pools a, can be provided with one or more empty in cloud platform YVirtual machine in plan machine pond b, the virtual machine that can be provided with cloud platform Z in one or more virtual machine pools c, in cloud platform WOn can be provided with virtual machine in one or more virtual machine pools d.
Unified interface module 3 be virtual machine life cycle control module 1, virtual machine differential management module 2 respectively with cloudThe communication of podium level 4 provides communications conduit.
In the present embodiment, unified interface module 3 can carry out unifying encapsulation to each cloud platform in cloud platform layer 4, andConsistent entrance is provided, the difference of each cloud platform is shielded, while being easy to the holistic management of cloud platform layer 4.
With reference to virtual machine life cycle management method disclosed by the invention, virtual machine life cycle disclosed by the invention is illustratedThe principle of management system, it is specific as follows:
Virtual machine life cycle control module 1 judges virtual in arbitrary virtual machine pool in virtual machine differential management module 2Whether the quantity of machine is less than corresponding surplus quota lower limit.
When being less than, virtual machine life cycle control module 1 creates the virtual machine of at least one type, virtual machine differentiationManagement module 2 preserves the virtual machine of at least one type to corresponding virtual machine pool.
In the present invention, it is desirable to require in each virtual machine pool empty more than the same type of correspondence surplus quota lower limit quantityPlan machine so that can timely use virtual machine when new user is in cloud platform.
Virtual machine life cycle control module 1 is judged in cloud platform layer 4 in arbitrary cloud platform by unified interface module 3Whether the idle periods of each virtual machine reach whether the upper limit and the configuration parameter of each virtual machine need to update.
In the present embodiment, when using virtual machine in concrete cloud platform of the user in cloud platform layer 4, when User logs in is publishedWhen, logging timestamp is marked into the active time of the virtual machine;When the idle periods of arbitrary virtual machine reach the upper limit or virtual machineWhen configuration parameter needs to update, virtual machine life cycle control module 1 reclaims virtual machine by unified interface module 3.
In the present invention, virtual machine life cycle control module 1 reclaims virtual by the deletion interface of unified interface module 3Machine, release resource.
Virtual machine life cycle control module 1 determines whether the configuration of any kind virtual machine according to virtual machine configuration tableParameter updates.
When exist update configuration parameter when, virtual machine life cycle control module 1 is searched and deleted and all matches somebody with somebody comprising oldThe same type virtual machine of parameter is put, while create equal number and include updating the same type virtual machine of configuration parameter, and is preservedInto virtual machine differential management module 2 in corresponding virtual machine pool.
In the present invention, virtual machine life cycle control module 1 can also control at least one virtual machine for workingBasic operation;Basic operation is included:The restarting of virtual machine, dormancy, recover and reconfigure.
How virtual virtual machine coherency management by being completed different vendor using unified interface module 3 of the invention, supportedThe access of many cloud platforms in desktop system.Also support various different configurations, the virtual machine of mirror image simultaneously, combine automatically create, oneselfIt is dynamic reclaim, the function such as new and old virtual machine is changed, it is established that the automatic ecological circulation of virtual machine in cluster first, is completed manyThe unified life cycle management of individual virtual machine.
Although the foregoing describing the specific embodiment of the present invention, it will be appreciated by those of skill in the art that theseIt is merely illustrative of, protection scope of the present invention is defined by the appended claims.Those skilled in the art is not carrying on the backOn the premise of the principle and essence of the present invention, various changes or modifications can be made to these embodiments, but these are changedProtection scope of the present invention is each fallen within modification.