Patent ID: 11928490
Assignee: HUAWEI CLOUD COMPUTING TECHNOLOGIES CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G  H | IPC G  H

Claim 9:
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.