CN110347474A - A kind of method and device managing virtual machine - Google Patents

A kind of method and device managing virtual machine Download PDF

Info

Publication number
CN110347474A
CN110347474A CN201910461592.XA CN201910461592A CN110347474A CN 110347474 A CN110347474 A CN 110347474A CN 201910461592 A CN201910461592 A CN 201910461592A CN 110347474 A CN110347474 A CN 110347474A
Authority
CN
China
Prior art keywords
virtual machine
network flow
resetting
abnormal
machine network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910461592.XA
Other languages
Chinese (zh)
Inventor
蒋晨晓
刘洋
张兆增
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Wave Intelligent Technology Co Ltd
Original Assignee
Suzhou Wave Intelligent 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 Suzhou Wave Intelligent Technology Co Ltd filed Critical Suzhou Wave Intelligent Technology Co Ltd
Priority to CN201910461592.XA priority Critical patent/CN110347474A/en
Publication of CN110347474A publication Critical patent/CN110347474A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/301Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is a virtual computing platform, e.g. logically partitioned systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45575Starting, stopping, suspending or resuming virtual machine instances
    • 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/45595Network integration; Enabling network access in virtual machine instances

Abstract

The invention discloses a kind of methods for managing virtual machine, comprising: monitoring virtual machine network flow determines whether virtual machine network flow is abnormal;As exception resets virtual machine then when virtual machine network flow Abnormal lasting exceeds preset Abnormal lasting threshold value.Also disclose a kind of device for managing virtual machine.The High Availabitity of separate unit virtual machine may be implemented in this programme, can be analyzed using port, flow and flow packet as a result, judging virtual machine operating status with this based on virtual machine business network institute.

Description

