IP Library Granted Patent US 9,323,554
Granted Patent B2
US 9,323,554 · App. 14/028,073 · Granted Apr 26, 2016

Method, device, and system for migrating configuration information during live migration of virtual machine

Inventors: Zhe Zhang (Shenzhen, CN); Xiaofeng Zheng (Shenzhen, CN)
Assignee: Huawei Technologies Co., Ltd.
G06F9/45533G06F9/4856G06F9/5077
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 9,323,554
App. No.
14/028,073
Granted
Apr 26, 2016
Kind
B2
Abstract

The present disclosure discloses a method for migrating configuration information during live migration of a virtual machine. After receiving a message of live migration that a virtual machine migrates from a source physical host to a target physical host sent by a virtual machine management server, an identifier of a source forwarding switch of the virtual machine and an identifier of a target forwarding switch of the virtual machine are acquired. Prestored configuration information is sent to the target forwarding switch corresponding to the identifier of the target forwarding switch, so that the target forwarding switch stores the configuration information. A configuration information deletion instruction is sent to the source forwarding switch corresponding to the identifier of the source forwarding switch, so that the source forwarding switch deletes the prestored configuration information.

Claims (52)

1. A method for migrating configuration information during live migration of a virtual machine, the method comprising:

after receiving a message of live migration indicating that a virtual machine is migrated from a source physical host to a target physical host sent by a virtual machine management server, acquiring, by a switching control apparatus, an identifier of a source forwarding switch of the virtual machine and an identifier of a target forwarding switch of the virtual machine according to the message:

sending, by the switching control apparatus, configuration information to the target forwarding switch corresponding to the identifier of the target forwarding switch, so that the target forwarding switch stores the configuration information; and

sending, by the switching control apparatus, a configuration information deletion instruction to the source forwarding switch corresponding to the identifier of the source forwarding switch instructing the source forwarding switch to delete the configuration information.

2. The method according to claim 1 , wherein the message of the live migration carries an identifier of the virtual machine to which the live migration occurs and an identifier of the target physical host to which the virtual machine migrates; and

wherein acquiring the identifier of a source forwarding switch of the virtual machine and the identifier of the target forwarding switch of the virtual machine comprises:

determining the identifier of the source forwarding switch according to the identifier of the virtual machine; and

determining the identifier of the target forwarding switch according to the identifier of the target physical host.

3. The method according to claim 1 , wherein the message of the live migration carries an identifier of the virtual machine to which the live migration occurs and an identifier of a target forwarding switch corresponding to the target physical host to which the virtual machine migrates, and

wherein acquiring the identifier of the source forwarding switch of the virtual machine comprises determining the identifier of the source forwarding switch according to the identifier of the virtual machine.

4. The method according to claim 1 , wherein, before receiving the message of the live migration indicating that a virtual machine is migrated from a source physical host to a target physical host sent by a virtual machine management server, the method further comprises:

creating and storing configuration information; and

sending the configuration information to the source forwarding switch.

5. The method according to claim 1 , wherein, before receiving the message of the live migration, the method further comprises:

receiving and storing configuration information created by the source forwarding switch.

6. The method according to claim 1 , wherein, before receiving the message of the live migration, the method further comprises:

receiving configuration information of the virtual machine sent by the virtual machine management server; and

sending the configuration information of the virtual machine to the source forwarding switch.

7. The method according to claim 6 , wherein, after receiving the message of the live migration, the method further comprises receiving and storing updated configuration information that is sent by the virtual machine management server after the live migration of the virtual machine; and

wherein sending the configuration information to the target forwarding switch corresponding to the identifier of the target forwarding switch specifically comprises sending the updated configuration information to the target forwarding switch.

8. A non-transitory computer-readable storage medium with an executable program stored thereon, wherein the program instructs a processor of a switching control apparatus to perform the following steps:

after receiving a message of live migration indicating that a virtual machine is migrated from a source physical host to a target physical host sent by a virtual machine management server, acquiring an identifier of a source forwarding switch of the virtual machine and an identifier of a target forwarding switch of the virtual machine according to the message;

