CN107273146A - Virtual machine upgrade method and device - Google Patents

Virtual machine upgrade method and device Download PDF

Info

Publication number
CN107273146A
CN107273146A CN201610216381.6A CN201610216381A CN107273146A CN 107273146 A CN107273146 A CN 107273146A CN 201610216381 A CN201610216381 A CN 201610216381A CN 107273146 A CN107273146 A CN 107273146A
Authority
CN
China
Prior art keywords
image
stand
file
virtual machine
mirror image
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
CN201610216381.6A
Other languages
Chinese (zh)
Other versions
CN107273146B (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201610216381.6A priority Critical patent/CN107273146B/en
Priority to PCT/CN2017/077543 priority patent/WO2017173922A1/en
Publication of CN107273146A publication Critical patent/CN107273146A/en
Application granted granted Critical
Publication of CN107273146B publication Critical patent/CN107273146B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a kind of virtual machine upgrade method and device, wherein, this method includes:Obtain the upgrade image of original image, more new file covering in the upgrade image is articulated to the file of the stand-alone assembly mirror image of virtual machine, wherein, the stand-alone assembly mirror image is the original image that the virtual machine is handled by File Mapping configuration information, there is the stand-alone assembly mirror image of linking relationship in the system image produced with the virtual machine, the stand-alone assembly mirror image is articulated into the virtual machine.Using above-mentioned technical proposal, the problem of virtual machine cluster disposed based on father and son's mirror image upgrades complicated is solved, simple and effective realizes virtual machine cluster upgrading.

Description

Virtual machine upgrade method and device
Technical field
The present invention relates to the communications field, in particular to a kind of virtual machine upgrade method and device.
Background technology
Intel Virtualization Technology application is increasingly extensive, and virtual machine is based on can the mode based on shared father's mirror image in virtual disk, correlation technique Disposed, Fig. 1 is father and son's mirror schematic diagram according to correlation technique, as shown in figure 1, A1 is father's mirror image, A2, A3 It is sub- mirror image with A4, V1, V2 and V3 are virtual machine, and each virtual machine is articulated on corresponding sub- mirror image, but virtual machine Basic operation program and data are all placed in father's mirror image, and the delta data of virtual machine is placed in sub- mirror image, when virtual machine carries out file During read operation, sub- mirror image is first searched, such as fruit mirror image there are data, then directly read from sub- mirror image, otherwise again from father's mirror image Read.And when virtual machine carries out file write operation, can be written directly in sub- mirror image, during such subsequent reads, it is possible to read most The data newly changed.In this way, all virtual machines all share the basic data of father's mirror image, in virtual machine component upgrade, Father's mirror image can be upgraded in theory, its change can be applied in all virtual machines based on father and son's mirror, be formed Batch upgrade.But in practical operation, many problems can be run into.
Fig. 2 is the occupancy relation schematic diagram to virtual sectors according to father and son's mirror image in correlation technique, as shown in Fig. 2 A1 is father's mirror Picture, A2, A3 are corresponding sub- mirror image, wherein, each small lattice are represented in the corresponding virtual sectors of virtual disk, Fig. 2, father's mirror The data of picture occupy 0-2 sectors, when A2/A3 classification mounting virtual machines, and carry out after a period of time read-write, A2 mirror image numbers According to having newly increased 3,4,7 three sectors, and A3 mirror image datas have newly increased 5,7 two sectors.The problem of so causing It is that when it is desirable that directly being changed A1 father's mirror image, new sector distribution will necessarily be related to, but we do not know pair The sub- mirror image answered, which whether there is, occupies the sector, if having occupied the sector, and corresponding virtual machine is reading the sector contents When, directly it can be read from sub- mirror image, the modification of such father's mirror image cannot be by virtual machine aware, and batch upgrade also cannot be into Stand.
Solution in correlation technique has a variety of:1, all sub- mirror images can be scanned, analyze which virtual sectors also not Use, can be used as the upgrading to father's mirror image, but disk read-write operation can be carried out always in operation in view of virtual machine, Therefore this method must suspend all virtual machines, if virtual machine quantity is a lot, either close or scanning disk is all very big Work.Meanwhile, it is the function of file system to the selection of disk sector, the realization of the function is also needed to virtual machine file system The modification of system, therefore, the solution are difficult to implement in engineering.2, sector reservation can be carried out to father's mirror image, method can be with It is that special identifier is carried out to its partial virtual sector making father's mirror image, forms reserve sector, and prevent virtual loom mirror image from accounting for Corresponding sector is used, so, in upgrading, this part reserve sector can be directly used, will not be taken with virtual loom mirror image It is overlapping.But which is still faced with the problem of needing file system in modification virtual machine, since it is desired that clearly setting upgrading Data in magnetic disk is placed on reserve sector, and this has to be supported based on virtual machine file system.Therefore, this method is also It is that complexity is higher.
For in correlation technique, the problem of upgrading complicated based on the virtual machine cluster that father and son's mirror image is disposed, there is presently no effectively solve Certainly scheme.
The content of the invention
The invention provides a kind of virtual machine upgrade method and device, at least to solve what is disposed in correlation technique based on father and son's mirror image The problem of virtual machine cluster upgrading is complicated.
According to an aspect of the invention, there is provided a kind of virtual machine upgrade method, including:
The upgrade image of original image is obtained, the more new file covering in the upgrade image is articulated to the stand-alone assembly of virtual machine The file of mirror image, wherein, the stand-alone assembly mirror image is the original image that the virtual machine is handled by File Mapping configuration information, There is the stand-alone assembly mirror image of linking relationship in the system image produced with the virtual machine;
The stand-alone assembly mirror image is articulated to the virtual machine.
Further, the stand-alone assembly mirror image that there is threaded file relation with the system image of the virtual machine of producing includes:
The file of the original image is moved to the stand-alone assembly mirror image;
In the file of the original image file chain for pointing to the original image is set up at position in the original image Connect.
Further, the upgrade image for obtaining the original image includes:
Backup based on the original image forms institute after re-creating virtual machine, the component upgrade of the virtual machine re-created State upgrade image.
Further, the file for the change file in the upgrade image being covered into the stand-alone assembly mirror image includes:
According to File Mapping configuration information and the upgrade image, whether the file scanned in the stand-alone assembly mirror image has change, In the case that file in the stand-alone assembly mirror image has change, more this document of the upgrade image is covered into the independence The file of component mirror image.
Further, the stand-alone assembly mirror image meets following condition:The stand-alone assembly mirror image only allows virtual machine to carry out reading behaviour Do not allow to carry out write operation to the stand-alone assembly mirror image.
According to another aspect of the present invention there is provided a kind of virtual machine update device, including:
More new file covering in the upgrade image is articulated to void by overlay module, the upgrade image for obtaining original image The file of the stand-alone assembly mirror image of plan machine, wherein, the stand-alone assembly mirror image is to handle the void by File Mapping configuration information There is the stand-alone assembly mirror image of linking relationship in the original image of plan machine, the system image produced with the virtual machine;
Knock-down module, for the stand-alone assembly mirror image to be articulated into the virtual machine.
Further, the overlay module includes:
Mobile unit, for the file of the original image to be moved into the stand-alone assembly mirror image;
Indicating member, for being set up in the file of the original image at position in the original image for pointing to the original The file link of beginning mirror image.
Further, the overlay module is additionally operable to the backup based on the original image and re-creates virtual machine, described to create again The upgrade image is formed after the component upgrade for the virtual machine built.
Further, the overlay module is additionally operable to, according to File Mapping configuration information and the upgrade image, scan the independence Whether the file in component mirror image has change, in the case that the file in the stand-alone assembly mirror image has change, by the liter More this document of class mirror-image covers the file of the stand-alone assembly mirror image.
Further, the stand-alone assembly mirror image meets following condition:The stand-alone assembly mirror image only allows virtual machine to carry out reading behaviour Do not allow to carry out write operation to the stand-alone assembly mirror image.
By the present invention, the upgrade image of original image is obtained, the more new file covering in the upgrade image is articulated to virtual machine Stand-alone assembly mirror image file, wherein, the stand-alone assembly mirror image is the original that the virtual machine is handled by File Mapping configuration information There is the stand-alone assembly mirror image of linking relationship in beginning mirror image, the system image produced with the virtual machine, by the stand-alone assembly mirror image The virtual machine is articulated to, the problem of virtual machine cluster disposed based on father and son's mirror image upgrades complicated is solved, simple and effective realizes Virtual machine cluster is upgraded.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, of the invention shows Meaning property embodiment and its illustrate be used for explain the present invention, do not constitute inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is father and son's mirror schematic diagram according to correlation technique;
Fig. 2 is the occupancy relation schematic diagram to virtual sectors according to father and son's mirror image in correlation technique;
Fig. 3 is a kind of flow chart of virtual machine upgrade method according to embodiments of the present invention;
Fig. 4 is a kind of structured flowchart one of virtual machine update device according to embodiments of the present invention;
Fig. 5 is a kind of structured flowchart two of virtual machine update device according to embodiments of the present invention;
Fig. 6 is a kind of virtual machine image deployment way schematic diagram according to the preferred embodiment of the invention;
Fig. 7 is that file places graph of a relation in image according to the preferred embodiment of the invention;
Fig. 8 is the placement relation schematic diagram according to the preferred embodiment of the invention in windows systems;
Fig. 9 is a kind of mirror image initial fabrication schematic diagram according to the preferred embodiment of the invention;
Figure 10 is a kind of mirror image update method schematic diagram after component upgrade according to the preferred embodiment of the invention;
Figure 11 is the implementation process figure of File Mapping module according to the preferred embodiment of the invention;
Figure 12 a are the implementation process figures that virtual machine generation according to the preferred embodiment of the invention and mirror image are disposed;
Figure 12 b are the implementation process figures of virtual machine component upgrade according to the preferred embodiment of the invention.
Embodiment
Describe the present invention in detail below with reference to accompanying drawing and in conjunction with the embodiments.It should be noted that in the case where not conflicting, The feature in embodiment and embodiment in the application can be mutually combined.
It should be noted that term " first ", " second " in description and claims of this specification and above-mentioned accompanying drawing etc. is to use In distinguishing similar object, without for describing specific order or precedence.
A kind of virtual machine upgrade method is provided in the present embodiment, and Fig. 3 is a kind of virtual machine upgrading according to embodiments of the present invention The flow chart of method, as shown in figure 3, the flow comprises the following steps:
Step S302, obtains the upgrade image of original image, and the more new file covering in the upgrade image is articulated into virtual machine The file of stand-alone assembly mirror image, wherein, the stand-alone assembly mirror image is to handle the original of the virtual machine by File Mapping configuration information There is the stand-alone assembly mirror image of linking relationship in mirror image, the system image produced with the virtual machine;
Step S304, the virtual machine is articulated to by the stand-alone assembly mirror image.
By above-mentioned steps, the upgrade image of original image is obtained, the more new file covering in the upgrade image is articulated to virtual The file of the stand-alone assembly mirror image of machine, the virtual machine is articulated to by the stand-alone assembly mirror image.Original image is configured by File Mapping Information processing obtains the system image and stand-alone assembly mirror image of virtual machine, and stand-alone assembly mirror image is before the update to hang with virtual machine cluster Connect, updated continuation and mounted on a virtual machine, solve the problem of virtual machine cluster disposed based on father and son's mirror image upgrades complicated, Simple and effective realizes virtual machine cluster upgrading.
In the present embodiment, this is produced the stand-alone assembly mirror image that there is threaded file relation with the system image of the virtual machine and included, The file of the original image is moved to the stand-alone assembly mirror image;In the file at position in the original image of the original image Set up the file for pointing to the original image to link, set a corresponding link to be used to refer to file movement in original image New position afterwards.
In the present embodiment, the upgrade image of the acquisition original image includes:Backup based on the original image re-creates void The upgrade image is formed after plan machine, the component upgrade of the virtual machine re-created.
In the present embodiment, the file for the change file in the upgrade image being covered into the stand-alone assembly mirror image includes:According to file Mapping configuration and the upgrade image, whether the file scanned in the stand-alone assembly mirror image has change, in the stand-alone assembly mirror image In file exist change in the case of, the change file of the upgrade image is covered into the file of the stand-alone assembly mirror image.Needing When component is upgraded, system is scanned according to upgrade image to stand-alone assembly mirror image, has the feelings of change in stand-alone assembly mirror image Under condition, independent mirror image of setting up is updated.
In the present embodiment, the stand-alone assembly mirror image meets following condition:The stand-alone assembly mirror image only allows virtual machine to carry out reading behaviour Do not allow to carry out write operation to the stand-alone assembly mirror image.Stand-alone assembly mirror image is the shared mirror image of all virtual machine clusters, single void Plan machine can only carry out read operation, can access the content in mirror image, and virtual machine upgrading is carried out according to mirror image, but single virtual machine The content of virtual machine cannot be changed.
A kind of virtual machine update device is additionally provided in the present embodiment, and the device is used to realize above-described embodiment and the side of being preferable to carry out Formula, had carried out repeating no more for explanation.As used below, term " module " can realize the software of predetermined function And/or the combination of hardware.Although the device described by following examples is preferably realized with software, hardware, or software Realization with the combination of hardware is also that may and be contemplated.
Fig. 4 is a kind of structured flowchart one of virtual machine update device according to embodiments of the present invention, as shown in figure 4, the device bag Include:
More new file covering in the upgrade image is articulated to void by overlay module 42, the upgrade image for obtaining original image The file of the stand-alone assembly mirror image of plan machine, wherein, the stand-alone assembly mirror image is to handle the virtual machine by File Mapping configuration information Original image, there is the stand-alone assembly mirror image of linking relationship in the system image produced with the virtual machine;
Knock-down module 44, is connected with overlay module 42, for the stand-alone assembly mirror image to be articulated into the virtual machine.
By above-mentioned steps, overlay module 42 obtains the upgrade image of original image, and the more new file in the upgrade image is covered The file of the stand-alone assembly mirror image of virtual machine is articulated to, wherein, the stand-alone assembly mirror image is handled by File Mapping configuration information There is the stand-alone assembly mirror image of linking relationship in the original image of the virtual machine, the system image produced with the virtual machine;Mounting The stand-alone assembly mirror image is articulated to the virtual machine by module 44, solves the virtual machine cluster upgrading complexity based on the deployment of father and son's mirror image Problem, simple and effective realizes virtual machine cluster upgrading.
Fig. 5 is a kind of structured flowchart two of virtual machine update device according to embodiments of the present invention, as shown in figure 5, the covering mould Block 42 includes:
Mobile unit 52, for the file of the original image to be moved into the stand-alone assembly mirror image;
Indicating member 54, is connected with the mobile unit 52, in the file of the original image at position in the original image The file for pointing to the original image is set up to link.
In the present embodiment, the overlay module 42 is additionally operable to the backup based on the original image and re-creates virtual machine, and this is created again The upgrade image is formed after the component upgrade for the virtual machine built.
In the present embodiment, the overlay module 42 is additionally operable to, according to File Mapping configuration information and the upgrade image, scan the independence Whether the file in component mirror image has change, in the case that the file in the stand-alone assembly mirror image has change, by the upgrading mirror More this document of picture covers the file of the stand-alone assembly mirror image.
It should be noted that above-mentioned modules can be by software or hardware to realize, for the latter, can by with Under type is realized, but not limited to this:Above-mentioned modules are respectively positioned in same processor;Or, above-mentioned modules distinguish position In different processors.
It is described in detail with reference to the preferred embodiment of the present invention.
The preferred embodiment of the present invention provides an easy method and is used for realizing to the virtual machine progress batch liter based on shared father's mirror image Level, the method for the embodiment need not carry out special modification to image file, it is not necessary to which virtual machine file system is modified.
The preferred embodiment of the present invention uses following technical scheme, and the preferred embodiment of the present invention is constituted including two parts:
Stand-alone assembly mirror image, the component for needing to upgrade is deposited using the mirror image, and the mirror image is shared by all virtual machines to be read, but Forbid modification.
File Mapping module (equivalent to the partial function of the overlay module 42 of above-described embodiment, stores File Mapping configuration information), To the component being mounted with, using the module, by actual storage File Mapping into the independent mirror image, such virtual machine is to file Actual read can all access stand-alone assembly mirror image.
The step of preferred embodiment of the present invention, is as follows:
Step one, component is completed in virtual machine initially to install;
Step 2, using link module (equivalent to the partial function of the indicating member 54 of above-described embodiment), by the component of installation It is moved in stand-alone assembly mirror image, and creates corresponding linking relationship in the original location;
Step 3, stand-alone assembly mirror image is articulated on all virtual machines, forms shared mirror image.So virtual machine can be as past Correspondence component is often equally accessed, these access are all redirected on component mirror image;
Step 4, when needing upgrading, using special upgrade virtual machine, after upgrading, reruns link module, will change Content is moved in stand-alone assembly mirror image;
New stand-alone assembly mirror image, is articulated on all virtual machines by step 5 again, and so all virtual machines are it can be seen that rise Level content, concurrently upgrading is completed.
Compared with correlation technique, the preferred embodiment of the present invention is independent of corresponding virtual machine image form, it is not necessary to virtual Machine mirror image is modified, it is not necessary to which the file system manager of virtual machine is modified, it is only necessary to increased in deploying virtual machine One specialized mirror picture, after component upgrade is completed, using File Mapping module scans reference number of a document, establishes the link relation, realizes It is relatively simple.
Fig. 6 is a kind of virtual machine image deployment way schematic diagram according to the preferred embodiment of the invention, as shown in fig. 6, A1, A2, A3 and A4 are the system images of virtual machine, and B is the stand-alone assembly mirror image newly increased, and V1, V2 and V3 are virtual machine clusters, Virtual machine in operation, can simultaneously be articulated on A classes and B classes this two classes images, constitute its magnetic disk of virtual machine.To A class mirror images, Used in father and son's mode, operation can be written and read, and B mirror images are mounted, then can only read, it is impossible to carry out write operation, therefore Virtual machine can direct carry, and without creating sub- mirror image.
Fig. 7 is that file places graph of a relation in image according to the preferred embodiment of the invention, as shown in fig. 7, A is system image, B It is stand-alone assembly mirror image, on A mirror images, to the file for needing to upgrade, is all linked on B mirror images, real data is stored in B mirror images.
Fig. 8 is the placement relation schematic diagram according to the preferred embodiment of the invention in windows systems, as shown in figure 8, A For system image, B is stand-alone assembly mirror image, and corresponding component includes c:Windows file1.sys and file2.sys under sys catalogues Two files, by linking relationship, have pointed to e:Two files of file1.sys and file2.sys under sys.Threaded file is windows The prior art of file system, for Linux system, also there is similar realization.
Fig. 9 is a kind of mirror image initial fabrication schematic diagram according to the preferred embodiment of the invention, as shown in figure 9, being first according to Normal flow carries out virtual machine installation, and the installation mirror image of basis of formation is handled using File Mapping module the progress, should Module is configured according to predefined File Mapping, and the dummy machine system mirror image for producing threaded file relation is (corresponding previously described A mirror images) and stand-alone assembly mirror image (the previously described B mirror images of correspondence).
Figure 10 is a kind of mirror image update method schematic diagram after component upgrade according to the preferred embodiment of the invention, as shown in Figure 10, Original image is backed up first, and obtains upgrade image after carrying out component upgrade, upgrading on this basis, is reflected using file Penetrate module to handle original image and upgrade image, form new stand-alone assembly mirror image.
Figure 11 is the implementation process figure of File Mapping module according to the preferred embodiment of the invention, and as shown in figure 11, step is as follows:
S1101, reads mapped file configuration information
S1102, differentiation is initial fabrication or renewal, in the case where being judged as initial fabrication stand-alone assembly mirror image:
S1103, sets up stand-alone assembly mirror image, is initially empty;
S1104, is configured according to mapping, scans respective file, the file in file mapping information, by the mirror image after installation Corresponding file is moved in stand-alone assembly mirror image, and sets up corresponding threaded file in original position, points to the file after movement Position;The step of repeating S1104, sets up until completing all file linking relationships.
S1105, in the case where being judged as that component updates, it is necessary first to the component mirror image after mirror image and renewal before renewal;
S1106, the file configured according to File Mapping, scanning checks whether there is change;
S1107, if there is change, covers corresponding file in stand-alone assembly mirror image, due in initial mirror with the file after updating Linking relationship is had been set up in making, this avoids the need for resettling, the step of repeating S1106 and S1107, Zhi Daoying The All Files penetrated in configuration all scans completion.
Figure 12 a are the implementation process figures that virtual machine generation according to the preferred embodiment of the invention and mirror image are disposed, as figure 12 a shows, Step is as follows:Newly create stand-alone assembly mirror image in the case of, flow chart as figure 12 a shows,
S1201, creates original image file first, starts virtual machine on the image file, and completes component installation, and preserving should Original image file,
S1202, calls File Mapping module, is created that system image and stand-alone assembly mirror image,
S1203, based on newly-generated system image and stand-alone assembly mirror image, creates virtual machine, is completed initially by above-mentioned steps Virtual machine generation and mirror image deployment.
Figure 12 b are the implementation process figures of virtual machine component upgrade according to the preferred embodiment of the invention, as shown in Figure 12b, are being needed In the case of wanting component upgrade, step includes:
S1204, then copy portion from the original image of preservation, as mirror image to be upgraded,
S1205, based on mirror image to be upgraded, creates virtual machine,
S1206, component upgrade is completed newly creating on virtual machine,
S1207, using original image and new upgrade image, calls File Mapping module, updates stand-alone assembly mirror image,
S1208, the stand-alone assembly mirror image for updating all virtual machines is newly-generated stand-alone assembly mirror image in 4.
Through the above description of the embodiments, those skilled in the art can be understood that the side according to above-described embodiment Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases before Person is more preferably embodiment.Understood based on such, technical scheme substantially makes tribute to prior art in other words The part offered can be embodied in the form of software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disc, CD) in, including some instructions to cause a station terminal equipment (can be mobile phone, computer, Server, or the network equipment etc.) perform method described in each embodiment of the invention.
Embodiments of the invention additionally provide a kind of storage medium.Alternatively, in the present embodiment, above-mentioned storage medium can be by It is set to the program code that storage is used to perform following steps:
S1, obtains the upgrade image of original image, and the more new file covering in the upgrade image is articulated into independent group of virtual machine The file of part mirror image, wherein, the stand-alone assembly mirror image is the original image that the virtual machine is handled by File Mapping configuration information, There is the stand-alone assembly mirror image of linking relationship in the system image produced with the virtual machine;
S2, the virtual machine is articulated to by the stand-alone assembly mirror image.
The storage medium may be also configured to the program code that storage is used to perform the method and step of above-described embodiment.
Alternatively, in the present embodiment, above-mentioned storage medium can include but is not limited to:USB flash disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or Person's CD etc. is various can be with the medium of store program codes.
Alternatively, in the present embodiment, processor performs the side of above-described embodiment according to the program code stored in storage medium Method step.
Alternatively, the specific example in the present embodiment may be referred to the example described in above-described embodiment and optional embodiment, The present embodiment will not be repeated here.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step can use general calculating Device realizes that they can be concentrated on single computing device, or be distributed on the network that multiple computing devices are constituted, Alternatively, they can be realized with the executable program code of computing device, it is thus possible to be stored in storage device In performed by computing device, and in some cases, can be to perform shown or described step different from order herein Suddenly, they are either fabricated to each integrated circuit modules respectively or be fabricated to the multiple modules or step in them single Integrated circuit modules are realized.So, the present invention is not restricted to any specific hardware and software combination.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for those skilled in the art For, the present invention can have various modifications and variations.Any modification within the spirit and principles of the invention, being made, etc. With replacement, improvement etc., it should be included in the scope of the protection.

