CN105955798A - Method, device and system for detecting abnormal state of virtual machine in cloud platform - Google Patents

Method, device and system for detecting abnormal state of virtual machine in cloud platform Download PDF

Info

Publication number
CN105955798A
CN105955798A CN201610282795.9A CN201610282795A CN105955798A CN 105955798 A CN105955798 A CN 105955798A CN 201610282795 A CN201610282795 A CN 201610282795A CN 105955798 A CN105955798 A CN 105955798A
Authority
CN
China
Prior art keywords
virtual machine
instruction
execution result
agency
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610282795.9A
Other languages
Chinese (zh)
Inventor
霍明明
许斯亮
赵鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201610282795.9A priority Critical patent/CN105955798A/en
Publication of CN105955798A publication Critical patent/CN105955798A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45591Monitoring or debugging support

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a method, device and system for detecting an abnormal state of a virtual machine in a cloud platform, wherein the method comprises the following steps of: sending an execution instruction to a virtual machine agent on a host machine, where the virtual machine is, wherein one virtual machine corresponds to one virtual machine agent; receiving an instruction execution result returned by the virtual machine agent; and analyzing the instruction execution result, and judging whether the state of the corresponding virtual machine is abnormal or not according to the analysis result. By means of the method, the device and the system, whether the virtual machine in the cloud platform is in the abnormal state can be judged more accurately; and furthermore, the method has the characteristics of being rapid in detection speed, high-efficiency, accurate and easy to use.

Description

