CN110377400A - A kind of virtual machine restoration methods, equipment, system and medium - Google Patents

A kind of virtual machine restoration methods, equipment, system and medium Download PDF

Info

Publication number
CN110377400A
CN110377400A CN201910662135.7A CN201910662135A CN110377400A CN 110377400 A CN110377400 A CN 110377400A CN 201910662135 A CN201910662135 A CN 201910662135A CN 110377400 A CN110377400 A CN 110377400A
Authority
CN
China
Prior art keywords
virtual machine
platform
target virtual
end equipment
spare
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
CN201910662135.7A
Other languages
Chinese (zh)
Other versions
CN110377400B (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.)
Sangfor Technologies Co Ltd
Original Assignee
Sangfor Technologies 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 Sangfor Technologies Co Ltd filed Critical Sangfor Technologies Co Ltd
Priority to CN201910662135.7A priority Critical patent/CN110377400B/en
Publication of CN110377400A publication Critical patent/CN110377400A/en
Application granted granted Critical
Publication of CN110377400B publication Critical patent/CN110377400B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • 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/45591Monitoring or debugging support
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a kind of virtual machine restoration methods, equipment, system and media.Since the system image of target virtual machine and network profile are backed up to spare end equipment in advance by production end equipment simultaneously, therefore it is equivalent to back up network environment used in target virtual machine, and then when spare end equipment carries out the recovery of target virtual machine, according to the network environment for the target virtual machine that network profile configuration is newly opened, when avoiding manual type in contrast and carrying out the configuration of network environment to the virtual machine that newly opens in spare end again, the accuracy that may cause is difficult to the problem of being guaranteed, and then ensure the functional reliability of virtual machine.In addition, the present invention also provides a kind of virtual machine restorer, system and medium, beneficial effect are same as above.

Description

