CN104461693B - Virtual machine update method and system under a kind of desktop cloud computing environment - Google Patents

Virtual machine update method and system under a kind of desktop cloud computing environment Download PDF

Info

Publication number
CN104461693B
CN104461693B CN201410766455.4A CN201410766455A CN104461693B CN 104461693 B CN104461693 B CN 104461693B CN 201410766455 A CN201410766455 A CN 201410766455A CN 104461693 B CN104461693 B CN 104461693B
Authority
CN
China
Prior art keywords
virtual machine
template
information
renewal
updated
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410766455.4A
Other languages
Chinese (zh)
Other versions
CN104461693A (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 CN201410766455.4A priority Critical patent/CN104461693B/en
Publication of CN104461693A publication Critical patent/CN104461693A/en
Application granted granted Critical
Publication of CN104461693B publication Critical patent/CN104461693B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses the virtual machine update method under a kind of desktop cloud computing environment and system, methods described to include:Virtual machine template monitoring step, virtual machine template is monitored so as to judge whether the virtual machine template is updated;Virtual machine search step, the virtual machine for needing to update is searched out when the virtual machine template is updated;Fresh information pushes step, is constructed according to the Template Information of the virtual machine template after renewal and pushes virtual machine fresh information;Virtual machine updates step, and virtual machine renewal operation is carried out to the virtual machine searched using the virtual machine fresh information.The more new system of the present invention includes monitoring unit, search unit, fresh information structural unit and renewal operating unit.Compared with prior art, method and system based on the present invention can carry out batch updating operation to a large amount of virtual machines automatically, so as to greatly reduce the workload of operating personnel.

Description

Virtual machine update method and system under a kind of desktop cloud computing environment
Technical field
The present invention relates to field of computer technology, in particulars relate to the virtual machine renewal side under a kind of desktop cloud computing environment Method and system.
Background technology
Cloud computing is a kind of method of emerging shared architecture, and calculating task is distributed in a large amount of computers and formed by it Resource pool on, various application systems is obtained computing power, memory space and various software services as needed.Cloud computing Bottom need virtualization technology to support.By virtualization technology, cloud computing can be realized to the flexible and efficient of resource Use, so as to provide the user quality services.
Cloud computing environment can be divided into desktop cloud computing environment and server cloud computing environment, and wherein desktop cloud is calculated and laid particular emphasis on The virtualization of physical desktop is realized in cloud computing environment, to reach security and the flexibility that desktop uses.User can lead to Any equipment is crossed, in any place, accesses any time in desktop cloud computing environment and belongs to their personal desktop systems.
The application scenarios of desktop cloud computing are a lot, and in wherein a kind of application scenarios, user is based on unified virtual machine mould Plate establishes multiple identical virtual machines so that user uses.When virtual machine template updates, user is needed to use based on renewal The virtual machine that virtual machine template creates afterwards.Such as deploying virtual machine flow is as follows in school instruction scene:Teacher makes system One virtual machine template, then creates corresponding desktop virtual machine with it, and students use identical desktop virtual machine carry out class Hall experiment.When the teacher needs to update the virtual machine imparted knowledge to students and used, it is necessary to remake a new virtual machine template, then All virtual machines are re-created using the virtual machine template, and delete had been friends in the past virtual machine.This is a cumbersome process, It considerably increases the workload of teacher.
Therefore, the troublesome operation of virtual machine is updated in being applied for above-mentioned virtual machine, it is necessary to which a kind of new virtual machine updates Method and system are to reduce the workload of operating personnel.
The content of the invention
In order to reduce the troublesome operation in virtual machine renewal process, the invention provides under a kind of desktop cloud computing environment Virtual machine update method, methods described comprise the steps of:
Virtual machine template monitoring step, virtual machine template is monitored so as to judge whether the virtual machine template is updated;
Virtual machine search step, when the virtual machine template is updated, search out all void based on before renewal The virtual machine of plan machine template establishment;
Fresh information pushes step, is updated and believed according to the Template Information virtual machine constructor of the virtual machine template after renewal Breath, and the running status based on the virtual machine searched out pushes to the virtual machine fresh information void searched Plan machine;
Virtual machine updates step, and virtual machine is carried out more to the virtual machine searched using the virtual machine fresh information New operation.
In one embodiment, the virtual machine template monitoring step comprises the steps of:
Template operation step is monitored, the virtual machine template is monitored and is successfully executed so as to determine whether to update operation;
Template Information comparison step, described in before and after the renewal operates when the renewal operation is successfully executed Template Information is so as to judging whether the virtual machine template is updated.
In one embodiment, the monitoring template operation step comprises the steps of:
Hook Function is inserted in the interface position of the management program for operating virtual machine template, so as to using to the hook The monitoring of subfunction come judge whether virtual machine template operate;
Judge whether the virtual machine template operation is successfully executed when the virtual machine template operation be present;
Analyzed when virtual machine template operation is successfully executed the particular content of virtual machine template operation so as to Judge whether the virtual machine template operation is the renewal operation.
In one embodiment, in the monitoring template operation step, when virtual machine template operation is successfully executed When judge whether virtual machine template operation is that template establishes operation, when virtual machine template operation is established for the template Newly-established virtual machine template is saved into ATL during operation.
In one embodiment, the Template Information includes configuration information and disc information.
In one embodiment, the Template Information comparison step comprises the steps of:
Configuration information comparison step, the front and rear configuration information of the renewal operation is so as to judging described to match somebody with somebody confidence Whether breath is updated;
Disc information comparison step, the renewal operate the front and rear disc information so as to judge the disk letter Whether breath is updated.
In one embodiment, the disc information comparison step comprises the steps of:
Whether identical compare the front and rear number of disks of the renewal operation, when the renewal operates front and rear number of disks not The disc information is updated simultaneously;
When the front and rear number of disks of the renewal operation is identical, more each disk is in the front and rear magnetic of the renewal operation Disk snapshot is so as to judging whether the disc information is updated.
In one embodiment, the virtual machine fresh information includes config update information and disk fresh information, described Fresh information push step includes config update information push step, is constructed according to the configuration information after renewal and pushes institute State config update information.
In one embodiment, the fresh information push step is also comprising disk fresh information push step, the disk Fresh information push step comprises the steps of:
The disk fresh information is constructed according to the disc information after renewal;
Judge the running status of the virtual machine;
When the virtual machine is currently without operation, the locked virtual machine simultaneously pushes the disk fresh information;
When the virtual machine is currently running, the push disk fresh information is delayed.
Present invention also offers the virtual machine more new system under a kind of desktop cloud computing environment, the system includes:
Monitoring unit, for monitoring virtual machine template so as to judging whether the virtual machine template is updated;
Search unit, it is connected with the monitoring unit, for when the virtual machine template is updated, searching out institute The virtual machine that the virtual machine template before having based on renewal creates;
Fresh information structural unit, it is connected with the monitoring unit and the search unit, for when described virtual When machine template is updated, according to the Template Information virtual machine constructor fresh information of the virtual machine template after renewal, and it is based on The running status of the virtual machine searched out pushes to the virtual machine fresh information virtual machine searched;
Operating unit is updated, it is connected with the fresh information structural unit and is connected to every virtual machine, is used for Virtual machine renewal operation is carried out to the virtual machine searched using the virtual machine fresh information.
Compared with prior art, method and system based on the present invention can carry out batch more to a large amount of virtual machines automatically New operation, so as to greatly reduce the workload of operating personnel.
The further feature or advantage of the present invention will illustrate in the following description.Also, the present invention Partial Feature or Advantage will be become apparent by specification, or be appreciated that by implementing the present invention.The purpose of the present invention and part Advantage can be realized or obtained by specifically noted step in specification, claims and accompanying drawing.
Brief description of the drawings
Accompanying drawing is used for providing a further understanding of the present invention, and a part for constitution instruction, the reality with the present invention Apply example to be provided commonly for explaining the present invention, be not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is flow chart according to an embodiment of the invention;
Fig. 2 is system architecture sketch according to an embodiment of the invention.
Embodiment
Embodiments of the present invention are described in detail below with reference to drawings and Examples, whereby implementation personnel of the invention Can fully understand how application technology means solve technical problem to the present invention, and reach the implementation process of technique effect and according to The present invention is embodied according to above-mentioned implementation process.If it should be noted that do not form conflict, each embodiment in the present invention And each feature in each embodiment can be combined with each other, the technical scheme formed protection scope of the present invention it It is interior.
Under desktop cloud computing environment, the establishment and use of virtual machine have numerous different modes.One of which side Formula is to create virtual machine based on virtual machine template.Unified virtual machine template is initially set up, is then created according to virtual machine template Multiple identical virtual machines use so as to user.In such a situation, if virtual machine template is updated, then just need basis New virtual machine template creates new virtual machine so that user uses.Now just need to create newly virtual for each user Machine simultaneously deletes old virtual machine.The establishment and deletion work of whole virtual machine certainly will bring huge workload.
The invention discloses the virtual machine update method under a kind of cloud computing environment and system.Method based on the present invention And system can carry out batch updating operation to a large amount of virtual machines established based on unified virtual machine template automatically, so as to significantly Reduce the workload of operating personnel.Next performing in detail for one embodiment of the invention is described in detail based on flow chart Journey.The step of being shown in the flow chart of accompanying drawing can hold in the computer system comprising such as one group computer executable instructions OK., in some cases, can be with suitable different from herein although showing the logical order of each step in flow charts Sequence performs shown or described step.
The purpose of the virtual machine update method of the present invention is to be automatically updated after virtual machine template is updated accordingly virtually Machine.In an embodiment of the present invention, perform virtual machine update method to first have to judge whether virtual machine template is updated, such as Fig. 1 It is shown, perform the step in dotted line frame 192.Corresponding virtual machine is then updated after virtual machine template is updated.
Based on the correlated characteristic analysis to virtual machine template, in the present embodiment, the information of virtual machine template is divided into two Major class.One kind is configuration information, and it includes the equipment such as the processor (CPU), internal memory, network card equipment information created needed for virtual machine Information.Another kind of is disc information, and it, which is included, creates the number of disks needed for virtual machine and the data message on each disk. Classification of the present embodiment based on Template Information constructs updates the data structure for virtual machine renewal.Update the data structure In include configuration information and disc information for renewal.It is larger in view of the data volume of disc information, therefore at this Updating the data for embodiment has used disk to update flag bit in structure, the flag bit of disk renewal is used to mark whether to enter Row disk updates, and disk specific disc information required when updating is then with reference to the disc information of the virtual machine template after renewal.
In the present embodiment, first have to judge whether virtual machine template is updated, this will judge above-mentioned virtual machine template Information whether change.When the information of above-mentioned virtual machine template changes, i.e., virtual machine template is updated, now Need to be updated corresponding virtual machine.Judge whether the information of virtual machine template changes, first have to obtain virtual machine The initial information (information before changing) of template.Therefore first have to perform an initialization step when virtual machine more new system starts Suddenly.In the present embodiment, in the last of cloud computing platform management program start-up course, initialization step is performed, obtains virtual machine The initial information of template, initialization update the data structure and the related memory for being used for virtual machine renewal.
As shown in figure 1, in initialization step, step S101 is performed for the configuration information of virtual machine template, obtains and works as The configuration information of preceding virtual machine template is simultaneously saved in internal memory.
In the present embodiment, the disc information of virtual machine includes the data message on number of disks and each disk.Pin To the disc information of virtual machine template, step S103 is first carried out, obtains the number of disks of current virtual machine template and is saved in In internal memory.Disk snapshot is based on because the usual data volume of data message on disk is very big, therefore in the present embodiment come analysis of magnetic The conversion of disk information.Step S102 is performed herein, and all disks of current virtual machine template are done with disk snapshot, and by snapshot Specified location is saved in, the positional information of snapshot is stored in internal memory.
Following can performs the virtual machine template monitoring step in dotted line frame 192, monitors virtual machine template so as to sentence Whether disconnected virtual machine template is updated.Because monitoring behavior should be carried out immediately, i.e., system will be monitored operation always. In order to reduce system burden, the present embodiment employs successively progressive monitor mode, and monitoring first is easiest to the variable of monitoring, root The bigger monitoring judgement aspect of amount of calculation is triggered step by step according to monitoring demand.So as to not influence the accurate of final monitoring judged result The amount of calculation for the policer operation that system needs are always maintained at is reduced in the case of degree as far as possible.
In the present embodiment, it is to detect whether there is renewal operation first to judge whether virtual machine template is updated.This In perform step S111, insert Hook Function, virtual machine template may be caused to change in editor, newly-built virtual machine template etc. Hypervisor interfaces position insertion Hook Function.Following can performs step S112, Hook Function is monitored, so as to utilize Monitoring to Hook Function judges whether that virtual machine template operates.
Whether the Hook Function that system constantly monitors setting is triggered.Then illustrate to work as when Hook Function is not triggered The preceding virtual machine template that is not present operates, and then illustrates to there is currently virtual machine template operation when Hook Function is triggered, now holds Row step S113, judge that operation performs success or failure, that is, judge whether the virtual machine template operation for triggering Hook Function is successful Perform.
In the present embodiment, virtual machine template operation can be divided into renewal operation and template establishes two classes of operation.Renewal behaviour Work is operated based on existing template, updates the relevant information of existing template, so as to generate required virtual machine template.Mould It is then to establish brand-new virtual machine template that plate, which establishes operation,.The main object of the present invention is automatic after virtual machine template is updated Update corresponding virtual machine.It can be appreciated that when virtual machine template operation is establishes new template operation, not to create Virtual machine is corresponding with new template, next it is desirable that based on the new virtual machine of newly-established template establishment, therefore next With regard to need not temporarily carry out virtual machine renewal operation.
Therefore in the present embodiment, just need to perform step S121, analysis when virtual machine template operation is successfully executed Whether the particular content of virtual machine template operation is renewal operation so as to judge that virtual machine template operates, that is, judges whether to build New template is found.When virtual machine template operation operates for renewal, i.e., user does not establish new template but based on existing Template when being operated can perform Template Information comparison step, compare the front and rear Template Information of virtual machine template operation from And judge whether virtual machine template is updated.
Compare and establish new template, operating procedure can be greatly reduced by being updated operation based on existing template, so as to subtract Few workload.In order that obtain user possesses bigger range of choice, it is necessary to constantly be preserved in expansion system when calling template Template quantity.Therefore in the present embodiment, when virtual machine template operation establishes operation for template, step S122 is performed, New template is saved in sample form storehouse to call later.
After new template is saved, system next just need to new template monitor, so as to new template renewal after renewal by The virtual machine that new template creates.Therefore in order to be monitored to new template, step S123 is also performed before new template is monitored, The initial information of new template is preserved, i.e., similar step S101, S102 and S103 operation are performed for new template, by new samples The configuration information update of template does disk snapshot into internal memory, to the disk of new samples template, and snapshot is saved in into specific bit Put, the positional information of snapshot is stored in internal memory.
In the present embodiment, it is contemplated that user is also possible to establish out and original sample mould when establishing new sample form Plate identical sample form.Therefore a secondary-confirmation step is also needed in step S121.I.e. by newly-built template with owning Original template compares, and can just determine that virtual machine template operation is mould when newly-built template and all templates are inconsistent Plate establishes operation and establishes new template.Certain, based on actual conditions, above-mentioned secondary-confirmation step can also be omitted.
Template Information has been divided into configuration information and disc information by the present embodiment.Therefore held first when Template Information compares Row step S131, configuration information comparison step, compare the front and rear virtual machine template configuration information of virtual machine template operation so as to obtain Take comparative result.System obtains the configuration information after renewal, and compared with the configuration information with being preserved in internal memory.Before renewal During rear configuration information difference, step S132, the difference of the front and rear configuration information of contrast renewal and the part that will have changed are performed It is saved in and updates the data in structure.Then step S133 is performed, the configuration information after renewal is all saved in internal memory simultaneously The configuration information before the renewal preserved in internal memory is deleted so that the renewal performed next time judges.
When the configuration information of the virtual machine template before and after step S133 is finished or updated is identical, next will Disc information comparison step is performed, compares the front and rear disc information of virtual machine template operation so as to obtain comparative result.In this reality Apply in example, disc information is divided into the data message in number of disks and each disk.It can be appreciated that number of disks compares appearance Easily analysis, therefore step S141 is first carried out, whether identical compare the front and rear number of disks of virtual machine template operation.If disk Number is changed, then directly explanation disc information is changed.
To when number of disks does not change, then needing to perform step S142, disk snapshot is contrasted, more each disk exists Whether the front and rear disk snapshot of virtual machine template operation is identical.In step S142, the mould after being operated first to virtual machine template Plate disk does snapshot, and whether then contrast new snapshot identical with the snapshot that is obtained in step S102 before.If number of disks Change or disk snapshot is different, then need to perform step S143, the disk updated the data in structure is updated and indicated Position is labeled as.Then step S144 is performed, the old disk snapshot of specified location is deleted and new snapshot is saved in specific bit Put.The positional information and number of disks information of snapshot in final updating internal memory.
Can performs step S150 after the completion of the contrast of disc information and configuration information judges all, judges whether to need Perform renewal operation.In the present embodiment, it is to check that what is generated updates the data whether structure is empty.
The purpose of the present invention be to the virtual machine of renewal in need be updated automatically.Therefore when needs perform renewal behaviour When making, first have to filter out the virtual machine for needing to update.In the present embodiment, virtual machine is created based on virtual machine template, such as The virtual machine template that fruit is used to create virtual machine is updated, then the virtual machine being created based on the template before renewal is just needed It is to be updated.Therefore need to perform step S160, virtual machine search step, when a certain virtual machine template is by more in the present embodiment When new, the virtual machine that all virtual machine templates based on before renewal create is searched out.In the process, system is according to renewal number All virtual machines using the virtual machine template are searched from database according to the virtual machine template numbering in structure.
Then can performs fresh information push step, based on the running status of virtual machine according to the virtual machine after renewal The Template Information of template constructs and pushes virtual machine fresh information.In the present embodiment, virtual machine fresh information includes configuration more Fresh information and disk fresh information.Different constructions and push strategy are taken for different virtual machine fresh informations.Cause This fresh information push step and afterwards virtual machine renewal step be sequentially completed for each virtual machine.At circulation Each virtual machine is managed, when all virtual machines are all disposed, then this renewal process terminates.
In fresh information pushes step, step S171 is first carried out in system, judges whether to need to update configuration information.When When needing to update configuration information, step S172 is performed, is constructed according to the configuration information after renewal and pushes config update information.
Then step S173 is performed, judges whether to need to update disc information.Check the disk updated the data in structure Flag bit is updated, if flag bit is yes, i.e., when needing to update disc information, step S174 is performed, according to the disk after renewal Information structuring disk fresh information.Because disc information can not be updated when virtual machine is run, thus step S174 it After need perform step S175, judge whether virtual machine runs.When virtual machine is currently running, then execution step S176, delay pushes away Send until virtual machine is out of service.
In order to perform in step S176, the present embodiment just initializes a timer first in initial initialization step And one block of timing push buffering area.Timer is used to inspect periodically buffer contents and system its dependent variable, to determine to be No initiation push operation.Timing push buffering area is used to preserve the disk fresh information for being currently needed for delay push, including virtual Machine numbering, virtual machine template numbering, the disk list of renewal.It is pointed out that the initialization step in the present embodiment, i.e., The initialization operation of information acquiring operation and above-mentioned timer, timing push buffering area in S101, S102 and S103 is only Need to perform when virtual machine more new system just starts.
In step S176, the disc information updated the data in structure is compiled together with virtual machine numbering, virtual machine template One record of number conduct is saved in timing push buffering area.In order to ensure the uniqueness of operation, timing is pushed in buffering area Virtual machine numbering is unique, i.e., synchronization, a virtual machine can only have a record in timing pushes buffering area;When new Record be sent to timing push buffering area during also untreated old record, then new record is override into old record, from And avoid collision problem.
According to the timer interval pre-set, update module reads timing and pushed every the time interval set Content in buffering area, every record of circular treatment, the virtual machine in every record are numbered, obtain virtual machine information and examine Look into whether virtual machine is in running status, if virtual machine state is is currently running, this process terminates, otherwise initiate push simultaneously This records in timing push buffering area is deleted after pushing successfully.
When virtual machine is out of service, then step S177, locked virtual machine is first carried out.Under locking state, virtual machine Any operation can not be carried out.Then step S178 is performed, pushes disk fresh information.
It is last then step S181 can be carried out according to the config update information or disk fresh information that are pushed out (renewal is virtual Machine disk) or step S182 (renewal virtual machine configuration).In the present embodiment, step S182 is first carried out.Step S182 both may be used It can also be performed with that can be performed when virtual machine is out of service while virtual machine is run.In step S182, according to more The difference of data type in new data structure body, call the virtual machine interface completion CPU hot plugs of bottom, internal memory online respectively Distribution, network interface card hot plug etc. operate.
Next step S181 is performed, step 181 can only perform when virtual machine is out of service and perform step S181 When virtual machine can not be operated.In step S181, decided whether according to the disk renewal flag bit updated the data in structure Disk is updated, need not such as be updated, then this step terminates;If desired for all disks of renewal, then deletion virtual machine, and according to more Disc information in new data structure body, by the disk that all disk copies of virtual machine template are virtual machine.In order to ensure it The read-write efficiency of his virtual machine, in the present embodiment, while the virtual machine for carrying out disk renewal is no more than 3.
Based on the virtual machine update method of the present invention, the invention also provides a kind of virtual machine more new system.Fig. 2 is shown Use a set of dummy machine system of the virtual machine update method of the present embodiment.The present embodiment mainly relies on acceptance of the bid kylin high-level service Device virtualizes version to build virtual machine more new system, it should be pointed out that virtual machine of the invention more new system can also rely on Other virtual machine control platforms are built.
As shown in Fig. 2 from overall architecture, virtual machine control platform include management node 254, storage facilities 210 with And clustered node 250,251 and 252.Storage device 210 is one of infrastructure device of whole cloud computing environment, virtual machine magnetic Disk, template disk all preserve on a storage device.As shown in Fig. 2 magnetic disk of virtual machine 212,213 is preserved in storage device 210 And 214, template disk 211.
Management node and clustered node are connected by network with storage device, and can carry out related behaviour on a storage device Make.In the present embodiment, allow a management node and multiple clustered nodes, management node be present in desktop cloud computing platform Multiple clustered nodes are managed by network.In Fig. 2, the management clustered nodes 250,251 of management node 254 times and 252。
Management node 254 is the management end of virtual machine control platform, constructs and is run to desktop cloud computing environment thereon The cloud computing platform management module 200 being managed.
Cloud computing platform management module 200, it includes template operation unit 201 and template configuration unit 203.User is led to Cross template operation unit 201 and virtual machine template is chosen or created in template configuration unit, configure required virtual machine template and match somebody with somebody Put, and template disk 211 corresponding with above-mentioned configuration is built in storage device.It is next based on virtual machine template configuration and mould Plate disk 211 creates corresponding virtual machine.
In the present embodiment, a virtual machine includes desktop virtual machine (configuration such as virtual machine running environment, system setting) And magnetic disk of virtual machine.It is virtual that multiple identicals can be created based on a virtual machine template configuration and corresponding template disk Machine.Such as desktop virtual machine 242 in Fig. 2 and corresponding magnetic disk of virtual machine 212, desktop virtual machine 243 and corresponding magnetic disk of virtual machine 213 and desktop virtual machine 244 and corresponding magnetic disk of virtual machine 214 be namely based on same virtual machine template configuration and template Three sets of virtual machines of identical that disk 211 creates.In addition in the present embodiment, user can also configure multiple in management node Different virtual machine template simultaneously creates different virtual machines based on different virtual machine templates.
Clustered node, which is to provide operation on the server of desktop virtual machine service, such as clustered node 250, has desktop virtual Machine 242,243 and 244.
The virtual machine of the present embodiment more new system relies on virtual machine control platform structure, and it includes monitoring unit 220, search Unit 260, fresh information structural unit 270 and renewal operating unit 230.Monitoring unit 220, search unit 260, renewal letter Breath structural unit 270 is built into management node 254.Wherein, monitoring unit 220 and the phase of cloud computing platform management module 200 Even, for monitoring virtual machine template so as to judging whether virtual machine template is updated effect.
Search unit 260 is connected with monitoring unit 220, and quilt is used for the judged result search based on monitoring unit 220 The virtual machine of the virtual machine template of renewal simultaneously exports search result, and all uses are searched out when virtual machine template is updated by more The virtual machine of new virtual machine template.
Fresh information structural unit 270 is connected with monitoring unit 220 and search unit 260, for working as virtual machine template Running status based on the virtual machine being updated when being updated is constructed and pushed away according to the Template Information of the virtual machine template after renewal Send virtual machine fresh information.
In the present embodiment, for the ease of performing virtual machine renewal operation for different clustered nodes, in each cluster Corresponding renewal operating unit is configured with node.Renewal operating unit 230 is configured with clustered node 250 as shown in Figure 2.When Right all clustered nodes that can also be directed to construct a unified renewal operating unit.Operating unit 230 is updated with renewal to believe Breath structural unit 270 is connected and every virtual machine being connected on clustered node 250, for based on virtual machine fresh information to phase The virtual machine answered performs renewal operation.
In the present embodiment, monitoring unit 220 monitors the change of all virtual machine templates, including configuration information, disk, net Network equipment etc..When monitoring unit 220 finds that some virtual machine template is updated, search unit 260 is activated.Search unit 260 The database of cloud computing platform management module 200 is searched, searches all virtual machines using the virtual machine template.At the same time more Fresh information structural unit 270 also constructs corresponding virtual machine fresh information (config update information and disk fresh information).It is false Search result such as search unit 260 is that virtual machine corresponding to the virtual machine template updated is to be run on clustered node 250 Virtual machine, then fresh information structural unit 270 by the virtual machine fresh information constructed be pushed to renewal operating unit 230. (certainly, need to detect the running status of virtual machine during push, just do not add to repeat here.) renewal operating unit 230 Operation module or directly operation storage device where calling associated virtual machine based on virtual machine fresh information on node are carried out not Same processing.It is i.e. virtual to the magnetic disk of virtual machine 212,213 and 214 in storage device, the also desktop on clustered node 250 Machine 242,243 and 244 performs renewal operation.
While it is disclosed that embodiment as above, but described content only to facilitate understand the present invention and adopt Embodiment, it is not limited to the present invention.Method of the present invention can also have other various embodiments.Without departing substantially from In the case of essence of the present invention, those skilled in the art, which work as, can make various corresponding changes or become according to the present invention Shape, but these corresponding changes or deformation should all belong to the scope of the claims of the present invention.

Claims (8)

1. the virtual machine update method under a kind of desktop cloud computing environment, it is characterised in that methods described comprises the steps of:
Virtual machine template monitoring step, virtual machine template is monitored so as to judge whether the virtual machine template is updated;
Virtual machine search step, when the virtual machine template is updated, search out all virtual machines based on before renewal The virtual machine of template establishment;
Fresh information pushes step, according to the Template Information virtual machine constructor fresh information of the virtual machine template after renewal, And the running status based on the virtual machine searched out the virtual machine fresh information is pushed to search it is described virtual Machine;
Virtual machine updates step, and virtual machine renewal behaviour is carried out to the virtual machine searched using the virtual machine fresh information Make,
Wherein, the virtual machine template monitoring step comprises the steps of:
Template operation step is monitored, the virtual machine template is monitored and is successfully executed so as to determine whether to update operation;
Template Information comparison step, the front and rear template of the renewal operation when the renewal operation is successfully executed Information so as to judge whether the virtual machine template is updated,
Wherein, the monitoring template operation step comprises the steps of:
Hook Function is inserted in the interface position of the management program for operating virtual machine template, so as to using to the hook letter Several monitoring come judge whether virtual machine template operate;
Judge whether the virtual machine template operation is successfully executed when the virtual machine template operation be present;
The particular content of virtual machine template operation is analyzed when virtual machine template operation is successfully executed so as to judge Whether the virtual machine template operation is the renewal operation.
2. the method as described in claim 1, it is characterised in that in the monitoring template operation step, when the virtual machine Judge whether the virtual machine template operation is that template establishes operation when template operation is successfully executed, when the virtual machine template Operate and newly-established virtual machine template is saved into ATL when establishing and operate for the template.
3. the method as described in claim 1, it is characterised in that the Template Information includes configuration information and disc information.
4. method as claimed in claim 3, it is characterised in that the Template Information comparison step comprises the steps of:
Configuration information comparison step, the front and rear configuration information of the renewal operation are so as to judge the configuration information It is no to be updated;
Disc information comparison step, the front and rear disc information of the renewal operation are so as to judge the disc information It is no to be updated.
5. method as claimed in claim 4, it is characterised in that the disc information comparison step comprises the steps of:
Whether identical compare the front and rear number of disks of the renewal operation, when the front and rear number of disks difference of the renewal operation The disc information is updated;
When the front and rear number of disks of the renewal operation is identical, more each disk is fast in the front and rear disk of the renewal operation According to so as to judging whether the disc information is updated.
6. method as claimed in claim 3, it is characterised in that the virtual machine fresh information include config update information and Disk fresh information, the fresh information push step include config update information push step, matched somebody with somebody according to after renewal Put information structuring and push the config update information.
7. method as claimed in claim 6, it is characterised in that the fresh information push step also includes disk fresh information Step is pushed, the disk fresh information push step comprises the steps of:
The disk fresh information is constructed according to the disc information after renewal;
Judge the running status of the virtual machine;
When the virtual machine is currently without operation, the locked virtual machine simultaneously pushes the disk fresh information;
When the virtual machine is currently running, the push disk fresh information is delayed.
8. the virtual machine more new system under a kind of desktop cloud computing environment, it is characterised in that the system includes:
Monitoring unit, for monitoring virtual machine template so as to judging whether the virtual machine template is updated;
Search unit, it is connected with the monitoring unit, for when the virtual machine template is updated, searching out all bases The virtual machine that the virtual machine template before renewal creates;
Fresh information structural unit, it is connected with the monitoring unit and the search unit, for when the virtual machine mould When plate is updated, according to the Template Information virtual machine constructor fresh information of the virtual machine template after renewal, and based on search The running status of the virtual machine gone out pushes to the virtual machine fresh information virtual machine searched;
Operating unit is updated, it is connected with the fresh information structural unit and is connected to every virtual machine, for utilizing The virtual machine fresh information carries out virtual machine renewal operation to the virtual machine searched,
Wherein, the monitoring unit includes:
Template operation unit is monitored, is successfully executed for monitoring the virtual machine template so as to determine whether to update operation;
Template Information comparing unit, described in before and after the renewal operation when the renewal operation is successfully executed Template Information so as to judge whether the virtual machine template is updated,
Wherein, the monitoring template operation unit is additionally operable to:
Hook Function is inserted in the interface position of the management program for operating virtual machine template, so as to using to the hook letter Several monitoring come judge whether virtual machine template operate;
Judge whether the virtual machine template operation is successfully executed when the virtual machine template operation be present;
The particular content of virtual machine template operation is analyzed when virtual machine template operation is successfully executed so as to judge Whether the virtual machine template operation is the renewal operation.
CN201410766455.4A 2014-12-11 2014-12-11 Virtual machine update method and system under a kind of desktop cloud computing environment Active CN104461693B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410766455.4A CN104461693B (en) 2014-12-11 2014-12-11 Virtual machine update method and system under a kind of desktop cloud computing environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410766455.4A CN104461693B (en) 2014-12-11 2014-12-11 Virtual machine update method and system under a kind of desktop cloud computing environment

Publications (2)

Publication Number Publication Date
CN104461693A CN104461693A (en) 2015-03-25
CN104461693B true CN104461693B (en) 2018-01-23

Family

ID=52907797

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410766455.4A Active CN104461693B (en) 2014-12-11 2014-12-11 Virtual machine update method and system under a kind of desktop cloud computing environment

Country Status (1)

Country Link
CN (1) CN104461693B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106874062B (en) * 2015-12-11 2021-10-12 三亚中兴软件有限责任公司 Virtual machine updating method and device
CN105610630A (en) * 2016-01-29 2016-05-25 博雅网信(北京)科技有限公司 Patch installation system and method in cloud computing environment
CN106878363B (en) * 2016-06-01 2020-05-15 阿里巴巴集团控股有限公司 Information processing method, device and system
CN107885574B (en) * 2016-09-30 2021-02-09 华为技术有限公司 Deployment method of virtual machine, service node, control device and control node
CN106648837A (en) * 2016-12-30 2017-05-10 携程旅游网络技术(上海)有限公司 Virtual machine life cycle management system and virtual machine life cycle management method
JP2018151806A (en) * 2017-03-13 2018-09-27 富士通株式会社 Information processing apparatus, method for controlling information processing apparatus, and program
CN108632316A (en) * 2017-03-21 2018-10-09 深圳市易鑫磊科技有限公司 A kind of high in the clouds configuration system and its configuration method
CN108710527A (en) * 2018-04-09 2018-10-26 广东睿江云计算股份有限公司 A kind of virtual machine template management system, method based on xen
CN109783198B (en) * 2019-01-29 2023-01-20 中山大学 Rapid and automatic construction method for batch big data experiment environment
CN110941440A (en) * 2019-10-31 2020-03-31 北京浪潮数据技术有限公司 Batch updating method, device and equipment for virtual machines and readable storage medium
CN112181597B (en) * 2020-10-12 2024-01-19 成都精灵云科技有限公司 Dynamic updating method for container resource use limit

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104144173A (en) * 2013-05-06 2014-11-12 上海宏第网络科技有限公司 Campus cloud platform system and method based on distributed virtual service technology

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104144173A (en) * 2013-05-06 2014-11-12 上海宏第网络科技有限公司 Campus cloud platform system and method based on distributed virtual service technology

Also Published As

Publication number Publication date
CN104461693A (en) 2015-03-25

Similar Documents

Publication Publication Date Title
CN104461693B (en) Virtual machine update method and system under a kind of desktop cloud computing environment
AU2019200046B2 (en) Utilizing artificial intelligence to test cloud applications
CN106610854B (en) Model updating method and device
US10402746B2 (en) Computing instance launch time
US8869111B2 (en) Method and system for generating test cases for a software application
CN109873804A (en) Service identification method, device, equipment and the readable storage medium storing program for executing of Behavior-based control
TW201737126A (en) Method and device for executing data recovery operation
CN106648994B (en) Method, equipment and system for backing up operation log
CN107870845A (en) Towards the management method and system of micro services framework applications
CN107783816A (en) The method and device that creation method and device, the big data cluster of virtual machine create
CN103997544A (en) Resource downloading method and device
JP6595625B2 (en) Automatic recharge system, method and server
CN106326128B (en) The detection method and device of configuration file
CN114692169B (en) Page vulnerability processing method applying big data and AI analysis and page service system
US11461457B2 (en) Utilizing models to generate identifiers that identify and provide authentication for machine learning models
CN111026568A (en) Data and task relation construction method and device, computer equipment and storage medium
CN111460394A (en) Copyright file verification method and device and computer readable storage medium
CN111273943A (en) Application file generation method and device and electronic equipment
CN106529281A (en) Executable file processing method and device
CN111090401B (en) Storage device performance prediction method and device
US10469329B1 (en) Computing service capacity management
US10970196B1 (en) Semantic-aware fuzz-based functional testing
CN113297072B (en) Container testing method and device
CN107688582B (en) Resource recommendation model obtaining method and device
CN105653123B (en) A kind of icon group technology and terminal device

Legal Events

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