# US 10,120,672 B2 · Method for offline updating virtual machine images

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 10,120,672 B2
- Document ID: US10120672B2
- Status: Granted
- Kind: B2
- Application number: 15/036,862
- Filed: 2014-11-21
- Published: 2016-12-29
- Granted: 2018-11-06
- Earliest claimed: 2013-11-26
- Assignees: China Unionpay Co., Ltd.
- Applicants: China Unionpay Co., Ltd.
- Inventors: Hongfeng Chai; Chengrong Wu; Zhijun Lu; Jie Wu; Mingbo Wang; Zhihui Lv
- Web page: https://patentgrep.com/patent/US10120672B2

## CPC

- G06F 8/65: Updates (security arrangements therefor G06F21/57)
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- H04L 67/34: {involving the movement of software or configuration parameters (network booting or remote initial program loading [RIPL] G06F9/4416)}
- G06F 2009/45562: {Creating, deleting, cloning virtual machine instances}
- G06F 2009/45595: {Network integration; Enabling network access in virtual machine instances}
- H04L 67/1095: Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

The present invention proposes a method for offline upgrading virtual machine mirror images. The method comprises: an mirror image security server collecting virtual machine mirror images, and extracting and storing the information of the collected virtual machine mirror images; and the mirror image security server executing an upgrade operation of virtual machine mirror images in an offline way based on the information of the collected virtual machine mirror images. The method for offline upgrading virtual machine mirror images disclosed in the present invention has higher upgrade efficiency and is capable of upgrading the virtual machine mirror images in an offline way.

## Claims

### Claim 1

A method for offline upgrading virtual machine mirror images comprising the following steps:
(A1) a mirror image security server collecting virtual machine mirror images, and extracting and storing an information of the collected virtual machine mirror images; and
(A2) the mirror image security server executing an upgrade operation of virtual machine mirror images in an offline way based on the information of the collected virtual machine mirror images, wherein:
the step (A1) further comprises:
(B1) downloading the virtual machine mirror images periodically from a virtual machine mirror image storage server; and
(B2) executing a following steps for each of the downloaded virtual machine mirror images: (1) detecting the virtual machine mirror images to acquire a basic information of the virtual machine mirror images and storing the basic information into a metadata database; (2) processing the virtual machine mirror images in a way of software package management associated with the virtual machine mirror images based on the basic information; and (3) extracting a software package information of the virtual machine mirror images and storing the software package information into a software package information database; and
the step (A2) comprises:
executing a following steps for each of the downloaded virtual machine mirror images after the step (B2): (1) reading out the associated software package information from the software package information database; (2) comparing the software package information which have been read out with an information in an upgrade information database to find out software files to be upgraded, wherein a published patch file being stored in the upgrade information database; (3) if the published patched software file corresponding to the software file to be upgraded do not exist in an offline patch database, executing a script analysis and rewriting operation and storing the involved patched software files into the offline patch database, otherwise, finding out the patched software files corresponding to the software files to be upgraded in the offline patch database, and then replacing the corresponding software files in the virtual machine mirror images with the patched software files corresponding to the software files to be upgraded; (4) updating the software package information database to ensure the information about the virtual machine mirror images in the software package information database is consistent with a current actual information of the virtual machine mirror images; and (5) transmitting the virtual machine mirror images which have been processed by the upgrade operation back to the virtual machine mirror image storage server.

### Claim 2 (depends on 1)

The method for offline upgrading virtual machine mirror images of claim 1, characterized as, the script analysis and rewriting operation comprises the following steps: (1) analyzing patch scripts in related patch files to check whether the patch scripts can be executed safely under an offline environment, and if the patch scripts can be executed safely under the offline environment then proceeding to the step (3), otherwise proceeding to the step (2); (2) determining whether the patch scripts can be converted into scripts which can be executed safely under the offline environment, and if the patch scripts can be converted into the scripts which can be executed safely under the offline environment, then converting the patch scripts into the patch scripts which can be executed safely under the offline environment through a script rewriting way and subsequently proceeding to step (3), otherwise, setting the patch scripts to be executing automatically upon the virtual machine mirror images are actuated next time; and (4) executing the patch scripts.

### Claim 3 (depends on 2)

The method for offline upgrading virtual machine minor images of claim 2, characterized as, each script command in the patch scripts is one of the following types: it can be executed correctly under the offline environment, it cannot be executed correctly under the offline environment, and it would be unnecessarily executed under the offline environment.

### Claim 4 (depends on 3)

The method for offline upgrading virtual machine minor images of claim 3, characterized as, the script rewriting comprises executing the following steps based on the type of each script command in the patch scripts: (1) removing or replacing unwanted commands; and (2) removing unwanted statement control structures.
