Virtual Machine Migration Kernel Module Shutdown Detection
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing virtual machine migration methods fail to accurately detect impending physical machine shutdowns, leading to unnecessary migrations or missed opportunities due to reliance on threshold-based monitoring of key indicators.
Innovation Solution
A method and apparatus that load a target kernel module to assess the electronic device's running state, determining whether to perform a shutdown or migrate a virtual machine based on abnormal events and processor ratios, adjusting scheduling priorities and affinity to optimize migration success.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Measurement precision
If threshold-based monitoring of key indicators is used to detect impending shutdowns, then the monitoring process is simple, but the detection accuracy is low leading to unnecessary migrations or missed opportunities
Solution Approach 1:
The patent changes the monitoring parameters from simple threshold-based key indicators (CPU utilization, memory usage) to multiple system state parameters including abnormal event types, processor ratios, and system logs. This allows more accurate detection of impending shutdowns by analyzing the combination and evolution of multiple parameters rather than relying on single threshold crossings.
Solution Approach 2:
The patent introduces a kernel module as an intermediary component that captures abnormal events and system states at the operating system level. This intermediary provides detailed internal system information that bridges the gap between simple monitoring and accurate failure prediction, enabling precise detection without excessive complexity.
2Reliability
If virtual machine migration is performed based on inaccurate detection, then unnecessary migrations occur wasting resources, but the virtual machine availability is maintained
Solution Approach 1:
The patent implements a feedback mechanism where the system continuously monitors abnormal events, processor ratios, and system states, then uses this feedback to dynamically adjust migration decisions. The kernel module provides real-time feedback on system health, allowing the migration system to distinguish between transient anomalies and genuine shutdown precursors, thereby reducing unnecessary migrations while maintaining high availability.
Solution Approach 2:
The patent performs preliminary analysis of system state information and abnormal events before triggering migration. By evaluating multiple parameters in advance and identifying patterns indicative of impending shutdowns, the system can make informed migration decisions that avoid both unnecessary migrations and missed opportunities, optimizing resource usage while ensuring availability.
3Difficulty of detecting and measuring
If kernel module is loaded to detect abnormal events, then the detection capability is enhanced, but the system complexity increases
Solution Approach 1:
The patent segments the detection functionality into a separate kernel module that operates independently from the user-space migration logic. This segmentation allows the complex detection capabilities to be isolated in a dedicated component, making the overall system more manageable and maintainable while enhancing detection capability through specialized kernel-level monitoring.
Data Source
AI summary
Embodiments of the disclosure disclose a method and apparatus for migrating a virtual machine. A specific embodiment of the method comprises: loading a target kernel module of a target operating system, the target operating system used for controlling a target electronic device running a virtual machine, and the target kernel module used for performing a shutdown operation for the target electronic device; determining whether to perform the shutdown operation based on electronic device running state information of the target electronic device; determining whether to migrate the virtual machine when a preset triggering condition is met, in response to determining not to perform the shutdown operation; and migrating the virtual machine if determining to migrate the virtual machine.


