[go: up one dir, main page]

CN111984969B - Virtual machine fault alarm method, device and electronic device - Google Patents

Virtual machine fault alarm method, device and electronic device Download PDF

Info

Publication number
CN111984969B
CN111984969B CN202010844384.0A CN202010844384A CN111984969B CN 111984969 B CN111984969 B CN 111984969B CN 202010844384 A CN202010844384 A CN 202010844384A CN 111984969 B CN111984969 B CN 111984969B
Authority
CN
China
Prior art keywords
virtual machine
module
operation module
migration
timer
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.)
Active
Application number
CN202010844384.0A
Other languages
Chinese (zh)
Other versions
CN111984969A (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.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network 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 Beijing Kingsoft Cloud Network Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN202010844384.0A priority Critical patent/CN111984969B/en
Publication of CN111984969A publication Critical patent/CN111984969A/en
Priority to PCT/CN2021/106346 priority patent/WO2022037332A1/en
Application granted granted Critical
Publication of CN111984969B publication Critical patent/CN111984969B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/52Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems during program execution, e.g. stack integrity ; Preventing unwanted data erasure; Buffer overflow
    • G06F21/53Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems during program execution, e.g. stack integrity ; Preventing unwanted data erasure; Buffer overflow by executing in a restricted environment, e.g. sandbox or secure virtual machine
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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 OR CALCULATING; 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/4557Distribution of virtual machine instances; Migration and load balancing

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Debugging And Monitoring (AREA)

Abstract

本申请提供了一种虚拟机的故障报警方法、装置及电子设备,其中,虚拟机包括至少一个指定操作模块,该方法包括:响应于虚拟机的进程运行至指定操作模块的初始位置,开启指定操作模块对应的定时器;响应于定时器的计时时长达到设定时长事件,判断虚拟机的进程是否运行至指定操作模块的结束位置;如果否,对虚拟机的指定操作模块进行故障报警。本申请能够及时发现虚拟机运行中的故障并进行实时报警。

The present application provides a virtual machine fault alarm method, device and electronic device, wherein the virtual machine includes at least one designated operation module, and the method includes: in response to the virtual machine process running to the initial position of the designated operation module, starting the timer corresponding to the designated operation module; in response to the timer timing reaching the set time event, judging whether the virtual machine process runs to the end position of the designated operation module; if not, issuing a fault alarm for the designated operation module of the virtual machine. The present application can timely discover faults in the operation of the virtual machine and issue a real-time alarm.

Description

Fault alarm method and device for virtual machine and electronic equipment
Technical Field
The present application relates to the field of data detection technologies, and in particular, to a fault alarm method and apparatus for a virtual machine, and an electronic device.
Background
Migration of a virtual machine is an important function of a virtual machine, and is to migrate a running virtual machine from one host machine to another host machine completely without stopping its running. Migration of virtual machines typically includes disk migration, memory migration, cpu state migration, and the like. During migration of the virtual machine, the migration may fail due to various unexpected situations, and if the failure cannot be found timely, normal operation of the whole system may be affected. Therefore, timely discovery of failures is an indispensable technique in virtual machine migration.
The conventional virtual machine migration fault discovery scheme mainly comprises a scheme for discovering migration faults based on qemu logs or libvirt logs. However, the qemu log and the libvirt log only alarm common migration faults (such as faults that the virtual machine cannot be started) which can be predicted in advance, so that more faults which are difficult to predict are difficult to find.
Disclosure of Invention
The application aims to provide a fault alarm method and device for a virtual machine and electronic equipment, which can timely discover faults in the running process of the virtual machine and give an alarm in real time.
In a first aspect, an embodiment of the present application provides a fault alarm method for a virtual machine, where the virtual machine includes at least one designated operation module, and the method includes starting a timer corresponding to the designated operation module in response to running of a process of the virtual machine to an initial position of the designated operation module, determining whether the running of the process of the virtual machine to an end position of the designated operation module in response to a time duration of the timer reaching a set time duration event, and if not, performing fault alarm on the designated operation module of the virtual machine.
The step of starting the timer corresponding to the specified operation module comprises the steps of responding to the running of the process of the virtual machine to the initial position of the specified operation module, reading the timer starting instruction and starting the timer corresponding to the specified operation module.
Further, the timer closing instruction is configured at the end position of the specified operation module, and the method further comprises the steps of responding to the process running to the end position of the specified operation module of the virtual machine, reading the timer closing instruction and closing the timer corresponding to the specified operation module.
The step of performing fault alarm on the appointed operation module of the virtual machine comprises the steps of calling the callback function in the timer to realize fault alarm on the appointed operation module of the virtual machine.
Further, the step of performing fault alarm on the specified operation module of the virtual machine further comprises the step of displaying prompt information that the specified operation module of the virtual machine has faults.
Further, the specified operation module comprises a module corresponding to virtual machine migration operation, wherein the virtual machine migration operation comprises disk migration operation and memory migration operation, the disk migration operation comprises disk migration preparation operation and disk migration execution operation, and the memory migration operation comprises memory migration preparation operation and memory migration execution operation.
The embodiment of the application also provides a fault alarm device of the virtual machine, wherein the virtual machine comprises at least one appointed operation module, the device comprises a timer starting module, a process judging module and a fault alarm module, wherein the timer starting module is used for starting a timer corresponding to the appointed operation module in response to the fact that a process of the virtual machine is operated to the initial position of the appointed operation module, the process judging module is used for judging whether the process of the virtual machine is operated to the end position of the appointed operation module in response to the fact that the timing duration of the timer reaches a set duration event, and the fault alarm module is used for carrying out fault alarm on the appointed operation module of the virtual machine when the judging result of the process judging module is NO.
Further, the specified operation module comprises a module corresponding to virtual machine migration operation, wherein the virtual machine migration operation comprises disk migration operation and memory migration operation, the disk migration operation comprises disk migration preparation operation and disk migration execution operation, and the memory migration operation comprises memory migration preparation operation and memory migration execution operation.
In a third aspect, an embodiment of the present application further provides an electronic device, including a processor and a memory, where the memory stores computer executable instructions executable by the processor, where the processor executes the computer executable instructions to implement the above method.
In a fourth aspect, embodiments of the present application also provide a computer-readable storage medium storing computer-executable instructions that, when invoked and executed by a processor, cause the processor to implement the above-described method.
In the fault alarm method, the fault alarm device and the electronic equipment for the virtual machine, the virtual machine comprises at least one appointed operation module, a corresponding timer is preset in each appointed operation module, when the process of the virtual machine runs to the initial position of the appointed operation module, the timer corresponding to the appointed operation module is started, when the timing duration of the timer reaches a set duration event, whether the process of the virtual machine runs to the end position of the appointed operation module is judged, if not, the appointed operation module of the virtual machine is subjected to fault alarm, and if not, whether the running process of the appointed operation module is ended in the set duration is judged through the timer set for the appointed operation module, so that whether the appointed operation module has faults or not can be determined, and if so, the fault is subjected to real-time alarm.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present application, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a fault alarm method for a virtual machine according to an embodiment of the present application;
fig. 2 is a schematic block diagram corresponding to a migration operation of a virtual machine according to an embodiment of the present application;
FIG. 3 is a block diagram of a fault alarm device for a virtual machine according to an embodiment of the present application;
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions of the present application will be clearly and completely described in connection with the embodiments, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Migration of a virtual machine is an important function of a virtual machine, and is to migrate a running virtual machine from one host machine to another host machine completely without stopping its running. Migration of virtual machines typically includes disk migration, memory migration, cpu state migration, and the like. During migration of the virtual machine, the migration may fail due to various unexpected situations, and if the failure cannot be found timely, normal operation of the whole system may be affected. Therefore, timely discovery of failures is an indispensable technique in virtual machine migration.
The conventional virtual machine migration fault discovery scheme mainly comprises a scheme for discovering migration faults based on qemu logs and a scheme for discovering migration faults based on libvirt logs. The qemu log and the libvirt log can only alarm common migration faults which can be predicted in advance (such as faults that a virtual machine cannot be started up, and the like), but in actual conditions, many faults are unpredictable and difficult to discover, and timely discovery and alarm of the faults cannot be achieved for the conditions.
Based on the above, the embodiment of the application provides a fault alarm method and device for a virtual machine and electronic equipment, which can timely discover faults in the running process of the virtual machine and alarm in real time.
Fig. 1 is a flowchart of a fault alarm method for a virtual machine, where the virtual machine includes at least one specified operation module, and the method specifically includes the following steps:
step S102, starting a timer corresponding to the appointed operation module in response to the process of the virtual machine running to the initial position of the appointed operation module.
The specified operation module may be a module corresponding to a virtual machine migration operation, for example, the virtual machine migration operation includes a disk migration operation and a memory migration operation, the disk migration operation includes a disk migration preparation operation and a disk migration execution operation, the memory migration operation includes a memory migration preparation operation and a memory migration execution operation, and accordingly, the specified operation module may be a module corresponding to a disk migration preparation operation, a module corresponding to a disk migration execution operation, a module corresponding to a memory migration preparation operation, and a module corresponding to a memory migration execution operation, and in addition, the specified operation module may also be a module corresponding to other operation operations, which is not limited in detail herein.
The designated operation module may be one module, or may be one module of multiple modules associated in sequence, and after the code corresponding to the designated operation module is run, the next operation is performed.
The setting code of the timer is added in advance to the code corresponding to each specified operation module, the time of the timer is set to be the operation reference time of the specified operation module, and different operation reference times are set for different specified operation modules, wherein the operation reference time can be determined according to multiple actual operation times of the specified operation module, for example, the maximum value of the multiple actual operation times is taken as the operation reference time, or the maximum value after the error value is removed is taken as the operation reference time, and other determination modes can also be adopted, so that the method is not particularly limited. When the process of the virtual machine runs to the initial position of the appointed operation module, a timer corresponding to the appointed operation module can be automatically started to start timing.
Step S104, in response to the time length of the timer reaching the time length setting event, judging whether the process of the virtual machine runs to the ending position of the appointed operation module.
When the timing duration of the timer reaches the set duration, that is, the duration of the running reference time, judging whether the process of the virtual machine is running to the end position of the specified operation module.
And S106, if the process of the virtual machine does not run to the end position of the appointed operation module, performing fault alarm on the appointed operation module of the virtual machine.
If the process of the virtual machine does not run to the end position of the appointed operation module within the set time length, the fact that the appointed operation module has faults in the running process is indicated, and therefore fault alarm can be conducted on the appointed operation module of the virtual machine. The alarm mode is various, for example, the timer can directly trigger the alarm operation, or the alarm program can be directly called to perform the alarm operation, etc.
In the fault alarm method for the virtual machine, the virtual machine comprises at least one appointed operation module, a corresponding timer is preset in each appointed operation module, when a process of the virtual machine runs to the initial position of the appointed operation module, the timer corresponding to the appointed operation module is started, when the timing duration of the timer reaches a set duration event, whether the process of the virtual machine runs to the end position of the appointed operation module is judged, if not, the appointed operation module of the virtual machine is subjected to fault alarm, and if not, whether the running process of the appointed operation module is ended in the set duration is judged through the timer set for the appointed operation module, so that whether the appointed operation module has faults or not can be determined, and if so, the fault alarm is carried out in real time.
The following describes the specific fault alarm implementation process in detail by taking migration operation of the virtual machine as an example:
In order to timely and accurately acquire whether a virtual machine has a fault condition in a migration operation process, in the embodiment of the application, firstly, the migration operation of the virtual machine is divided, the virtual machine migration operation can comprise a disk migration operation and a memory migration operation, the disk migration operation can comprise a disk migration preparation operation and a disk migration execution operation, and the memory migration operation can comprise a memory migration preparation operation and a memory migration execution operation, so that in the virtual machine migration operation process, a plurality of designated operation modules can be included, and are respectively a module corresponding to the disk migration preparation operation, a module corresponding to the disk migration execution operation, a module corresponding to the memory migration preparation operation and a module corresponding to the memory migration execution operation, and as shown in fig. 2, the programs of the four modules are sequentially executed.
A corresponding timer is arranged in each appointed operation module, and the corresponding set time of the timer is the reference time of the operation process of the appointed operation module. The timer may be implemented using a timer built in QEMU (a piece of software for running a virtual machine). The starting instruction of the timer is arranged at the initial position of each appointed operation module, and when the process of the virtual machine runs to the initial position of the appointed operation module, the starting instruction of the timer is read, and the timer corresponding to the appointed operation module is started.
And after the timer is started, starting to count time, judging whether the process of the virtual machine runs to the end position of the appointed operation module when the count time length reaches the set time length, and if not, performing fault alarm operation of the appointed operation module.
In this embodiment, a callback function is further provided in the timer, and a specific alarm function can be implemented in the callback function, so that alarm settings in different modes can be performed as required. When judging that the process of the virtual machine does not run to the end position of the appointed operation module within the appointed duration, triggering the overtime of the timer, thereby calling a callback function in the timer and realizing fault alarm of the appointed operation module of the virtual machine.
And when the process of the virtual machine runs to the end position of the appointed operation module, reading the timer closing instruction and closing the timer corresponding to the appointed operation module.
It should be noted that the above specified operation module may correspond to a plurality of outlets, that is, a plurality of end positions, and when the process of the virtual machine runs to any one of the end positions of the specified operation module, the timer needs to be turned off.
As a preferred implementation manner, the step of alarming the fault of the specified operation module of the virtual machine may further include displaying a prompt message that the specified operation module of the virtual machine has a fault. For example, the displayed prompt may be accompanied by an alarm identifier, such as "|".
In the prior art, only faults which are known to exist clearly can be found, and the faults can be identified, found and alarmed only by knowing the existence of the faults and the possibility of occurrence of the faults in advance. The fault alarm method of the virtual machine provided by the embodiment of the application does not pay attention to the specific details or types of faults, only pays attention to the consequences of the program execution exceeding the normal time, and can alarm as long as the fault causes the program execution exceeding the normal time no matter what kind of fault is. Therefore, the embodiment of the application can discover and alarm unexpected and unknown faults.
Based on the above method embodiment, the embodiment of the present application further provides a fault alarm device for a virtual machine, where the virtual machine includes at least one specified operation module, as shown in fig. 3, and the device includes:
a timer opening module 32, configured to open a timer corresponding to the specified operation module in response to the process of the virtual machine running to the initial position of the specified operation module;
A process judging module 34, configured to judge whether the process of the virtual machine is running to the end position of the specified operation module in response to the timing duration of the timer reaching the set duration event;
the failure alarm module 36 is configured to perform failure alarm on the designated operation module of the virtual machine when the determination result of the process determination module is no.
In another possible implementation manner, the initial position of the specified operation module is configured with a timer starting instruction, and the timer starting module 32 is further configured to read the timer starting instruction and start a timer corresponding to the specified operation module in response to the process of the virtual machine running to the initial position of the specified operation module.
In another possible implementation manner, the end position of the specified operation module is configured with a timer closing instruction, and the device further comprises a timer closing module, which is used for reading the timer closing instruction and closing a timer corresponding to the specified operation module in response to the process of the virtual machine running to the end position of the specified operation module.
In another possible implementation manner, the timer is provided with a callback function, the callback function is used for realizing alarm operation, and the fault alarm module 36 is further used for calling the callback function in the timer and realizing fault alarm on a designated operation module of the virtual machine.
In another possible implementation, the fault alarm module 36 is further configured to display a notification that a fault exists in a specified operation module of the virtual machine.
In another possible implementation manner, the specified operation module includes a module corresponding to a virtual machine migration operation, the virtual machine migration operation includes a disk migration operation and a memory migration operation, the disk migration operation includes a disk migration preparation operation and a disk migration execution operation, and the memory migration operation includes a memory migration preparation operation and a memory migration execution operation.
The fault alarm device for the virtual machine provided by the embodiment of the application has the same implementation principle and technical effects as those of the fault alarm method embodiment of the virtual machine, and for brief description, the corresponding content in the fault alarm method embodiment of the virtual machine can be referred to where the embodiment part of the fault alarm device for the virtual machine is not mentioned.
The embodiment of the present application further provides an electronic device, as shown in fig. 4, which is a schematic structural diagram of the electronic device, where the electronic device includes a processor 41 and a memory 40, the memory 40 stores computer executable instructions that can be executed by the processor 41, and the processor 41 executes the computer executable instructions to implement the fault alarm method of the virtual machine.
In the embodiment shown in fig. 4, the electronic device further comprises a bus 42 and a communication interface 43, wherein the processor 41, the communication interface 43 and the memory 40 are connected by the bus 42.
The memory 40 may include a high-speed random access memory (RAM, random Access Memory), and may further include a non-volatile memory (non-volatile memory), such as at least one disk memory. The communication connection between the system network element and the at least one other network element is achieved via at least one communication interface 43 (which may be wired or wireless), which may use the internet, a wide area network, a local network, a metropolitan area network, etc. Bus 42 may be an ISA (Industry Standard Architecture ) bus, PCI (PERIPHERAL COMPONENT INTERCONNECT, peripheral component interconnect standard) bus, or EISA (Extended Industry Standard Architecture ) bus, among others. The bus 42 may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, only one bi-directional arrow is shown in FIG. 4, but not only one bus or type of bus.
The processor 41 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in the processor 41 or by instructions in the form of software. The Processor 41 may be a general-purpose Processor, including a central processing unit (Central Processing Unit, CPU), a network Processor (Network Processor, NP), a digital signal Processor (DIGITAL SIGNAL Processor, DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable gate array (FPGA) or other Programmable logic device, discrete gate or transistor logic device, or discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be embodied directly in the execution of a hardware decoding processor, or in the execution of a combination of hardware and software modules in a decoding processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory, and the processor 41 reads the information in the memory, and in combination with the hardware thereof, completes the steps of the fault alarm method of the virtual machine in the foregoing embodiment.
The embodiment of the application also provides a computer readable storage medium, which stores computer executable instructions that, when being called and executed by a processor, cause the processor to implement the fault alarm method of the virtual machine, and the specific implementation can be found in the foregoing method embodiments, which are not repeated herein.
The method, the device and the computer program product of the electronic device for alarming faults of the virtual machine provided by the embodiment of the application comprise a computer readable storage medium storing program codes, and the instructions included in the program codes can be used for executing the method for alarming faults of the virtual machine described in the method embodiment, and specific implementation can be seen in the method embodiment and will not be repeated here.
The relative steps, numerical expressions and numerical values of the components and steps set forth in these embodiments do not limit the scope of the present application unless it is specifically stated otherwise.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer readable storage medium executable by a processor. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. The storage medium includes a U disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, an optical disk, or other various media capable of storing program codes.
In the description of the present application, it should be noted that the directions or positional relationships indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. are based on the directions or positional relationships shown in the drawings, are merely for convenience of describing the present application and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present application. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
It should be noted that the foregoing embodiments are merely illustrative embodiments of the present application, and not restrictive, and the scope of the application is not limited to the embodiments, and although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those skilled in the art that any modification, variation or substitution of some of the technical features of the embodiments described in the foregoing embodiments may be easily contemplated within the scope of the present application, and the spirit and scope of the technical solutions of the embodiments do not depart from the spirit and scope of the embodiments of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (8)

1. The fault alarm method for the virtual machine is characterized in that the virtual machine comprises at least one designated operation module, the designated operation module comprises a module corresponding to virtual machine migration operation, the virtual machine migration operation comprises disk migration operation and memory migration operation, the disk migration operation comprises disk migration preparation operation and disk migration execution operation, the memory migration operation comprises memory migration preparation operation and memory migration execution operation, and the method comprises the following steps:
Starting a timer corresponding to the appointed operation module in response to the process of the virtual machine running to the initial position of the appointed operation module;
judging whether the process of the virtual machine runs to the ending position of the appointed operation module or not according to the event that the timing duration of the timer reaches the set duration;
And if not, carrying out fault alarm on the appointed operation module of the virtual machine.
2. The method of claim 1, wherein the initial position of the designated operation module is configured with a timer-on command, and wherein the step of starting the timer corresponding to the designated operation module in response to the process of the virtual machine running to the initial position of the designated operation module comprises:
And responding to the initial position of the appointed operation module when the process of the virtual machine runs to the appointed operation module, reading the timer starting instruction, and starting a timer corresponding to the appointed operation module.
3. The method of claim 2, wherein the end position of the designated operational module is configured with a timer-off instruction, the method further comprising:
And responding to the process running to the end position of the appointed operation module of the virtual machine, reading the timer closing instruction, and closing the timer corresponding to the appointed operation module.
4. The method of claim 1, wherein a callback function is provided in the timer, the callback function being used to implement an alarm operation, and the step of performing a fault alarm on the specified operation module of the virtual machine comprises:
And calling the callback function in the timer to realize fault alarm of the appointed operation module of the virtual machine.
5. The method of claim 4, wherein the step of alerting the designated operational module of the virtual machine to faults further comprises:
and displaying prompt information of faults of the appointed operation module of the virtual machine.
6. The fault alarm device for the virtual machine is characterized in that the virtual machine comprises at least one appointed operation module, the appointed operation module comprises a module corresponding to virtual machine migration operation, the virtual machine migration operation comprises disk migration operation and memory migration operation, the disk migration operation comprises disk migration preparation operation and disk migration execution operation, the memory migration operation comprises memory migration preparation operation and memory migration execution operation, and the device comprises:
The timer starting module is used for starting a timer corresponding to the appointed operation module in response to the process of the virtual machine running to the initial position of the appointed operation module;
The process judging module is used for judging whether the process of the virtual machine runs to the ending position of the appointed operation module or not in response to the fact that the timing time length of the timer reaches the set time length event;
And the fault alarm module is used for carrying out fault alarm on the appointed operation module of the virtual machine when the judging result of the process judging module is negative.
7. An electronic device comprising a processor and a memory, the memory storing computer-executable instructions executable by the processor, the processor executing the computer-executable instructions to implement the method of any one of claims 1 to 5.
8. A computer readable storage medium storing computer executable instructions which, when invoked and executed by a processor, cause the processor to implement the method of any one of claims 1 to 5.
CN202010844384.0A 2020-08-20 2020-08-20 Virtual machine fault alarm method, device and electronic device Active CN111984969B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010844384.0A CN111984969B (en) 2020-08-20 2020-08-20 Virtual machine fault alarm method, device and electronic device
PCT/CN2021/106346 WO2022037332A1 (en) 2020-08-20 2021-07-14 Fault alarm method and apparatus for virtual machine, and electronic device and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010844384.0A CN111984969B (en) 2020-08-20 2020-08-20 Virtual machine fault alarm method, device and electronic device

Publications (2)

Publication Number Publication Date
CN111984969A CN111984969A (en) 2020-11-24
CN111984969B true CN111984969B (en) 2024-12-27

Family

ID=73442671

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010844384.0A Active CN111984969B (en) 2020-08-20 2020-08-20 Virtual machine fault alarm method, device and electronic device

Country Status (2)

Country Link
CN (1) CN111984969B (en)
WO (1) WO2022037332A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111984969B (en) * 2020-08-20 2024-12-27 北京金山云网络技术有限公司 Virtual machine fault alarm method, device and electronic device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104794016A (en) * 2015-04-23 2015-07-22 惠州Tcl移动通信有限公司 Mobile terminal crash testing and processing method and system

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1962192A1 (en) * 2007-02-21 2008-08-27 Deutsche Telekom AG Method and system for the transparent migration of virtual machine storage
US8341627B2 (en) * 2009-08-21 2012-12-25 Mcafee, Inc. Method and system for providing user space address protection from writable memory area in a virtual environment
CN102521098B (en) * 2011-11-23 2014-12-10 中兴通讯股份有限公司 Processing method and processing device for monitoring dead halt of CPU (Central Processing Unit)
CN102902599B (en) * 2012-09-17 2016-08-24 华为技术有限公司 Virtual machine internal fault handling method, Apparatus and system
CN107179957B (en) * 2016-03-10 2020-08-25 阿里巴巴集团控股有限公司 Physical machine fault classification processing method and device and virtual machine recovery method and system
WO2018010068A1 (en) * 2016-07-11 2018-01-18 华为技术有限公司 Method and device for providing alert in network function virtualization environment
WO2018101736A1 (en) * 2016-11-30 2018-06-07 제주대학교 산학협력단 Method and apparatus for migrating virtual machine
CN107704314B (en) * 2017-11-09 2023-09-12 北京百度网讯科技有限公司 Method and apparatus for migrating virtual machines
CN108334401B (en) * 2018-01-31 2020-07-28 武汉噢易云计算股份有限公司 System and method for realizing logic roll dynamic distribution and supporting virtual machine dynamic migration
US11074095B2 (en) * 2019-01-04 2021-07-27 International Business Machines Corporation Event-based virtual machine that hosts microservices for handling program faults
CN110389838B (en) * 2019-07-24 2021-06-25 北京邮电大学 A real-time scheduling and online migration control method suitable for virtual resources
CN111984969B (en) * 2020-08-20 2024-12-27 北京金山云网络技术有限公司 Virtual machine fault alarm method, device and electronic device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104794016A (en) * 2015-04-23 2015-07-22 惠州Tcl移动通信有限公司 Mobile terminal crash testing and processing method and system

Also Published As

Publication number Publication date
CN111984969A (en) 2020-11-24
WO2022037332A1 (en) 2022-02-24

Similar Documents

Publication Publication Date Title
US20210182136A1 (en) Fault Processing Method, Related Apparatus, and Computer
CN108851186B (en) Online error prevention method and system for tobacco shred production quality and electronic equipment
CN114780319A (en) Chip testing method, system, storage medium, equipment and chip
CN111984969B (en) Virtual machine fault alarm method, device and electronic device
CN112995656A (en) Anomaly detection method and system for image processing circuit
CN113282501A (en) Block chain testing method and device and electronic equipment
CN113157504A (en) Touch screen equipment testing method and touch screen equipment testing system
CN109992511B (en) Device and method for obtaining code test coverage rate
CN112241534B (en) Evidence obtaining method and device for electronic evidence, evidence obtaining equipment and medium
JP2016181055A (en) Information processing apparatus
CN111733572B (en) Heating treatment method and device and electronic equipment
CN111176946A (en) SEL log recording method, device, equipment and storage medium
CN116756037A (en) Abnormal code positioning system, method, equipment and computer readable storage medium
CN115525501A (en) Method and device for reporting crash information, electronic equipment and storage medium
CN116719677A (en) Failure analysis methods, devices, equipment and storage media
CN110442119B (en) ECU pin repeated configuration detection method and device
CN109659901B (en) Protection method and device for direct current motor and electronic equipment
JP2001331342A (en) Method for displaying information processor error and recording medium with error display program recorded thereon
CN114090424A (en) Troubleshooting method, troubleshooting device, troubleshooting equipment and computer storage medium
CN114911176B (en) A special vehicle control system parameter processing method and device
CN116107538B (en) Audio playing method, device, electronic equipment and storage medium
JPS58181160A (en) Controlling system of emergency operation
CN115114065B (en) A memory repair method, system, storage medium and device
CN113626233B (en) Method, device and equipment for automatically detecting BIOS watchdog function
TW200846901A (en) Method for diagnosing system abnormality

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