Virtual Machine Internal Fault Handling via Exception Catching Module
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current methods for detecting internal faults in virtual machines using heartbeat information are not accurate and timely, leading to resource wastage and potential recurrence of faults when the virtual machine is reset.
Innovation Solution
A method and system that utilize an exception catching module to monitor the virtual machine operating system for exceptions, obtain and report exception information, and apply policies to resolve the faults, leveraging non-maskable interrupts and user-defined functions for precise fault detection and prevention.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If heartbeat information is used to detect virtual machine faults, then the host machine can monitor virtual machine status, but the detection accuracy and timeliness are insufficient
Solution Approach 1:
The patent introduces an exception catching module as an intermediary component between the virtual machine operating system and the host machine. This module captures exception information when faults occur and transmits it to the host machine, enabling accurate and timely fault detection without relying on periodic heartbeat checks. The exception catching module acts as a mediator that directly reports faults to the host, eliminating the delays and inaccuracies of heartbeat-based monitoring.
2Ease of repair
If the virtual machine is reset to resolve faults, then the fault can be cleared, but the same fault may recur due to unresolved underlying issues
Solution Approach 1:
The patent implements a feedback mechanism where the host machine receives exception information from the exception catching module and sends back handling instructions. The host machine analyzes the exception information, determines appropriate handling policies, and transmits resolution instructions to the virtual machine. This closed-loop feedback system ensures that faults are not only resolved through reset but also that the underlying causes are addressed, preventing recurrence.
Solution Approach 2:
The exception catching module performs preliminary action by capturing and analyzing exception information before the fault fully impacts the virtual machine operation. The host machine receives this information early and can send handling instructions in advance, enabling preventive measures to be taken before the same fault occurs again during subsequent operations.
3Reliability
If periodic heartbeat monitoring is implemented, then the host machine can detect virtual machine status changes, but resource waste occurs during prolonged faults
Solution Approach 1:
The virtual machine's exception catching module performs self-service by automatically detecting and reporting its own faults to the host machine. This eliminates the need for the host machine to continuously perform resource-intensive heartbeat checks to detect virtual machine status changes. The exception catching module handles its own monitoring and reporting needs, significantly reducing host machine resource consumption while maintaining reliable fault detection.
Data Source
Figure 1
Figure 2~3
Figure 4
AI summary
Embodiments of the present invention disclose a method, an apparatus, and a system for handling a virtual machine internal fault, relate to the field of communication technologies, and solve a problem in the prior art that whether a virtual machine encounters an internal running fault is determined inaccurately, a fault cannot be found in a timely manner, and the fault may occur again due to a reason that causes the previous fault after the virtual machine runs again. The method includes: monitoring, by a virtual machine internal fault detecting apparatus, a state of a virtual machine operating system; when detecting that the virtual machine operating system encounters an exception, obtaining, by an exception catching module in the virtual machine internal fault detecting apparatus, exception information corresponding to the exception according to a context of the virtual machine operating system; and reporting, by the exception catching module, the exception information to a virtual machine monitoring apparatus, so that the virtual machine monitoring apparatus determines, according to the exception information, a policy for resolving the exception corresponding to the exception information, and resolves the exception corresponding to the exception information by using the policy. The present invention is applicable to a virtualized environment having a virtual machine.