sending configuration information to the target forwarding switch corresponding to the identifier of the target forwarding switch, so that the target forwarding switch stores the configuration information; and

sending a configuration information deletion instruction to the source forwarding switch corresponding to the identifier of the source forwarding switch, so that the source forwarding switch deletes the configuration information.

9. The computer storage medium according to claim 8 , wherein, before the step of receiving the message of the live migration that a virtual machine is migrated from a source physical host to a target physical host sent by a virtual machine management server, the program instructs the processor to perform the steps of:

creating and storing configuration information; and

sending the configuration information to the source forwarding switch.

10. The computer storage medium according to claim 8 , wherein, before the step of receiving the message of the live migration that a virtual machine is migrated from a source physical host to a target physical host sent by a virtual machine management server, the program instructs the processor to perform the steps of:

receiving and storing configuration information created by the source forwarding switch.

11. The computer storage medium according to claim 8 , wherein, before the step of receiving the message of the live migration that a virtual machine is migrated from a source physical host to a target physical host sent by a virtual machine management server, the program instructs the processor to perform the steps of:

receiving configuration information of the virtual machine sent by the virtual machine management server; and

sending the configuration information of the virtual machine to the source forwarding switch.

12. The computer storage medium according to claim 11 , wherein, after the step of receiving the message of the live migration that a virtual machine is migrated from a source physical host to a target physical host sent by a virtual machine management server, the program instructs the processor to perform the steps of:

receiving and storing updated configuration information that is sent by the virtual machine management server after the live migration of the virtual machine; and

wherein the step of sending configuration information to the target forwarding switch corresponding to the identifier of the target forwarding switch comprises sending the updated configuration information to the target forwarding switch.

13. A switching control device, comprising:

an input apparatus, configured to receive a message of live migration indicating that a virtual machine is migrated from a source physical host to a target physical host sent by a virtual machine management server;

a processor, configured to acquire an identifier of a source forwarding switch of the virtual machine and an identifier of a target forwarding switch of the virtual machine according to the message;

a memory coupled to the processor; and

an output apparatus, configured to send configuration information to the target forwarding switch corresponding to the identifier of the target forwarding switch, so that the target forwarding switch stores the configuration information and to send a configuration information deletion instruction to the source forwarding switch corresponding to the identifier of the source forwarding switch, so that the source forwarding switch deletes the configuration information.

14. The switching control device according to claim 13 , wherein the message of the live migration carries an identifier of the virtual machine to which the live migration occurs and an identifier of the target physical host to which the virtual machine migrates; and

wherein the processor is configured to determine the identifier of the source forwarding switch according to the identifier of the virtual machine and determine the identifier of the target forwarding switch according to the identifier of the target physical host.

15. The switching control device according to claim 13 , wherein the message of the live migration carries an identifier of the virtual machine to which the live migration occurs and an identifier of a target forwarding switch corresponding to the target physical host to which the virtual machine migrates; and

wherein the processor is configured to determine the identifier of the source forwarding switch according to the identifier of the virtual machine.

16. The switching control device according to claim 13 , wherein: the processor is further configured to create configuration information;

the memory is configured to store the configuration information; and the output apparatus is further configured to send the configuration information to the source forwarding switch.

17. The switching control device according to claim 13 , wherein: the input apparatus is further configured to receive configuration information created by the source forwarding switch; and

the memory is configured to store the configuration information.

18. The switching control device according to claim 13 , wherein: the input apparatus is further configured to receive configuration information of the virtual machine sent by the virtual machine management server, and

the output apparatus is further configured to send the configuration information of the virtual machine to the source forwarding switch.

19. The switching control device according to claim 18 , wherein: the input apparatus is further configured to receive updated configuration information that is sent by the virtual machine management server after the live migration of the virtual machine; and

the output apparatus is further configured to send the updated configuration information to the target forwarding switch.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Oct 6, 2014
From: ZHANG, ZHE; ZHENG, XIAOFENG
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 033889/0853 →
Priority Claims (1)
CN 2012 1 0440895 · Nov 7, 2012 · national
Continuity (1)
Related Publication 20140130044A1 · May 8, 2014