A kind of detect the methods, devices and systems of virtual machine abnormality in cloud platform
Technical field
The present invention relates to field of computer technology, be specifically related to virtual machine exception shape in a kind of detection cloud platform The methods, devices and systems of state.
Background technology
In cloud platform, dispose virtual machine can improve the efficiency of the work such as software development test, and the completeest Becoming the premise of these work is that virtual machine is in the state of normal work rather than is in abnormality, the most just Need the state of virtual machine is detected.In prior art, whether the virtual machine in detection cloud platform is located In abnormality method usually, send Ping instruction to virtual machine, check that can connect this virtual Machine.But this method can only judge and the most unimpeded between the network of virtual machine, this void might not be represented Plan machine is in normal condition, such as, under the scene of virtual machine kernel collapse, the network interface card of virtual machine still may be used With normal work, thus correctly return packet when receiving Ping instruction, cause attendant wrong Thinking that this virtual machine is not in abnormality, such judgement is inaccurate by mistake.
Summary of the invention
In view of the above problems, it is proposed that the present invention is to provide one to overcome the problems referred to above or at least partly The methods, devices and systems of virtual machine abnormality in the detection cloud platform of ground solution the problems referred to above.
According to one aspect of the present invention, it is provided that a kind of detect the side of virtual machine abnormality in cloud platform Method, including:
Virtual machine agency on the host of virtual machine place sends and performs instruction;Wherein, a virtual machine Corresponding virtual machine agency;
Receive the instruction execution result that described virtual machine agency returns;
Analyze described instruction execution result and judge that the state of respective virtual machine is the most different according to analysis result Often.
Alternatively, described method farther includes:
When judging that the state of corresponding virtual machine, as time abnormal, sends anomalous event notification message.
Alternatively, described virtual machine agency on the host of virtual machine place sends and performs instruction further Including: perform instruction by the serial equipment of described virtual machine to the agency's transmission of described virtual machine;
The instruction execution result that described reception described virtual machine agency returns farther includes: by described void The serial equipment of plan machine receives the instruction execution result that described virtual machine agency returns.
Alternatively, described method farther includes:
Creating before virtual machine, stamp for the mirror image of virtual machine to be created and represent the label starting serial equipment, So that be that this virtual machine adds serial equipment when creating virtual machine.
Alternatively, one or more performed during instruction includes as follows described:
Ping instructs;
Perform the instruction of designated program;
Create the instruction of file;
Delete the instruction of file.
Alternatively, analyze described instruction execution result and judge the state of respective virtual machine according to analysis result The most extremely one or more in including as follows:
Execution result according to Ping instruction, it is judged that the network of respective virtual machine is the most unimpeded;
Execution result according to the instruction performing designated program, it is judged that whether the kernel of respective virtual machine damages;
Execution result according to the instruction creating and/or deleting file, it is judged that the memory space of respective virtual machine The most abnormal.
Alternatively, described transmission anomalous event notification message includes:
Anomalous event notification message is sent in the message queue that each host shares, thus by this message Message in individual queue is sent to specify position by the manager of queue.
According to another aspect of the present invention, it is provided that a kind of detect the dress of virtual machine abnormality in cloud platform Put, including:
Act on behalf of interactive unit, be suitable to the agency's transmission of the virtual machine on the host of virtual machine place and perform instruction; And be suitable to receive the instruction execution result that described virtual machine agency returns, wherein, a virtual machine correspondence One virtual machine agency;
Judging unit, is suitable to analyze described instruction execution result and judge respective virtual machine according to analysis result State whether abnormal.
Alternatively, this device farther includes:
Notification unit, is suitable to when judging that the state of corresponding virtual machine, as time abnormal, send anomalous event and leads to Know message.
Alternatively, described act on behalf of interactive unit, be suitable to the serial equipment by described virtual machine to described void Plan machine agency sends and performs instruction;And be suitable to receive described virtual by the serial equipment of described virtual machine The instruction execution result that machine agency returns.
Alternatively, described device farther includes:
Tag processes unit, is suitable to before creating virtual machine, and the mirror image for virtual machine to be created stamps expression Start the label of serial equipment, so that be that this virtual machine adds serial equipment when creating virtual machine.
Alternatively, one or more performed during instruction includes as follows described:
Ping instructs;
Perform the instruction of designated program;
Create the instruction of file;
Delete the instruction of file.
Alternatively, described judging unit, one or more in being adapted for carrying out as follows:
Execution result according to Ping instruction, it is judged that the network of respective virtual machine is the most unimpeded;
Execution result according to the instruction performing designated program, it is judged that whether the kernel of respective virtual machine damages;
Execution result according to the instruction creating and/or deleting file, it is judged that the memory space of respective virtual machine The most abnormal.
Alternatively, described notification unit, be suitable to that anomalous event notification message is sent to each host and share Message queue in, thus be sent to each message in message queue to refer to by the manager of this message queue Location is put.
According to another aspect of the present invention, it is provided that a kind of detect virtual machine abnormality in cloud platform be System, including: virtual machine in manager, memorizer and multiple detection cloud platform as described in above-mentioned any one The device of abnormality;
Wherein, in the plurality of detection cloud platform, the device of virtual machine abnormality is disposed and multiple places respectively On main frame;
Described memorizer is suitable to store message queue;
Described manager is suitable to be sent to each message in message queue specify position.
From the foregoing, technical scheme, by arranging one on the host of each virtual machine Individual virtual machine is acted on behalf of, and when detection, the virtual machine agency on the host of virtual machine place sends execution and refers to Order, the instruction execution result returning the virtual machine agency received is analyzed, and sentences according to analysis result The state of disconnected respective virtual machine is the most abnormal.This technical scheme can more precisely judge in cloud platform empty Whether plan machine is in abnormality, and detects speed the most quickly, the most compared with prior art has The feature of efficiently and accurately, it is easy to practical.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the skill of the present invention Art means, and can being practiced according to the content of description, and in order to allow, the present invention's is above and other Objects, features and advantages can become apparent, below especially exemplified by the detailed description of the invention of the present invention.
Accompanying drawing explanation
By reading the detailed description of hereafter preferred implementation, various other advantage and benefit for this Field those of ordinary skill will be clear from understanding.Accompanying drawing is only used for illustrating the purpose of preferred implementation, And it is not considered as limitation of the present invention.And in whole accompanying drawing, be denoted by the same reference numerals Identical parts.In the accompanying drawings:
Fig. 1 shows virtual machine abnormality in a kind of according to an embodiment of the invention detection cloud platform The schematic flow sheet of method;
Fig. 2 shows virtual machine abnormality in a kind of according to an embodiment of the invention detection cloud platform The structural representation of device;And
Fig. 3 shows virtual machine abnormality in a kind of according to an embodiment of the invention detection cloud platform The structural representation of system.
Detailed description of the invention
It is more fully described the exemplary embodiment of the disclosure below with reference to accompanying drawings.Although accompanying drawing shows The exemplary embodiment of the disclosure, it being understood, however, that may be realized in various forms the disclosure and not Should be limited by embodiments set forth here.On the contrary, it is provided that these embodiments are able to more thoroughly Understand the disclosure, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
Fig. 1 shows virtual machine abnormality in a kind of according to an embodiment of the invention detection cloud platform The schematic flow sheet of method, as it is shown in figure 1, the method includes:
Step S110, the virtual machine agency on the host of virtual machine place sends and performs instruction;Wherein, One virtual machine corresponding virtual machine agency.
Step S120, the instruction execution result that sink virtual machine agency returns.
Step S130, analysis instruction performs result and judges that the state of respective virtual machine is according to analysis result No exception.If being not received by the instruction execution result that virtual machine agency returns in Preset Time, also Will be considered that virtual machine is in abnormality.
Visible, the method shown in Fig. 1, act on behalf of by arranging a virtual machine in advance on each virtual machine, When detection, the virtual machine agency on the host of virtual machine place sends and performs instruction, to receive The instruction execution result that virtual machine agency returns is analyzed, and judges respective virtual machine according to analysis result State is the most abnormal.This technical scheme can more precisely judge in cloud platform, whether virtual machine is in different Often state, and detect speed the most quickly, the most compared with prior art there is the feature of efficiently and accurately, It is prone to practical.
In one embodiment of the invention, the method shown in Fig. 1 farther includes: corresponding when judging When the state of virtual machine is abnormal, send anomalous event notification message.Wherein, anomalous event notification message Different grades can be divided into according to analysis result, and according to different brackets with the difference such as note, mail Mode is sent to manager.
In one embodiment of the invention, in said method, virtual on the host of virtual machine place Machine agency sends execution instruction and farther includes: sent to virtual machine agency by the serial equipment of virtual machine Perform instruction;The instruction execution result that sink virtual machine agency returns farther includes: by virtual machine The instruction execution result that serial equipment sink virtual machine agency returns.
In the present embodiment, by handing between virtual machine and corresponding virtual machine are acted on behalf of at serial equipment Mutually, it is preferable that this serial equipment is not required to intricately arrange and can realize, i.e. at one of the present invention In embodiment, said method farther includes: before creating virtual machine, for the mirror image of virtual machine to be created Stamp and represent the label starting serial equipment, so that be that this virtual machine adds string when creating virtual machine Jaws equipment.The most also a virtualized Agent can be started (as utilized Qemu at virtual machine bottom Virtualization realizes), perform corresponding instruction by this Agent.
In one embodiment of the invention, in said method, perform instruction include following in one or Multiple: Ping instructs;Perform the instruction of designated program;Create the instruction of file;Delete the instruction of file. Perform every kind of execution result instructing return according to virtual machine and can obtain the state of virtual machine with correspondence analysis, Such as, according to the execution result of Ping instruction, it is judged that the network of respective virtual machine is the most unimpeded;According to holding The execution result of the instruction of row designated program, it is judged that whether the kernel of respective virtual machine damages;According to establishment And/or delete the execution result of the instruction of file, it is judged that the memory space of respective virtual machine is the most abnormal.Excellent Selection of land, performs instruction and includes above-mentioned all of performing instruction, therefore can judge that virtual machine is more accurately No it is in abnormality.
In one embodiment of the invention, in said method, send anomalous event notification message and include: Anomalous event notification message is sent in the message queue that each host shares, thus by this message queue Manager the message in individual queue is sent to specify position.Specifying position that message queue is set equally, The consumer of this message queue reads message queue, carries out corresponding after reading anomalous event notification message Operation, such as note or mail notification.
Fig. 2 shows virtual machine abnormality in a kind of according to an embodiment of the invention detection cloud platform The structural representation of device, as in figure 2 it is shown, the device 200 of virtual machine abnormality in detection cloud platform Including:
Acting on behalf of interactive unit 210, the virtual machine agency be suitable on the host of virtual machine place sends execution Instruction;And be suitable to the instruction execution result that sink virtual machine agency returns, wherein, a virtual machine pair Answer a virtual machine agency.
Judging unit 220, is suitable to analysis instruction and performs result and judge respective virtual machine according to analysis result State whether abnormal.If being not received by the instruction execution that virtual machine agency returns in Preset Time As a result, also will be considered that virtual machine is in abnormality.
Visible, the device shown in Fig. 2, cooperating by each unit, in advance on each virtual machine Arranging a virtual machine agency, when detection, the virtual machine agency on the host of virtual machine place sends Performing instruction, the instruction execution result returning the virtual machine agency received is analyzed, according to analysis Result judges that the state of respective virtual machine is the most abnormal.This technical scheme can more precisely judge that cloud is put down In platform, whether virtual machine is in abnormality, and detects speed the most quickly, therefore with prior art phase Than the feature with efficiently and accurately, it is easy to practical.
In one embodiment of the invention, the device shown in Fig. 2 farther includes: notification unit 230, Be suitable to when judging that the state of corresponding virtual machine, as time abnormal, sends anomalous event notification message.Wherein, Anomalous event notification message can be divided into different grades according to analysis result, and according to different brackets with The different modes such as note, mail is sent to manager.
In one embodiment of the invention, in said apparatus, act on behalf of interactive unit, be suitable to by virtual The serial equipment of machine sends to virtual machine agency and performs instruction;And be suitable to the serial equipment by virtual machine The instruction execution result that sink virtual machine agency returns.
In the present embodiment, by handing between virtual machine and corresponding virtual machine are acted on behalf of at serial equipment Mutually, it is preferable that this serial equipment is not required to intricately arrange and can realize, i.e. at one of the present invention In embodiment, said apparatus farther includes: tag processes unit, is suitable to before creating virtual machine, for The mirror image of virtual machine to be created is stamped and is represented the label starting serial equipment, so that creating virtual machine Time be this virtual machine add serial equipment.The most also a virtualized agency can be started at virtual machine bottom Program (as utilized Qemu virtualization to realize), performs corresponding instruction by this Agent.
In one embodiment of the invention, said apparatus, perform the one or many during instruction includes as follows Kind: Ping instructs;Perform the instruction of designated program;Create the instruction of file;Delete the instruction of file. Such as, according to the execution result of Ping instruction, it is judged that the network of respective virtual machine is the most unimpeded;According to holding The execution result of the instruction of row designated program, it is judged that whether the kernel of respective virtual machine damages;According to establishment And/or delete the execution result of the instruction of file, it is judged that the memory space of respective virtual machine is the most abnormal.Excellent Selection of land, performs instruction and includes above-mentioned all of performing instruction, therefore can judge that virtual machine is more accurately No it is in abnormality.
In one embodiment of the invention, in said apparatus, notification unit, be suitable to lead to anomalous event Know that message is sent in the message queue that each host shares, thus will be disappeared by the manager of this message queue Each message in breath queue is sent to specify position.Specifying position that message queue is set equally, this message The consumer of queue reads message queue, operates accordingly after reading anomalous event notification message, Such as note or mail notification.
Fig. 3 shows virtual machine abnormality in a kind of according to an embodiment of the invention detection cloud platform The structural representation of system, as it is shown on figure 3, the system 300 of virtual machine abnormality in detection cloud platform Including: manager 310, memorizer 320 (functional unit/assemblies such as message center can be implemented as) With at least one such as the device of virtual machine abnormality in the detection cloud platform in above-mentioned any embodiment 330;Wherein, in described detection cloud platform, the device of virtual machine 330 abnormality can be for one or more Virtual machine.
Memorizer 320 is suitable to store message queue.
Manager 310 is suitable to be sent to each message in message queue specify position.
In sum, technical scheme, virtual by arranging one in advance on each virtual machine Machine is acted on behalf of, and when detection, the virtual machine agency on the host of virtual machine place sends and performs instruction, right The instruction execution result that the virtual machine agency received returns is analyzed, and judges corresponding according to analysis result The state of virtual machine is the most abnormal.This technical scheme can more precisely judge that in cloud platform, virtual machine is The no abnormality that is in, and detect speed the most quickly, the most compared with prior art there is efficient standard True feature, it is easy to practical.
It should be understood that
Algorithm and display be not solid with any certain computer, virtual bench or miscellaneous equipment provided herein Have relevant.Various fexible units can also be used together with based on teaching in this.As described above, Construct the structure required by this kind of device to be apparent from.Additionally, the present invention is also not for any specific Programming language.It is understood that, it is possible to use various programming languages realize the content of invention described herein, And the description done language-specific above is the preferred forms in order to disclose the present invention.
In description mentioned herein, illustrate a large amount of detail.It is to be appreciated, however, that this Inventive embodiment can be put into practice in the case of not having these details.In some instances, not It is shown specifically known method, structure and technology, in order to do not obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help understand in each inventive aspect one Or multiple, above in the description of the exemplary embodiment of the present invention, each feature of the present invention is sometimes It is grouped together in single embodiment, figure or descriptions thereof.But, should be by the disclosure Method be construed to reflect an intention that i.e. the present invention for required protection require ratio in each claim The middle more feature of feature be expressly recited.More precisely, as the following claims reflect As, inventive aspect is all features less than single embodiment disclosed above.Therefore, it then follows Claims of detailed description of the invention are thus expressly incorporated in this detailed description of the invention, the most each right Requirement itself is all as the independent embodiment of the present invention.
Those skilled in the art are appreciated that and can carry out the module in the equipment in embodiment certainly Change adaptively and they are arranged in one or more equipment different from this embodiment.Permissible Module in embodiment or unit or assembly are combined into a module or unit or assembly, and in addition may be used To put them into multiple submodule or subelement or sub-component.Except such feature and/or process or Outside at least some in unit excludes each other, can use any combination that (this specification is included companion With claim, summary and accompanying drawing) disclosed in all features and so disclosed any method or All processes of person's equipment or unit are combined.Unless expressly stated otherwise, this specification (includes companion With claim, summary and accompanying drawing) disclosed in each feature can by provide identical, equivalent or phase Replace like the alternative features of purpose.
Although additionally, it will be appreciated by those of skill in the art that embodiments more described herein include it Some feature included in its embodiment rather than further feature, but the group of the feature of different embodiment Close and mean to be within the scope of the present invention and formed different embodiments.Such as, in following power In profit claim, one of arbitrarily can mode making in any combination of embodiment required for protection With.
The all parts embodiment of the present invention can realize with hardware, or to process at one or more The software module run on device realizes, or realizes with combinations thereof.Those skilled in the art should Understand, microprocessor or digital signal processor (DSP) can be used in practice to realize basis In the detection cloud platform of the embodiment of the present invention some in the device of virtual machine abnormality and system or All some or all functions of parts.The present invention is also implemented as performing as described herein Part or all equipment of method or device program (such as, computer program and computer journey Sequence product).The program of such present invention of realization can store on a computer-readable medium, or can To have the form of one or more signal.Such signal can be downloaded from internet website Arrive, or provide on carrier signal, or provide with any other form.
The present invention will be described rather than limits the invention to it should be noted above-described embodiment, And those skilled in the art can design replacement in fact without departing from the scope of the appended claims Execute example.In the claims, should not will be located in any reference marks between bracket to be configured to right is wanted The restriction asked.Word " comprises " and does not excludes the presence of the element or step not arranged in the claims.It is positioned at unit Word "a" or "an" before part does not excludes the presence of multiple such element.The present invention can be by means of Include the hardware of some different elements and realize by means of properly programmed computer.Listing If in the unit claim of equipment for drying, several in these devices can be by same hardware branch Specifically embody.Word first, second and third use do not indicate that any order.Can be by this A little word explanations are title.
Embodiment of the invention discloses that A1, a kind of detect the method for virtual machine abnormality in cloud platform, Wherein, the method includes:
Virtual machine agency on the host of virtual machine place sends and performs instruction;Wherein, a virtual machine Corresponding virtual machine agency;
Receive the instruction execution result that described virtual machine agency returns;
Analyze described instruction execution result and judge that the state of respective virtual machine is the most different according to analysis result Often.
A2, method as described in A1, wherein, described method farther includes:
When judging that the state of corresponding virtual machine, as time abnormal, sends anomalous event notification message.
A3, method as described in A1 or A2, wherein,
Described virtual machine agency on the host of virtual machine place sends execution instruction and farther includes: logical The serial equipment crossing described virtual machine performs instruction to the agency's transmission of described virtual machine;
The instruction execution result that described reception described virtual machine agency returns farther includes: by described void The serial equipment of plan machine receives the instruction execution result that described virtual machine agency returns.
A4, method as according to any one of A1-A3, wherein, described method farther includes:
Creating before virtual machine, stamp for the mirror image of virtual machine to be created and represent the label starting serial equipment, So that be that this virtual machine adds serial equipment when creating virtual machine.
A5, method as according to any one of A1-A4, wherein, described execution instruction include following in One or more:
Ping instructs;
Perform the instruction of designated program;
Create the instruction of file;
Delete the instruction of file.
A6, method as according to any one of A1-A5, wherein, analyze described instruction execution result root According to analysis result judge the state of respective virtual machine the most extremely include following in one or more:
Execution result according to Ping instruction, it is judged that the network of respective virtual machine is the most unimpeded;
Execution result according to the instruction performing designated program, it is judged that whether the kernel of respective virtual machine damages;
Execution result according to the instruction creating and/or deleting file, it is judged that the memory space of respective virtual machine The most abnormal.
A7, method as according to any one of A1-A6, wherein, described transmission anomalous event notification message Including:
Anomalous event notification message is sent in the message queue that each host shares, thus by this message Message in individual queue is sent to specify position by the manager of queue.
Embodiments of the invention also disclose B8, a kind of detect the dress of virtual machine abnormality in cloud platform Putting, wherein, this device includes:
Act on behalf of interactive unit, be suitable to the agency's transmission of the virtual machine on the host of virtual machine place and perform instruction; And be suitable to receive the instruction execution result that described virtual machine agency returns, wherein, a virtual machine correspondence One virtual machine agency;
Judging unit, is suitable to analyze described instruction execution result and judge respective virtual machine according to analysis result State whether abnormal.
B9, device as described in B8, wherein, this device farther includes:
Notification unit, is suitable to when judging that the state of corresponding virtual machine, as time abnormal, send anomalous event and leads to Know message.
B10, device as described in B8 or B9, wherein,
Described act on behalf of interactive unit, be suitable to the serial equipment by described virtual machine and act on behalf of to described virtual machine Send and perform instruction;And be suitable to receive described virtual machine agency by the serial equipment of described virtual machine and return The instruction execution result returned.
B11, device as according to any one of B8-B10, wherein, described device farther includes:
Tag processes unit, is suitable to before creating virtual machine, and the mirror image for virtual machine to be created stamps expression Start the label of serial equipment, so that be that this virtual machine adds serial equipment when creating virtual machine.
B12, device as according to any one of B8-B11, wherein, described execution instruction include following in One or more:
Ping instructs;
Perform the instruction of designated program;
Create the instruction of file;
Delete the instruction of file.
B13, device as according to any one of B8-B12, wherein, described judging unit, it is adapted for carrying out One or more in Ru Xia:
Execution result according to Ping instruction, it is judged that the network of respective virtual machine is the most unimpeded;
Execution result according to the instruction performing designated program, it is judged that whether the kernel of respective virtual machine damages;
Execution result according to the instruction creating and/or deleting file, it is judged that the memory space of respective virtual machine The most abnormal.
B14, device as described in B8-B13, wherein,
Described notification unit, is suitable to anomalous event notification message is sent to the message team that each host shares In row, thus it is sent to specify position by each message in message queue by the manager of this message queue.
Embodiments of the invention also disclose C15, a kind of detect virtual machine abnormality in cloud platform be System, wherein, this system includes: manager, memorizer and at least one institute as any one of B8-B14 The device of virtual machine abnormality in the detection cloud platform stated;
Described memorizer is suitable to store message queue;
Described manager is suitable to be sent to each message in message queue specify position.