A kind of method and device managing virtual machine
Technical field
The present invention relates to computer virtualized field, espespecially a kind of method and device for managing virtual machine.
Background technique
With the continuous maturation of the theories such as cloud computing, virtualization and technology, received to recognize by more and more industries and user Can, cloud computing production environment disposes the continuous growth of scale.In cloud platform, virtual machine operation stability is particularly important, it is straight Connect the stability and user experience for being related to application system.Cloud platform has existed numerous technologies to guarantee that virtual machine is transported at present Capable stability, including mainframe cluster, HA (High Available, High Availabitity), DRS (Distributed Resource Scheduler, distributed resource scheduling), virtual machine (vm) migration, FT (Fault Tolerance, fault-tolerant) etc..Pass through these skills Flexible, stable, the lasting work of virtual machine may be implemented in cloud platform in art, improves user's application system stability.
But find in actual use, current most virtual machine High Availabitity is all based on mainframe cluster realization Function, can not for single virtual machine realize High Availabitity.Even FT technology, it is also desirable to set shadow for source virtual machine Virtual machine, when source virtual machine breaks down, Shadow Virtual machine directly takes over source virtual machine and works, and FT technology needs Occupying certain physical resource just may be implemented.Dead (such as Windows operating system blue screen) is rammed for VME operating system The case where, cloud management platform can not perceive, and also just cannot achieve automatic monitoring and management, High Availabitity are not just known where to begin yet.
Summary of the invention
In order to solve the above-mentioned technical problems, the present invention provides a kind of method and devices for managing virtual machine, to realize list Platform virtual machine High Availabitity.
In order to reach the object of the invention, the present invention provides a kind of methods for managing virtual machine, comprising:
Virtual machine network flow is monitored, determines whether virtual machine network flow is abnormal;
Such as exception, then when virtual machine network flow Abnormal lasting exceeds preset Abnormal lasting threshold value, weight Set virtual machine.
Further, the monitoring virtual machine network flow determines virtual machine network flow exception, comprising:
During monitoring virtual machine network flow, virtual machine network flow data packet is obtained, according to the void obtained Quasi- machine network flow data packet, the used port and protocol of virtual machine business determine whether virtual machine network flow is abnormal.
Further, virtual machine network flow data packet is obtained with the corresponding sampling frequency of pre-set level.
Further, after the resetting virtual machine, further includes:
According to the virtual machine return power supply status judge whether the virtual machine resets success, if failing-resetting after Continue to the virtual machine and issue resetting order, such as the virtual machine still failing-resetting after resetting predetermined number of times, then stops issuing Resetting order, and report and alarm.
A kind of device managing virtual machine, comprising: memory and processor;Wherein:
The memory, for saving the program for managing virtual machine;
The processor executes the program for being used to manage virtual machine for reading, performs the following operations:
Virtual machine network flow is monitored, determines whether virtual machine network flow is abnormal;
Such as exception, then when virtual machine network flow Abnormal lasting exceeds preset Abnormal lasting threshold value, weight Set virtual machine.
Further, the monitoring virtual machine network flow determines virtual machine network flow exception, comprising:
During monitoring virtual machine network flow, virtual machine network flow data packet is obtained, according to the void obtained Quasi- machine network flow data packet, the used port and protocol of virtual machine business determine whether virtual machine network flow is abnormal.
Further, virtual machine network flow data packet is obtained with the corresponding sampling frequency of pre-set level.
Further, after the resetting virtual machine, further includes:
According to the virtual machine return power supply status judge whether the virtual machine resets success, if failing-resetting after Continue to the virtual machine and issue resetting order, such as the virtual machine still failing-resetting after resetting predetermined number of times, then stops issuing Resetting order, and report and alarm.
The High Availabitity of separate unit virtual machine may be implemented in the method for the present embodiment, can be used based on virtual machine business network Port, flow and the analysis of flow packet are as a result, judge virtual machine operating status with this.When the time threshold set in administrator, When port, flow are abnormal beyond time threshold, virtual machine is reset by sending instructions under cloud management platform, realizes that virtual machine is held It carries application to restart, realizes virtual machine High Availabitity to a certain extent
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by specification, right Specifically noted structure is achieved and obtained in claim and attached drawing.
Detailed description of the invention
Attached drawing is used to provide to further understand technical solution of the present invention, and constitutes part of specification, with this The embodiment of application technical solution for explaining the present invention together, does not constitute the limitation to technical solution of the present invention.
Fig. 1 is the flow chart of the method for the management virtual machine of the embodiment of the present invention;
Fig. 2 is a kind of schematic diagram of the device of management virtual machine of the embodiment of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application Feature can mutual any combination.
Step shown in the flowchart of the accompanying drawings can be in a computer system such as a set of computer executable instructions It executes.Also, although logical order is shown in flow charts, and it in some cases, can be to be different from herein suitable Sequence executes shown or described step.
Fig. 1 is the flow chart of the method for the management virtual machine of the embodiment of the present invention, as shown in Figure 1, the method for the present embodiment Include:
Step 11, monitoring virtual machine network flow determine whether virtual machine network flow is abnormal;
It is step 12, such as abnormal, then when virtual machine network flow Abnormal lasting exceeds preset Abnormal lasting threshold When value, virtual machine is reset.
The High Availabitity of separate unit virtual machine may be implemented in the method for the present embodiment, can be used based on virtual machine business network Port, flow and the analysis of flow packet are as a result, judge virtual machine operating status with this.When the time threshold set in administrator, When port, flow are abnormal beyond time threshold, virtual machine is reset by sending instructions under cloud management platform, realizes that virtual machine is held It carries application to restart, realizes virtual machine High Availabitity to a certain extent, virtual machine business interruption time length depends on virtual machine Os starting time and application starting time.This method has jumped out the concept of cluster or two-shipper, is not increasing hardware resource In the case where expense, the High Availabitity of separate unit virtual machine is realized on the break period of minute grade.
Method of the invention is described in detail with a specific embodiment below.
Premise: virtual machine is worked normally in cloud environment.
Step 101: opening virtual machine High Availabitity function on cloud management platform, read preconfigured virtual machine business and use Network interface card, virtual machine business institute are come into force rank using port and protocol, High Availabitity entry-into-force time, High Availabitity;
Entry-into-force time: defining the High Availabitity function entry-into-force time, when time range determines that virtual machine occurs abnormal, can just touch High Availabitity is sent out, virtual machine is reset;
Come into force rank: can define High Availabitity and come into force rank, such as can be divided into high, medium and low three ranks;Different grades It is different that different data monitoring sampling frequencys is not represented, and Abnormal lasting threshold value is different.
Step 102: open virtual machine network flow monitoring, set according to administrator, according to pre-set rank pair The sampling frequency collection network data on flows packet answered, and data-in library;
Step 103: obtaining virtual machine essential information, including virtual machine ID, network interface card MAC (Media Access Control Address, media access control address);Inter-related task can be logged by by getting virtual machine essential information, after convenient Check failure.
Step 104: according to having obtained network flow data packet, whether High Availabitity parameter determines virtual machine network flow It is abnormal;
Here High Availabitity parameter may include: time threshold port, wait flow informations.
Step 105: according to preset Abnormal lasting threshold value, when Abnormal lasting exceeds Abnormal lasting After threshold value, virtual machine High Availabitity is triggered;
Step 106: virtual machine being reset by cloud management platform, and the power supply status judgement resetting returned according to virtual machine is No success continues to issue resetting order if failing-resetting, still fails after resetting n times, terminate and reset and report management Platform alarm;
Step 107: virtual machine restarts success, realizes virtual machine High Availabitity.
Fig. 2 is a kind of schematic diagram of the device of management virtual machine of the embodiment of the present invention, as shown in Fig. 2, the present embodiment Device may include: memory and processor, wherein
The memory, for saving the program for managing virtual machine;
The processor executes the program for being used to manage virtual machine for reading, performs the following operations:
Virtual machine network flow is monitored, determines whether virtual machine network flow is abnormal;
Such as exception, then when virtual machine network flow Abnormal lasting exceeds preset Abnormal lasting threshold value, weight Set virtual machine.
In one embodiment, the monitoring virtual machine network flow determines virtual machine network flow exception, may include:
During monitoring virtual machine network flow, virtual machine network flow data packet is obtained, according to the void obtained Quasi- machine network flow data packet, the used port and protocol of virtual machine business determine whether virtual machine network flow is abnormal.
In one embodiment, virtual machine network flow data packet is obtained with the corresponding sampling frequency of pre-set level.
In one embodiment, after the resetting virtual machine, further includes:
According to the virtual machine return power supply status judge whether the virtual machine resets success, if failing-resetting after Continue to the virtual machine and issue resetting order, such as the virtual machine still failing-resetting after resetting predetermined number of times, then stops issuing Resetting order, and report and alarm.
The method of the embodiment of the present invention, it is comprehensive by being carried out to the used port of virtual machine business network, flow and flow packet Analysis is closed, determines virtual machine operating status according to this.When determining that virtual machine exception occurs and meets administrator's preset condition, Virtual electromechanical source is reset, is also equivalent to restart the carried application of virtual machine.This method has jumped out the concept of cluster or two-shipper, In the case where not increasing hardware resource cost, the High Availabitity of separate unit virtual machine is realized on the break period of minute grade.
The embodiment of the invention also provides a kind of computer readable storage mediums, are stored with computer executable instructions, The computer executable instructions are performed the method for realizing the management virtual machine.
It will appreciated by the skilled person that whole or certain steps, system, dress in method disclosed hereinabove Functional module/unit in setting may be implemented as software, firmware, hardware and its combination appropriate.In hardware embodiment, Division between the functional module/unit referred in the above description not necessarily corresponds to the division of physical assemblies;For example, one Physical assemblies can have multiple functions or a function or step and can be executed by several physical assemblies cooperations.Certain groups Part or all components may be implemented as by processor, such as the software that digital signal processor or microprocessor execute, or by It is embodied as hardware, or is implemented as integrated circuit, such as specific integrated circuit.Such software can be distributed in computer-readable On medium, computer-readable medium may include computer storage medium (or non-transitory medium) and communication media (or temporarily Property medium).As known to a person of ordinary skill in the art, term computer storage medium is included in for storing information (such as Computer readable instructions, data structure, program module or other data) any method or technique in the volatibility implemented and non- Volatibility, removable and nonremovable medium.Computer storage medium include but is not limited to RAM, ROM, EEPROM, flash memory or its His memory technology, CD-ROM, digital versatile disc (DVD) or other optical disc storages, magnetic holder, tape, disk storage or other Magnetic memory apparatus or any other medium that can be used for storing desired information and can be accessed by a computer.This Outside, known to a person of ordinary skill in the art to be, communication media generally comprises computer readable instructions, data structure, program mould Other data in the modulated data signal of block or such as carrier wave or other transmission mechanisms etc, and may include any information Delivery media.

