CN104461757A - Method and device for restoring virtual machines - Google Patents

Method and device for restoring virtual machines Download PDF

Info

Publication number
CN104461757A
CN104461757A CN201410609894.4A CN201410609894A CN104461757A CN 104461757 A CN104461757 A CN 104461757A CN 201410609894 A CN201410609894 A CN 201410609894A CN 104461757 A CN104461757 A CN 104461757A
Authority
CN
China
Prior art keywords
virtual machine
machine
restarted
startup
state data
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
CN201410609894.4A
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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201410609894.4A priority Critical patent/CN104461757A/en
Publication of CN104461757A publication Critical patent/CN104461757A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a method and device for restoring virtual machines. The method comprises the steps that after a physical machine is restarted, all service processes, needed when the virtual machines are operated on the physical machine are started, after all the service processes normally operate, the configuration files of all the virtual machines are read, and all the virtual machines are started. By the adoption of the method and device for restoring the virtual machines, after the physical machine is restarted, the virtual machines do not need to be started manually any more, automation of fault recovery of virtual machines of various cloud platforms in an operation and maintenance process can be achieved conveniently, and the workload of operation and maintenance personnel is lightened.

Description

A kind of method and device recovering virtual machine
Technical field
The present invention relates to the communications field, be specifically related to a kind of method and the device that recover virtual machine.
Background technology
Virtual machine refer to by software simulation have complete hardware system function, the complete computer operated in a completely isolated environment.Pass through software virtual machine, user can simulate one or more virtual computing machine on a physical server, these virtual machines carry out work completely just as real computing machine, such as, and can installing operating system, set up applications, accesses network resource etc.For user, it just operates in an application program on user's physical computer, but for the application program run in virtual machine, it is exactly a real computing machine.
After the physical machine of existing cloud platform breaks down or normal shutdown restarts, must by manually starting virtual machine, and the corresponding block of carry stores, and starts the various services of internal operation, considerably increases the workload of operation maintenance personnel.
Summary of the invention
The technical issues that need to address of the present invention are to provide a kind of method and the device that recover virtual machine, after physical machine restarts, automatically the virtual machine that it runs can be started, virtual machine no longer needs to manually boot, contribute to all kinds of cloud platform and realize the robotization that in O&M flow process, virtual-machine fail recovers, reduce the workload of operation maintenance personnel.
In order to solve the problems of the technologies described above, the invention provides a kind of method recovering virtual machine, comprising:
After physical machine is restarted, start each service processes described physical machine run needed for virtual machine;
After each service processes described normally runs, read the configuration file of each virtual machine, start each virtual machine.
Further, before described physical machine is restarted, described method also comprises:
Before described physical machine is restarted, when each virtual machine runs, the running state data of each virtual machine described in time recording, and be saved in persistent storage.
Further, after each virtual machine of startup, described method also comprises:
From described persistent storage, obtain the running state data of each virtual machine described, and load described running state data for each virtual machine described.
Further, after each virtual machine of startup, described method also comprises:
For the book of each each virtual machine of virtual machine carry described.
In order to solve the problems of the technologies described above, present invention also offers a kind of device recovering virtual machine, comprising:
Guard module, for after described physical machine is restarted, start each service processes described physical machine run needed for virtual machine;
Start module, for after each service processes described normally runs, read the configuration file of each virtual machine, start each virtual machine.
Further, also comprise the logging modle be connected with described startup module, for before described physical machine is restarted, when each virtual machine runs, the running state data of each virtual machine described in time recording, and be saved in persistent storage.
Further, described startup module, also for after startup each virtual machine described, obtains the running state data of each virtual machine described, and loads described running state data for each virtual machine described from described persistent storage.
Further, described startup module, also for after startup each virtual machine described, is the book of each each virtual machine of virtual machine carry described.
Compared with prior art, the method for the recovery virtual machine that the embodiment of the present invention provides and device, after physical machine breaks down or normal shutdown restarts, automatically can start the virtual machine that it runs, and virtual machine be returned to the state before restarting; By the embodiment of the present invention, after physical machine restarts, virtual machine no longer needs to manually boot, and contributes to all kinds of cloud platform and realizes the robotization that in O&M flow process, virtual-machine fail recovers, reduce the workload of operation maintenance personnel.
Accompanying drawing explanation
Fig. 1 is the method flow diagram recovering virtual machine in embodiment;
Fig. 2 is the structure drawing of device recovering virtual machine in embodiment.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly understand, hereinafter will be described in detail to embodiments of the invention by reference to the accompanying drawings.It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combination in any mutually.
Embodiment:
As shown in Figure 1, present embodiments provide a kind of device recovering virtual machine, comprising:
Guard module, for after described physical machine is restarted, start each service processes described physical machine run needed for virtual machine;
Start module, for after each service processes described normally runs, read the configuration file of each virtual machine, start each virtual machine.
In addition, described physical machine also comprises the logging modle be connected with described startup module, for before described physical machine is restarted, when each virtual machine runs, and the running state data of each virtual machine described in time recording, and be saved in persistent storage.
In addition, described startup module, also for after startup each virtual machine described, obtains the running state data of each virtual machine described, and loads described running state data for each virtual machine described from described persistent storage.
In addition, described startup module, also for after startup each virtual machine described, is the book of each each virtual machine of virtual machine carry described.
Start after module is finished the work and notify to guard module, guarding module needs to check virtual machine service, and after all are normal, whole task completes.
As shown in Figure 2, present embodiments provide a kind of method recovering virtual machine, comprise the following steps:
S101: after physical machine is restarted, starts each service processes described physical machine run needed for virtual machine;
Wherein, before physical machine is restarted, described method also comprises:
Before described physical machine is restarted, when each virtual machine runs, the running state data of each virtual machine described in time recording, and be saved in persistent storage.
The duration of timing is determined according to keeper's experience, and such as, keeper can set the running state data every 2 minutes records virtual machine, and corresponding with the time of record.
S102: after each service processes described normally runs, read the configuration file of each virtual machine, start each virtual machine.
Wherein, the configuration file of virtual machine is deposited in physical machine.
Wherein, after each virtual machine of startup, described method also comprises:
From described persistent storage, obtain the running state data of each virtual machine described, and load described running state data for each virtual machine described.
Wherein, described method also comprises: be the book of each each virtual machine of virtual machine carry described.
As can be seen from above-described embodiment, relative to prior art, the method for the recovery virtual machine provided in above-described embodiment and physical machine, after physical machine restarts because of breaking down, automatically can start the virtual machine that it runs, and virtual machine be returned to the state before restarting.By the embodiment of the present invention, after physical machine restarts, virtual machine no longer needs to manually boot, and contributes to all kinds of cloud platform and realizes the robotization that in O&M flow process, virtual-machine fail recovers, reduce the workload of operation maintenance personnel.
The all or part of step that one of ordinary skill in the art will appreciate that in said method is carried out instruction related hardware by program and is completed, and described program can be stored in computer-readable recording medium, as ROM (read-only memory), disk or CD etc.Alternatively, all or part of step of above-described embodiment also can use one or more integrated circuit to realize.Correspondingly, each module/unit in above-described embodiment can adopt the form of hardware to realize, and the form of software function module also can be adopted to realize.The present invention is not restricted to the combination of the hardware and software of any particular form.
The foregoing is only the preferred embodiments of the present invention, be not intended to limit protection scope of the present invention.According to summary of the invention of the present invention; also can there be other various embodiments; when not deviating from the present invention's spirit and essence thereof; those of ordinary skill in the art are when making various corresponding change and distortion according to the present invention; within the spirit and principles in the present invention all; any amendment of doing, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1. recover a method for virtual machine, comprising:
After physical machine is restarted, start each service processes described physical machine run needed for virtual machine;
After each service processes described normally runs, read the configuration file of each virtual machine, start each virtual machine.
2. the method for claim 1, is characterized in that:
Before described physical machine is restarted, described method also comprises:
Before described physical machine is restarted, when each virtual machine runs, the running state data of each virtual machine described in time recording, and be saved in persistent storage.
3. method as claimed in claim 2, is characterized in that:
After each virtual machine of startup, described method also comprises:
From described persistent storage, obtain the running state data of each virtual machine described, and load described running state data for each virtual machine described.
4. the method as described in claim 1,2 or 3, is characterized in that:
After each virtual machine of startup, described method also comprises:
For the book of each each virtual machine of virtual machine carry described.
5. recover a device for virtual machine, comprising:
Guard module, for after described physical machine is restarted, start each service processes described physical machine run needed for virtual machine;
Start module, for after each service processes described normally runs, read the configuration file of each virtual machine, start each virtual machine.
6. device as claimed in claim 5, it is characterized in that: also comprise the logging modle be connected with described startup module, for before described physical machine is restarted, when each virtual machine runs, the running state data of each virtual machine described in time recording, and be saved in persistent storage.
7. device as claimed in claim 6, is characterized in that:
Described startup module, also for after startup each virtual machine described, obtains the running state data of each virtual machine described, and loads described running state data for each virtual machine described from described persistent storage.
8. the device as described in claim 5,6 or 7, is characterized in that:
Described startup module, also for after startup each virtual machine described, is the book of each each virtual machine of virtual machine carry described.
CN201410609894.4A 2014-11-03 2014-11-03 Method and device for restoring virtual machines Pending CN104461757A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410609894.4A CN104461757A (en) 2014-11-03 2014-11-03 Method and device for restoring virtual machines

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410609894.4A CN104461757A (en) 2014-11-03 2014-11-03 Method and device for restoring virtual machines