Claims (10)

1. a kind of virtual machine upgrade method, it is characterised in that including:
The upgrade image of original image is obtained, the more new file covering in the upgrade image is articulated to virtual machine The file of stand-alone assembly mirror image, wherein, the stand-alone assembly mirror image is to handle described by File Mapping configuration information There is the stand-alone assembly of linking relationship in the original image of virtual machine, the system image produced with the virtual machine Mirror image;
The stand-alone assembly mirror image is articulated to the virtual machine.
2. according to the method described in claim 1, it is characterised in that described produce is deposited with the system image of the virtual machine Include in the stand-alone assembly mirror image of threaded file relation:
The file of the original image is moved to the stand-alone assembly mirror image;
Set up in the file of the original image at position in the original image for pointing to the original mirror The file link of picture.
3. according to the method described in claim 1, it is characterised in that the upgrade image for obtaining the original image includes:
Backup based on the original image re-creates virtual machine, the component upgrade of the virtual machine re-created After form the upgrade image.
4. according to the method described in claim 1, it is characterised in that the change file in the upgrade image is covered described The file of stand-alone assembly mirror image includes:
Whether the file in foundation File Mapping configuration information and the upgrade image, the scanning stand-alone assembly mirror image There is change, in the case that the file in the stand-alone assembly mirror image has change, by more should for the upgrade image File covers the file of the stand-alone assembly mirror image.
5. according to the method described in claim 1, it is characterised in that the stand-alone assembly mirror image meets following condition:It is described Stand-alone assembly mirror image, which only allows virtual machine to carry out read operation, not to be allowed to carry out write operation to the stand-alone assembly mirror image.
6. a kind of virtual machine update device, it is characterised in that including:
Overlay module, the upgrade image for obtaining original image covers the more new file in the upgrade image The file of the stand-alone assembly mirror image of virtual machine is articulated to, wherein, the stand-alone assembly mirror image is matched somebody with somebody by File Mapping The original image of virtual machine described in information processing is put, the system image produced with the virtual machine has linking relationship The stand-alone assembly mirror image;
Knock-down module, for the stand-alone assembly mirror image to be articulated into the virtual machine.
7. device according to claim 6, it is characterised in that the overlay module includes:
Mobile unit, for the file of the original image to be moved into the stand-alone assembly mirror image;
Indicating member, for being set up in the file of the original image at position in the original image for referring to Linked to the file of the original image.
8. device according to claim 6, it is characterised in that the overlay module is additionally operable to be based on the original image Backup re-create virtual machine, the component upgrade of the virtual machine re-created after form the upgrade image.
9. device according to claim 6, it is characterised in that the overlay module is additionally operable to according to File Mapping configuration Whether information and the upgrade image, the file scanned in the stand-alone assembly mirror image have change, at described independent group In the case that file in part mirror image has change, more this document of the upgrade image is covered into the stand-alone assembly The file of mirror image.
10. device according to claim 6, it is characterised in that the stand-alone assembly mirror image meets following condition:It is described Stand-alone assembly mirror image, which only allows virtual machine to carry out read operation, not to be allowed to carry out write operation to the stand-alone assembly mirror image.
CN201610216381.6A 2016-04-08 2016-04-08 Virtual machine upgrading method and device Active CN107273146B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610216381.6A CN107273146B (en) 2016-04-08 2016-04-08 Virtual machine upgrading method and device
PCT/CN2017/077543 WO2017173922A1 (en) 2016-04-08 2017-03-21 Method and apparatus for upgrading virtual machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610216381.6A CN107273146B (en) 2016-04-08 2016-04-08 Virtual machine upgrading method and device

Publications (2)

Publication Number Publication Date
CN107273146A true CN107273146A (en) 2017-10-20
CN107273146B CN107273146B (en) 2021-11-19

Family

ID=60000240

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610216381.6A Active CN107273146B (en) 2016-04-08 2016-04-08 Virtual machine upgrading method and device

Country Status (2)

Country Link
CN (1) CN107273146B (en)
WO (1) WO2017173922A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110058867A (en) * 2019-04-29 2019-07-26 深圳市网心科技有限公司 The packing of application program mirror image, installation method and computer installation, storage medium
WO2020103904A1 (en) * 2018-11-23 2020-05-28 中兴通讯股份有限公司 Cloud desktop upgrade method, device, cloud server, and storage medium
CN115509624A (en) * 2022-10-25 2022-12-23 中南大学 Mirror image fusion method and system for streaming loading

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108228190B (en) * 2018-01-25 2021-08-24 杭州时趣信息技术有限公司 Persistent integration and delivery methods, systems, devices, and computer-readable storage media
CN110196728B (en) * 2018-03-27 2023-07-25 腾讯科技(深圳)有限公司 Method and device for processing container of image upgrade
CN112256282B (en) * 2020-09-24 2024-03-22 深圳云天励飞技术股份有限公司 Application mirror image construction method and device, electronic equipment and storage medium

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070234356A1 (en) * 2006-03-31 2007-10-04 Martins Fernando C System and method for support of personal computing in a public computing infrastructure
CN101727331A (en) * 2008-10-24 2010-06-09 国际商业机器公司 Method and equipment for upgrading client operating system of active virtual machine
CN102214118A (en) * 2010-04-08 2011-10-12 中国移动通信集团公司 Method, system and device for controlling virtual machine (VM)
CN102521016A (en) * 2011-12-08 2012-06-27 中兴通讯股份有限公司 Method and system for operating multiple virtual machines
US20120233282A1 (en) * 2011-03-08 2012-09-13 Rackspace Us, Inc. Method and System for Transferring a Virtual Machine
CN102999369A (en) * 2012-12-25 2013-03-27 杭州华三通信技术有限公司 Method and device for upgrading virtual machines
CN103218248A (en) * 2013-03-25 2013-07-24 华为技术有限公司 Virtual machine mirror image updating method, server and desktop cloud system
CN103473065A (en) * 2013-09-18 2013-12-25 国云科技股份有限公司 Virtual machine creation method capable of rapidly restoring system disk
CN103713970A (en) * 2013-12-31 2014-04-09 曙光云计算技术有限公司 Disk mirroring file snapshot making method and system based on virtual machine
CN103885719A (en) * 2012-12-21 2014-06-25 中国电信股份有限公司 Device, system and method for online storage migration of virtual machine system
CN103970585A (en) * 2013-01-31 2014-08-06 杭州华三通信技术有限公司 Method and device for creating virtual machine
CN105094948A (en) * 2015-07-31 2015-11-25 杭州华为数字技术有限公司 System mirror image file updating method of virtual machine, cloud data center and system
CN105279100A (en) * 2015-11-04 2016-01-27 杭州华为数字技术有限公司 Linked clone parent roll updating method and device

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070234356A1 (en) * 2006-03-31 2007-10-04 Martins Fernando C System and method for support of personal computing in a public computing infrastructure
CN101727331A (en) * 2008-10-24 2010-06-09 国际商业机器公司 Method and equipment for upgrading client operating system of active virtual machine
CN102214118A (en) * 2010-04-08 2011-10-12 中国移动通信集团公司 Method, system and device for controlling virtual machine (VM)
US20120233282A1 (en) * 2011-03-08 2012-09-13 Rackspace Us, Inc. Method and System for Transferring a Virtual Machine
CN102521016A (en) * 2011-12-08 2012-06-27 中兴通讯股份有限公司 Method and system for operating multiple virtual machines
CN103885719A (en) * 2012-12-21 2014-06-25 中国电信股份有限公司 Device, system and method for online storage migration of virtual machine system
CN102999369A (en) * 2012-12-25 2013-03-27 杭州华三通信技术有限公司 Method and device for upgrading virtual machines
CN103970585A (en) * 2013-01-31 2014-08-06 杭州华三通信技术有限公司 Method and device for creating virtual machine
CN103218248A (en) * 2013-03-25 2013-07-24 华为技术有限公司 Virtual machine mirror image updating method, server and desktop cloud system
CN103473065A (en) * 2013-09-18 2013-12-25 国云科技股份有限公司 Virtual machine creation method capable of rapidly restoring system disk
CN103713970A (en) * 2013-12-31 2014-04-09 曙光云计算技术有限公司 Disk mirroring file snapshot making method and system based on virtual machine
CN105094948A (en) * 2015-07-31 2015-11-25 杭州华为数字技术有限公司 System mirror image file updating method of virtual machine, cloud data center and system
CN105279100A (en) * 2015-11-04 2016-01-27 杭州华为数字技术有限公司 Linked clone parent roll updating method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020103904A1 (en) * 2018-11-23 2020-05-28 中兴通讯股份有限公司 Cloud desktop upgrade method, device, cloud server, and storage medium
CN110058867A (en) * 2019-04-29 2019-07-26 深圳市网心科技有限公司 The packing of application program mirror image, installation method and computer installation, storage medium
CN110058867B (en) * 2019-04-29 2023-07-18 深圳市网心科技有限公司 Application program mirror image packaging and installing method, computer device and storage medium
CN115509624A (en) * 2022-10-25 2022-12-23 中南大学 Mirror image fusion method and system for streaming loading