Claims (8)

1. a kind of method for managing virtual machine characterized by comprising
Virtual machine network flow is monitored, determines whether virtual machine network flow is abnormal;
Such as exception, then when virtual machine network flow Abnormal lasting exceeds preset Abnormal lasting threshold value, resetting is empty Quasi- machine.
2. the method according to claim 1, wherein the monitoring virtual machine network flow, determines virtual machine net Network Traffic Anomaly, comprising:
During monitoring virtual machine network flow, virtual machine network flow data packet is obtained, according to the virtual machine obtained The used port and protocol of network flow data packet, virtual machine business determines whether virtual machine network flow is abnormal.
3. according to the method described in claim 2, it is characterized in that,
Virtual machine network flow data packet is obtained with the corresponding sampling frequency of pre-set level.
4. method according to claim 1-3, which is characterized in that after the resetting virtual machine, further includes:
According to the virtual machine return power supply status judge whether the virtual machine resets success, continue if failing-resetting to The virtual machine issues resetting order, such as the virtual machine still failing-resetting after resetting predetermined number of times, then stops issuing resetting Order, and report and alarm.
5. a kind of device for managing virtual machine, comprising: memory and processor;It is characterized by:
The memory, for saving the program for managing virtual machine;
The processor executes the program for being used to manage virtual machine for reading, performs the following operations:
Virtual machine network flow is monitored, determines whether virtual machine network flow is abnormal;
Such as exception, then when virtual machine network flow Abnormal lasting exceeds preset Abnormal lasting threshold value, resetting is empty Quasi- machine.
6. device according to claim 5, which is characterized in that the monitoring virtual machine network flow determines virtual machine net Network Traffic Anomaly, comprising:
During monitoring virtual machine network flow, virtual machine network flow data packet is obtained, according to the virtual machine obtained The used port and protocol of network flow data packet, virtual machine business determines whether virtual machine network flow is abnormal.
7. device according to claim 6, which is characterized in that
Virtual machine network flow data packet is obtained with the corresponding sampling frequency of pre-set level.
8. according to the described in any item devices of claim 5-7, which is characterized in that after the resetting virtual machine, further includes:
According to the virtual machine return power supply status judge whether the virtual machine resets success, continue if failing-resetting to The virtual machine issues resetting order, such as the virtual machine still failing-resetting after resetting predetermined number of times, then stops issuing resetting Order, and report and alarm.
CN201910461592.XA 2019-05-30 2019-05-30 A kind of method and device managing virtual machine Pending CN110347474A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910461592.XA CN110347474A (en) 2019-05-30 2019-05-30 A kind of method and device managing virtual machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910461592.XA CN110347474A (en) 2019-05-30 2019-05-30 A kind of method and device managing virtual machine

