WO2017173922A1 - Method and apparatus for upgrading virtual machine - Google Patents

Method and apparatus for upgrading virtual machine Download PDF

Info

Publication number
WO2017173922A1
WO2017173922A1 PCT/CN2017/077543 CN2017077543W WO2017173922A1 WO 2017173922 A1 WO2017173922 A1 WO 2017173922A1 CN 2017077543 W CN2017077543 W CN 2017077543W WO 2017173922 A1 WO2017173922 A1 WO 2017173922A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
virtual machine
file
upgrade
independent component
Prior art date
Application number
PCT/CN2017/077543
Other languages
French (fr)
Chinese (zh)
Inventor
李翌
肖立琨
刘建军
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017173922A1 publication Critical patent/WO2017173922A1/en

Links

Images

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

Definitions

  • This document relates to, but is not limited to, the field of communications, and in particular, to a virtual machine upgrade method and apparatus.
  • FIG. 1 is a schematic diagram of a parent-child mirror relationship of the related art.
  • A1 is a parent image
  • A2, A3, and A4 are sub-images
  • V1, V2, and V3 are virtual machines, and each virtual machine is attached to a corresponding child.
  • Mirroring where the virtual machine's underlying running program and data are placed in the parent image, and the virtual machine's change data is placed in the submirror.
  • a virtual machine performs a file read operation, it first looks up the submirror. If the submirror has data, it reads directly from the submirror, otherwise it reads from the parent image.
  • the virtual machine When the virtual machine performs a file write operation, the data is directly written into the sub-image, so that in the subsequent read operation, the latest modified data can be read in the sub-image.
  • all the virtual machines share the basic data of the parent image.
  • the parent image When the VM component is upgraded, the parent image can be upgraded in theory. The change can be applied to all the VMs based on the parent-child mirror relationship to form a batch upgrade. There are many problems encountered in the actual operation.
  • A1 is a parent image
  • A2 and A3 are corresponding sub-mirrors; wherein each small cell represents a virtual fan corresponding to the virtual disk.
  • Area the data of the parent image occupies 0-2 sectors; when the A2/A3 class is connected to the virtual machine and read and write for a period of time, the A2 submirror data is newly added with 3, 4, and 7 sectors.
  • the A3 submirror data has newly added 5 and 7 sectors.
  • the problem caused by this is that when the A1 parent image is directly modified, it will inevitably involve a new sector allocation, and whether the sub-image has occupied the sector cannot be determined. If the sector is already occupied, the corresponding virtual When the machine reads the contents of the sector, it will read directly from the sub-image. The modification of the parent image cannot be perceived by the virtual machine, and the batch upgrade cannot be established.
  • This part of the reserved sector can be used directly without overlapping with the virtual machine submirror.
  • this method still faces the problem of modifying the file system in the virtual machine, because it is necessary to explicitly set the upgraded disk data to be placed on the reserved sector, and this must be supported based on the virtual machine file system. Therefore, the method is more complicated.
  • the embodiment of the invention provides a virtual machine upgrade method and device, which can simplify the complexity of virtual machine group upgrade based on parent-child image deployment.
  • a virtual machine upgrade method including:
  • the independent component image is attached to the virtual machine.
  • the virtual machine upgrade method further includes:
  • a file link for pointing to the original image moved to the independent component image is created at the location of the original mirrored file at the location in the original image to generate the link relationship.
  • the obtaining the upgrade image of the original image includes:
  • the virtual machine is recreated based on the backup of the original image, and the recreated virtual machine component is upgraded as the upgrade image.
  • the file that overlays the update file in the upgrade image to the independent component image includes:
  • the virtual machine upgrade method further includes:
  • the virtual machine is prohibited from writing to the independent component image.
  • a virtual machine upgrade apparatus including:
  • the overlay module is configured to obtain an upgrade image of the original image, and the update file in the upgrade image is overwritten with a file of a separate component image of the virtual machine, where the independent component image and the system image of the virtual machine exist.
  • the hook module is configured to attach the independent component image to the virtual machine.
  • the coverage module includes:
  • a moving module configured to move the original mirrored file to the independent component image
  • An indication module is configured to establish a file link for pointing to the original image that is moved to the independent component image at a location of the original mirrored file in the original image to generate the link relationship.
  • the coverage module is set to:
  • the overlay module is configured to: obtain an upgrade image of the original image, and scan, according to the file mapping configuration information and the upgrade image, whether the file in the independent component image is updated, in the independent component image. In the case that there is an update of the file, the update file of the upgrade image is overwritten by the file of the independent component image.
  • the virtual machine upgrade further includes:
  • a setting unit configured to set the independent component image to allow the virtual machine to perform a read operation; and/or to prohibit the virtual machine from writing to the independent component image.
  • the embodiment of the present invention obtains the upgrade image of the original image, and the update file in the upgrade image is overwritten with the file of the independent component image of the virtual machine, where the independent component image has a link relationship with the system image of the virtual machine.
  • the independent component image is attached to the virtual machine; the embodiment of the present invention implements the virtual machine group upgrade simply and effectively.
  • FIG. 1 is a schematic diagram of a parent-child mirror relationship of the related art
  • FIG. 2 is a schematic diagram of an occupation relationship of a parent-child mirror to a virtual sector in the related art
  • FIG. 3 is a flowchart of a virtual machine upgrade method according to an embodiment of the present invention.
  • FIG. 4 is a structural block diagram 1 of a virtual machine upgrading apparatus according to an embodiment of the present invention.
  • FIG. 5 is a structural block diagram 2 of a virtual machine upgrading apparatus according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a virtual machine image deployment manner according to an optional embodiment of the present invention.
  • FIG. 7 is a diagram showing a file placement relationship in an image according to an alternative embodiment of the present invention.
  • FIG. 8 is a schematic diagram of a placement relationship on a windows system according to an alternative embodiment of the present invention.
  • FIG. 9 is a schematic diagram of an initial image creation mode according to an alternative embodiment of the present invention.
  • FIG. 10 is a schematic diagram of a mirror update method after component upgrade according to an optional embodiment of the present invention.
  • FIG. 11 is a flowchart of an implementation of a file mapping module according to an alternative embodiment of the present invention.
  • FIG. 12a is a flowchart of implementing virtual machine generation and mirroring deployment according to an optional embodiment of the present invention.
  • FIG. 12b is a flowchart of implementing an upgrade of a virtual machine component according to an optional embodiment of the present invention.
  • FIG. 3 is a flowchart of a virtual machine upgrade method according to an embodiment of the present invention.
  • Step (S) 302 Obtain an upgrade image of the original image, and overwrite the update file in the upgrade image with a file of the independent component image of the virtual machine; wherein the independent component image has a link relationship with the system image of the virtual machine. Including: the independent component image is processed by the file mapping configuration information to process the original image of the virtual machine, and the independent component image having a link relationship with the system image of the virtual machine is created;
  • the upgrade image of the original image is obtained, and the update file in the upgrade image is overwritten with the file of the independent component image of the virtual machine, and the independent component image is attached to the virtual machine.
  • the original image is processed by the file mapping configuration information to obtain the system image and the independent component image of the virtual machine.
  • the independent component image is attached to the virtual machine group before the update, and the update is continued to be attached to the virtual machine, and the virtual machine group is implemented simply and effectively. upgrade.
  • the independent component image that has a link file relationship with the system image of the virtual machine includes: moving the original mirrored file to the independent component image; the original mirrored file is in the original image.
  • the location of the file is used to point to the original image, and a corresponding link is set in the original image to indicate the new location after the file is moved. That is, a file link for pointing to the original image moved to the independent component image is created at the location of the original mirrored file in the original image to generate a link relationship.
  • the obtaining the upgrade image of the original image includes: re-creating the virtual machine based on the backup of the original image, and the component of the re-created virtual machine is upgraded as the upgrade image.
  • the updating the file in the upgrade image to the file of the independent component image comprises: scanning, according to the file mapping configuration information and the upgrade image, whether the file in the independent component image is updated, in the independent component If there is an update to the file in the image, the update file of the upgrade image overwrites the file of the independent component image.
  • the system scans the independent component image according to the upgrade image.
  • the independent component image is updated, Update the independent component image.
  • the virtual machine upgrade method further includes: setting an independent component image to allow the virtual machine to perform a read operation; and/or prohibiting the virtual machine from performing a write operation on the independent component image. That is, the independent component image satisfies the following condition: The independent component image only allows the virtual machine to perform a read operation and does not allow the independent component image to be written.
  • a separate component mirror is a mirror shared by all VMs. A single VM can only read operations, access the contents of the mirror, and upgrade the VM based on the mirror. However, a single VM cannot modify the contents of the VM.
  • a virtual machine upgrade device is further provided, which is used to implement the foregoing embodiments and optional implementation manners, and details are not described herein.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • the devices described in the following embodiments may be implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the virtual machine upgrade method.
  • the embodiment of the present invention further provides a virtual machine upgrading apparatus, including: a memory and a processor; wherein
  • a processor is configured to execute program instructions in the memory
  • the upgrade image of the original image is obtained, and the update file in the upgrade image is overwritten with the file of the independent component image of the virtual machine.
  • the independent component image has a link relationship with the system image of the virtual machine.
  • FIG. 4 is a structural block diagram of a virtual machine upgrade apparatus according to an embodiment of the present invention. As shown in FIG. 4, the apparatus includes:
  • the overlay module 42 is configured to obtain an upgrade image of the original image, and the update file in the upgrade image is overwritten with a file of the independent component image of the virtual machine, where the independent component image is linked with the system image of the virtual machine. ;
  • the hooking module 44 is connected to the overlay module 42 and is configured to attach the independent component image to the virtual machine.
  • the overlay module 42 obtains the upgrade image of the original image, and the update file in the upgrade image is overwritten with the file of the independent component image of the virtual machine, wherein the independent component image is processed by the file mapping configuration information.
  • the original image of the machine creates a separate component image that is linked to the system image of the virtual machine.
  • the hooking module 44 attaches the independent component image to the virtual machine, and implements the virtual machine group upgrade conveniently and effectively.
  • FIG. 5 is a structural block diagram 2 of a virtual machine upgrade apparatus according to an embodiment of the present invention. As shown in FIG. 5, the virtual machine upgrade apparatus further includes:
  • the moving module 52 is configured to move the original mirrored file to the independent component image
  • the indication module 54 is coupled to the mobile module 52 for establishing a file link for pointing to the original image that is moved to the independent component image at a location in the original image of the original mirrored file to generate a link relationship.
  • the overlay module 42 is configured to re-create the virtual machine based on the backup of the original image, and upgrade the components of the re-created virtual machine as the upgrade image; attach the update file overlay in the upgrade image to the upgrade file.
  • the overlay module 42 is configured to: obtain an upgrade image of the original image, and scan whether the file in the independent component image is updated according to the file mapping configuration information and the upgrade image, in the independent component image. In the case where the file is updated, the update file of the upgrade image is overwritten by the file of the independent component image.
  • each of the above modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the above modules are respectively located. Different processors.
  • An alternative embodiment of the present invention provides a convenient method for implementing a shared parent image based
  • the virtual machine is upgraded in batches.
  • the method in this embodiment does not require special modification to the image file, and does not need to modify the virtual machine file system.
  • the optional embodiment of the present invention adopts the following technical solutions.
  • the optional embodiment of the present invention comprises two parts:
  • the image is shared by all virtual machines, but modification is prohibited.
  • a file mapping module (corresponding to some functions of the overlay module 42 of the above embodiment, storing file mapping configuration information), and using the module to map the actual storage file to the independent image, so that the virtual machine pair The actual reading of the file accesses the individual component image.
  • Step 1 Complete the initial installation of the component in the virtual machine
  • Step 2 using a link module (corresponding to some functions of the indication module 54 of the above embodiment), moving the installed component into the independent component image, and creating a corresponding link relationship in the original location;
  • a link module corresponding to some functions of the indication module 54 of the above embodiment
  • Step 3 Attach the independent component image to all virtual machines to form a shared image.
  • the virtual machine can access the corresponding components as usual, and these accesses are redirected to the component image;
  • Step 4 When the upgrade is required, the dedicated upgrade virtual machine is used. After the upgrade, the link module is re-run and the modified content is moved to the independent component image.
  • Step 5 Re-attach the new independent component image to all virtual machines, so that all virtual machines can see the upgrade content and the upgrade is completed.
  • the optional embodiment of the present invention does not depend on the corresponding virtual machine image format, and does not need to modify the virtual machine image, and does not need to modify the file system manager of the virtual machine, and only needs to be deployed in the virtual machine.
  • FIG. 6 is a schematic diagram of a virtual machine image deployment manner according to an optional embodiment of the present invention.
  • A1, A2, A3, and A4 are system images of a virtual machine
  • B is a newly added independent component image, V1.
  • V2 and V3 are virtual machine clusters.
  • the virtual machine When the virtual machine is running, it will be attached to both the A and B types of images to form its virtual machine disk.
  • the machine can be mounted directly without creating a submirror.
  • FIG. 7 is a diagram of a file placement relationship in an image according to an alternative embodiment of the present invention. As shown in FIG. 7, A is a system image, and B is a separate component image. On the A image, the file to be upgraded is linked to the B image. On, the actual data is stored in the B image.
  • FIG. 8 is a schematic diagram of a placement relationship on a windows system according to an alternative embodiment of the present invention.
  • A is a system image
  • B is a separate component image
  • corresponding components include file1 in the c: ⁇ windows ⁇ sys directory.
  • Linked files are a prior art of the Windows file system. For Linux systems, there are similar implementations.
  • FIG. 9 is a schematic diagram of an initial image creation mode according to an alternative embodiment of the present invention.
  • the virtual machine is first installed according to a normal process to form a basic installation image, and the file mapping module is processed. Based on the predefined file mapping configuration, the module creates a virtual machine system image with a linked file relationship (corresponding to the A image described earlier) and a separate component image (corresponding to the B image described earlier).
  • FIG. 10 is a schematic diagram of a mirror update method after component upgrade according to an optional embodiment of the present invention. As shown in FIG. 10, the original image is first backed up, and component upgrade is performed on the basis, and an upgrade image is obtained after the upgrade.
  • the file mapping module processes the original image and the upgrade image to form a new independent component image.
  • FIG. 11 is a flowchart of an implementation of a file mapping module according to an optional embodiment of the present invention. As shown in FIG. 11, the method includes:
  • step 1103 it is determined whether there is a separate component image; when there is no independent component image, step 1103 is performed; when there is a separate component image, step 1105 is performed;
  • S1104 Scan the corresponding file according to the mapping configuration, and move the corresponding file in the installed image to the independent component image according to the file in the file mapping information, and establish a corresponding link file in the original location, pointing to the moved file location; Repeat S1104 until all file link relationships are established.
  • S1105 Scan according to the file configured by the file mapping, and check whether the upgrade image has an update.
  • FIG. 12a is a flowchart of an implementation of a virtual machine generation and a mirroring deployment according to an optional embodiment of the present invention. As shown in FIG. 12a, in the case of newly creating a separate component image, the method includes:
  • S1201 Create an original image file, start a virtual machine on the image file, complete component installation, and save the original image file.
  • S1202 Create a system image and a separate component image according to the file mapping configuration.
  • FIG. 12b is a flowchart of an implementation of a virtual machine component upgrade according to an optional embodiment of the present invention. As shown in FIG. 12b, in the case that a component upgrade is required, the method includes:
  • S1205 Create a virtual machine based on the image to be upgraded.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
  • Embodiments of the present invention also provide a storage medium.
  • the foregoing storage medium may be configured to store program code for performing the following steps:
  • S1 Obtain an upgrade image of the original image, and the update file in the upgrade image is overwritten with a file of a separate component image of the virtual machine, where the independent component image is processed by the file mapping configuration information to process the original image of the virtual machine. Creating a separate component image that has a link relationship with the system image of the virtual machine;
  • the storage medium may also be arranged to store program code for performing the method steps of the above-described embodiments.
  • the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • a mobile hard disk e.g., a hard disk
  • magnetic memory e.g., a hard disk
  • the processor performs the method steps of the foregoing embodiments according to the stored program code in the storage medium.
  • each module/unit in the foregoing embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, being executed by a processor and stored in a memory. Programs/instructions to implement their respective functions.
  • the invention is not limited to any specific form of combination of hardware and software.

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

