# US 10,956,195 B2 · Virtual machine migrations across clouds assisted with content based read caching

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

- Number: US 10,956,195 B2
- Document ID: US10956195B2
- Status: Granted
- Kind: B2
- Application number: 15/655,938
- Filed: 2017-07-21
- Published: 2018-11-01
- Granted: 2021-03-23
- Earliest claimed: 2017-04-26
- Assignees: VMware, Inc.
- Applicants: Vmware, Inc.
- Inventors: Pavan Karkun
- Web page: https://patentgrep.com/patent/US10956195B2

## CPC

- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 16/137: {Hash-based (content-based indexing of textual data G06F16/31)}
- G06F 16/172: Caching, prefetching or hoarding of files
- G06F 16/188: Virtual file systems
- H04L 67/1097: for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
- H04L 67/568: Storing data temporarily at an intermediate stage, e.g. caching
- G06F 2009/4557: {Distribution of virtual machine instances; Migration and load balancing}
- G06F 2009/45583: {Memory management, e.g. access or allocation}
- G06F 2009/45595: {Network integration; Enabling network access in virtual machine instances}
- 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

One or more embodiments provide techniques for migrating a virtualized computing instance between source and destination virtualized computing systems. A migration assist agent creates a content based read cache (CBRC), which generates one or more digest files. Each of the one or more digest files corresponds to a container file. The migration assist agent transmits CBRC metadata and the one or more digest files to the destination virtualized computing system. The migration assist agent transmits one or more pages belonging to the CBRC to the destination virtualized computing system. For each container file, the migration assist agent references the digest file corresponding to the container file with the CBRC to determine if a hash value is in the CBRC. Responsive to determining that the hash value in the digest file is in the CBRC, the migration assist agent marks the container file as complete.

## Claims

### Claim 1

A method of migrating one or more virtualized computing instances between source and destination virtualized computing systems, comprising:
executing a first migration workflow in the source virtualized computing system, where one or more host computers in the source virtualized computing system executing the one or more virtualized computing instances are source hosts in the first migration workflow, the executing of the first migration workflow causing a migration assist agent to perform steps comprising:
generating, in the source virtualized computing system, a content based read cache (CBRC) in memory and one or more digest files on disk, wherein the one or more digest files respectively associated with one or more virtualized computing instance files corresponding to virtual disks of the one or more virtualized computing instances, each of the one or more digest files comprising hash values for blocks in its associated virtual computing instance file, the CBRC comprising one or more memory pages corresponding to the one or more virtualized computing instances and one or more hash values corresponding to the one or more memory pages;
transmitting the one or more digest files from the source virtualized computing system to the destination virtualized computing system;
transmitting the one or more memory pages and the one or more hash values of the CBRC to the destination virtualized computing system; and
for each of the one or more virtualized computing instance files to be transmitted to the destination virtualized computing system based on corresponding to the one or more virtualized computing instances being migrated:
referencing, in the source virtualized computing system, a digest file of the one or more digest files corresponding to the virtualized computing instance file with the CBRC to determine if at least one hash value in the digest file is also in a CBRC at the destination virtualized computing system,
responsive to determining that the at least one hash value in the digest file is in the CBRC at the destination virtualized computing system, marking, by the migration assist agent, the virtualized computing instance file as complete and refraining from transmitting the virtualized computing instance file corresponding to the digest file of the one or more digest files to the destination virtualized computing system, and
responsive to determining that the at least one hash value in the digest file is not in the CBRC at the destination virtualized computing system, transmitting the virtualized computing instance file, corresponding to the digest file of the one or more digest files to the destination virtualized computing system.

### Claim 2 (depends on 1)

The method of claim 1, wherein a second migration workflow executed in the destination virtualized computing system comprises:
receiving, at the destination virtualized computing system, the one or more digest files;
creating, at the destination virtualized computing system, one or more directory structures for each of the one or more digest files;
for each digest file at the destination virtualized computing system, comparing, at the destination virtualized computing system, a hash value contained therein to the one or more hash values in the CBRC at the destination virtualized computing system; and
responsive to determining that the hash value for a first digest file is in the CBRC, marking a memory page that is associated with the first digest file and in the CBRC at the destination virtualized computing system as received.

### Claim 3 (depends on 2)

The method of claim 2, the second migration workflow further comprising:
responsive to determining that another hash value for a second digest file is not in the CBRC, requesting a second memory page to be transmitted from the source virtualized computing system.

### Claim 4 (depends on 2)

The method of claim 2, the first migration workflow further comprising:
simulating a destination host in the source virtualized computing system, such that the destination host is compatible with a source host in the source virtualized computing system.

### Claim 5 (depends on 1)

The method of claim 1, wherein a second migration workflow executed in the destination virtualized computing system comprises:
simulating a source host in the destination virtualized computing system, such that the source host is compatible with a destination host in the destination virtualized computing system.

### Claim 6