A kind of virtual machine restoration methods, equipment, system and medium
Technical field
The present invention relates to field of cloud calculation, more particularly to a kind of virtual machine restoration methods, equipment, system and medium.
Background technique
Virtual machine refer to by software simulate with complete hardware system function, operate in a completely isolated environment In complete computer.
Under current application scenarios, virtual machine is often by operating system in the virtual platform on hardware device What mirror image was established, completely compatible between virtual platform and system image due to currently cannot ensure, system image is virtualizing The virtual machine established in platform is there may be because of delay machine or the case where because of user demand need to change virtual platform, therefore to void The Backup and Restore of quasi- machine is the mode being currently widely used, and Backup and Restore is exactly by advance by the system of virtual machine in the manufacturing side Mirror back-up is put down at spare end, and then when reappearing the virtual machine in the manufacturing side by spare end by the virtualization at spare end The system image backed up in advance is established as virtual machine by platform, is reached with this and is replaced the manufacturing side original by the virtual machine in spare end Virtual machine purpose, but current spare end group can not reappear in the virtual machine that the system image that the manufacturing side backs up re-establishes The network environment of respective virtual machine in the manufacturing side, thus just need manually again to the virtual machine newly opened in spare end into The configuration of row network environment increases the workload of technical staff, and the accuracy of network environment configuration is difficult to be guaranteed, And then it is difficult to ensure the functional reliability of virtual machine.
It can be seen that a kind of virtual machine restoration methods are provided, with technical staff in relative reduction virtual machine recovery process Workload, and guarantee the overall accuracy of network environment configuration, so that it is guaranteed that the functional reliability of virtual machine, is this field skill Art personnel's problem to be solved.
Summary of the invention
The purpose of the embodiment of the present invention is that a kind of virtual machine restoration methods, equipment, system and medium are provided, with relative reduction The workload of technical staff in virtual machine recovery process, and guarantee the overall accuracy of network environment configuration, so that it is guaranteed that empty The functional reliability of quasi- machine.
In order to solve the above technical problems, the present invention provides a kind of virtual machine restoration methods, it is applied to spare end equipment, packet It includes:
If receiving recovery instruction, according to the system for the target virtual machine for restoring that acquisition production end equipment is instructed to be passed in advance Mirror image and network profile;Wherein, target virtual machine is previously run in the former virtual platform of production end equipment;
Target virtual machine is generated by local spare virtual platform operating system mirror image;
According to the network parameter of the content of parameter configuration target virtual machine in network profile.
Preferably, the content of parameter in network profile includes former IP address and former MAC Address;
According to the network parameter of the content of parameter configuration target virtual machine in network profile, comprising:
According to the IP address and MAC Address of the content of parameter configuration target virtual machine in network profile.
Preferably, the IP address and MAC Address of target virtual machine are configured according to the content of parameter in network profile, Include:
If former virtual platform and spare virtual platform are non-uniform;
Configure former IP address to the IP address of target virtual machine;
The original platform flag byte of former MAC Address is revised as to the local platform flag byte of spare virtual platform, it is raw At local mac address;
Configure local mac address to the MAC Address of target virtual machine;
Wherein, original platform flag byte is set by former virtual platform when generating former MAC Address in advance.
Preferably, after the MAC Address for configuring local mac address to target virtual machine, method further include:
When the MAC Address of target virtual machine and the used MAC Address of native virtual machine repeat, to target virtual machine Byte content in MAC Address in addition to local platform flag byte is modified at random.
Preferably, spare virtual platform includes KVM virtualization platform, and former virtual platform includes that VMware virtualization is flat Platform.
In addition, being applied to production end equipment the present invention also provides a kind of virtual machine restoration methods, comprising:
When local former virtual platform operation has target virtual machine, obtain the corresponding system image of target virtual machine with And network profile;
System image and network profile are passed to spare end equipment.
In addition, the present invention also provides a kind of spare end equipments, comprising:
Memory, for storing computer program;
Processor realizes such as the above-mentioned virtual machine recovery side applied to spare end equipment when for executing computer program The step of method.
In addition, the present invention also provides a kind of production end equipments, comprising:
Memory, for storing computer program;
Processor is realized when for executing computer program such as the above-mentioned virtual machine recovery side for being applied to production end equipment The step of method.
In addition, the present invention also provides a kind of virtual machine recovery systems, comprising:
End equipment is produced, for obtaining target virtual machine when local former virtual platform operation has target virtual machine Corresponding system image and network profile;System image and network profile are passed to spare end equipment;
Spare end equipment, if restoring instruction for receiving, incoming in advance according to recovery instruction acquisition production end equipment The system image and network profile of target virtual machine;Wherein, target virtual machine is previously run the original void in production end equipment Quasi-ization platform;Target virtual machine is generated by local spare virtual platform operating system mirror image;According to network profile In content of parameter configuration target virtual machine network parameter.
In addition, being stored with meter on computer readable storage medium the present invention also provides a kind of computer readable storage medium Calculation machine program is realized when computer program is executed by processor such as the above-mentioned virtual machine restoration methods applied to spare end equipment Step is realized such as the step of the above-mentioned virtual machine restoration methods for being applied to production end equipment.
Virtual machine restoration methods provided by the present invention, production end equipment pass through former virtual platform operational objective virtual machine When, the corresponding system image of target virtual machine and network profile are obtained, and the system image and network configuration is literary Part is passed to spare end equipment, if spare end equipment receives recovery instruction, passes in advance according to instruction acquisition production end equipment is restored The system image and network profile of the target virtual machine entered, and then pass through local spare virtual platform operating system Mirror image generates corresponding target virtual machine, and then according to the network of the content of parameter configuration target virtual machine in network profile Parameter.Since the system image of target virtual machine and network profile are backed up to spare end in advance by production end equipment simultaneously Equipment, therefore be equivalent to back up network environment used in target virtual machine, and then carry out in spare end equipment When the recovery of target virtual machine, according to the network environment for the target virtual machine that network profile configuration is newly opened, keep away in contrast When having exempted from manual type and carrying out the configuration of network environment to the virtual machine that newly opens in spare end again, the accuracy that may cause is difficult The problem of to be guaranteed, and then ensure the functional reliability of virtual machine.In addition, the present invention also provides a kind of recoveries of virtual machine Equipment, system and medium, beneficial effect are same as above.
Detailed description of the invention
In order to illustrate the embodiments of the present invention more clearly, attached drawing needed in the embodiment will be done simply below It introduces, it should be apparent that, drawings in the following description are only some embodiments of the invention, for ordinary skill people For member, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow chart of the virtual machine restoration methods applied to spare end equipment disclosed in the embodiment of the present application;
Fig. 2 is stream of the one kind disclosed in the embodiment of the present application specifically applied to the virtual machine restoration methods of spare end equipment Cheng Tu;
Fig. 3 is stream of the one kind disclosed in the embodiment of the present application specifically applied to the virtual machine restoration methods of spare end equipment Cheng Tu;
Fig. 4 is a kind of flow chart of the virtual machine restoration methods applied to production end equipment disclosed in the embodiment of the present application;
Fig. 5 is a kind of structural schematic diagram of virtual machine recovery system disclosed in the embodiment of the present application.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, rather than whole embodiments.Based on this Embodiment in invention, those of ordinary skill in the art are without making creative work, obtained every other Embodiment belongs to the scope of the present invention.
Under current application scenarios, virtual machine is often by operating system in the virtual platform on hardware device What mirror image was established, completely compatible between virtual platform and system image due to currently cannot ensure, system image is virtualizing The virtual machine established in platform is there may be because of delay machine or the case where because of user demand need to change virtual platform, therefore to void The Backup and Restore of quasi- machine is the mode being currently widely used, and Backup and Restore is exactly by advance by the system of virtual machine in the manufacturing side Mirror back-up is put down at spare end, and then when reappearing the virtual machine in the manufacturing side by spare end by the virtualization at spare end The system image backed up in advance is established as virtual machine by platform, is reached with this and is replaced the manufacturing side original by the virtual machine in spare end Virtual machine purpose, but current spare end group can not reappear in the virtual machine that the system image that the manufacturing side backs up re-establishes The network environment of respective virtual machine in the manufacturing side, thus just need manually again to the virtual machine newly opened in spare end into The configuration of row network environment increases the workload of technical staff, and the accuracy of network environment configuration is difficult to be guaranteed, And then it is difficult to ensure the functional reliability of virtual machine.
For this purpose, this application provides a kind of virtual machine restoration methods, with technology people in relative reduction virtual machine recovery process The workload of member, and guarantee the overall accuracy of network environment configuration, so that it is guaranteed that the functional reliability of virtual machine.
In order to enable those skilled in the art to better understand the solution of the present invention, with reference to the accompanying drawings and detailed description The present invention is described in further detail.
Shown in Figure 1, the embodiment of the present application discloses a kind of virtual machine restoration methods applied to spare end equipment, packet It includes:
Step S10: if receiving recovery instruction, according to the destination virtual for restoring that acquisition production end equipment is instructed to be passed in advance The system image and network profile of machine.
Wherein, target virtual machine is previously run in the former virtual platform of production end equipment.
It should be noted that the recovery instruction received in this step can be when production end equipment Central Plains virtual platform On the instruction that is sent from production end equipment to spare end equipment when being operating abnormally of target virtual machine, be also possible to user by Change in demand and passes through ustomer premises access equipment after the target virtual machine in the former virtual platform for closing production end equipment, Xiang Bei The instruction sent with end equipment.
Spare end equipment receive in advance by production end equipment send about target virtual machine system image and about The network profile of target virtual machine, and if then spare end equipment receiving restore instruction, according to restore instruct obtain life Produce the system image and network profile of the target virtual machine that end equipment is passed in advance.Wherein, it is recorded in network profile Network configuration information when having target virtual machine to run in former virtual platform, the network identity of target virtual machine are matched by network Set file decision.
Step S11: target virtual machine is generated by local spare virtual platform operating system mirror image.
This step is the spare virtual platform operating system mirror image that spare end equipment passes through local runtime, and then is generated Target virtual machine is established in spare virtual platform, due to establishing the tool of virtual machine based on system image in virtual platform Body implementation is well known to those skilled in the art technology contents, therefore does not do specifically repeat herein.
Step S12: according to the network parameter of the content of parameter configuration target virtual machine in network profile.
It should be noted that this step be on the basis of having had built up target virtual machine on spare virtual platform, Further according to the network parameter of the content of parameter configuration target virtual machine in network profile, it is therefore an objective to ensure spare virtual It is identical as the network environment of target virtual machine that production end equipment Central Plains has to change the target virtual machine run on platform.
Virtual machine restoration methods provided by the present invention, production end equipment pass through former virtual platform operational objective virtual machine When, the corresponding system image of target virtual machine and network profile are obtained, and the system image and network configuration is literary Part is passed to spare end equipment, if spare end equipment receives recovery instruction, passes in advance according to instruction acquisition production end equipment is restored The system image and network profile of the target virtual machine entered, and then pass through local spare virtual platform operating system Mirror image generates corresponding target virtual machine, and then according to the network of the content of parameter configuration target virtual machine in network profile Parameter.Since the system image of target virtual machine and network profile are backed up to spare end in advance by production end equipment simultaneously Equipment, therefore be equivalent to back up network environment used in target virtual machine, and then carry out in spare end equipment When the recovery of target virtual machine, according to the network environment for the target virtual machine that network profile configuration is newly opened, keep away in contrast When having exempted from manual type and carrying out the configuration of network environment to the virtual machine that newly opens in spare end again, the accuracy that may cause is difficult The problem of to be guaranteed, and then ensure the functional reliability of virtual machine.
On the basis of the above embodiments, as a preferred embodiment, content of parameter in network profile Including former IP address and former MAC Address.In the case, shown in Figure 2, the embodiment of the present application discloses a kind of application In the virtual machine restoration methods of spare end equipment, comprising:
Step S20: if receiving recovery instruction, according to the destination virtual for restoring that acquisition production end equipment is instructed to be passed in advance The system image and network profile of machine.
Wherein, target virtual machine is previously run in the former virtual platform of production end equipment.
Step S21: target virtual machine is generated by local spare virtual platform operating system mirror image.
Step S22: according to the IP address of the content of parameter configuration target virtual machine in network profile and MAC Location.
It should be noted that the content of parameter of present embodiment focused in network profile should include at least original IP address and former MAC Address.Wherein, IP address refers to Internet protocol address (English: Internet Protocol Address, and it is translated into internet protocol address), it is the abbreviation of IP Address.IP address is a kind of unification that IP agreement provides Address format, it is one logical address of each network and each host assignment on internet, with this realize host it Between network communication can also be seen as a host, therefore also need IP address and be used for for target virtual machine Network communication;MAC Address (Media Access Control Address) is media access control address, it is a use Confirm the address of host equipment position, MAC Address is all different for different physical host equipment, MAC Address energy The identity of enough unique characterization physical host equipment, for virtual machine, it is also desirable to ensure that its MAC Address is in network cluster Uniquely.Network communication between current device is based primarily upon IP address or MAC Address, therefore in present embodiment, network is matched Former IP address and former MAC Address, so-called former IP address should be included at least by setting the content of parameter in file, and as former virtualization is put down Used IP address when platform operational objective virtual machine, similarly, former MAC Address, as former virtual platform operational objective is virtual Used MAC Address when machine.As the IP address used in the target virtual machine in former virtual platform and MAC Address Identity when it is communicated in network cluster can be uniquely characterized, therefore, present embodiment is according to the ginseng in network profile Number contents, i.e. former IP address and former MAC Address are with configuring in spare virtual platform the IP address of target virtual machine and MAC Location opposite can ensure the communication reliability of target virtual machine in spare virtual platform.
On the basis of the above embodiments, shown in Figure 3, the embodiment of the present application discloses a kind of applied to spare end The virtual machine restoration methods of equipment, comprising:
Step S30: if receiving recovery instruction, according to the destination virtual for restoring that acquisition production end equipment is instructed to be passed in advance The system image and network profile of machine.
Wherein, target virtual machine is previously run in the former virtual platform of production end equipment.
Step S31: target virtual machine is generated by local spare virtual platform operating system mirror image.
Step S32: if former virtual platform and spare virtual platform are non-uniform, destination virtual is configured by former IP address The IP address of machine.
Step S33: the original platform flag byte of former MAC Address is revised as to the local platform mark of spare virtual platform Byte generates local mac address.
Wherein, original platform flag byte is set by former virtual platform when generating former MAC Address in advance.
Step S34: local mac address is configured to the MAC Address of target virtual machine.
It is emphasized that the execution sequence between above-mentioned step S32 and step S33 and step S34 is not fixed, it can be with Depending on according to the actual situation, also it may be performed simultaneously.
Due to consideration that during target virtual machine runs on the former virtual platform of production end equipment, original virtualization When the MAC Address of target virtual machine is arranged in platform, it is flat often to set characterizing former virtualization for the partial bytes in MAC Address The original platform flag byte of abutment body part, that is, using the partial bytes of fixed curriculum offering MAC Address, in order to former virtual Change unified management of the platform to MAC Address, if continuing to continue to use original in the target virtual machine run in spare virtual platform MAC Address, or will lead to the whole complexity being managed based on spare virtual platform to target virtual machine, therefore this reality The local platform flag byte that the original platform flag byte of former MAC Address is revised as spare virtual platform by example is applied, and then will The MAC Address for the local mac address configuration target virtual machine that modification generates, due to including spare virtual in local mac address Change platform local platform flag byte, therefore reduce target virtual machine is managed based on spare virtual platform it is whole Body complexity, and then improve the whole efficiency of management for target virtual machine.
On the basis of the above embodiments, as a preferred embodiment, configuring target for local mac address After the MAC Address of virtual machine, method further include:
When the MAC Address of target virtual machine and the used MAC Address of native virtual machine repeat, to target virtual machine Byte content in MAC Address in addition to local platform flag byte is modified at random.
Due to consideration that even if configuring local mac address to the MAC Address of target virtual machine, it is possible in the presence of with work as Existing virtual machine sends the case where MAC Address conflict in preceding spare virtual platform, therefore works as the MAC Address of target virtual machine When repeating with the used MAC Address of native virtual machine, present embodiment further removes this in the MAC Address of target virtual machine Byte content other than Horizon platform flag byte is modified at random, further ensures that MAC Address in target virtual machine with this Uniqueness further improves the communication reliability of target virtual machine.
On the basis of a series of above-mentioned embodiments, as a preferred embodiment, spare virtual platform packet KVM virtualization platform is included, former virtual platform includes VMware virtual platform.
It should be noted that KVM is the abbreviation of Kernel-based Virtual Machine, it is the open source based on kernel Virtual platform, therefore KVM virtualization platform compatibility with higher can be made by the optimization of code.And VMware is empty Quasi-ization platform is the virtual platform of current function relative abundance, but the virtualization that VMware virtual platform is charge is put down Platform, therefore there is certain use cost, and user can not be optimized based on existing VMware virtual platform, it may Can exist with it is incompatible between the virtual machine that is run.In present embodiment, spare virtual platform includes that KVM virtualization is flat Platform, former virtual platform include VMware virtual platform, it is therefore an objective to when occur user because cost reason replace target virtual machine When locating virtual platform, or when occur VMware virtual platform because with target virtual machine compatibility it is lower due to lead to target When virtual machine delay machine, target virtual machine is re-established into use cost is lower and compatible higher KVM virtualization platform.This Embodiment opposite can ensure target virtual machine after the recovery of KVM virtualization platform, stability with higher and lower Operating cost.
Shown in Figure 4, the embodiment of the present application discloses a kind of virtual machine restoration methods applied to production end equipment, packet It includes:
Step S40: when local former virtual platform operation has target virtual machine, the corresponding system of target virtual machine is obtained System mirror image and network profile.
It should be noted that in this step when local former virtual platform operation has target virtual machine, it can be with week The corresponding system image of mode timing acquisition target virtual machine and network profile of phase property, ensure system mirror in contrast The timeliness of picture and network profile.
Step S41: system image and network profile are passed to spare end equipment.
Virtual machine restoration methods provided by the present invention, production end equipment pass through former virtual platform operational objective virtual machine When, the corresponding system image of target virtual machine and network profile are obtained, and the system image and network configuration is literary Part is passed to spare end equipment, if spare end equipment receives recovery instruction, passes in advance according to instruction acquisition production end equipment is restored The system image and network profile of the target virtual machine entered, and then pass through local spare virtual platform operating system Mirror image generates corresponding target virtual machine, and then according to the network of the content of parameter configuration target virtual machine in network profile Parameter.Since the system image of target virtual machine and network profile are backed up to spare end in advance by production end equipment simultaneously Equipment, therefore be equivalent to back up network environment used in target virtual machine, and then carry out in spare end equipment When the recovery of target virtual machine, according to the network environment for the target virtual machine that network profile configuration is newly opened, keep away in contrast When having exempted from manual type and carrying out the configuration of network environment to the virtual machine that newly opens in spare end again, the accuracy that may cause is difficult The problem of to be guaranteed, and then ensure the functional reliability of virtual machine.
Shown in Figure 5, the embodiment of the present application discloses a kind of virtual machine recovery system, comprising:
End equipment 10 is produced, for obtaining destination virtual when local former virtual platform operation has target virtual machine The corresponding system image of machine and network profile;System image and network profile are passed to spare end equipment 11;
Spare end equipment 11 passes if restoring instruction for receiving according to instruction acquisition production end equipment 10 is restored in advance The system image and network profile of the target virtual machine entered;Wherein, target virtual machine is previously run in production end equipment 10 Former virtual platform;Target virtual machine is generated by local spare virtual platform operating system mirror image;Matched according to network Set the network parameter of the content of parameter configuration target virtual machine in file.
Virtual machine recovery system provided by the present invention, production end equipment pass through former virtual platform operational objective virtual machine When, the corresponding system image of target virtual machine and network profile are obtained, and the system image and network configuration is literary Part is passed to spare end equipment, if spare end equipment receives recovery instruction, passes in advance according to instruction acquisition production end equipment is restored The system image and network profile of the target virtual machine entered, and then pass through local spare virtual platform operating system Mirror image generates corresponding target virtual machine, and then according to the network of the content of parameter configuration target virtual machine in network profile Parameter.Since the system image of target virtual machine and network profile are backed up to spare end in advance by production end equipment simultaneously Equipment, therefore be equivalent to back up network environment used in target virtual machine, and then carry out in spare end equipment When the recovery of target virtual machine, according to the network environment for the target virtual machine that network profile configuration is newly opened, keep away in contrast When having exempted from manual type and carrying out the configuration of network environment to the virtual machine that newly opens in spare end again, the accuracy that may cause is difficult The problem of to be guaranteed, and then ensure the functional reliability of virtual machine.
In addition, the present invention also provides a kind of spare end equipments, comprising:
Memory, for storing computer program;
Processor realizes that the virtual machine applied to spare end equipment as above-mentioned is extensive when for executing the computer program The step of compound method.
If spare end equipment provided by the present invention receives recovery instruction, according to restoring, instruction acquisition production end equipment is pre- The first system image and network profile of incoming target virtual machine, and then pass through local spare virtual platform operation System image generates corresponding target virtual machine, and then according to the content of parameter configuration target virtual machine in network profile Network parameter.Since production end equipment by the system image of target virtual machine and network profile while backing up to standby in advance With end equipment, therefore it is equivalent to back up network environment used in target virtual machine, and then in spare end equipment When carrying out the recovery of target virtual machine, according to the network environment for the target virtual machine that network profile configuration is newly opened, with this phase To when avoiding manual type and carrying out the configuration of network environment to the virtual machine that newly opens in spare end again, what be may cause is accurate Property is difficult to the problem of being guaranteed, and then ensures the functional reliability of virtual machine.
In addition, the present invention also provides a kind of production end equipments, comprising:
Memory, for storing computer program;
Processor realizes that the virtual machine for being applied to production end equipment as above-mentioned is extensive when for executing the computer program The step of compound method.
When production end equipment provided by the present invention passes through former virtual platform operational objective virtual machine, destination virtual is obtained The corresponding system image of machine and network profile, and the system image and network profile are passed to spare end and set It is standby, if spare end equipment receives recovery instruction, according to the target virtual machine for restoring that acquisition production end equipment is instructed to be passed in advance System image and network profile, and then generated by local spare virtual platform operating system mirror image corresponding Target virtual machine, and then according to the network parameter of the content of parameter configuration target virtual machine in network profile.Due to production The system image of target virtual machine and network profile are backed up to spare end equipment simultaneously in advance by end equipment, therefore with regard to phase It is backed up when in network environment used in target virtual machine, and then carries out the extensive of target virtual machine in spare end equipment When multiple, according to the network environment for the target virtual machine that network profile configuration is newly opened, manual type weight is avoided in contrast When newly carrying out the configuration of network environment to the virtual machine newly opened in spare end, the accuracy that may cause is difficult to guaranteed ask Topic, and then ensure the functional reliability of virtual machine.
In addition, the present invention also provides the scene embodiment under a kind of concrete application scene, the particular content of scene embodiment It is as follows:
Produce end equipment by the VMware virtual platform of operation by the IP address of institute's operational objective virtual machine thereon and MAC Address is saved in network profile, is then set by being passed to network profile and system image to spare end Standby KVM virtualization platform, and then when VMware virtual platform target virtual machine failure delay machine or when artificially being closed, it is spare KVM virtualization platform in end equipment recovers target virtual machine using the system image backed up in advance, and reads standby in advance Part network profile in IP address and MAC Address, in MAC according to VMware virtual platform and KVM virtualization platform MAC Address is converted into meeting the local mac address of KVM virtualization Platform Type by the difference on location, with this ensure VMware and MAC Address on KVM virtualization platform is related and does not conflict, final new using specified IP address and new MAC Address Build the target virtual machine in KVM virtualization platform.
A kind of virtual machine restoration methods provided by the present invention, equipment, system and medium are described in detail above. Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other embodiments not Same place, the same or similar parts in each embodiment may refer to each other.For the device disclosed in the embodiment, due to it It corresponds to the methods disclosed in the examples, so being described relatively simple, reference may be made to the description of the method.It should It points out, it for those skilled in the art, without departing from the principle of the present invention, can also be to this hair Bright some improvement and modification can also be carried out, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.
It should also be noted that, in the present specification, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or apparatus that includes the element.