A method and an apparatus for upgrading a virtual machine, the method for upgrading a virtual machine comprising: acquiring an upgraded mirror image of an original mirror image, using an update file in the upgraded mirror image to overwrite a file of an independent assembly mirror image mounted to the virtual machine (S302), the independent assembly mirror image being linked to a system mirror image of the virtual machine; and mounting the independent assembly mirror image to the virtual machine (S304). The method and apparatus conveniently and efficiently implement the upgrade of a cluster of virtual machines.

Description

虚拟机升级方法及装置Virtual machine upgrade method and device 技术领域Technical field
本文涉及但不限于通信领域,尤其涉及一种虚拟机升级方法及装置。This document relates to, but is not limited to, the field of communications, and in particular, to a virtual machine upgrade method and apparatus.
背景技术Background technique
虚拟化技术应用日益广泛,虚拟机基于虚拟磁盘,采用共享父镜像的方式进行部署。图1是相关技术的父子镜像关系示意图,如图1所示,A1为父镜像,A2、A3和A4为子镜像,V1、V2和V3为虚拟机,每个虚拟机挂接在对应的子镜像上;其中,虚拟机的基础运行程序和数据都放在父镜像中,子镜像中放置虚拟机的变化数据。当虚拟机进行文件读操作时,先查找子镜像,如果子镜像有数据,则直接从子镜像中读取,否则从父镜像中读取。而当虚拟机进行文件写操作时,会直接将数据写到子镜像中,这样在后续读操作时,就可以在子镜像中读到最新修改的数据。采用上述方式,所有虚拟机都共享父镜像的基础数据,在虚拟机组件升级时,理论上可以对父镜像进行升级,其变化可以作用到所有基于父子镜像关系的虚拟机中,形成批量升级,而在实际操作中会遇到许多问题。Virtualization technology is increasingly used. Virtual machines are based on virtual disks and are deployed in a shared parent image. FIG. 1 is a schematic diagram of a parent-child mirror relationship of the related art. As shown in FIG. 1 , A1 is a parent image, A2, A3, and A4 are sub-images, and V1, V2, and V3 are virtual machines, and each virtual machine is attached to a corresponding child. Mirroring; where the virtual machine's underlying running program and data are placed in the parent image, and the virtual machine's change data is placed in the submirror. When a virtual machine performs a file read operation, it first looks up the submirror. If the submirror has data, it reads directly from the submirror, otherwise it reads from the parent image. When the virtual machine performs a file write operation, the data is directly written into the sub-image, so that in the subsequent read operation, the latest modified data can be read in the sub-image. In the above manner, all the virtual machines share the basic data of the parent image. When the VM component is upgraded, the parent image can be upgraded in theory. The change can be applied to all the VMs based on the parent-child mirror relationship to form a batch upgrade. There are many problems encountered in the actual operation.
图2是相关技术中父子镜像对虚拟扇区的占用关系示意图,如图2所示,A1为父镜像,A2、A3为对应的子镜像;其中,每个小格代表虚拟磁盘对应的虚拟扇区,父镜像的数据占用了0-2扇区;当A2/A3分类挂接虚拟机,且进行一段时间读写后,A2子镜像数据新增加了3、4、7三个扇区,而A3子镜像数据新增加了5、7两个扇区。这样导致的问题是:当对A1父镜像进行直接修改时,必然会涉及到新的扇区分配,而子镜像有无占用该扇区无法确定,如果已经占用了该扇区,则对应的虚拟机在读取该扇区内容时,会直接从子镜像中读取,父镜像的修改就不能被虚拟机感知,批量升级无法成立。2 is a schematic diagram of the occupation relationship of a parent-child mirror to a virtual sector in the related art. As shown in FIG. 2, A1 is a parent image, and A2 and A3 are corresponding sub-mirrors; wherein each small cell represents a virtual fan corresponding to the virtual disk. Area, the data of the parent image occupies 0-2 sectors; when the A2/A3 class is connected to the virtual machine and read and write for a period of time, the A2 submirror data is newly added with 3, 4, and 7 sectors. The A3 submirror data has newly added 5 and 7 sectors. The problem caused by this is that when the A1 parent image is directly modified, it will inevitably involve a new sector allocation, and whether the sub-image has occupied the sector cannot be determined. If the sector is already occupied, the corresponding virtual When the machine reads the contents of the sector, it will read directly from the sub-image. The modification of the parent image cannot be perceived by the virtual machine, and the batch upgrade cannot be established.
相关技术中的解决方法有多种:1,对所有子镜像进行扫描,分析哪些虚拟扇区还未使用,可作为对父镜像的升级使用;考虑到虚拟机在运行中会一直进行磁盘读写操作,因此该方法必须暂停所有虚拟机,如果虚拟机数量 很多,无论是关闭还是扫描磁盘都是很大的工作。同时,对磁盘扇区的选择是文件系统的功能,该功能的实现还需要对虚拟机文件系统的修改,因此,该解决方法难以在工程上实施。2,对父镜像进行扇区保留,该方法可以在制作父镜像时,对其部分虚拟扇区进行特殊标识,形成保留扇区,并设置禁止虚拟机子镜像占用对应的扇区,在升级时,可以直接使用这部分保留扇区,不会和虚拟机子镜像占用重叠。不过该方式还是面临着需要修改虚拟机内文件系统的问题,因为需要明确设定升级的磁盘数据放置在保留扇区上,而这必须要基于虚拟机文件系统来进行支持。因此,该方法复杂度较高。There are several solutions in the related art: 1. Scan all sub-mirrors and analyze which virtual sectors have not been used, which can be used as an upgrade to the parent image; considering that the virtual machine will continue to read and write the disk during operation. Operation, so this method must suspend all virtual machines, if the number of virtual machines A lot, whether it is shutting down or scanning the disk is a big job. At the same time, the selection of the disk sector is a function of the file system, and the implementation of the function also requires modification of the virtual machine file system. Therefore, the solution is difficult to implement in engineering. 2. Perform sector reservation on the parent image. This method can specifically identify some of the virtual sectors when creating the parent image, forming a reserved sector, and setting the virtual machine submirror to occupy the corresponding sector. This part of the reserved sector can be used directly without overlapping with the virtual machine submirror. However, this method still faces the problem of modifying the file system in the virtual machine, because it is necessary to explicitly set the upgraded disk data to be placed on the reserved sector, and this must be supported based on the virtual machine file system. Therefore, the method is more complicated.
针对相关技术中,基于父子镜像部署的虚拟机群升级复杂的问题,目前还没有有效地解决方案。In the related art, the problem of complex virtual machine cluster upgrade based on parent-child mirror deployment has not been effectively solved.
发明概述Summary of invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本发明实施例提供一种虚拟机升级方法及装置,能够简化基于父子镜像部署的虚拟机群升级的复杂程度。The embodiment of the invention provides a virtual machine upgrade method and device, which can simplify the complexity of virtual machine group upgrade based on parent-child image deployment.
根据本发明实施例的一个方面,提供了一种虚拟机升级方法,包括:According to an aspect of the embodiments of the present invention, a virtual machine upgrade method is provided, including:
获取原始镜像的升级镜像,将所述升级镜像中的更新文件覆盖挂接到虚拟机的独立组件镜像的文件,其中,所述独立组件镜像与所述虚拟机的系统镜像存在链接关系;Obtaining an upgrade image of the original image, and overlaying the update file in the upgrade image to a file that is attached to the independent component image of the virtual machine, where the independent component image has a link relationship with the system image of the virtual machine;
将所述独立组件镜像挂接到所述虚拟机。The independent component image is attached to the virtual machine.
可选的,所述虚拟机升级方法还包括:Optionally, the virtual machine upgrade method further includes:
将所述原始镜像的文件移动到所述独立组件镜像;Moving the original mirrored file to the independent component image;
在所述原始镜像的文件在所述原始镜像中的位置处建立用于指向移动到独立组件镜像的所述原始镜像的文件链接,以生成所述链接关系。A file link for pointing to the original image moved to the independent component image is created at the location of the original mirrored file at the location in the original image to generate the link relationship.
可选的,所述获取所述原始镜像的升级镜像包括:Optionally, the obtaining the upgrade image of the original image includes:
基于所述原始镜像的备份重新创建虚拟机,将重新创建的虚拟机组件升级后作为所述升级镜像。 The virtual machine is recreated based on the backup of the original image, and the recreated virtual machine component is upgraded as the upgrade image.
可选的,将所述升级镜像中的更新文件覆盖所述独立组件镜像的文件包括:Optionally, the file that overlays the update file in the upgrade image to the independent component image includes:
依据文件映射配置信息和所述升级镜像,扫描所述独立组件镜像中的文件是否有更新,在所述独立组件镜像中的文件存在更新的情况下,将所述升级镜像的更新文件覆盖所述独立组件镜像的文件。Scanning, according to the file mapping configuration information and the upgrade image, whether the file in the independent component image is updated, and if the file in the independent component image is updated, the update file of the upgrade image is overwritten. A file that is mirrored by a standalone component.
可选的,所述虚拟机升级方法还包括:Optionally, the virtual machine upgrade method further includes:
设置所述独立组件镜像允许虚拟机进行读操作;和/或,Setting the independent component image allows the virtual machine to perform a read operation; and/or,
禁止虚拟机对所述独立组件镜像进行写操作。The virtual machine is prohibited from writing to the independent component image.
根据本发明实施例的另一方面,提供了一种虚拟机升级装置,包括:According to another aspect of the embodiments of the present invention, a virtual machine upgrade apparatus is provided, including:
覆盖模块设置为,获取原始镜像的升级镜像,将所述升级镜像中的更新文件覆盖挂接到虚拟机的独立组件镜像的文件,其中,所述独立组件镜像与所述虚拟机的系统镜像存在链接关系;The overlay module is configured to obtain an upgrade image of the original image, and the update file in the upgrade image is overwritten with a file of a separate component image of the virtual machine, where the independent component image and the system image of the virtual machine exist. Link relationship
挂接模块设置为,将所述独立组件镜像挂接到所述虚拟机。The hook module is configured to attach the independent component image to the virtual machine.
可选的,所述覆盖模块包括:Optionally, the coverage module includes:
移动模块,设置为将所述原始镜像的文件移动到所述独立组件镜像;a moving module, configured to move the original mirrored file to the independent component image;
指示模块,设置为在所述原始镜像的文件在所述原始镜像中的位置处建立用于指向移动到独立组件镜像的所述原始镜像的文件链接,以生成所述链接关系。An indication module is configured to establish a file link for pointing to the original image that is moved to the independent component image at a location of the original mirrored file in the original image to generate the link relationship.
可选的,所述覆盖模块是设置为:Optionally, the coverage module is set to:
基于所述原始镜像的备份重新创建虚拟机,将重新创建的虚拟机的组件升级后作为所述升级镜像;将所述升级镜像中的更新文件覆盖挂接到虚拟机的独立组件镜像的文件。Re-creating the virtual machine based on the backup of the original image, upgrading the components of the re-created virtual machine as the upgrade image; and overwriting the update file in the upgrade image to the file of the independent component image of the virtual machine.
可选的,所述覆盖模块是设置为:获取原始镜像的升级镜像,依据文件映射配置信息和所述升级镜像,扫描所述独立组件镜像中的文件是否有更新,在所述独立组件镜像中的文件存在更新的情况下,将所述升级镜像的更新文件覆盖所述独立组件镜像的文件。Optionally, the overlay module is configured to: obtain an upgrade image of the original image, and scan, according to the file mapping configuration information and the upgrade image, whether the file in the independent component image is updated, in the independent component image. In the case that there is an update of the file, the update file of the upgrade image is overwritten by the file of the independent component image.
可选的,所述虚拟机升级还包括: Optionally, the virtual machine upgrade further includes:
设置单元,设置为设置所述独立组件镜像允许虚拟机进行读操作;和/或,禁止虚拟机对所述独立组件镜像进行写操作。a setting unit configured to set the independent component image to allow the virtual machine to perform a read operation; and/or to prohibit the virtual machine from writing to the independent component image.
通过本发明实施例,获取原始镜像的升级镜像,将该升级镜像中的更新文件覆盖挂接到虚拟机的独立组件镜像的文件,其中,该独立组件镜像与该虚拟机的系统镜像存在链接关系;将该独立组件镜像挂接到该虚拟机;本发明实施例简便有效的实现了虚拟机群升级。The embodiment of the present invention obtains the upgrade image of the original image, and the update file in the upgrade image is overwritten with the file of the independent component image of the virtual machine, where the independent component image has a link relationship with the system image of the virtual machine. The independent component image is attached to the virtual machine; the embodiment of the present invention implements the virtual machine group upgrade simply and effectively.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1是相关技术的父子镜像关系示意图;1 is a schematic diagram of a parent-child mirror relationship of the related art;
图2是相关技术中父子镜像对虚拟扇区的占用关系示意图;2 is a schematic diagram of an occupation relationship of a parent-child mirror to a virtual sector in the related art;
图3是本发明实施例的一种虚拟机升级方法的流程图;3 is a flowchart of a virtual machine upgrade method according to an embodiment of the present invention;
图4是本发明实施例的一种虚拟机升级装置的结构框图一;4 is a structural block diagram 1 of a virtual machine upgrading apparatus according to an embodiment of the present invention;
图5是本发明实施例的一种虚拟机升级装置的结构框图二;FIG. 5 is a structural block diagram 2 of a virtual machine upgrading apparatus according to an embodiment of the present invention; FIG.
图6是本发明可选实施例的一种虚拟机镜像部署方式示意图;FIG. 6 is a schematic diagram of a virtual machine image deployment manner according to an optional embodiment of the present invention; FIG.
图7是本发明可选实施例的映像内文件放置关系图;7 is a diagram showing a file placement relationship in an image according to an alternative embodiment of the present invention;
图8是本发明可选实施例的在windows系统上的放置关系示意图;8 is a schematic diagram of a placement relationship on a windows system according to an alternative embodiment of the present invention;
图9是本发明可选实施例的一种镜像初始制作方式示意图;9 is a schematic diagram of an initial image creation mode according to an alternative embodiment of the present invention;
图10是本发明可选实施例的组件升级后的一种镜像更新方法示意图;10 is a schematic diagram of a mirror update method after component upgrade according to an optional embodiment of the present invention;
图11是本发明可选实施例的文件映射模块的实现流程图;11 is a flowchart of an implementation of a file mapping module according to an alternative embodiment of the present invention;
图12a是本发明可选实施例的虚拟机生成和镜像部署的实现流程图;FIG. 12a is a flowchart of implementing virtual machine generation and mirroring deployment according to an optional embodiment of the present invention; FIG.
图12b是本发明可选实施例的虚拟机组件升级的实现流程图。FIG. 12b is a flowchart of implementing an upgrade of a virtual machine component according to an optional embodiment of the present invention.
详述Detailed
下文中将结合附图对本申请的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。Embodiments of the present application will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后 次序。It should be noted that the terms "first", "second" and the like in the specification and claims of the present invention and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or order. order.
在本实施例中提供了一种虚拟机升级方法,图3是本发明实施例的一种虚拟机升级方法的流程图,如图3所示,包括:In this embodiment, a virtual machine upgrade method is provided. FIG. 3 is a flowchart of a virtual machine upgrade method according to an embodiment of the present invention.
步骤(S)302,获取原始镜像的升级镜像,将该升级镜像中的更新文件覆盖挂接到虚拟机的独立组件镜像的文件;其中,该独立组件镜像与该虚拟机的系统镜像存在链接关系;包括:该独立组件镜像是通过文件映射配置信息处理该虚拟机的原始镜像,制作出与该虚拟机的系统镜像存在链接关系的该独立组件镜像;Step (S) 302: Obtain an upgrade image of the original image, and overwrite the update file in the upgrade image with a file of the independent component image of the virtual machine; wherein the independent component image has a link relationship with the system image of the virtual machine. Including: the independent component image is processed by the file mapping configuration information to process the original image of the virtual machine, and the independent component image having a link relationship with the system image of the virtual machine is created;
S304,将独立组件镜像挂接到虚拟机。S304. Attach the independent component image to the virtual machine.
通过上述步骤,获取原始镜像的升级镜像,将该升级镜像中的更新文件覆盖挂接到虚拟机的独立组件镜像的文件,将该独立组件镜像挂接到该虚拟机。原始镜像通过文件映射配置信息处理得到虚拟机的系统镜像和独立组件镜像,独立组件镜像在更新之前跟虚拟机群是挂接的,更新完继续挂接在虚拟机上,简便有效的实现了虚拟机群升级。Through the above steps, the upgrade image of the original image is obtained, and the update file in the upgrade image is overwritten with the file of the independent component image of the virtual machine, and the independent component image is attached to the virtual machine. The original image is processed by the file mapping configuration information to obtain the system image and the independent component image of the virtual machine. The independent component image is attached to the virtual machine group before the update, and the update is continued to be attached to the virtual machine, and the virtual machine group is implemented simply and effectively. upgrade.
在本实施例中,该制作出与该虚拟机的系统镜像存在链接文件关系的独立组件镜像包括,将该原始镜像的文件移动到该独立组件镜像;在该原始镜像的文件在该原始镜像中的位置处建立用于指向该原始镜像的文件链接,在原始镜像中设置一个对应的链接用来指示文件移动后的新位置。即在原始镜像的文件在原始镜像中的位置处建立用于指向移动到独立组件镜像的原始镜像的文件链接,以生成链接关系。In this embodiment, the independent component image that has a link file relationship with the system image of the virtual machine includes: moving the original mirrored file to the independent component image; the original mirrored file is in the original image. The location of the file is used to point to the original image, and a corresponding link is set in the original image to indicate the new location after the file is moved. That is, a file link for pointing to the original image moved to the independent component image is created at the location of the original mirrored file in the original image to generate a link relationship.
在本发明实施例中,该获取该原始镜像的升级镜像包括:基于该原始镜像的备份重新创建虚拟机,该重新创建的虚拟机的组件升级后作为该升级镜像。In the embodiment of the present invention, the obtaining the upgrade image of the original image includes: re-creating the virtual machine based on the backup of the original image, and the component of the re-created virtual machine is upgraded as the upgrade image.
在本发明实施例中,将该升级镜像中的更新文件覆盖该独立组件镜像的文件包括:依据文件映射配置信息和该升级镜像,扫描该独立组件镜像中的文件是否有更新,在该独立组件镜像中的文件存在更新的情况下,将该升级镜像的更新文件覆盖该独立组件镜像的文件。在需要组件进行升级时,系统依据升级镜像对独立组件镜像进行扫描,在独立组件镜像有更新的情况下, 对独立组建镜像进行更新。In the embodiment of the present invention, the updating the file in the upgrade image to the file of the independent component image comprises: scanning, according to the file mapping configuration information and the upgrade image, whether the file in the independent component image is updated, in the independent component If there is an update to the file in the image, the update file of the upgrade image overwrites the file of the independent component image. When a component is required to be upgraded, the system scans the independent component image according to the upgrade image. When the independent component image is updated, Update the independent component image.
在本发明实施例中,虚拟机升级方法还包括:设置独立组件镜像允许虚拟机进行读操作;和/或,禁止虚拟机对独立组件镜像进行写操作。即该独立组件镜像满足以下条件:该独立组件镜像仅允许虚拟机进行读操作不允许对该独立组件镜像进行写操作。独立组件镜像是所有虚拟机群共享的镜像,单个虚拟机只能进行读操作,可以访问镜像中的内容,依据镜像进行虚拟机升级,但是单个虚拟机不可以修改虚拟机的内容。In the embodiment of the present invention, the virtual machine upgrade method further includes: setting an independent component image to allow the virtual machine to perform a read operation; and/or prohibiting the virtual machine from performing a write operation on the independent component image. That is, the independent component image satisfies the following condition: The independent component image only allows the virtual machine to perform a read operation and does not allow the independent component image to be written. A separate component mirror is a mirror shared by all VMs. A single VM can only read operations, access the contents of the mirror, and upgrade the VM based on the mirror. However, a single VM cannot modify the contents of the VM.
在本发明实施例中还提供了一种虚拟机升级装置,该装置用于实现上述实施例及可选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置可以以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In the embodiment of the present invention, a virtual machine upgrade device is further provided, which is used to implement the foregoing embodiments and optional implementation manners, and details are not described herein. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the devices described in the following embodiments may be implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
本发明实施例还提供一种计算机存储介质,计算机存储介质中存储有计算机可执行指令,计算机可执行指令用于执行上述虚拟机升级方法。The embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the virtual machine upgrade method.
本发明实施例还提供一种虚拟机升级装置,包括:存储器和处理器;其中,The embodiment of the present invention further provides a virtual machine upgrading apparatus, including: a memory and a processor; wherein
处理器被配置为执行所述存储器中的程序指令;A processor is configured to execute program instructions in the memory;
程序指令在处理器读取执行以下操作:Program instructions perform the following operations on the processor read:
获取原始镜像的升级镜像,将升级镜像中的更新文件覆盖挂接到虚拟机的独立组件镜像的文件,其中,独立组件镜像与虚拟机的系统镜像存在链接关系;The upgrade image of the original image is obtained, and the update file in the upgrade image is overwritten with the file of the independent component image of the virtual machine. The independent component image has a link relationship with the system image of the virtual machine.
将独立组件镜像挂接到虚拟机。Attach a separate component image to the virtual machine.
图4是本发明实施例的一种虚拟机升级装置的结构框图一,如图4所示,该装置包括: 4 is a structural block diagram of a virtual machine upgrade apparatus according to an embodiment of the present invention. As shown in FIG. 4, the apparatus includes:
覆盖模块42,设置为获取原始镜像的升级镜像,将该升级镜像中的更新文件覆盖挂接到虚拟机的独立组件镜像的文件,其中,该独立组件镜像与该虚拟机的系统镜像存在链接关系;The overlay module 42 is configured to obtain an upgrade image of the original image, and the update file in the upgrade image is overwritten with a file of the independent component image of the virtual machine, where the independent component image is linked with the system image of the virtual machine. ;
挂接模块44,与覆盖模块42连接,设置为将该独立组件镜像挂接到该虚拟机。The hooking module 44 is connected to the overlay module 42 and is configured to attach the independent component image to the virtual machine.
通过上述步骤,覆盖模块42获取原始镜像的升级镜像,将该升级镜像中的更新文件覆盖挂接到虚拟机的独立组件镜像的文件,其中,该独立组件镜像是通过文件映射配置信息处理该虚拟机的原始镜像,制作出与该虚拟机的系统镜像存在链接关系的该独立组件镜像;挂接模块44将该独立组件镜像挂接到该虚拟机,简便有效的实现了虚拟机群升级。Through the above steps, the overlay module 42 obtains the upgrade image of the original image, and the update file in the upgrade image is overwritten with the file of the independent component image of the virtual machine, wherein the independent component image is processed by the file mapping configuration information. The original image of the machine creates a separate component image that is linked to the system image of the virtual machine. The hooking module 44 attaches the independent component image to the virtual machine, and implements the virtual machine group upgrade conveniently and effectively.
图5是本发明实施例的一种虚拟机升级装置的结构框图二,如图5所示,该虚拟机升级装置还包括:FIG. 5 is a structural block diagram 2 of a virtual machine upgrade apparatus according to an embodiment of the present invention. As shown in FIG. 5, the virtual machine upgrade apparatus further includes:
移动模块52,设置为将该原始镜像的文件移动到该独立组件镜像;The moving module 52 is configured to move the original mirrored file to the independent component image;
指示模块54,与该移动模块52连接,用于在该原始镜像的文件在该原始镜像中的位置处建立用于指向移动到独立组件镜像的该原始镜像的文件链接,以生成链接关系。The indication module 54 is coupled to the mobile module 52 for establishing a file link for pointing to the original image that is moved to the independent component image at a location in the original image of the original mirrored file to generate a link relationship.
在本实施例中,该覆盖模块42是设置为基于该原始镜像的备份重新创建虚拟机,将重新创建的虚拟机的组件升级后作为该升级镜像;将升级镜像中的更新文件覆盖挂接到虚拟机的独立组件镜像的文件。In this embodiment, the overlay module 42 is configured to re-create the virtual machine based on the backup of the original image, and upgrade the components of the re-created virtual machine as the upgrade image; attach the update file overlay in the upgrade image to the upgrade file. A file that is mirrored by a separate component of the virtual machine.
在本实施例中,该覆盖模块42是设置为:获取原始镜像的升级镜像,依据文件映射配置信息和该升级镜像,扫描该独立组件镜像中的文件是否有更新,在该独立组件镜像中的文件存在更新的情况下,将该升级镜像的更新文件覆盖该独立组件镜像的文件。In this embodiment, the overlay module 42 is configured to: obtain an upgrade image of the original image, and scan whether the file in the independent component image is updated according to the file mapping configuration information and the upgrade image, in the independent component image. In the case where the file is updated, the update file of the upgrade image is overwritten by the file of the independent component image.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述各个模块均位于同一处理器中;或者,上述各个模块分别位于不同的处理器中。It should be noted that each of the above modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the above modules are respectively located. Different processors.
下面结合本发明可选实施例进行详细说明。The following is a detailed description in conjunction with an alternative embodiment of the invention.
本发明可选实施例提供一个简便的方法用来实现对基于共享父镜像的 虚拟机进行批量升级,该实施例的方法不需要对镜像文件进行特殊修改,不需要对虚拟机文件系统进行修改。An alternative embodiment of the present invention provides a convenient method for implementing a shared parent image based The virtual machine is upgraded in batches. The method in this embodiment does not require special modification to the image file, and does not need to modify the virtual machine file system.
本发明可选实施例采用以下技术方案,本发明可选实施例包括两部分构成:An alternative embodiment of the present invention adopts the following technical solutions. The optional embodiment of the present invention comprises two parts:
独立组件镜像,使用该镜像来存放需要升级的组件,该镜像被所有虚拟机共享读取,但禁止修改。A separate component image that is used to hold the components that need to be upgraded. The image is shared by all virtual machines, but modification is prohibited.
文件映射模块(相当于上述实施例的覆盖模块42的部分功能,存储了文件映射配置信息),对安装了的组件,使用该模块,将实际存储文件映射到该独立镜像中,这样虚拟机对文件的实际读取都会访问独立组件镜像。a file mapping module (corresponding to some functions of the overlay module 42 of the above embodiment, storing file mapping configuration information), and using the module to map the actual storage file to the independent image, so that the virtual machine pair The actual reading of the file accesses the individual component image.
本发明可选实施例的步骤如下:The steps of an alternative embodiment of the invention are as follows:
步骤一,在虚拟机中完成组件初始安装;Step 1: Complete the initial installation of the component in the virtual machine;
步骤二,使用链接模块(相当于上述实施例的指示模块54的部分功能),将安装的组件移动到独立组件镜像中,并在原位置创建对应的链接关系; Step 2, using a link module (corresponding to some functions of the indication module 54 of the above embodiment), moving the installed component into the independent component image, and creating a corresponding link relationship in the original location;
步骤三,将独立组件镜像挂接到所有的虚拟机上,形成共享镜像。这样虚拟机可以像往常一样访问对应组件,这些访问都重定向到组件镜像上;Step 3: Attach the independent component image to all virtual machines to form a shared image. In this way, the virtual machine can access the corresponding components as usual, and these accesses are redirected to the component image;
步骤四,在需要升级时,采用专用升级虚拟机,在升级后,重新运行链接模块,将修改内容移动到独立组件镜像中;Step 4: When the upgrade is required, the dedicated upgrade virtual machine is used. After the upgrade, the link module is re-run and the modified content is moved to the independent component image.
步骤五,重新将新的独立组件镜像挂接到所有虚拟机上,这样所有虚拟机都可以看到升级内容,并发升级完成。Step 5: Re-attach the new independent component image to all virtual machines, so that all virtual machines can see the upgrade content and the upgrade is completed.
与相关技术相比较,本发明可选实施例不依赖于对应的虚拟机映像格式,不需要对虚拟机镜像进行修改,不需要对虚拟机的文件系统管理器进行修改,只需要在虚拟机部署时增加一个专用镜像,在完成组件升级后,使用文件映射模块扫描文件编号,建立链接关系,实现较为简便。Compared with the related art, the optional embodiment of the present invention does not depend on the corresponding virtual machine image format, and does not need to modify the virtual machine image, and does not need to modify the file system manager of the virtual machine, and only needs to be deployed in the virtual machine. Add a dedicated image, after the component is upgraded, use the file mapping module to scan the file number and establish a link relationship, which is relatively easy to implement.
图6是本发明可选实施例的一种虚拟机镜像部署方式示意图,如图6所示,A1、A2、A3和A4是虚拟机的系统镜像,而B是新增加的独立组件镜像,V1、V2和V3是虚拟机群,虚拟机在运行中,会同时挂接在A类和B类这两类映像上,构成其虚拟机磁盘。对A类镜像,以父子方式使用,可以进行读写操作,而对B镜像挂接,则只能读,不能进行写操作,因此虚 拟机可以直接挂载,而不用创建子镜像。FIG. 6 is a schematic diagram of a virtual machine image deployment manner according to an optional embodiment of the present invention. As shown in FIG. 6, A1, A2, A3, and A4 are system images of a virtual machine, and B is a newly added independent component image, V1. V2 and V3 are virtual machine clusters. When the virtual machine is running, it will be attached to both the A and B types of images to form its virtual machine disk. For class A mirroring, it can be read and written in parent-child mode, but can only be read and cannot be written to the B mirror. The machine can be mounted directly without creating a submirror.
图7是本发明可选实施例的映像内文件放置关系图,如图7所示,A为系统镜像,B是独立组件镜像,在A镜像上,对需要升级的文件,都链接到B镜像上,实际数据都存储在B镜像。FIG. 7 is a diagram of a file placement relationship in an image according to an alternative embodiment of the present invention. As shown in FIG. 7, A is a system image, and B is a separate component image. On the A image, the file to be upgraded is linked to the B image. On, the actual data is stored in the B image.
图8是本发明可选实施例的在windows系统上的放置关系示意图,如图8所示,A为系统镜像,B是独立组件镜像,对应的组件包括c:\windows\sys目录下的file1.sys和file2.sys两个文件,通过链接关系,指向了e:\sys下的file1.sys和file2.sys两个文件。链接文件是windows文件系统的已有技术,对于linux系统,也有类似实现。FIG. 8 is a schematic diagram of a placement relationship on a windows system according to an alternative embodiment of the present invention. As shown in FIG. 8, A is a system image, B is a separate component image, and corresponding components include file1 in the c:\windows\sys directory. The .sys and file2.sys files, through the link relationship, point to file1.sys and file2.sys under e:\sys. Linked files are a prior art of the Windows file system. For Linux systems, there are similar implementations.
图9是本发明可选实施例的一种镜像初始制作方式示意图,如图9所示,首先按照正常流程进行虚拟机安装,形成基础的安装镜像,对该进行使用文件映射模块进行处理,该模块根据预定义的文件映射配置,制作出有链接文件关系的虚拟机系统镜像(对应前面描述的A镜像)和独立组件镜像(对应前面描述的B镜像)。FIG. 9 is a schematic diagram of an initial image creation mode according to an alternative embodiment of the present invention. As shown in FIG. 9, the virtual machine is first installed according to a normal process to form a basic installation image, and the file mapping module is processed. Based on the predefined file mapping configuration, the module creates a virtual machine system image with a linked file relationship (corresponding to the A image described earlier) and a separate component image (corresponding to the B image described earlier).
图10是本发明可选实施例的组件升级后的一种镜像更新方法示意图,如图10所示,首先对原始镜像进行备份,并在该基础上进行组件升级,升级后得到升级镜像,使用文件映射模块对原始镜像和升级镜像进行处理,形成新的独立组件镜像。FIG. 10 is a schematic diagram of a mirror update method after component upgrade according to an optional embodiment of the present invention. As shown in FIG. 10, the original image is first backed up, and component upgrade is performed on the basis, and an upgrade image is obtained after the upgrade. The file mapping module processes the original image and the upgrade image to form a new independent component image.
图11是本发明可选实施例的文件映射模块的实现流程图,如图11所示,包括:FIG. 11 is a flowchart of an implementation of a file mapping module according to an optional embodiment of the present invention. As shown in FIG. 11, the method includes:
S1101,读取映射文件配置信息;S1101, reading mapping file configuration information;
S1102,判断是否存在独立组件镜像;不存在独立组件镜像时,执行步骤1103;存在独立组件镜像时,执行步骤1105;S1102, it is determined whether there is a separate component image; when there is no independent component image, step 1103 is performed; when there is a separate component image, step 1105 is performed;
S1103,建立独立组件镜像;建立的独立组件镜像初始为空;S1103, creating an independent component image; the established independent component image is initially empty;
S1104,按照映射配置扫描对应文件,根据文件映射信息中的文件,将安装后的镜像中对应的文件移动到独立组件镜像中,并在原有位置建立对应的链接文件,指向移动后的文件位置;重复S1104,直到完成所有的文件链接关系建立。 S1104: Scan the corresponding file according to the mapping configuration, and move the corresponding file in the installed image to the independent component image according to the file in the file mapping information, and establish a corresponding link file in the original location, pointing to the moved file location; Repeat S1104 until all file link relationships are established.
S1105,根据文件映射配置的文件,扫描查看升级镜像是否存在更新;S1105: Scan according to the file configured by the file mapping, and check whether the upgrade image has an update.
S1106,若升级镜像存在更新,则用更新后的升级镜像的文件覆盖独立组件镜像中对应的文件;由于在初始镜像制作中已经建立了链接关系,这个就不需要再建立了,重复S1105和S1106的步骤,直到映射配置中的所有文件都扫描完成。S1106: If the upgrade image is updated, the file corresponding to the updated component image is overwritten by the file of the updated upgrade image; since the link relationship has been established in the initial image creation, this does not need to be established, and S1105 and S1106 are repeated. Steps until all files in the map configuration are scanned.
图12a是根据本发明可选实施例的虚拟机生成和镜像部署的实现流程图,如图12a所示,在新创建独立组件镜像的情况下,包括:FIG. 12a is a flowchart of an implementation of a virtual machine generation and a mirroring deployment according to an optional embodiment of the present invention. As shown in FIG. 12a, in the case of newly creating a separate component image, the method includes:
S1201,创建原始镜像文件,并在该镜像文件上启动虚拟机,并完成组件安装,保存该原始镜像文件;S1201: Create an original image file, start a virtual machine on the image file, complete component installation, and save the original image file.
S1202,根据文件映射配置,创建出系统镜像和独立组件镜像;S1202: Create a system image and a separate component image according to the file mapping configuration.
S1203,基于新生成的系统镜像和独立组件镜像,创建虚拟机。S1203, creating a virtual machine based on the newly generated system image and the independent component image.
图12b是根据本发明可选实施例的虚拟机组件升级的实现流程图,如图12b所示,在需要组件升级的情况下,包括:FIG. 12b is a flowchart of an implementation of a virtual machine component upgrade according to an optional embodiment of the present invention. As shown in FIG. 12b, in the case that a component upgrade is required, the method includes:
S1204,则从保存的原始镜像拷贝一份,作为待升级镜像,S1204, copy one copy from the saved original image as the image to be upgraded.
S1205,基于待升级镜像,创建虚拟机,S1205: Create a virtual machine based on the image to be upgraded.
S1206,在新创建虚拟机上完成组件升级,S1206, completing component upgrade on the newly created virtual machine,
S1207,使用原始镜像和新的升级镜像,根据文件映射配置更新独立组件镜像;S1207, using the original image and the new upgrade image, to update the independent component image according to the file mapping configuration;
S1208,更新所有虚拟机的独立组件镜像;这里,独立组件镜像新生成的独立组件镜像。S1208, updating the independent component image of all virtual machines; here, the independent component mirrors the newly generated independent component image.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。 Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, The optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:Embodiments of the present invention also provide a storage medium. Optionally, in the embodiment, the foregoing storage medium may be configured to store program code for performing the following steps:
S1,获取原始镜像的升级镜像,将该升级镜像中的更新文件覆盖挂接到虚拟机的独立组件镜像的文件,其中,该独立组件镜像是通过文件映射配置信息处理该虚拟机的原始镜像,制作出与该虚拟机的系统镜像存在链接关系的该独立组件镜像;S1: Obtain an upgrade image of the original image, and the update file in the upgrade image is overwritten with a file of a separate component image of the virtual machine, where the independent component image is processed by the file mapping configuration information to process the original image of the virtual machine. Creating a separate component image that has a link relationship with the system image of the virtual machine;
S2,将该独立组件镜像挂接到该虚拟机。S2, attaching the independent component image to the virtual machine.
该存储介质还可以被设置为存储用于执行上述实施例的方法步骤的程序代码。The storage medium may also be arranged to store program code for performing the method steps of the above-described embodiments.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in this embodiment, the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory. A variety of media that can store program code, such as a disc or a disc.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行上述实施例的方法步骤。Optionally, in this embodiment, the processor performs the method steps of the foregoing embodiments according to the stored program code in the storage medium.
可选地,本实施例中的示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For example, the examples in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的每个模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储于存储器中的程序/指令来实现其相应功能。本发明不限制于任何特定形式的硬件和软件的结合。One of ordinary skill in the art will appreciate that all or a portion of the above steps may be performed by a program to instruct related hardware, such as a processor, which may be stored in a computer readable storage medium, such as a read only memory, disk or optical disk. Wait. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the foregoing embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, being executed by a processor and stored in a memory. Programs/instructions to implement their respective functions. The invention is not limited to any specific form of combination of hardware and software.
虽然本申请所揭露的实施方式如上,但所述的内容仅为便于理解本申请而采用的实施方式,并非用以限定本申请,如本发明实施方式中的具体的实现方法。任何本申请所属领域内的技术人员,在不脱离本申请所揭露的精神 和范围的前提下,可以在实施的形式及细节上进行任何的修改与变化,但本申请的专利保护范围,仍须以所附的权利要求书所界定的范围为准。The embodiments disclosed in the present application are as described above, but the descriptions are only for the purpose of understanding the present application, and are not intended to limit the present application, such as the specific implementation method in the embodiments of the present invention. Any person skilled in the art to which the present application pertains does not depart from the spirit disclosed in the present application. And the scope and details of the invention may be modified and varied, and the scope of the patent application is still subject to the scope defined by the appended claims.
工业实用性Industrial applicability
上述技术方案简便有效的实现了虚拟机群升级。 The above technical solution realizes the virtual machine group upgrade simply and effectively.