Publications (1)

Publication Number Publication Date
CN110347474A true CN110347474A (en) 2019-10-18

Family

ID=68174412

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910461592.XA Pending CN110347474A (en) 2019-05-30 2019-05-30 A kind of method and device managing virtual machine

Country Status (1)

Country Link
CN (1) CN110347474A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111104199A (en) * 2019-11-19 2020-05-05 杭州海康威视系统技术有限公司 Method and device for high availability of virtual machine
CN111338886A (en) * 2019-12-17 2020-06-26 华迪计算机集团有限公司 High-availability protection method and device based on cloud environment virtual machine
CN112069032A (en) * 2020-09-11 2020-12-11 杭州安恒信息技术股份有限公司 Availability detection method, system and related device for virtual machine
CN112817686A (en) * 2019-11-15 2021-05-18 北京百度网讯科技有限公司 Method, device and equipment for detecting exception of virtual machine and computer storage medium
CN114167193A (en) * 2022-02-09 2022-03-11 通号(长沙)轨道交通控制技术有限公司 Self-diagnosis method for AC/DC screen

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110246669A1 (en) * 2010-03-30 2011-10-06 Hitachi, Ltd. Method and system of virtual machine migration
CN102591671A (en) * 2011-01-14 2012-07-18 鸿富锦精密工业(深圳)有限公司 Method for starting application program in virtual environment
CN102902599A (en) * 2012-09-17 2013-01-30 华为技术有限公司 Virtual machine internal fault processing method, device and system
CN103457958A (en) * 2013-09-18 2013-12-18 浪潮电子信息产业股份有限公司 Cloud computing network server inner core safe access method
CN106817243A (en) * 2015-12-01 2017-06-09 广达电脑股份有限公司 Management system and management method for server resources
CN107196803A (en) * 2017-05-31 2017-09-22 中国人民解放军信息工程大学 The dynamic generation and maintaining method of isomery cloud main frame
CN107667505A (en) * 2015-06-05 2018-02-06 思科技术公司 System for monitoring and managing data center

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110246669A1 (en) * 2010-03-30 2011-10-06 Hitachi, Ltd. Method and system of virtual machine migration
CN102591671A (en) * 2011-01-14 2012-07-18 鸿富锦精密工业(深圳)有限公司 Method for starting application program in virtual environment
CN102902599A (en) * 2012-09-17 2013-01-30 华为技术有限公司 Virtual machine internal fault processing method, device and system
CN103457958A (en) * 2013-09-18 2013-12-18 浪潮电子信息产业股份有限公司 Cloud computing network server inner core safe access method
CN107667505A (en) * 2015-06-05 2018-02-06 思科技术公司 System for monitoring and managing data center
CN106817243A (en) * 2015-12-01 2017-06-09 广达电脑股份有限公司 Management system and management method for server resources
CN107196803A (en) * 2017-05-31 2017-09-22 中国人民解放军信息工程大学 The dynamic generation and maintaining method of isomery cloud main frame

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112817686A (en) * 2019-11-15 2021-05-18 北京百度网讯科技有限公司 Method, device and equipment for detecting exception of virtual machine and computer storage medium
CN112817686B (en) * 2019-11-15 2023-07-25 北京百度网讯科技有限公司 Method, device, equipment and computer storage medium for detecting virtual machine abnormality
CN111104199A (en) * 2019-11-19 2020-05-05 杭州海康威视系统技术有限公司 Method and device for high availability of virtual machine
CN111338886A (en) * 2019-12-17 2020-06-26 华迪计算机集团有限公司 High-availability protection method and device based on cloud environment virtual machine
CN112069032A (en) * 2020-09-11 2020-12-11 杭州安恒信息技术股份有限公司 Availability detection method, system and related device for virtual machine
CN114167193A (en) * 2022-02-09 2022-03-11 通号(长沙)轨道交通控制技术有限公司 Self-diagnosis method for AC/DC screen
CN114167193B (en) * 2022-02-09 2022-05-27 通号(长沙)轨道交通控制技术有限公司 Self-diagnosis method for AC/DC screen