Claims (10)

1. a kind of virtual machine restoration methods, which is characterized in that be applied to spare end equipment, comprising:
If receiving recovery instruction, according to the system restored instruction and obtain the target virtual machine that production end equipment is passed in advance Mirror image and network profile;Wherein, the target virtual machine is previously run in the former virtual platform of the production end equipment;
The system image, which is run, by local spare virtual platform generates the target virtual machine;
The network parameter of the target virtual machine is configured according to the content of parameter in the network profile.
2. virtual machine restoration methods according to claim 1, which is characterized in that in the parameter in the network profile Hold includes former IP address and former MAC Address;
The content of parameter according in the network profile configures the network parameter of the target virtual machine, comprising:
The IP address and MAC Address of the target virtual machine are configured according to the content of parameter in the network profile.
3. virtual machine restoration methods according to claim 2, which is characterized in that described according in the network profile Content of parameter configure the IP address and MAC Address of the target virtual machine, comprising:
If the original virtual platform and the spare virtual platform are non-uniform;
Configure the former IP address to the IP address of the target virtual machine;
The original platform flag byte of the former MAC Address is revised as to the local platform banner word of the spare virtual platform Section generates local mac address;
Configure the local mac address to the MAC Address of the target virtual machine;
Wherein, the original platform flag byte is set by the former virtual platform when generating the former MAC Address in advance.
4. virtual machine restoration methods according to claim 3, which is characterized in that match the local mac address described It is set to after the MAC Address of the target virtual machine, the method also includes:
When the MAC Address of the target virtual machine and the used MAC Address of native virtual machine repeat, to the destination virtual Byte content in the MAC Address of machine in addition to the local platform flag byte is modified at random.
5. virtual machine restoration methods according to any one of claims 1 to 4, which is characterized in that the spare virtualization Platform includes KVM virtualization platform, and the original virtual platform includes VMware virtual platform.
6. a kind of virtual machine restoration methods, which is characterized in that be applied to production end equipment, comprising:
When local former virtual platform operation has target virtual machine, obtain the corresponding system image of the target virtual machine with And network profile;
The system image and the network profile are passed to spare end equipment.
7. a kind of spare end equipment characterized by comprising
Memory, for storing computer program;
Processor realizes such as virtual machine recovery side described in any one of claim 1 to 5 when for executing the computer program The step of method.
8. a kind of production end equipment characterized by comprising
Memory, for storing computer program;
Processor, the step of virtual machine restoration methods as claimed in claim 6 are realized when for executing the computer program.
9. a kind of virtual machine recovery system characterized by comprising
End equipment is produced, for obtaining the target virtual machine when local former virtual platform operation has target virtual machine Corresponding system image and network profile;The system image and the network profile are passed to spare end to set It is standby;
It is pre- to obtain the production end equipment according to recovery instruction if restoring instruction for receiving for the spare end equipment The first system image and network profile of incoming target virtual machine;Wherein, the target virtual machine is previously run in described Produce the former virtual platform of end equipment;The system image, which is run, by local spare virtual platform generates the target Virtual machine;The network parameter of the target virtual machine is configured according to the content of parameter in the network profile.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes such as disk exception monitoring side described in any one of claim 1 to 5 when the computer program is executed by processor The step of the step of method or realization disk method for monitoring abnormality as claimed in claim 6.
CN201910662135.7A 2019-07-22 2019-07-22 Virtual machine recovery method, device, system and medium Active CN110377400B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910662135.7A CN110377400B (en) 2019-07-22 2019-07-22 Virtual machine recovery method, device, system and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910662135.7A CN110377400B (en) 2019-07-22 2019-07-22 Virtual machine recovery method, device, system and medium