Claims (10)

  1. 一种虚拟机升级方法,包括:A virtual machine upgrade method includes:
    获取原始镜像的升级镜像,将所述升级镜像中的更新文件覆盖挂接到虚拟机的独立组件镜像的文件,其中,所述独立组件镜像与所述虚拟机的系统镜像存在链接关系;Obtaining an upgrade image of the original image, and overlaying the update file in the upgrade image to a file that is attached to the independent component image of the virtual machine, where the independent component image has a link relationship with the system image of the virtual machine;
    将所述独立组件镜像挂接到所述虚拟机。The independent component image is attached to the virtual machine.
  2. 根据权利要求1所述的虚拟机升级方法,所述虚拟机升级方法还包括:The virtual machine upgrade method according to claim 1, wherein the virtual machine upgrade method further comprises:
    将所述原始镜像的文件移动到所述独立组件镜像;Moving the original mirrored file to the independent component image;
    在所述原始镜像的文件在所述原始镜像中的位置处建立用于指向移动到独立组件镜像的所述原始镜像的文件链接,以生成所述链接关系。A file link for pointing to the original image moved to the independent component image is created at the location of the original mirrored file at the location in the original image to generate the link relationship.
  3. 根据权利要求1或2所述的虚拟机升级方法,其中,所述获取所述原始镜像的升级镜像包括:The virtual machine upgrade method according to claim 1 or 2, wherein the obtaining the upgrade image of the original image comprises:
    基于所述原始镜像的备份重新创建虚拟机,将重新创建的虚拟机组件升级后作为所述升级镜像。The virtual machine is recreated based on the backup of the original image, and the recreated virtual machine component is upgraded as the upgrade image.
  4. 根据权利要求1或2所述的虚拟机升级方法,其中,将所述升级镜像中的更新文件覆盖所述独立组件镜像的文件包括:The virtual machine upgrade method according to claim 1 or 2, wherein the updating the file in the upgrade image to the file of the independent component image comprises:
    依据文件映射配置信息和所述升级镜像,扫描所述独立组件镜像中的文件是否有更新,在所述独立组件镜像中的文件存在更新的情况下,将所述升级镜像的更新文件覆盖所述独立组件镜像的文件。Scanning, according to the file mapping configuration information and the upgrade image, whether the file in the independent component image is updated, and if the file in the independent component image is updated, the update file of the upgrade image is overwritten. A file that is mirrored by a standalone component.
  5. 根据权利要求1或2所述的虚拟机升级方法,所述虚拟机升级方法还包括:The virtual machine upgrade method according to claim 1 or 2, wherein the virtual machine upgrade method further comprises:
    设置所述独立组件镜像允许虚拟机进行读操作;和/或,Setting the independent component image allows the virtual machine to perform a read operation; and/or,
    禁止虚拟机对所述独立组件镜像进行写操作。The virtual machine is prohibited from writing to the independent component image.
  6. 一种虚拟机升级装置,包括:A virtual machine upgrade device includes:
    覆盖模块设置为,获取原始镜像的升级镜像,将所述升级镜像中的更新文件覆盖挂接到虚拟机的独立组件镜像的文件,其中,所述独立组件镜像与 所述虚拟机的系统镜像存在链接关系;The overlay module is configured to obtain an upgrade image of the original image, and the update file in the upgrade image is overwritten by a file attached to the independent component image of the virtual machine, where the independent component is mirrored The system image of the virtual machine has a link relationship;
    挂接模块设置为,将所述独立组件镜像挂接到所述虚拟机。The hook module is configured to attach the independent component image to the virtual machine.
  7. 根据权利要求6所述的虚拟机升级装置,其中,所述虚拟机升级装置还包括:The virtual machine upgrading apparatus according to claim 6, wherein the virtual machine upgrading apparatus further comprises:
    移动模块,设置为将所述原始镜像的文件移动到所述独立组件镜像;a moving module, configured to move the original mirrored file to the independent component image;
    指示模块,设置为在所述原始镜像的文件在所述原始镜像中的位置处建立用于指向移动到独立组件镜像的所述原始镜像的文件链接,以生成所述链接关系。An indication module is configured to establish a file link for pointing to the original image that is moved to the independent component image at a location of the original mirrored file in the original image to generate the link relationship.
  8. 根据权利要求6或7所述的虚拟机升级装置,其中,所述覆盖模块是设置为:The virtual machine upgrading apparatus according to claim 6 or 7, wherein the overlay module is configured to:
    基于所述原始镜像的备份重新创建虚拟机,将重新创建的虚拟机的组件升级后作为所述升级镜像;将所述升级镜像中的更新文件覆盖挂接到虚拟机的独立组件镜像的文件。Re-creating the virtual machine based on the backup of the original image, upgrading the components of the re-created virtual machine as the upgrade image; and overwriting the update file in the upgrade image to the file of the independent component image of the virtual machine.
  9. 根据权利要求6或7所述的虚拟机升级装置,其中,所述覆盖模块是设置为:获取原始镜像的升级镜像,依据文件映射配置信息和所述升级镜像,扫描所述独立组件镜像中的文件是否有更新,在所述独立组件镜像中的文件存在更新的情况下,将所述升级镜像的更新文件覆盖所述独立组件镜像的文件。The virtual machine upgrading apparatus according to claim 6 or 7, wherein the overlay module is configured to: obtain an upgrade image of the original image, scan the independent component image according to the file mapping configuration information and the upgrade image Whether the file is updated, and if the file in the independent component image is updated, the update file of the upgrade image is overwritten by the file of the independent component image.
  10. 根据权利要求6或7所述的虚拟机升级装置,所述虚拟机升级还包括:The virtual machine upgrade apparatus according to claim 6 or 7, wherein the virtual machine upgrade further comprises:
    设置单元,设置为设置所述独立组件镜像允许虚拟机进行读操作;和/或,禁止虚拟机对所述独立组件镜像进行写操作。 a setting unit configured to set the independent component image to allow the virtual machine to perform a read operation; and/or to prohibit the virtual machine from writing to the independent component image.