Publications (1)

Publication Number Publication Date
CN104461757A true CN104461757A (en) 2015-03-25

Family

ID=52907854

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410609894.4A Pending CN104461757A (en) 2014-11-03 2014-11-03 Method and device for restoring virtual machines

Country Status (1)

Country Link
CN (1) CN104461757A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104850441A (en) * 2015-05-26 2015-08-19 北京汉柏科技有限公司 Auto-start system and method of virtual machines in cloud computing platform
CN108415756A (en) * 2017-10-25 2018-08-17 国云科技股份有限公司 A kind of cloud disk automatic recovery method of cloud platform virtual machine
CN112068928A (en) * 2020-08-12 2020-12-11 福建升腾资讯有限公司 Redirection-based virtual machine data storage method and system
CN114006902A (en) * 2021-10-27 2022-02-01 北京百度网讯科技有限公司 Cloud mobile phone restarting method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101876909A (en) * 2009-04-30 2010-11-03 北京世纪红山科技有限公司 Method for local physical to virtual conversion in computer virtualization
CN102193813A (en) * 2010-03-09 2011-09-21 上海拜翰网络科技有限公司 Embedded type virtualized quick start method and system
US20120166705A1 (en) * 2010-12-23 2012-06-28 International Business Machines Corporation Managing virtual machines
CN102917046A (en) * 2012-10-17 2013-02-06 广州杰赛科技股份有限公司 Virtual machine starting control method in cloud system
CN103207817A (en) * 2013-04-23 2013-07-17 深圳市京华科讯科技有限公司 Automatic reduction method for virtual machine

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101876909A (en) * 2009-04-30 2010-11-03 北京世纪红山科技有限公司 Method for local physical to virtual conversion in computer virtualization
CN102193813A (en) * 2010-03-09 2011-09-21 上海拜翰网络科技有限公司 Embedded type virtualized quick start method and system
US20120166705A1 (en) * 2010-12-23 2012-06-28 International Business Machines Corporation Managing virtual machines
CN102917046A (en) * 2012-10-17 2013-02-06 广州杰赛科技股份有限公司 Virtual machine starting control method in cloud system
CN103207817A (en) * 2013-04-23 2013-07-17 深圳市京华科讯科技有限公司 Automatic reduction method for virtual machine

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
黄凯等: "虚拟机挂载数据卷", 《OPENSTACK实战指南》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104850441A (en) * 2015-05-26 2015-08-19 北京汉柏科技有限公司 Auto-start system and method of virtual machines in cloud computing platform
CN108415756A (en) * 2017-10-25 2018-08-17 国云科技股份有限公司 A kind of cloud disk automatic recovery method of cloud platform virtual machine
CN108415756B (en) * 2017-10-25 2022-08-23 国云科技股份有限公司 Cloud disk automatic recovery method of cloud platform virtual machine
CN112068928A (en) * 2020-08-12 2020-12-11 福建升腾资讯有限公司 Redirection-based virtual machine data storage method and system
CN112068928B (en) * 2020-08-12 2023-10-20 福建升腾资讯有限公司 Virtual machine data storage method and system based on redirection
CN114006902A (en) * 2021-10-27 2022-02-01 北京百度网讯科技有限公司 Cloud mobile phone restarting method, device, equipment and storage medium
CN114006902B (en) * 2021-10-27 2023-08-11 北京百度网讯科技有限公司 Cloud mobile phone restarting method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US10565077B2 (en) Using cognitive technologies to identify and resolve issues in a distributed infrastructure
US10169173B2 (en) Preserving management services with distributed metadata through the disaster recovery life cycle
US10073747B2 (en) Reducing recovery time in disaster recovery/replication setup with multitier backend storage
US10061665B2 (en) Preserving management services with self-contained metadata through the disaster recovery life cycle
US10346263B2 (en) Host swap hypervisor that provides high availability for a host of virtual machines
CN107632937B (en) Method and device for testing virtual machine cluster and readable storage medium
CN113032085A (en) Management method, device, server, management system and medium of cloud operating system
CN103473065A (en) Virtual machine creation method capable of rapidly restoring system disk
CN105024879A (en) Virtual machine fault detection and recovery system and virtual machine detection, recovery and starting method
CN111104201A (en) System migration method and device, electronic equipment and storage medium
CN105450759A (en) System mirror image management method and device
CN105095103A (en) Storage device management method and device used for cloud environment
CN106201773A (en) The upgrading of instance system, cloud system and instance system or restoration methods
CN108319492B (en) Method, device and system for resetting physical machine
CN105704188A (en) Deployment method and apparatus of applications and services
CN104461757A (en) Method and device for restoring virtual machines
CN111459403B (en) Storage hardware management method and device
CN104516744A (en) Software updating method and system
CN103902401A (en) Virtual machine fault tolerance method and device based on monitoring
CN114996955A (en) Target range environment construction method and device for cloud-originated chaotic engineering experiment
CN102810067A (en) Virtual machine template updating system and method
CN108153484B (en) Shared storage system in virtualization environment and management method thereof
CN113127137A (en) Cloud computing management platform using self-hosting virtual machine and creation implementation method thereof
CN111124428A (en) Application automatic publishing method based on middleware creating and related device
KR102618274B1 (en) Management system for data included in a container and control method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150325

RJ01 Rejection of invention patent application after publication