# US 2021/0334124 A1 · Virtual machine live migration with seamless network connectivity

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

- Number: US 2021/0334124 A1
- Document ID: US20210334124A1
- Status: Published application
- Kind: A1
- Application number: 16/861,165
- Filed: 2020-04-28
- Published: 2021-10-28
- Earliest claimed: 2020-04-28
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Joseph Liu; Marc Cochran; Alexander T. Iannicelli
- Web page: https://patentgrep.com/patent/US20210334124A1

## CPC

- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 2009/4557: {Distribution of virtual machine instances; Migration and load balancing}
- 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)

## Abstract

A virtual machine live migration is performed. A port minoring rule for a source virtual machine in source computer is created by a computer system such that ingress traffic received at the source computer for the source virtual machine is delivered to both the source virtual machine and a target virtual machine on a target computer. The port minoring rule is established prior to the virtual machine live migration from the source virtual machine to the target virtual machine. The source virtual machine on the source computer is migrated by the computer system to the target virtual machine on the target computer in which the port minoring rule directs the ingress traffic to both the source virtual machine and the target virtual machine while the source virtual machine is migrated from the source computer to the target virtual machine on the target computer during the virtual machine live migration.

## Claims

### Claim 1

A method for a virtual machine live migration, the method comprising:
creating, by a computer system, a port minoring rule for a source virtual machine in a source computer such that ingress traffic received at the source computer for the source virtual machine is delivered to both the source virtual machine and a target virtual machine on a target computer, wherein the port mirroring rule is established prior to the virtual machine live migration from the source virtual machine to the target virtual machine; and
migrating, by the computer system, the source virtual machine on the source computer to the target virtual machine on the target computer in which the port minoring rule directs the ingress traffic to both the source virtual machine and the target virtual machine while the source virtual machine is migrated from the source computer to the target virtual machine on the target computer during the virtual machine live migration.

### Claim 2 (depends on 1)

The method of claim 1 further comprising:
directing, by the computer system, the ingress traffic received at the source computer for the source virtual machine to both the source virtual machine on the source computer and the target virtual machine on the target computer using the port minoring rule.

### Claim 3 (depends on 1)

The method of claim 1, wherein the port mirroring rule comprises at least one of a layer-2 rule that redirects mirrored traffic to a media access controller address for a virtual network interface controller for the target virtual machine or a layer-3 rule that redirects the mirrored traffic to an Internet Protocol address for the virtual network interface controller for the target virtual machine.

### Claim 4 (depends on 1)

The method of claim 1 further comprising:
creating, by the computer system, a set of egress rules to a set of virtual machines communicating with the source virtual machine prior to the virtual machine live migration.

### Claim 5 (depends on 1)

The method of claim 1, wherein a network connectivity to both to the source virtual machine and the target virtual machine is maintained during the virtual machine live migration with all other virtual machines using the port mirroring rule.

### Claim 6 (depends on 1)

The method of claim 1, wherein migrating, by the computer system, the source virtual machine on the source computer to the target virtual machine on the target computer comprises:
transferring, by the computer system, a memory and dirty pages from the source virtual machine to the target virtual machine while the source virtual machine is running and the target virtual machine is in a pause state, wherein the port mirroring rule directs the ingress traffic received at the source computer for the source virtual machine to both the source virtual machine and the target virtual machine while the source virtual machine is running and the target virtual machine in the pause state;
placing, by the computer system, the source virtual machine into the pause state;
transferring, by the computer system, a state of the source virtual machine and any remaining dirty pages to the target virtual machine in the pause state; and
resuming, by the computer system, the target virtual machine after the state of the source virtual machine and any remaining dirty pages are transferred to the target virtual machine in the pause state.

### Claim 7 (depends on 1)

The method of claim 1 further comprising:
notifying, by the computer system, other virtual machines that the target virtual machine is present when the target virtual machine resumes operation.

### Claim 8 (depends on 1)

The method of claim 1 further comprising:
modifying an egress rule for another virtual machine from sending traffic to the source virtual machine on the source computer to the target virtual machine on the target computer;
removing the port mirroring rule; and
removing the source virtual machine after removing the port mirroring rule.

### Claim 9 (depends on 1)

The method of claim 1, wherein the port mirroring rule is implemented by a processing unit in a network adapter in the computer system.

### Claim 10