Publications (2)

Publication Number Publication Date
CN110377400A true CN110377400A (en) 2019-10-25
CN110377400B CN110377400B (en) 2023-07-14

Family

ID=68254614

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910662135.7A Active CN110377400B (en) 2019-07-22 2019-07-22 Virtual machine recovery method, device, system and medium

Country Status (1)

Country Link
CN (1) CN110377400B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112882871A (en) * 2021-04-29 2021-06-01 深圳市科力锐科技有限公司 Host conflict detection method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140376550A1 (en) * 2013-06-24 2014-12-25 Vmware, Inc. Method and system for uniform gateway access in a virtualized layer-2 network domain
CN106407045A (en) * 2016-09-29 2017-02-15 郑州云海信息技术有限公司 Data disaster recovery method and system, and server virtualization system
US20170155620A1 (en) * 2015-11-29 2017-06-01 Red Hat Israel, Ltd. Mac address allocation for virtual machines
CN109327557A (en) * 2018-10-16 2019-02-12 郑州云海信息技术有限公司 A kind of management method and device of virtual machine IP address
US20190188027A1 (en) * 2015-12-30 2019-06-20 Nutanix, Inc. Network reconfiguration in hypervisor-agnostic disaster recovery scenarios

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140376550A1 (en) * 2013-06-24 2014-12-25 Vmware, Inc. Method and system for uniform gateway access in a virtualized layer-2 network domain
US20170155620A1 (en) * 2015-11-29 2017-06-01 Red Hat Israel, Ltd. Mac address allocation for virtual machines
US20190188027A1 (en) * 2015-12-30 2019-06-20 Nutanix, Inc. Network reconfiguration in hypervisor-agnostic disaster recovery scenarios
CN106407045A (en) * 2016-09-29 2017-02-15 郑州云海信息技术有限公司 Data disaster recovery method and system, and server virtualization system
CN109327557A (en) * 2018-10-16 2019-02-12 郑州云海信息技术有限公司 A kind of management method and device of virtual machine IP address

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112882871A (en) * 2021-04-29 2021-06-01 深圳市科力锐科技有限公司 Host conflict detection method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN110377400B (en) 2023-07-14