Also Published As

Publication number Publication date
CN107273146B (en) 2021-11-19
WO2017173922A1 (en) 2017-10-12

Similar Documents

Publication Publication Date Title
CN107273146A (en) Virtual machine upgrade method and device
US7155710B2 (en) Method and apparatus for gaming device software configuration
US5537596A (en) Method and apparatus for overriding resource maps in a computer system
US20050101309A1 (en) Method and apparatus for selective configuration based upon expansion card presence
CN105474206A (en) Virtual synchronization with on-demand data delivery
CN106201613A (en) Preheating software is installed
CN106339146A (en) Method and device for recommending applications
JP2008021111A (en) Method of changing business system configuration, management computer, and program for method of changing business system configuration
CN101517608A (en) Content displaying device and in-content advertisement display method
CN116954685B (en) Gray scale rolling upgrading method, system, equipment and medium for low-code application system
CN106330561A (en) Dynamic UI setting method and apparatus
JP2007510211A (en) Mapping dynamic link libraries on computer equipment
CN109388644A (en) A kind of data-updating method and device
CN108647069B (en) Interface display method and device, storage medium and electronic device
CN108984323A (en) A kind of dispatching method and system of shared memory space
CN114880073A (en) Cloud application engine deployment method, device, equipment and storage medium for shielding Web framework for user
CN114816493A (en) Gray scale upgrading method and device for block chain service platform and electronic equipment
US11281443B1 (en) Organizing deployment packages for software applications and services
CN111797057B (en) Snapshot difference data generation method, terminal device, storage medium and device
CN114756261A (en) Container cluster upgrading method and system, electronic equipment and medium
CN110221952B (en) Service data processing method and device and service data processing system
CN110413100A (en) A kind of method and system of interactive process between computer and augmented reality equipment
CN110209351A (en) Distributed storage data processing method and device
CN113986848A (en) File processing method, device, equipment and storage medium
CN114546462A (en) Alliance chain upgrading method, device, server and medium

Legal Events

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