A computer system, comprising:
a processor; and
a memory storing program code, which, when executed on the processor, performs a method of migrating a one or more virtualized computing instances between source and destination virtualized computing systems, the method comprising:
executing a first migration workflow in the source virtualized computing system, where one or more host computers in the source virtualized computing system executing the one or more virtualized computing instances are source hosts in the first migration workflow, the executing of the first migration workflow causing a migration assist agent to perform steps comprising:
generating, in the source virtualized computing system, a content based read cache (CBRC) in memory and one or more digest files on disk, wherein the one or more digest files respectively associated with one or more virtualized computing instance files corresponding to virtual disks of the one or more virtualized computing instances, each of the one or more digest files comprising hash values for blocks in its associated virtual computing instance file, the CBRC comprising one or more memory pages corresponding to the one or more virtualized computing instances and one or more hash values corresponding to the one or more memory pages;
transmitting the one or more digest files from the source virtualized computing system to the destination virtualized computing system;
transmitting the one or more memory pages and the one or more hash values of the CBRC to the destination virtualized computing system; and
for each of the one or more virtualized computing instance files to be transmitted to the destination virtualized computing system based on corresponding to the one or more virtualized computing instances being migrated:
referencing, in the source virtualized computing system, a digest file of the one or more digest files corresponding to the virtualized computing instance file with the CBRC to determine if at least one hash value in the digest file is also in a CBRC at the destination virtualized computing system,
responsive to determining that the at least one hash value in the digest file is in the CBRC at the destination virtualized computing system, marking, by the migration assist agent, the virtualized computing instance file as complete and refraining from transmitting the virtualized computing instance file corresponding to the digest file of the one or more digest files to the destination virtualized computing system, and
responsive to determining that the at least one hash value in the digest file is not in the CBRC at the destination virtualized computing system, transmitting the virtualized computing instance file, corresponding to the digest file of the one or more digest files to the destination virtualized computing system.

### Claim 7 (depends on 6)

The computer system of claim 6, wherein a second migration workflow executed in the destination virtualized computing system comprises:
receiving, at the destination virtualized computing system, the one or more digest files;
creating, at the destination virtualized computing system, one or more directory structures for each of the one or more digest files;
for each digest file at the destination virtualized computing system, comparing, at the destination virtualized computing system, a hash value contained therein to the one or more hash values in the CBRC at the destination virtualized computing system; and
responsive to determining that the hash value for a first digest file is in the CBRC, marking a memory page that is associated with the first digest file and in the CBRC at the destination virtualized computing system as received.

### Claim 8 (depends on 7)

The computer system of claim 7, the second migration workflow further comprising:
responsive to determining that another hash value for a second digest file is not in the CBRC, requesting a second memory page to be transmitted from the source virtualized computing system.

### Claim 9 (depends on 7)

The computer system of claim 7, the first migration workflow further comprising:
simulating a destination host in the source virtualized computing system, such that the destination host is compatible with a source host in the source virtualized computing system.

### Claim 10 (depends on 6)

The computer system of claim 6, wherein a second migration workflow executed in the destination virtualized computing system comprises:
simulating a source host in the destination virtualized computing system, such that the source host is compatible with a destination host in the destination virtualized computing system.

### Claim 11 (depends on 6)

The computer system of claim 6, wherein there is a one-to-one correspondence between digest files and virtualized computing instance files.

### Claim 12

A non-transitory computer readable medium comprising instructions, which when executed in a computer system, causes the computer system to carry out a method of migrating one or more virtualized computing instances between source and destination virtualized computing systems, the method comprising:
executing a first migration workflow in the source virtualized computing system, where one or more host computers in the source virtualized computing system executing the one or more virtualized computing instances are source hosts in the first migration workflow, the executing of the first migration workflow causing a migration assist agent to perform steps comprising:
generating, in the source virtualized computing system, a content based read cache (CBRC) in memory and one or more digest files on disk, wherein the one or more digest files respectively associated with one or more virtualized computing instance files corresponding to virtual disks of the one or more virtualized computing instances, each of the one or more digest files comprising hash values for blocks in its associated virtual computing instance file, the CBRC comprising one or more memory pages corresponding to the one or more virtualized computing instances and one or more hash values corresponding to the one or more memory pages;
transmitting the one or more digest files from the source virtualized computing system to the destination virtualized computing system;
transmitting the one or more memory pages and the one or more hash values of the CBRC to the destination virtualized computing system; and
for each of the one or more virtualized computing instance files to be transmitted to the destination virtualized computing system based on corresponding to the one or more virtualized computing instances being migrated:
referencing, in the source virtualized computing system, a digest file of the one or more digest files corresponding to the virtualized computing instance file with the CBRC to determine if at least one hash value in the digest file is also in a CBRC at the destination virtualized computing system,
responsive to determining that the at least one hash value in the digest file is in the CBRC at the destination virtualized computing system, marking, by the migration assist agent, the virtualized computing instance file as complete and refraining from transmitting the virtualized computing instance file corresponding to the digest file of the one or more digest files to the destination virtualized computing system, and
responsive to determining that the at least one hash value in the digest file is not in the CBRC at the destination virtualized computing system, transmitting the virtualized computing instance file, corresponding to the digest file of the one or more digest files to the destination virtualized computing system.

### Claim 13 (depends on 12)

The non-transitory computer readable medium of claim 12, wherein a second migration workflow executed in the destination virtualized computing system comprises:
receiving, at the destination virtualized computing system, the one or more digest files;
creating, at the destination virtualized computing system, one or more directory structures for each of the one or more digest files;
for each digest file at the destination virtualized computing system, comparing, at the destination virtualized computing system, a hash value contained therein to the one or more hash values in the CBRC at the destination virtualized computing system; and
responsive to determining that the hash value for a first digest file is in the CBRC, marking a memory page that is associated with the first digest file and in the CBRC at the destination virtualized computing system as received.

### Claim 14 (depends on 13)

The non-transitory computer readable medium of claim 13, the second migration workflow further comprising:
responsive to determining that another hash value for a second digest file is not in the CBRC, requesting a second memory page to be transmitted from the source virtualized computing system.

### Claim 15 (depends on 13)

The non-transitory computer readable medium of claim 13, the first migration workflow further comprising:
simulating a destination host in the source virtualized computing system, such that the destination host is compatible with a source host in the source virtualized computing system.

### Claim 16 (depends on 12)

The non-transitory computer readable medium of claim 12, wherein a second migration workflow executed in the destination virtualized computing system comprises:
simulating a source host in the destination virtualized computing system, such that the source host is compatible with a destination host in the destination virtualized computing system.
