Virtual machine status probe method, and device
AssigneeHuawei Cloud Computing Technolgies Co., Ltd.
InventorXiaowen Li
Life of this patent
Estimating the term…
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.
Claims20
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.
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.
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.
Dependencies are inferred from the claim text.