Claims (10)

1. detecting a method for virtual machine abnormality in cloud platform, wherein, the method includes:
Virtual machine agency on the host of virtual machine place sends and performs instruction;Wherein, a virtual machine Corresponding virtual machine agency;
Receive the instruction execution result that described virtual machine agency returns;
Analyze described instruction execution result and judge that the state of respective virtual machine is the most different according to analysis result Often.
The most described method farther includes:
When judging that the state of corresponding virtual machine, as time abnormal, sends anomalous event notification message.
3. method as claimed in claim 1 or 2, wherein,
Described virtual machine agency on the host of virtual machine place sends execution instruction and farther includes: logical The serial equipment crossing described virtual machine performs instruction to the agency's transmission of described virtual machine;
The instruction execution result that described reception described virtual machine agency returns farther includes: by described void The serial equipment of plan machine receives the instruction execution result that described virtual machine agency returns.
4. the method as according to any one of claim 1-3, wherein, described method farther includes:
Creating before virtual machine, stamp for the mirror image of virtual machine to be created and represent the label starting serial equipment, So that be that this virtual machine adds serial equipment when creating virtual machine.
5. the method as according to any one of claim 1-4, wherein, described execution instruction include as One or more in Xia:
Ping instructs;
Perform the instruction of designated program;
Create the instruction of file;
Delete the instruction of file.
6. the method as according to any one of claim 1-5, wherein, analyzes described instruction execution result And according to analysis result judge the state of respective virtual machine the most extremely include following in one or more:
Execution result according to Ping instruction, it is judged that the network of respective virtual machine is the most unimpeded;
Execution result according to the instruction performing designated program, it is judged that whether the kernel of respective virtual machine damages;
Execution result according to the instruction creating and/or deleting file, it is judged that the memory space of respective virtual machine The most abnormal.
7. the method as according to any one of claim 1-6, wherein, described transmission anomalous event notifies Message includes:
Anomalous event notification message is sent in the message queue that each host shares, thus by this message Message in individual queue is sent to specify position by the manager of queue.
8. detecting a device for virtual machine abnormality in cloud platform, wherein, this device includes:
Act on behalf of interactive unit, be suitable to the agency's transmission of the virtual machine on the host of virtual machine place and perform instruction; And be suitable to receive the instruction execution result that described virtual machine agency returns, wherein, a virtual machine correspondence One virtual machine agency;
Judging unit, is suitable to analyze described instruction execution result and judge respective virtual machine according to analysis result State whether abnormal.
9. device as claimed in claim 8, wherein, this device farther includes:
Notification unit, is suitable to when judging that the state of corresponding virtual machine, as time abnormal, send anomalous event and leads to Know message.
10. detecting a system for virtual machine abnormality in cloud platform, wherein, this system includes: pipe Manage in device, memorizer and at least one detection cloud platform as according to any one of claim 8-9 virtual The device of machine abnormality;
Described memorizer is suitable to store message queue;
Described manager is suitable to be sent to each message in message queue specify position.
CN201610282795.9A 2016-04-29 2016-04-29 Method, device and system for detecting abnormal state of virtual machine in cloud platform Pending CN105955798A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610282795.9A CN105955798A (en) 2016-04-29 2016-04-29 Method, device and system for detecting abnormal state of virtual machine in cloud platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610282795.9A CN105955798A (en) 2016-04-29 2016-04-29 Method, device and system for detecting abnormal state of virtual machine in cloud platform