PCT/CN2017/077543 2016-04-08 2017-03-21 Method and apparatus for upgrading virtual machine WO2017173922A1 (en)

Applications Claiming Priority (2)

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

Publications (1)

Publication Number Publication Date
WO2017173922A1 true WO2017173922A1 (en) 2017-10-12

Family

ID=60000240

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/077543 WO2017173922A1 (en) 2016-04-08 2017-03-21 Method and apparatus for upgrading virtual machine

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
CN108228190A (en) * 2018-01-25 2018-06-29 杭州时趣信息技术有限公司 Continuous integrating and delivery method, system, equipment and computer readable storage medium
CN110196728A (en) * 2018-03-27 2019-09-03 腾讯科技(深圳)有限公司 The container-treatment and device of image upgrade
CN112256282A (en) * 2020-09-24 2021-01-22 深圳云天励飞技术股份有限公司 Application mirror image construction method and device, electronic equipment and storage medium

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111221537A (en) * 2018-11-23 2020-06-02 中兴通讯股份有限公司 Cloud desktop upgrading method and device, cloud server and storage medium
CN110058867B (en) * 2019-04-29 2023-07-18 深圳市网心科技有限公司 Application program mirror image packaging and installing method, computer device and storage medium
CN115509624B (en) * 2022-10-25 2023-04-28 中南大学 Stream loading-oriented mirror image fusion method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101727331A (en) * 2008-10-24 2010-06-09 国际商业机器公司 Method and equipment for upgrading client operating system of active virtual machine
CN102521016A (en) * 2011-12-08 2012-06-27 中兴通讯股份有限公司 Method and system for operating multiple virtual machines
CN102999369A (en) * 2012-12-25 2013-03-27 杭州华三通信技术有限公司 Method and device for upgrading virtual machines
CN103473065A (en) * 2013-09-18 2013-12-25 国云科技股份有限公司 Virtual machine creation method capable of rapidly restoring system disk

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8225314B2 (en) * 2006-03-31 2012-07-17 Intel Corporation Support for personal computing in a public computing infrastructure by using a single VM delta image for each VM base image utilized by a user
CN102214118A (en) * 2010-04-08 2011-10-12 中国移动通信集团公司 Method, system and device for controlling virtual machine (VM)
US9552215B2 (en) * 2011-03-08 2017-01-24 Rackspace Us, Inc. Method and system for transferring a virtual machine
CN103885719B (en) * 2012-12-21 2017-02-08 中国电信股份有限公司 Device, system and method for online storage migration of virtual machine system
CN103970585B (en) * 2013-01-31 2017-10-27 新华三技术有限公司 Create the method and device of virtual machine
CN103218248B (en) * 2013-03-25 2016-12-28 华为技术有限公司 The update method of a kind of virtual machine image, server and desktop cloud system
CN103713970B (en) * 2013-12-31 2017-02-15 曙光云计算技术有限公司 Disk mirroring file snapshot making method and system based on virtual machine
CN105094948B (en) * 2015-07-31 2018-11-09 杭州华为数字技术有限公司 A kind of system image file updating method, cloud data center and the system of virtual machine
CN105279100A (en) * 2015-11-04 2016-01-27 杭州华为数字技术有限公司 Linked clone parent roll updating method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101727331A (en) * 2008-10-24 2010-06-09 国际商业机器公司 Method and equipment for upgrading client operating system of active virtual machine
CN102521016A (en) * 2011-12-08 2012-06-27 中兴通讯股份有限公司 Method and system for operating multiple virtual machines
CN102999369A (en) * 2012-12-25 2013-03-27 杭州华三通信技术有限公司 Method and device for upgrading virtual machines
CN103473065A (en) * 2013-09-18 2013-12-25 国云科技股份有限公司 Virtual machine creation method capable of rapidly restoring system disk