Similar Documents

Publication Publication Date Title
CN110347474A (en) A kind of method and device managing virtual machine
EP3570494B1 (en) A framework for intelligent automated operations for network, service & customer experience management
US10831583B2 (en) Reporting errors to a data storage device
CN108039964B (en) Fault processing method, device and system based on network function virtualization
US9811443B2 (en) Dynamic trace level control
US20170262221A1 (en) Methods and apparatuses for data migration of a storage device
US11755356B2 (en) Asynchronous queries on secondary data cores in a distributed computing system
EP2767880A1 (en) Data storage method and storage device
US20130013953A1 (en) Health monitoring of applications in a guest partition
US10445220B2 (en) System and methods for application activity capture, error identification, and error correction
CN111124867B (en) OpenStack testing method and device
EP2800303A1 (en) Switch method, device and system for virtual application dual machine in cloud environment
US20210157562A1 (en) Software update compatibility assessment
EP3330855A1 (en) Managing hardware resources
EP3629182A2 (en) Generating a test script execution order
US11057280B2 (en) User interface with expected response times of commands
US20230153162A1 (en) Resource capacity management in clouds
CN112306802A (en) Data acquisition method, device, medium and electronic equipment of system
CN109726151B (en) Method, apparatus, and medium for managing input-output stack
US11436123B2 (en) Application execution path tracing for inline performance analysis
CN116089477B (en) Distributed training method and system
CN109960572B (en) Equipment resource management method and device and intelligent terminal
US20230031872A1 (en) Enhanced platform and processes for scalability
CN109344032A (en) A kind of monitoring method and device
US20230066698A1 (en) Compute instance warmup operations

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191018