Publications (1)

Publication Number Publication Date
CN105955798A true CN105955798A (en) 2016-09-21

Family

ID=56914841

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610282795.9A Pending CN105955798A (en) 2016-04-29 2016-04-29 Method, device and system for detecting abnormal state of virtual machine in cloud platform

Country Status (1)

Country Link
CN (1) CN105955798A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110784337A (en) * 2019-09-26 2020-02-11 平安科技(深圳)有限公司 Cloud service quality monitoring method and related product
CN110913019A (en) * 2019-12-20 2020-03-24 中国人民解放军战略支援部队信息工程大学 Security protection method and device for cloud service
CN111786830A (en) * 2020-07-01 2020-10-16 浪潮云信息技术股份公司 Network quality simulation method in cloud computing environment
CN112199273A (en) * 2020-09-18 2021-01-08 湖南麒麟信安科技股份有限公司 Virtual machine pressure/performance testing method and system
WO2022052876A1 (en) * 2020-09-08 2022-03-17 中兴通讯股份有限公司 Virtual network health analysis method and system, and network device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103595801A (en) * 2013-11-18 2014-02-19 中标软件有限公司 Cloud computing system and real-time monitoring method for virtual machine in cloud computing system
JP2014078099A (en) * 2012-10-10 2014-05-01 Hitachi Ltd Virtual computer system and control method therefor
CN104503861A (en) * 2012-04-20 2015-04-08 华为技术有限公司 Abnormality handling method and system, agency device and control device
CN104636678A (en) * 2013-11-15 2015-05-20 中国电信股份有限公司 Method and system for controlling terminal device under cloud computing environment
CN104657250A (en) * 2014-12-16 2015-05-27 无锡华云数据技术服务有限公司 Monitoring method for monitoring performance of cloud host
US20150163088A1 (en) * 2013-12-11 2015-06-11 At&T Intellectual Property I, Lp System and Method to Monitor and Manage Imperfect or Compromised Software

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104503861A (en) * 2012-04-20 2015-04-08 华为技术有限公司 Abnormality handling method and system, agency device and control device
JP2014078099A (en) * 2012-10-10 2014-05-01 Hitachi Ltd Virtual computer system and control method therefor
CN104636678A (en) * 2013-11-15 2015-05-20 中国电信股份有限公司 Method and system for controlling terminal device under cloud computing environment
CN103595801A (en) * 2013-11-18 2014-02-19 中标软件有限公司 Cloud computing system and real-time monitoring method for virtual machine in cloud computing system
US20150163088A1 (en) * 2013-12-11 2015-06-11 At&T Intellectual Property I, Lp System and Method to Monitor and Manage Imperfect or Compromised Software
CN104657250A (en) * 2014-12-16 2015-05-27 无锡华云数据技术服务有限公司 Monitoring method for monitoring performance of cloud host

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110784337A (en) * 2019-09-26 2020-02-11 平安科技(深圳)有限公司 Cloud service quality monitoring method and related product
CN110784337B (en) * 2019-09-26 2023-08-22 平安科技(深圳)有限公司 Cloud service quality monitoring method and related products
CN110913019A (en) * 2019-12-20 2020-03-24 中国人民解放军战略支援部队信息工程大学 Security protection method and device for cloud service
CN111786830A (en) * 2020-07-01 2020-10-16 浪潮云信息技术股份公司 Network quality simulation method in cloud computing environment
CN111786830B (en) * 2020-07-01 2023-06-13 浪潮云信息技术股份公司 Network quality simulation method in cloud computing environment
WO2022052876A1 (en) * 2020-09-08 2022-03-17 中兴通讯股份有限公司 Virtual network health analysis method and system, and network device
CN112199273A (en) * 2020-09-18 2021-01-08 湖南麒麟信安科技股份有限公司 Virtual machine pressure/performance testing method and system
CN112199273B (en) * 2020-09-18 2024-02-13 湖南麒麟信安科技股份有限公司 Virtual machine pressure/performance testing method and system

