IP Library Granted Patent US 11,928,490
Granted Patent B2
US 11,928,490 · App. 16/950,291 · Granted Mar 12, 2024

Virtual machine migration method and data center

Inventors: Na Zhu (Hangzhou, CN); Fei Rao (Hangzhou, CN)
Assignee: HUAWEI CLOUD COMPUTING TECHNOLOGIES CO., LTD.
G06F9/45558H04L12/4641H04L49/70G06F2009/45562G06F2009/4557G06F2009/45595
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,928,490
App. No.
16/950,291
Granted
Mar 12, 2024
Kind
B2
Abstract

After obtaining a virtual machine migration message, a control node performs first network configuration on a virtual switch of a new virtual machine. After performing the first network configuration, the control node creates the new virtual machine, and performs second network configuration on a second virtual switch in a virtual network in which a to-be-migrated virtual machine is located. In the present application, before the new virtual machine is created, a network connection of the to-be-migrated virtual machine is maintained, and a part of network configuration for the new virtual machine is completed.

Claims (68)

1. A method for virtual machine migration and comprising:

obtaining, by a control node, a virtual machine migration message comprising location information of a first virtual switch for connecting to a first virtual machine;

performing, by the control node, a first network configuration on the first virtual switch based on the location information to enable the first virtual switch to forward a packet received from another virtual machine to the first virtual machine based on the first network configuration;

creating, by the control node after performing the first network configuration, the first virtual machine to complete a same service as a second virtual machine; and

performing, by the control node, a second network configuration on a second virtual switch for connecting to a third virtual machine.

2. The method of claim 1 , further comprising forwarding, by the first virtual switch, to the first virtual machine, and based on the first network configuration, a first packet from the third virtual machine.

3. The method of claim 2 , further comprising forwarding, by the second virtual switch, to the third virtual machine, and based on the second network configuration, a second packet from the first virtual machine.

4. The method of claim 3 , further comprising performing, by the control node, a third network configuration on a router deployed in a virtual network comprising the second virtual machine.

5. The method of claim 4 , further comprising forwarding, by the router, to the first virtual machine, and based on the third network configuration, a third packet from a cross-subnet virtual machine, wherein the cross-subnet virtual machine and the second virtual machine are located in different subnets.

6. The method of claim 5 , further comprising forwarding, by the router to the cross-subnet virtual machine, the second packet.

7. The method of claim 1 , wherein the first virtual machine and the second virtual machine have a same Internet Protocol (IP) address.

8. The method of claim 7 , further comprising performing, by the control node, a fourth network configuration on the second virtual switch to enable the third virtual machine to not forward a packet to the second virtual machine.

9. The method of claim 1 , further comprising deleting, by the control node, the second virtual machine.

10. A method for virtual machine migration and comprising:

obtaining, by a control node, a virtual machine migration message comprising location information of a first virtual switch, wherein the first virtual switch is configured to connect to a first virtual machine;

performing, by the control node, a first network configuration on the first virtual switch based on the location information;

performing, by the control node, a second network configuration on a router deployed in a virtual network comprising a second virtual machine;

creating, by the control node after performing the first network configuration and the second network configuration, the first virtual machine, wherein the first virtual machine is configured to complete a same service as the second virtual machine;

forwarding, by the router, to a cross-subnet virtual machine, and based on the second network configuration, a first packet from the first virtual machine, wherein the cross-subnet virtual machine and the second virtual machine are located in different subnets;

performing, by the control node, a third network configuration on a second virtual switch, wherein the second virtual switch is configured to connect to a third virtual machine; and

performing, by the control node, a fourth network configuration on the router to enable the router to forward a second packet from the cross-subnet virtual machine to the first virtual machine.

11. The method of claim 10 , further comprising:

sending, by the first virtual switch, to the first virtual machine, and based on the first network configuration, a third packet from the third virtual machine; and

sending, by the second virtual switch, to the third virtual machine, and based on the third network configuration, a fourth packet from the first virtual machine.

12. The method of claim 10 , further comprising deleting, by the control node, the second virtual machine.

13. A data center comprising:

a second virtual machine;

a first virtual machine configured to complete a same service as the second virtual machine;

a first virtual switch configured to:

connect to the first virtual machine; and

forward a packet received from another virtual machine to the first virtual machine based on a first network configuration;

a third virtual machine configured to connect to the second virtual machine;

a second virtual switch configured to connect to the third virtual machine; and

a control node configured to:

obtain a virtual machine migration message comprising location information of the first virtual switch;

perform the first network configuration on the first virtual switch based on the location information;

create, after performing the first network configuration, the first virtual machine; and

perform a second network configuration on the second virtual switch.

14. The data center of claim 13 , wherein the first virtual switch is configured to forward, to the first virtual machine based on the first network configuration, a first packet from the third virtual machine, and wherein the second virtual switch is configured to forward, to the third virtual machine based on the second network configuration, a second packet from the first virtual machine.

15. The data center of claim 13 , further comprising:

a router configured to deploy in a virtual network comprising the second virtual machine; and

a cross-subnet virtual machine,

wherein the cross-subnet virtual machine and the second virtual machine are located in different subnets,

wherein the control node is further configured to perform a third network configuration on the router, and

wherein the router is configured to:

forward, to the first virtual machine based on the third network configuration, a first packet from the cross-subnet virtual machine, and

forward, to the cross-subnet virtual machine, a second packet from the first virtual machine.

16. The data center of claim 13 , wherein the first virtual machine and the second virtual machine have a same Internet Protocol (IP) address, and wherein the control node is further configured to perform a fourth network configuration on the second virtual switch to enable the third virtual machine to not forward a packet to the second virtual machine.

17. The data center of claim 13 , wherein the control node is further configured to delete the second virtual machine.

18. A data center comprising:

a first virtual switch;

a router;

a second virtual machine;

a third virtual machine;

a second virtual switch;

a cross-subnet virtual machine; and

a control node configured to:

obtain a virtual machine migration message comprising location information of the first virtual switch;

perform a first network configuration on the first virtual switch based on the location information;

perform a second network configuration on the router;

create, after performing the first network configuration and the second network configuration, a first virtual machine, wherein the first virtual machine is configured to complete a same service as the second virtual machine;

perform a third network configuration on the second virtual switch; and

perform a fourth network configuration on the router,

wherein the router is configured to:

forward, to the cross-subnet virtual machine and based on the second network configuration, a first packet from the first virtual machine; and

forward, to the first virtual machine and based on the fourth network configuration, a packet from the cross-subnet virtual machine.

19. The data center of claim 18 , wherein the first virtual switch is configured to send, to the first virtual machine and based on the first network configuration, a third packet from the third virtual machine, and wherein the second virtual switch is configured to send, to the third virtual machine and based on the third network configuration, a fourth packet from the first virtual machine.

20. The data center of claim 18 , wherein the control node is further configured to delete the second virtual machine.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 1, 2022
From: HUAWEI TECHNOLOGIES CO., LTD.
To: HUAWEI CLOUD COMPUTING TECHNOLOGIES CO., LTD.
Reel/Frame 059267/0088 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 1, 2020
From: ZHU, NA; RAO, FEI
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 054504/0941 →