Similar Documents

Publication Publication Date Title
CN103703724B (en) Resource payment method
US20160117231A1 (en) Complex Network Modeling For Disaster Recovery
US7933987B2 (en) Application of virtual servers to high availability and disaster recovery solutions
US8417938B1 (en) Environment preserving cloud migration and management
US8910172B2 (en) Application resource switchover systems and methods
US8224957B2 (en) Migrating virtual machines among networked servers upon detection of degrading network link operation
CN102214128B (en) Repurposable recovery environment
WO2016184045A1 (en) Method and apparatus for network service capacity expansion
CN110719209B (en) Cluster network configuration method, system, equipment and readable storage medium
CN108270726B (en) Application instance deployment method and device
CN106850260A (en) A kind of dispositions method and device of virtual resources management platform
US20140032753A1 (en) Computer system and node search method
CN103812704A (en) Public network IP (Internet Protocol) dynamic management method for virtual machine
CN104424048A (en) Data storage method and equipment
CN112199157B (en) Cloud environment management method
CN104468791A (en) Private cloud IaaS platform construction method
CN109067599A (en) A kind of method and device for disposing cluster
DeCusatis et al. Modeling software defined networks using mininet
CN114691290A (en) Cross-cloud-platform application migration system and method and disaster recovery method
CN110377400A (en) A kind of virtual machine restoration methods, equipment, system and medium
CN114650223A (en) Network configuration method and device of Kubernetes cluster and electronic equipment
CN105634635B (en) A kind of methods, devices and systems of shared RTC
CN104536852B (en) Data recovery method and device
CN112035062B (en) Migration method of local storage of cloud computing, computer equipment and storage medium
CN106557386A (en) Method, the apparatus and system of standby virtual network interface card virtual machine are disposed based on KVM

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
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A virtual machine recovery method, device, system, and medium

Effective date of registration: 20231212

Granted publication date: 20230714

Pledgee: Shenzhen Branch of China Merchants Bank Co.,Ltd.

Pledgor: SANGFOR TECHNOLOGIES Inc.

Registration number: Y2023980070863

PE01 Entry into force of the registration of the contract for pledge of patent right