# US 2022/0283835 A1 · Library based virtual machine migration

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

- Number: US 2022/0283835 A1
- Document ID: US20220283835A1
- Status: Published application
- Kind: A1
- Application number: 17/190,252
- Filed: 2021-03-02
- Published: 2022-09-08
- Earliest claimed: 2021-03-02
- Assignees: Red Hat, Inc.
- Applicants: Red Hat, Inc.
- Inventors: Michael Tsirkin
- Web page: https://patentgrep.com/patent/US20220283835A1

## CPC

- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 8/36: Software reuse
- G06F 2009/4557: {Distribution of virtual machine instances; Migration and load balancing}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method includes determining to migrate a guest VM from a source host to a destination host and, in response to determining to migrate the guest VM, determining that a page of the guest VM matches a page of a VM image of a plurality of VM images in a VM library associated with the source host. The method further includes forwarding an identifier of the page of the VM image to the destination host, the destination host to retrieve, in view of the identifier, the page of the VM image from a second VM library associated with the destination host to instantiate the guest VM at the destination host.

## Claims

### Claim 1

A method comprising:
determining to migrate a guest virtual machine (VM) from a source host to a destination host;
in response to determining to migrate the guest VM, determining, by a processing device, that a page of the guest VM matches a page of a VM image of a plurality of VM images in a first VM library associated with the source host; and
forwarding, by the processing device, an identifier of the page of the VM image to the destination host, the destination host to retrieve, in view of the identifier, the page of the VM image from a second VM library associated with the destination host to instantiate the guest VM at the destination host.

### Claim 2 (depends on 1)

The method of claim 1, wherein the second VM library comprises the same plurality of VM images as the first VM library.

### Claim 3 (depends on 1)

The method of claim 1, determining that the page of the guest VM matches the page of the VM image of the plurality of VM images in the first VM library comprises performing a lookup in the first VM library using content of the page of the guest VM.

### Claim 4 (depends on 1)

The method of claim 1, wherein the identifier uniquely identifies the page of the VM image of the plurality of VM images in the first VM library and the second VM library.

### Claim 5 (depends on 1)

The method of claim 1, wherein the first VM library is local to the source host and the second VM library is local to the destination host.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
determining that one or more additional pages of the guest VM matches at least one page of a VM image of the plurality of VM images in the first VM library associated with the source host; and
forwarding an identifier for each of the matched pages to the destination host.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
copying one or more pages of the guest VM that are not included in the plurality of VM images of the first VM library to the destination host.

### Claim 8

A system comprising:
a memory; and
a processing device operatively coupled to the memory, the processing device to:
determine to migrate a guest virtual machine (VM) from a source host to a destination host;
in response to determining to migrate the guest VM, determine that a page of the guest VM matches a page of a VM image of a plurality of VM images in a first VM library associated with the source host; and
forward an identifier of the page of the VM image to the destination host, the destination host to retrieve, in view of the identifier, the page of the VM image from a second VM library associated with the destination host to instantiate the guest VM at the destination host.

### Claim 9 (depends on 8)

The system of claim 8, wherein the second VM library comprises the same plurality of VM images as the first VM library.

### Claim 10 (depends on 8)

The system of claim 8, wherein to determine that the page of the guest VM matches the page of a VM image of the plurality of VM images in the first VM library the processing device is to:
perform a lookup in the first VM library using content of the page of the guest VM.

### Claim 11 (depends on 8)

The system of claim 8, wherein the identifier uniquely identifies the page of the VM image of the plurality of VM images in the first VM library and the second VM library.

### Claim 12 (depends on 8)

The system of claim 8, wherein the first VM library is local to the source host and the second VM library is local to the destination host.

### Claim 13 (depends on 8)

The system of claim 8, wherein the processing device is further to:
determine that one or more additional pages of the guest VM matches at least one page of a VM image of the plurality of VM images in the first VM library associated with the source host; and
forward an identifier for each of the matched pages to the destination host.

### Claim 14 (depends on 8)

The system of claim 8, wherein the processing device is further to:
copy one or more pages of the guest VM that are not included in the plurality of VM images of the first VM library to the destination host.

### Claim 15

A non-transitory computer-readable storage medium including instructions that, when executed by a processing device, cause the processing device to:
determine to migrate a guest virtual machine (VM) from a source host to a destination host;
in response to determining to migrate the guest VM, determine, by the processing device, that a page of the guest VM matches a page of a VM image of a plurality of VM images in a first VM library associated with the source host; and
forward, by the processing device, an identifier of the page of the VM image to the destination host, the destination host to retrieve, in view of the identifier, the page of the VM image from a second VM library associated with the destination host to instantiate the guest VM at the destination host.

### Claim 16 (depends on 15)

The non-transitory computer-readable storage medium of claim 15, wherein the second VM library comprises the same plurality of VM images as the first VM library.

### Claim 17 (depends on 15)

The non-transitory computer-readable storage medium of claim 15, wherein to determine that the page of the guest VM matches the page of a VM image of the plurality of VM images in the first VM library the processing device is to:
perform a lookup in the first VM library using content of the page of the guest VM.

### Claim 18 (depends on 15)

The non-transitory computer-readable storage medium of claim 15, wherein the identifier uniquely identifies the page of the VM image of the plurality of VM images in the first VM library and the second VM library.

### Claim 19 (depends on 15)

The non-transitory computer-readable storage medium of claim 15, wherein the first VM library is local to the source host and the second VM library is local to the destination host.

### Claim 20 (depends on 15)

The non-transitory computer-readable storage medium of claim 15, wherein the processing device is further to:
determine that one or more additional pages of the guest VM matches at least one page of a VM image of the plurality of VM images in the first VM library associated with the source host; and
forward an identifier for each of the matched pages to the destination host.