Similar Documents

Publication Publication Date Title
CN105955798A (en) Method, device and system for detecting abnormal state of virtual machine in cloud platform
CN109302522B (en) Test method, test device, computer system, and computer medium
CN107807877B (en) Code performance testing method and device
CN105787364B (en) Automatic testing method, device and system for tasks
CN108363662A (en) A kind of applied program testing method, storage medium and terminal device
CN103138988B (en) Positioning treatment method and positioning treatment device of network faults
CN114064208A (en) Method and device for detecting application service state, electronic equipment and storage medium
CN111258913A (en) Automatic algorithm testing method and device, computer system and readable storage medium
CN106406975A (en) Test method and device of desktop cloud system
CN106293920A (en) Method for scheduling task and device
CN106708704A (en) Method and device for classifying crash logs
CN109240278A (en) Automated diagnostic method, apparatus and system
CN110990289B (en) Method and device for automatically submitting bug, electronic equipment and storage medium
CN106484608B (en) A kind of kernel fault localization method, device and computer
US10929261B1 (en) Device diagnosis
CN110489334A (en) A kind of system integration and test test processing method and device
CN112596784B (en) Iterative version deployment method and device
CN109408104B (en) Method and device for acquiring game integration information
CN117370203A (en) Automatic test method, system, electronic equipment and storage medium
US20190028372A1 (en) Programmatically diagnosing a software defined network
CN111200654A (en) Client request error processing method and device
CN111159028A (en) Webpage testing method and device
CN112596750B (en) Application testing method and device, electronic equipment and computer readable storage medium
CN115525568A (en) Code coverage rate inspection method and device, computer equipment and storage medium
CN106230666B (en) A kind of monitoring method and monitoring system of service availability

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160921

RJ01 Rejection of invention patent application after publication