A virtual machine migration system comprising:
a computer system that creates a port mirroring rule for a source virtual machine in a source computer such that ingress traffic received at the source computer for the source virtual machine is delivered to both the source virtual machine and a target virtual machine on a target computer, wherein the port mirroring rule is established prior to a virtual machine live migration from the source virtual machine to the target virtual machine and migrates the source virtual machine on the source computer to the target virtual machine on the target computer in which the port mirroring rule directs the ingress traffic to both the source virtual machine and the target virtual machine while the source virtual machine is migrated from the source computer to the target virtual machine on the target computer during the virtual machine live migration.

### Claim 11 (depends on 10)

The virtual machine migration system of claim 10, wherein the computer system directs the ingress traffic received at the source computer for the source virtual machine to both the source virtual machine on the source computer and the target virtual machine on the target computer using the port mirroring rule.

### Claim 12 (depends on 10)

The virtual machine migration system of claim 10, wherein the port mirroring rule comprises at least one of a layer-2 rule that directs mirrored traffic to a media access controller address for a virtual network interface controller for the target virtual machine or a layer-3 rule that directs the mirrored traffic to an Internet Protocol address for the virtual network interface controller for the target virtual machine.

### Claim 13 (depends on 10)

The virtual machine migration system of claim 10, wherein the computer system creates a set of egress rules to a set of virtual machines communicating with the source virtual machine prior to the virtual machine live migration from the source virtual machine to the target virtual machine.

### Claim 14 (depends on 10)

The virtual machine migration system of claim 10, wherein a network connectivity to both to the source virtual machine and the target virtual machine is maintained during the virtual machine live migration with all other virtual machines using the port mirroring rule.

### Claim 15 (depends on 10)

The virtual machine migration system of claim 10, wherein in migrating, by the computer system, the source virtual machine on the source computer to the target virtual machine on the target computer, the computer system transfers a memory and dirty pages from the source virtual machine to the target virtual machine while the source virtual machine is running and the target virtual machine is in a pause state, wherein the port mirroring rule directs the ingress traffic received at the source computer for the source virtual machine to both the source virtual machine and the target virtual machine while the source virtual machine is running and the target virtual machine in the pause state; places the source virtual machine into the pause state; transfers, by the computer system, a state of the source virtual machine and any remaining dirty pages to the target virtual machine in the pause state; and resumes the target virtual machine after the state of the source virtual machine and any remaining dirty pages are transferred to the target virtual machine in the pause state.

### Claim 16 (depends on 10)

The virtual machine migration system of claim 10, wherein the computer system notifies other virtual machines that the target virtual machine is present when the target virtual machine resumes operation.

### Claim 17 (depends on 10)

The virtual machine migration system of claim 10, wherein the computer system modifies an egress rule for another virtual machine from sending traffic to the source virtual machine on the source computer to the virtual machine one the target computer; removes the port mirroring rule; and removes the source virtual machine after removing the port mirroring rule.

### Claim 18

A computer program product for a virtual machine live migration, the computer program product comprising:
a computer-readable storage media;
first program code, stored on the computer-readable storage media, executable by a computer system to cause the computer system to create a port mirroring rule for a source virtual machine in a source computer such that ingress traffic received at the source computer for the source virtual machine is delivered to both the source virtual machine and a target virtual machine on a target computer, wherein the port mirroring rule is established prior to the virtual machine live migration; and
second program code, stored on the computer-readable storage media, executable by a computer system to cause the computer system to migrate the source virtual machine on the source computer to the target virtual machine on the target computer in which the port mirroring rule directs the ingress traffic to both the source virtual machine and the target virtual machine while the source virtual machine is migrated from the source computer to the target virtual machine on the target computer during the virtual machine live migration.

### Claim 19 (depends on 18)

The computer program product of claim 18 further comprising:
third program code, stored on the computer-readable storage media, executable by a computer system to cause the computer system to direct the ingress traffic received at the source computer for the source virtual machine to both the source virtual machine on the source computer and the target virtual machine on the target computer using the port mirroring rule.

### Claim 20 (depends on 18)

The computer program product of claim 18 further comprising:
third program code, stored on the computer-readable storage media, executable by a computer system to cause the computer system to create a set of egress rules to a set of virtual machines communicating with the source virtual machine prior to the virtual machine live migration.
