CN113626136A - Virtual machine fault detection method and device - Google Patents

Virtual machine fault detection method and device Download PDF

Info

Publication number
CN113626136A
CN113626136A CN202110742143.XA CN202110742143A CN113626136A CN 113626136 A CN113626136 A CN 113626136A CN 202110742143 A CN202110742143 A CN 202110742143A CN 113626136 A CN113626136 A CN 113626136A
Authority
CN
China
Prior art keywords
virtual machine
target
fault
process information
target virtual
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.)
Granted
Application number
CN202110742143.XA
Other languages
Chinese (zh)
Other versions
CN113626136B (en
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.)
Inspur Jinan data Technology Co ltd
Original Assignee
Inspur Jinan data Technology 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 Inspur Jinan data Technology Co ltd filed Critical Inspur Jinan data Technology Co ltd
Priority to CN202110742143.XA priority Critical patent/CN113626136B/en
Publication of CN113626136A publication Critical patent/CN113626136A/en
Application granted granted Critical
Publication of CN113626136B publication Critical patent/CN113626136B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/0712Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in a virtual computing platform, e.g. logically partitioned systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0766Error or fault reporting or storing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/079Root cause analysis, i.e. error or fault diagnosis
    • 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/548Queue

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Mathematical Physics (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application discloses a virtual machine fault detection method and device, when a virtual machine is constructed, teletype typing equipment corresponding to the virtual machine can be constructed in a matched mode, the teletype typing equipment is used for displaying working process information of a target virtual machine, so that the working process information of the teletype typing equipment for displaying the target virtual machine can be obtained, a target working text is generated according to the working process information, therefore, the working process information only used for displaying can be converted into a target working text capable of detecting character strings, whether the target working text comprises fault keywords or not is judged, if the target working text comprises the fault keywords, the target virtual machine is indicated to have faults, and a message that the target virtual machine has faults is sent to a cloud platform, so that the cloud platform can carry out subsequent recovery operation on the target virtual machine. Therefore, fault detection can be performed on the virtual machine without special equipment, the cost of fault detection is reduced, and the application range of fault detection is expanded.

Description

Virtual machine fault detection method and device
Technical Field
The invention relates to the technical field of fault detection, in particular to a virtual machine fault detection method and device.
Background
In the cloud computing era, a cloud platform manages a large number of virtual machines, and the user services are operated through the virtual machines, so that if the faults of the virtual machines cannot be found in time, the normal operation of the user services is greatly influenced. The cloud platform generally comprises a large number of virtual machines, and the time and labor are wasted if the virtual machines are checked one by one manually.
Therefore, it is proposed in the prior art to add a dedicated device to each virtual machine, where when a virtual machine fails, the dedicated device captures a failure signal and triggers a message, the message is received by a physical machine where the virtual machine is located, the physical machine sends the message indicating that the virtual machine has failed to a cloud platform, and the cloud platform performs subsequent recovery operations on the virtual machine.
However, the manner of adding a dedicated device to each virtual machine requires that the dedicated device has a driver corresponding to the function of detecting a fault signal and the function of sending a message, and corresponding kernel support, so that the cost of fault detection by the dedicated device is high, and the number of scenarios supported by the dedicated device is small, which results in a small application range of fault detection.
Disclosure of Invention
In order to solve the above problems, the present application provides a virtual machine fault detection method and apparatus, which are used to reduce the cost of fault detection and expand the application range of fault detection.
In one aspect, an embodiment of the present application provides a virtual machine fault detection method, where the method includes:
the method comprises the steps of obtaining working process information of a target virtual machine displayed through teletype typing equipment corresponding to the target virtual machine, wherein the target virtual machine is any one virtual machine in a cloud platform;
generating a target working text according to the working process information;
judging whether the target working text comprises fault keywords or not;
and if the target working text comprises a fault keyword, sending a message that the target virtual machine is in fault to the cloud platform.
Optionally, the method further includes:
and if the fault detection of the target virtual machine is finished, taking other virtual machines as the target virtual machine, and executing the steps of obtaining the working process information of the target virtual machine displayed by the teletype printing equipment corresponding to the target virtual machine and the subsequent steps until all the virtual machines in the cloud platform finish the fault detection, wherein the other virtual machines are the virtual machines in the cloud platform different from the target virtual machine.
Optionally, if the target work text includes a failure keyword, sending a message that the target virtual machine fails to the cloud platform includes:
if the target working text comprises a fault keyword, sending a fault message of the target virtual machine to a fault virtual machine message queue;
and acquiring the fault message of the target virtual machine from the fault virtual machine message queue, and sending the fault message of the target virtual machine to the cloud platform.
Optionally, the acquiring the working process information of the target virtual machine, which is displayed by the teletype typing device corresponding to the target virtual machine, includes:
acquiring a preset amount of working process information from the working process information of the target virtual machine displayed by the teletype typing equipment corresponding to the target virtual machine;
the generating of the target working text according to the working process information comprises:
and generating a target working text according to the preset number of working process information.
Optionally, the generating a target work text according to the preset number of pieces of work process information includes:
and generating a target working text by the preset amount of working process information in a pipeline or copying mode.
On the other hand, an embodiment of the present application provides a virtual machine fault detection apparatus, where the apparatus includes: the device comprises an acquisition unit, a generation unit, a judgment unit and a sending unit;
the acquisition unit is used for acquiring the working process information of the target virtual machine displayed by the teletype typing equipment corresponding to the target virtual machine, and the target virtual machine is any one virtual machine in the cloud platform;
the generating unit is used for generating a target working text according to the working process information;
the judging unit is used for judging whether the target working text comprises a fault keyword or not;
the sending unit is used for sending a message that the target virtual machine fails to work to the cloud platform if the target work text comprises a fault keyword.
Optionally, the apparatus further comprises a circulation unit, configured to:
and if the fault detection of the target virtual machine is finished, taking other virtual machines as the target virtual machine, and executing the steps of obtaining the working process information of the target virtual machine displayed by the teletype printing equipment corresponding to the target virtual machine and the subsequent steps until all the virtual machines in the cloud platform finish the fault detection, wherein the other virtual machines are the virtual machines in the cloud platform different from the target virtual machine.
Optionally, the sending unit is configured to:
if the target working text comprises a fault keyword, sending a fault message of the target virtual machine to a fault virtual machine message queue;
and acquiring the fault message of the target virtual machine from the fault virtual machine message queue, and sending the fault message of the target virtual machine to the cloud platform.
Optionally, the obtaining unit is configured to:
acquiring a preset amount of working process information from the working process information of the target virtual machine displayed by the teletype typing equipment corresponding to the target virtual machine;
the generating of the target working text according to the working process information comprises:
and generating a target working text according to the preset number of working process information.
Optionally, the obtaining unit is configured to:
and generating a target working text by the preset amount of working process information in a pipeline or copying mode.
Compared with the prior art, the technical scheme of the application has the advantages that:
the method comprises the steps that when a virtual machine is built, teletype typing equipment corresponding to the virtual machine is built in a matched mode, the teletype typing equipment is used for displaying working process information of a target virtual machine, the working process information can reflect whether the virtual machine fails in the working process, the working process information of the teletype typing equipment for displaying the target virtual machine can be obtained, a target working text is generated according to the working process information, therefore, the working process information only used for displaying can be converted into a target working text capable of detecting character strings, whether the target working text comprises fault keywords or not is judged, if the target working text comprises the fault keywords, the target virtual machine fails, a message that the target virtual machine fails is sent to a cloud platform, and the cloud platform can conveniently perform subsequent recovery operation on the target virtual machine. Therefore, special equipment is not needed, fault detection can be carried out on the virtual machine through the teletype typing equipment matched with the virtual machine, the cost of fault detection is reduced, the teletype typing equipment is matched with the virtual machine, the use scene of the virtual machine cannot be limited, and compared with the situation that fault detection is carried out on the virtual machine through the special equipment, the application range of the fault detection on the virtual machine is expanded.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a virtual machine fault detection method provided in the present application;
fig. 2 is a schematic diagram of a virtual machine fault detection apparatus provided in the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a flowchart of a virtual machine fault detection method provided in the present application, where the method may include the following steps 101-104.
S101: and acquiring the working process information of the target virtual machine displayed by the teletype typing equipment corresponding to the target virtual machine.
At the same time of creating the virtual machines, teletypewriter devices (tty) corresponding to the virtual machines are created in a matching way, namely, each virtual machine has tty matched with the virtual machine. After the virtual machine is started, working process information generated in the working process can be printed in tty, and the working process information is displayed through tty.
The cloud platform includes at least one virtual machine, and a description will be given below by taking one virtual machine in the cloud platform as a target virtual machine. And acquiring the working process information of the target virtual machine displayed by tty corresponding to the target virtual machine.
S102: and generating a target working text according to the working process information.
Because the working process information is displayed in tty, the character string detection cannot be carried out, and therefore the target working text capable of carrying out the character string detection can be generated according to the working process information.
As a possible implementation manner, the working process information generated by the target virtual machine can be generated into a target working text in a pipeline or copy manner. The target virtual machine can generate target working texts according with all working process information generated by the target virtual machine, and can also convert the working process information which accords with the preset quantity into the target working texts.
It should be noted that, in the embodiment of the present application, the preset number of values is not specifically limited, for example, the preset number may be 24 lines of work process information, and may also be all work process information displayed on the tty current screen.
As a possible implementation manner, a target work text corresponding to a target virtual machine may be stored in a physical machine in which the target virtual machine is located, where the physical machine includes at least one virtual machine, and a work text corresponding to each virtual machine may be stored in the physical machine, and in order to distinguish work texts corresponding to different virtual machines, a Unique Identifier of the virtual machine, such as a Universal Unique Identifier (UUID), may be used to name the work texts of different virtual machines.
S103: and judging whether the target working text comprises the fault keywords.
Since the target work text can be subjected to string detection, it can be determined whether the target work text includes a fault keyword, where the fault keyword includes, but is not limited to, a Kernel code (Kernel code), a need to restart (needs to restart), a detected problem (a problem has been detected), a BUG (BUG), and the like. It should be noted that, when "bad p4 d" appears in the target work text, the virtual machine also has a problem of unknown cause, and needs to be restarted to normally work, so "bad p4 d" may also be used as a fault keyword.
S104: and if the target working text comprises the fault keywords, sending a message that the target virtual machine is in fault to the cloud platform.
If the target working text is judged to include the fault keyword, the fault of the target virtual machine is indicated, and a message that the fault of the target virtual machine occurs can be sent to the cloud platform, so that the cloud platform can perform subsequent recovery operation on the target virtual machine.
As a possible implementation manner, if the target work text includes a fault keyword, sending a message of the fault of the target virtual machine to a message queue of the fault virtual machine, acquiring the message of the fault of the target virtual machine from the message queue of the fault virtual machine, and sending the message of the fault of the target virtual machine to the cloud platform. Therefore, when the number of the virtual machines with faults in the cloud platform is large and the cloud platform cannot recover one virtual machine, the messages of the virtual machines with faults can be stored in the message queue of the virtual machines with faults, the cloud platform can continuously acquire the messages from the message queue of the virtual machines with faults and determine the virtual machines with faults according to the messages, and therefore recovery is carried out so that the cloud platform is prevented from being broken down.
It should be noted that, in order to determine the virtual machine with the failure from the message acquired from the message queue, after it is determined that the virtual machine has the failure, the unique identifier of the virtual machine may be stored in the message queue of the failed virtual machine through the message, so that after the message is acquired from the message queue of the failed virtual machine, the virtual machine with the failure may be determined by analyzing the identifier carried in the message.
By the technical method, when the virtual machine is constructed, the teletype typing equipment corresponding to the virtual machine is constructed in a matching way, the teletypewriter is used for displaying the working process information of the target virtual machine, the working process information can reflect whether the virtual machine has a fault in the working process, so the working process information of the teletypewriter for displaying the target virtual machine can be acquired, and generating a target working text according to the working process information, so that the working process information only used for display can be converted into the target working text capable of carrying out character string detection, judging whether the target working text comprises a fault keyword or not, if the target working text comprises the fault keyword, indicating that the target virtual machine has a fault, and sending a message that the target virtual machine has the fault to the cloud platform so as to facilitate the cloud platform to carry out subsequent recovery operation on the target virtual machine. Therefore, special equipment is not needed, fault detection can be carried out on the virtual machine through the teletype typing equipment matched with the virtual machine, the cost of fault detection is reduced, the teletype typing equipment is matched with the virtual machine, the use scene of the virtual machine cannot be limited, and compared with the situation that fault detection is carried out on the virtual machine through the special equipment, the application range of the fault detection on the virtual machine is expanded.
As a possible implementation manner, if the cloud platform has other virtual machines after the fault detection of the target virtual machine is completed, the method of S101-S104 may be executed by using the other virtual machines as the target virtual machines until all the virtual machines in the cloud platform complete the fault detection.
After the fault detection of all the virtual machines in the cloud platform is completed, the fault detection of all the virtual machines in the cloud platform can be repeated again, and the restart timing can be after the fault detection of all the virtual machines is completed last time, or can be at regular intervals to start the fault detection of all the virtual machines in the cloud platform next time.
As a possible implementation manner, fault detection may also be performed on all virtual machines in the cloud platform in parallel, which is not specifically limited in the present application.
In order to make the technical solution provided by the embodiment of the present application clearer, the following describes a virtual machine fault detection method provided by the embodiment of the present application with an example.
After the virtual machine is started, a virtual machine monitor (Hypervisor) generates a working text in a pipeline or copying mode through the working process information printed and output in tty of the virtual machine, and stores the working text into a text file named by the UUID of the virtual machine in a physical machine. Each virtual machine corresponds to one text file and is named by the UUID of the virtual machine.
And only keeping all the work process information displayed on the current screen of tty in the text file, and after one screen is fully written, emptying the content in the text file and rewriting the content of a new screen. As a possible implementation mode, after the virtual machine starts the graphical interface, the output content of the last screen character is reserved in the text file.
And circularly traversing a virtual machine list, wherein the virtual machine list is obtained by acquiring names and UUID information of all virtual machines running on the physical machine through Hypervisor, reading a text file named by the UUID of the virtual machine, searching contents in the text file, judging whether a fault keyword is contained, if so, judging that the virtual machine is in fault, and otherwise, judging that the virtual machine is normal. When the fault virtual machine is detected, the name, UUID and other information of the virtual machine are sent to a message queue of the fault virtual machine.
Monitoring a message queue of a fault virtual machine, when the message queue of the fault virtual machine is not empty, taking out a message from the message queue of the fault virtual machine, analyzing the message to obtain information such as the name and UUID of the virtual machine, and sending the message that the virtual machine has a fault to a cloud platform, so that fault detection can be performed on the virtual machine without special equipment, and fault keyword retrieval is performed on the content in a text file by outputting the working process information printed in tty of the virtual machine to the text file, so as to detect the fault of the virtual machine. Therefore, the cloud platform can detect the virtual machine fault without special equipment, and the technical scheme of the application can be also suitable for detecting the virtual machine fault of the platforms such as ARM (advanced RISC machine), MIPS (microprocessor with interleaved stages) and the like.
In addition to the virtual machine fault detection method provided in the embodiments of the present application, a virtual machine fault detection apparatus is also provided, and as shown in fig. 2, the apparatus includes: an acquisition unit 201, a generation unit 202, a judgment unit 203, and a transmission unit 204;
the acquiring unit 201 is configured to acquire working process information of a target virtual machine, which is displayed by a teletype typing device corresponding to the target virtual machine, where the target virtual machine is any one virtual machine in a cloud platform;
the generating unit 202 is configured to generate a target work text according to the work process information;
the judging unit 203 is configured to judge whether the target working text includes a fault keyword;
the sending unit 204 is configured to send a message that the target virtual machine fails to work to the cloud platform if the target work text includes a failure keyword.
As a possible implementation, the apparatus further includes a circulation unit configured to:
and if the fault detection of the target virtual machine is finished, taking other virtual machines as the target virtual machine, and executing the steps of obtaining the working process information of the target virtual machine displayed by the teletype printing equipment corresponding to the target virtual machine and the subsequent steps until all the virtual machines in the cloud platform finish the fault detection, wherein the other virtual machines are the virtual machines in the cloud platform different from the target virtual machine.
As a possible implementation manner, the sending unit 204 is configured to:
if the target working text comprises a fault keyword, sending a fault message of the target virtual machine to a fault virtual machine message queue;
and acquiring the fault message of the target virtual machine from the fault virtual machine message queue, and sending the fault message of the target virtual machine to the cloud platform.
As a possible implementation manner, the obtaining unit 201 is configured to:
acquiring a preset amount of working process information from the working process information of the target virtual machine displayed by the teletype typing equipment corresponding to the target virtual machine;
the generating of the target working text according to the working process information comprises:
and generating a target working text according to the preset number of working process information.
As a possible implementation manner, the obtaining unit 201 is configured to:
and generating a target working text by the preset amount of working process information in a pipeline or copying mode.
The virtual machine fault detection device provided by the embodiment of the application can be matched with a teletype typing device corresponding to the virtual machine when the virtual machine is constructed, the teletypewriter is used for displaying the working process information of the target virtual machine, the working process information can reflect whether the virtual machine has a fault in the working process, so the working process information of the teletypewriter for displaying the target virtual machine can be acquired, and generating a target working text according to the working process information, so that the working process information only used for display can be converted into the target working text capable of carrying out character string detection, judging whether the target working text comprises a fault keyword or not, if the target working text comprises the fault keyword, indicating that the target virtual machine has a fault, and sending a message that the target virtual machine has the fault to the cloud platform so as to facilitate the cloud platform to carry out subsequent recovery operation on the target virtual machine. Therefore, special equipment is not needed, fault detection can be carried out on the virtual machine through the teletype typing equipment matched with the virtual machine, the cost of fault detection is reduced, the teletype typing equipment is matched with the virtual machine, the use scene of the virtual machine cannot be limited, and compared with the situation that fault detection is carried out on the virtual machine through the special equipment, the application range of the fault detection on the virtual machine is expanded.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus embodiment, since it is substantially similar to the method embodiment, it is relatively simple to describe, and reference may be made to some descriptions of the method embodiment for relevant points. The above-described apparatus embodiments are merely illustrative, and the units and modules described as separate components may or may not be physically separate. In addition, some or all of the units and modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The foregoing is directed to embodiments of the present application and it is noted that numerous modifications and adaptations may be made by those skilled in the art without departing from the principles of the present application and are intended to be within the scope of the present application.

Claims (10)

1. A virtual machine fault detection method, characterized in that the method comprises:
the method comprises the steps of obtaining working process information of a target virtual machine displayed through teletype typing equipment corresponding to the target virtual machine, wherein the target virtual machine is any one virtual machine in a cloud platform;
generating a target working text according to the working process information;
judging whether the target working text comprises fault keywords or not;
and if the target working text comprises a fault keyword, sending a message that the target virtual machine is in fault to the cloud platform.
2. The method of claim 1, further comprising:
and if the fault detection of the target virtual machine is finished, taking other virtual machines as the target virtual machine, and executing the steps of obtaining the working process information of the target virtual machine displayed by the teletype printing equipment corresponding to the target virtual machine and the subsequent steps until all the virtual machines in the cloud platform finish the fault detection, wherein the other virtual machines are the virtual machines in the cloud platform different from the target virtual machine.
3. The method according to claim 1, wherein if the target work text includes a failure keyword, sending a message that the target virtual machine has failed to the cloud platform, includes:
if the target working text comprises a fault keyword, sending a fault message of the target virtual machine to a fault virtual machine message queue;
and acquiring the fault message of the target virtual machine from the fault virtual machine message queue, and sending the fault message of the target virtual machine to the cloud platform.
4. The method of claim 1, wherein the obtaining the working process information of the target virtual machine exposed through the fly-by-wire typing device corresponding to the target virtual machine comprises:
acquiring a preset amount of working process information from the working process information of the target virtual machine displayed by the teletype typing equipment corresponding to the target virtual machine;
the generating of the target working text according to the working process information comprises:
and generating a target working text according to the preset number of working process information.
5. The method according to claim 4, wherein the generating a target work text according to the preset amount of work process information comprises:
and generating a target working text by the preset amount of working process information in a pipeline or copying mode.
6. An apparatus for virtual machine fault detection, the apparatus comprising: the device comprises an acquisition unit, a generation unit, a judgment unit and a sending unit;
the acquisition unit is used for acquiring the working process information of the target virtual machine displayed by the teletype typing equipment corresponding to the target virtual machine, and the target virtual machine is any one virtual machine in the cloud platform;
the generating unit is used for generating a target working text according to the working process information;
the judging unit is used for judging whether the target working text comprises a fault keyword or not;
the sending unit is used for sending a message that the target virtual machine fails to work to the cloud platform if the target work text comprises a fault keyword.
7. The apparatus of claim 6, further comprising a circulation unit to:
and if the fault detection of the target virtual machine is finished, taking other virtual machines as the target virtual machine, and executing the steps of obtaining the working process information of the target virtual machine displayed by the teletype printing equipment corresponding to the target virtual machine and the subsequent steps until all the virtual machines in the cloud platform finish the fault detection, wherein the other virtual machines are the virtual machines in the cloud platform different from the target virtual machine.
8. The apparatus of claim 6, wherein the sending unit is configured to:
if the target working text comprises a fault keyword, sending a fault message of the target virtual machine to a fault virtual machine message queue;
and acquiring the fault message of the target virtual machine from the fault virtual machine message queue, and sending the fault message of the target virtual machine to the cloud platform.
9. The apparatus of claim 6, wherein the obtaining unit is configured to:
acquiring a preset amount of working process information from the working process information of the target virtual machine displayed by the teletype typing equipment corresponding to the target virtual machine;
the generating of the target working text according to the working process information comprises:
and generating a target working text according to the preset number of working process information.
10. The apparatus of claim 9, wherein the obtaining unit is configured to:
and generating a target working text by the preset amount of working process information in a pipeline or copying mode.
CN202110742143.XA 2021-06-30 2021-06-30 Virtual machine fault detection method and device Active CN113626136B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110742143.XA CN113626136B (en) 2021-06-30 2021-06-30 Virtual machine fault detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110742143.XA CN113626136B (en) 2021-06-30 2021-06-30 Virtual machine fault detection method and device

Publications (2)

Publication Number Publication Date
CN113626136A true CN113626136A (en) 2021-11-09
CN113626136B CN113626136B (en) 2023-12-22

Family

ID=78378732

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110742143.XA Active CN113626136B (en) 2021-06-30 2021-06-30 Virtual machine fault detection method and device

Country Status (1)

Country Link
CN (1) CN113626136B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008191878A (en) * 2007-02-02 2008-08-21 Ricoh Co Ltd Remote diagnostic-failure responding system, remote diagnostic-failure responding device, remote diagnostic-failure response instruction device, remote diagnostic-falure responding method, and remote diagnostic-failure responding program
CN103593185A (en) * 2013-11-04 2014-02-19 浙江大学 Single-Linux-inner-core-based method for multiple Android systems to share input equipment and display equipment
CN107248927A (en) * 2017-05-02 2017-10-13 华为技术有限公司 Generation method, Fault Locating Method and the device of fault location model
CN107451043A (en) * 2017-08-17 2017-12-08 郑州云海信息技术有限公司 A kind of detection method and device of server stability
CN108139925A (en) * 2016-05-31 2018-06-08 博科通讯系统有限公司 The high availability of virtual machine
CN111901451A (en) * 2020-07-17 2020-11-06 中盈优创资讯科技有限公司 Method and device for combing reference relationship between private line user domain and address pool
CN111949427A (en) * 2020-07-31 2020-11-17 上海中通吉网络技术有限公司 Database-based fault monitoring method, device and equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008191878A (en) * 2007-02-02 2008-08-21 Ricoh Co Ltd Remote diagnostic-failure responding system, remote diagnostic-failure responding device, remote diagnostic-failure response instruction device, remote diagnostic-falure responding method, and remote diagnostic-failure responding program
CN103593185A (en) * 2013-11-04 2014-02-19 浙江大学 Single-Linux-inner-core-based method for multiple Android systems to share input equipment and display equipment
CN108139925A (en) * 2016-05-31 2018-06-08 博科通讯系统有限公司 The high availability of virtual machine
CN107248927A (en) * 2017-05-02 2017-10-13 华为技术有限公司 Generation method, Fault Locating Method and the device of fault location model
CN107451043A (en) * 2017-08-17 2017-12-08 郑州云海信息技术有限公司 A kind of detection method and device of server stability
CN111901451A (en) * 2020-07-17 2020-11-06 中盈优创资讯科技有限公司 Method and device for combing reference relationship between private line user domain and address pool
CN111949427A (en) * 2020-07-31 2020-11-17 上海中通吉网络技术有限公司 Database-based fault monitoring method, device and equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘金鑫;董卫宇;王炜;王立新;: "基于注解信息的系统虚拟机内存寻址优化技术", 计算机工程与设计, no. 09 *

Also Published As

Publication number Publication date
CN113626136B (en) 2023-12-22

Similar Documents

Publication Publication Date Title
CN108196878B (en) Method and device for generating application program installation package, electronic equipment and storage medium
CN104516732A (en) Application crash report method and system
CN106557384A (en) Based on the data processing method of Linux, device and system
CN111104315A (en) Test script generation method and device and computer readable storage medium
CN112241360B (en) Test case generation method, device, equipment and storage medium
CN110825399B (en) Deployment method and device of application program
CN109462507B (en) Configuration updating method, device and system and electronic equipment
JP6163707B2 (en) Embedded device, program creation device, program
CN111737137A (en) Interface test data generation method and device, host and storage medium
CN114546881B (en) Application software testing method, electronic device and computer readable storage medium
JP2007004255A (en) Program for debug support
CN113360379B (en) Program test environment creation method and program test environment creation apparatus
CN111382259A (en) Analysis method and device for APP crash logs
CN110362416B (en) Page component loading method and device, electronic equipment and storage medium
CN114218072A (en) Test script generation method and device, storage medium and computer equipment
CN108241543B (en) Method, service server and system for executing service operation breakpoint
CN113626136B (en) Virtual machine fault detection method and device
CN113934617A (en) Data processing method, device, equipment and storage medium
CN112416735A (en) Application program detection method and device, terminal equipment and storage medium
JP4636029B2 (en) Image forming apparatus and program
CN106557379B (en) Method and device for generating silent installation package
CN115344490A (en) Method and device for testing software product, storage medium and electronic equipment
CN111382079B (en) Method, device and equipment for restoring application program on site and storage medium
CN110362464B (en) Software analysis method and equipment
CN113886132B (en) Intelligent web-side error repairing method and device and computer-readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant