# US 2010/0169881 A1 · Method and system for efficient image customization for mass deployment

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

- Number: US 2010/0169881 A1
- Document ID: US20100169881A1
- Status: Published application
- Kind: A1
- Application number: 12/347,120
- Filed: 2008-12-31
- Published: 2010-07-01
- Earliest claimed: 2008-12-31
- Assignees: International Business Machines Corporation
- Inventors: Ezra Silvera; Dean Lorenz; Inbar Shapira; Gilad Sharaby
- Web page: https://patentgrep.com/patent/US20100169881A1

## CPC

- G06F 8/63: {Image based installation; Cloning; Build to order}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A system and method for creating N customized disk images from N identical disk images. A computing system creates N identical disk images from a master image. The computing system customize a first identical disk image according to a customization written in customization scripts. While customizing the first identical disk image, the computing system monitors block-level operations applied on the first identical disk image. The computing system applies the monitored block-level operations simultaneously to other N−1 identical disk according to similar customizations written in customization scripts. After applying the block-level operations, the N identical disk images become N customized disk images. Identical Virtual Machines (VMs) operating in the N identical disk images become N customized VMs by operating based on the N customized disk images.

## Claims

### Claim 1

A method for creating N customized disk images in a computer device, said method comprising:
creating N identical disk images from a master disk image;
applying customizations to a created first identical disk image among the N identical disk images according to one or more customization scripts describing the customizations;
monitoring and saving block-level operations performed on the first identical disk image while applying the customizations to the first identical disk image;
re-using the monitored and saved block-level operations for concurrent or simultaneous application to other N−1 identical disk images to be similarly customized,
wherein the N identical disk images becomes the N customized disk images after performing the customizations and the similar customizations.

### Claim 2 (depends on 1)

The method according to claim 1, further comprising:
receiving the one or more customization scripts from a user, wherein said applying customizations comprises:
analyzing said first identical image once, said analyzing comprising:
parsing a customization request;
searching and locating texts associated with the parsed customization request in said first identical disk image;
determining operations to be applied on a specific location in said identical disk image; and,
saving any data regarding said operations to be applied in a memory storage device for later re-use.

### Claim 3 (depends on 2)

The method according to claim 2, further comprising:
modifying the one or more customization scripts to be executed simultaneously on the N identical images by re-using the monitored and saved block-level operations.

### Claim 4 (depends on 3)

The method according to claim 3, further comprising:
performing a necessary search to determine a state of said computer device prior to any modification on the one or more customization scripts;
performing dependency checks to determine existence of programs called by said script prior to any modification on the one or more customization scripts; and
verifying whether the modified one or more customization scripts can be executed correctly.

### Claim 5 (depends on 1)

The method according to claim 1, further comprising:
performing a CoW (Copy-On-Write) operation optimized for creating the N identical disk images.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the monitored and saved block-level operations includes one or more of:
a file offset within a file system in the first identical disk image, the file offset indicating a specific location in the file system where the customizations applied;
an i-node identity corresponding to the specific location where the customization applied; and
a block offset in the first identical disk image, the block offset indicating a particular location where the customization applied.

### Claim 7 (depends on 1)

The method according to claim 1, wherein
the applying customizations to a first identical disk image comprises:
reading a first disk block from the master disk image to a buffer;
modifying the first disk block in the buffer according to the customizations; and
overwriting the first disk block in the first identical disk image with the modified disk block in the buffer.

### Claim 8 (depends on 8)

The method according to claim 8, wherein the applying the monitored and saved block-level operations on other N−1 identical disk images comprises:
storing the modified disk block in the buffer;
modifying the stored disk block according to the similar customizations; and
overwriting the first disk block in the N−1 identical disk images with the modified stored disk block.

### Claim 9 (depends on 8)

The method according to claim 8, wherein the overwriting the first disk block in the N−1 identical disk images bypasses a file system in the N−1 identical disk images and directly writes the modified stored disk block to a location of the first disk block in the N−1 identical disk images.

### Claim 10 (depends on 1)

The method according to claim 1, wherein the similar customizations are changes that do not depend on a particular customization script.

### Claim 11

A system, implemented in a computer device, for creating N customized disk images comprising:
means for creating N identical disk images from a master disk image;
means for applying customizations to a first identical disk image among the N identical disk images according to one or more customization scripts describing the customizations;
means for monitoring and saving block-level operations performed on the first identical disk image while applying the customizations to the first identical disk image;
means for re-using the monitored and saved block-level operations for concurrent or simultaneous application to other N−1 identical disk images to be similarly customized,
wherein the N identical disk images becomes the N customized disk images after performing the customizations and the similar customizations.

### Claim 12 (depends on 11)

The system according to claim 11, further comprising:
means for receiving the one or more customization scripts from users, wherein said means for applying customizations performs analyzing said first identical image once, said analyzing comprising:
parsing a customization request;
searching and locating texts associated with the parsed customization request in said first identical disk image;
determining operations to be applied on a specific location in said identical disk image; and,
saving any data regarding said operations to be applied in a memory storage device for later re-use.

### Claim 13 (depends on 12)

The system according to claim 12, further comprising:
means for modifying the one or more customization scripts to be executed simultaneously on the N identical images and to reuse the monitored and saved block-level operations.

### Claim 14 (depends on 13)

The system according to claim 13, further comprising:
means for performing a necessary search to determine a state of said computer device prior to any modification on the one or more customization scripts;
means for performing dependency checks to determine existence of programs called by said script prior to any modification on the one or more customization scripts; and
means for verifying whether the modified one or more customization scripts can be executed correctly.

### Claim 15 (depends on 11)

The system according to claim 11, wherein said means for creating N identical disk images further comprises:
means for performing a CoW (Copy-On-Write) operation optimized for creating the N identical disk images.

### Claim 16 (depends on 11)

The system according to claim 11, wherein the monitored and saved block-level operations includes one or more of:
a file offset within a file system in the first identical disk image, the file offset indicating a specific location in the file system where the customizations applied;
an inode identity corresponding to the specific location where the customization applied; and
a block offset in the first identical disk image, the block offset indicating a particular location where the customization applied.

### Claim 17 (depends on 11)

The system according to claim 11, wherein the means for applying customizations to a first identical disk image comprises:
means for reading a first disk block from the master disk image to a buffer;
means for modifying the first disk block in the buffer according to the customizations; and
means for overwriting the first disk block in the first identical disk image with the modified disk block in the buffer.

### Claim 18 (depends on 11)

The system according to claim 11, wherein the means for applying the monitored and saved block-level operations on other N−1 identical disk images comprises:
means for storing the modified disk block in the buffer;
means for modifying the stored disk block according to the similar customizations; and
means for overwriting the first disk block in the N−1 identical disk images with the modified stored disk block.

### Claim 19 (depends on 18)

The system according to claim 18, wherein the means for overwriting the first disk block in the N−1 identical disk images bypasses a file system in the N−1 identical disk images and directly writes the modified stored disk block to a location of the first disk block in the N−1 identical disk images.

### Claim 20 (depends on 11)

The system according to claim 11, wherein the similar customizations are changes that do not depend on a particular customization script.

### Claim 21 (depends on 1)

A computer readable medium storing computer program instructions being executed by a processor for causing a computer to perform method steps for creating N customized disk images, said method steps comprising the steps of claim 1.

### Claim 22 (depends on 1)

A method of deploying a computer program product including a program of instructions in a computer readable medium for creating N customized disk images, wherein, when the program of instructions is executed by a processor, the computer program product performs the steps of claim 1.
