IP Library Granted Patent US 11,777,830
Granted Patent B2
US 11,777,830 · App. 17/068,325 · Granted Oct 3, 2023

Virtual machine status probe method, and device

Inventor: Xiaowen Li (Shenzhen, CN)
Assignee: HUAWEI CLOUD COMPUTING TECHNOLGIES CO., LTD.
H04L43/12G06F9/45558H04L12/4641G06F2009/45562G06F2009/45591G06F2009/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,777,830
App. No.
17/068,325
Granted
Oct 3, 2023
Kind
B2
Abstract

A virtual machine status probe method includes obtaining an invocation message and an identifier of a first virtual machine, invoking a probe script based on the invocation message, and transferring the identifier of the first virtual machine to the probe script, sending a probe packet to a source device by running the probe script, receiving feedback information sent by the source device, where the feedback information is used to indicate the status of the first virtual machine, and determining, based on the feedback information, whether to recreate the first virtual machine in the destination device.

Claims (62)

1. A virtual machine status probe method implemented by a destination device, comprising:

obtaining an invocation message and a probe virtual local area network (VLAN) identifier of a first service plane in which a first virtual machine is located;

invoking a probe script based on the invocation message;

transferring the first identifier to the probe script;

sending a probe packet by running the probe script, wherein the probe packet probes a status of the first virtual machine in a source device, wherein the probe packet is a broadcast packet when a first probe port of the source device and a second probe port of the destination device are located in a same VLAN, and wherein the probe packet comprises the probe VLAN identifier;

receiving feedback information from the source device in response to the probe packet, wherein the feedback information indicates the status; and

determining, based on the feedback information, whether to recreate the first virtual machine in the destination device.

2. The virtual machine status probe method of claim 1 , further comprising:

receiving the probe VLAN identifier from a management device;

configuring the second probe port in the first service plane;

configuring the probe VLAN identifier for the second probe port; and

sending the probe packet through the second probe port.

3. The virtual machine status probe method of claim 1 , wherein the probe packet is a unicast packet when the source device communicates with the destination device through an overlay network, and wherein the probe packet comprises a second identifier of a first tunnel port of the source device.

4. The virtual machine status probe method of claim 3 , further comprising:

obtaining, from a management device based on the first identifier, the second identifier; and

sending the probe packet through a second tunnel port of the destination device.

5. The virtual machine status probe method of claim 1 , wherein before obtaining the invocation message, the virtual machine status probe method further comprises sending a first message to a server, and wherein the first message requests disk storage information of the first virtual machine in the server and determines the status of the first virtual machine based on a storage plane of the first virtual machine.

6. The virtual machine status probe method of claim 1 , further comprising:

determining not to recreate the first virtual machine in the destination device when the feedback information indicates that the status of the first virtual machine in the source device is normal; or

determining to recreate the first virtual machine in the destination device when the feedback information indicates that the status of the first virtual machine in the source device is faulty.

7. The virtual machine status probe method of claim 1 , wherein the broadcast packet comprises includes a destination media access control (MAC) address and a source MAC address.

8. A destination device, comprising:

a processor; and

a memory coupled to the processor and configured to store instructions that, when executed by the processor, cause the destination device to be configured to:

obtain an invocation message and a first identifier of a probe virtual local area network (VLAN) first service plane in which a virtual machine is located;

invoke a probe script based on the invocation message;

transfer the first identifier to the probe script;

send a probe packet by running the probe script, wherein the probe packet probes a status of the first virtual machine in a source device, and wherein the probe packet is a broadcast packet when a first probe port of the source device and a second probe port of the destination device are located in a same VLAN, and wherein the probe packet comprises the probe VLAN identifier;

receive feedback information from the source device in response to the probe packet, wherein the feedback information indicates the status of the first virtual machine; and

determine, based on the feedback information, whether to recreate the first virtual machine in the destination device.

9. The destination device of claim 8 , wherein the instructions further cause the destination device to be configured to:

receive the probe VLAN identifier from a management device;

configure the second probe port in the first service plane;

configure the probe VLAN identifier for the second probe port; and

send the probe packet through the second probe port.

10. The destination device of claim 8 , wherein the probe packet is a unicast packet when the source device communicates with the destination device through an overlay network, and wherein the probe packet comprises a second identifier of a first tunnel port of the source device.

11. The destination device of claim 10 , wherein the instructions further cause the destination device to be configured to:

obtain, from a management device based on the first identifier, the second identifier; and

send the probe packet through a second tunnel port of the destination device.

12. The destination device of claim 8 , wherein the instructions further cause the destination device to be configured to send a first message to a server, and wherein the first message requests disk storage information of the first virtual machine in the server and determines the status of the first virtual machine based on a storage plane of the first virtual machine.

13. The destination device of claim 8 , wherein the instructions further cause the destination device to be configured to:

determine not to recreate the first virtual machine in the destination device when the feedback information indicates that the status of the first virtual machine in the source device is normal; or

determine to recreate the first virtual machine in the destination device when the feedback information indicates that the status of the first virtual machine in the source device is faulty.

14. The destination device of claim 8 , wherein the broadcast packet comprises includes a destination media access control (MAC) address and a source MAC address.

15. A computer program product comprising computer-executable instructions stored on a non-transitory computer-readable medium that, when executed by a processor, cause a destination device to:

obtain an invocation message and a probe virtual local area network (VLAN) identifier of a first service plane in which a first virtual machine is located;

invoke a probe script based on the invocation message;

transfer the first identifier to the probe script;

send a probe packet by running the probe script, wherein the probe packet probes a status of the first virtual machine in a source device, wherein the probe packet is a broadcast packet when a first probe port of the source device and a second probe port of the destination device are located in a same VLAN, and wherein the probe packet comprises the probe VLAN identifier;

receive feedback information from the source device in response to the probe packet, wherein the feedback information indicates the status of the first virtual machine; and

determine, based on the feedback information, whether to recreate the first virtual machine in the destination device.

16. The computer program product of claim 15 , wherein the instructions further cause the destination device to:

receive the probe VLAN identifier from a management device;

configure the second probe port in the first service plane;

configure the probe VLAN identifier for the second probe port; and

send the probe packet through the second probe port.

17. The computer program product of claim 15 , wherein the probe packet is a unicast packet when the source device communicates with the destination device through an overlay network, and wherein the probe packet comprises a second identifier of a first tunnel port of the source device.

18. The computer program product of claim 17 , wherein the instructions further cause the destination device to:

obtain, from a management device based on the first identifier, the second identifier; and

send the probe packet through a second tunnel port of the destination device.

19. The computer program product of claim 15 , wherein the instructions further cause the destination device to send a first message to a server, and wherein the first message requests disk storage information of the first virtual machine in the server and determines the status of the first virtual machine based on a storage plane of the first virtual machine.

20. The computer program product of claim 15 , wherein the broadcast packet comprises includes a destination media access control (MAC) address and a source MAC address.

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 Nov 23, 2020
From: LI, XIAOWEN
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 054441/0804 →