Cited By (5)

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

Also Published As

Publication number Publication date
CN107273146A (en) 2017-10-20
CN107273146B (en) 2021-11-19

Similar Documents

Publication Publication Date Title
WO2017173922A1 (en) Method and apparatus for upgrading virtual machine
US10067835B2 (en) System reset
CN107870968B (en) Performing real-time updates to a file system volume
CN110088733A (en) The layout based on accumulation layer of virtual machine (vm) migration
KR101636870B1 (en) Method and apparatus for generating minimal boot image
JP2004280839A (en) Method and system for deployment of operating system
JP2008033483A (en) Computer system, computer, and moving method of computer operating environment
CN105320578A (en) Method and apparatus for backing up and recovering APP
CN106357703B (en) Cluster switching method and device
JP6600240B2 (en) Information processing apparatus, firmware update method, and program
CN112612417A (en) Data migration method, device, equipment and storage medium
CN112596950A (en) Virtual machine data backup method, device, equipment and storage medium
CN111158957A (en) Virtual machine file recovery method, system, device and storage medium
EP3769225B1 (en) Free space pass-through
CN108681494B (en) Backup data restoration method and device, user equipment and storage medium
JP2008171241A (en) Backup device and restoration method
JP5873825B2 (en) Electronic device and application storage program
US9940334B2 (en) Image forming apparatus and control method thereof
CN112596954A (en) Data backup and reconstruction method, device, equipment and storage medium
CN106648651B (en) A kind of production method and device of installation kit
JPH0793276A (en) Starting system for computer
JP7279371B2 (en) Management server, boot server, network boot system, network boot method, program
JP2002108673A (en) Shared file system and metal data server computer to be applied to the same
JP3546962B2 (en) Installation device, installation method, and medium recording installation program
JP2004362331A (en) Information processor and program

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17778586

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 17778586

Country of ref document: EP

Kind code of ref document: A1