A virtual machine migration method, wherein the method comprises: obtaining, by a control node, a virtual machine migration message, wherein the virtual machine migration message comprises location information of a first virtual switch, wherein the first virtual switch is configured to connect to a new virtual machine; performing, by the control node, first network configuration on the first virtual switch based on the location information of the first virtual switch; creating, by the control node, the new virtual machine after performing the first network configuration, wherein the new virtual machine is configured to complete a same service as a to-be-migrated virtual machine; and performing, by the control node, second network configuration on a second virtual switch, wherein the second virtual switch is connected to another virtual machine, and the another virtual machine has a communication connection to the to-be-migrated virtual machine; wherein the method further comprises: forwarding, by the first virtual switch to the new virtual machine based on the first network configuration, a packet sent by the another virtual machine; and forwarding, by the second virtual switch to the another virtual machine based on the second network configuration, a packet sent by the new virtual machine; wherein the new virtual machine and the to-be-migrated virtual machine have a same internet protocol, IP, address, and the method further comprises: performing, by the control node, fourth network configuration on the second virtual switch, wherein the fourth network configuration prevents the second virtual switch from forwarding the sent packet by the another virtual machine to the to-be-migrated virtual machine. obtaining, by a control node, a virtual machine migration message, wherein the virtual machine migration message comprises location information of a first virtual switch, wherein the first virtual switch is configured to connect to a new virtual machine; performing, by the control node, first network configuration on the first virtual switch based on the location information of the first virtual switch; creating, by the control node, the new virtual machine after performing the first network configuration, wherein the new virtual machine is configured to complete a same service as a to-be-migrated virtual machine; and performing, by the control node, second network configuration on a second virtual switch, wherein the second virtual switch is connected to another virtual machine, and the another virtual machine has a communication connection to the to-be-migrated virtual machine; wherein the method further comprises: forwarding, by the first virtual switch to the new virtual machine based on the first network configuration, a packet sent by the another virtual machine; and forwarding, by the second virtual switch to the another virtual machine based on the second network configuration, a packet sent by the new virtual machine; wherein the new virtual machine and the to-be-migrated virtual machine have a same internet protocol, IP, address, and the method further comprises: performing, by the control node, fourth network configuration on the second virtual switch, wherein the fourth network configuration prevents the second virtual switch from forwarding the sent packet by the another virtual machine to the to-be-migrated virtual machine. forwarding, by the first virtual switch to the new virtual machine based on the first network configuration, a packet sent by the another virtual machine; and forwarding, by the second virtual switch to the another virtual machine based on the second network configuration, a packet sent by the new virtual machine; wherein the new virtual machine and the to-be-migrated virtual machine have a same internet protocol, IP, address, and the method further comprises: performing, by the control node, fourth network configuration on the second virtual switch, wherein the fourth network configuration prevents the second virtual switch from forwarding the sent packet by the another virtual machine to the to-be-migrated virtual machine.