CN103729264A - Method for backing up and restoring Windows virtual machine system disk - Google Patents

Method for backing up and restoring Windows virtual machine system disk Download PDF

Info

Publication number
CN103729264A
CN103729264A CN201310719669.1A CN201310719669A CN103729264A CN 103729264 A CN103729264 A CN 103729264A CN 201310719669 A CN201310719669 A CN 201310719669A CN 103729264 A CN103729264 A CN 103729264A
Authority
CN
China
Prior art keywords
virtual machine
backup
snapshot
windows
system disk
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
CN201310719669.1A
Other languages
Chinese (zh)
Other versions
CN103729264B (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.)
G Cloud Technology Co Ltd
Original Assignee
G Cloud 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 G Cloud Technology Co Ltd filed Critical G Cloud Technology Co Ltd
Priority to CN201310719669.1A priority Critical patent/CN103729264B/en
Publication of CN103729264A publication Critical patent/CN103729264A/en
Application granted granted Critical
Publication of CN103729264B publication Critical patent/CN103729264B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to the field of cloud computing, in particular to a method for backing up and restoring a Windows virtual machine system disk. The method includes powering off a Windows virtual machine, performing internal snapshotting, and generating backup files; performing system restoration according to a snapshot name, restarting up the Windows virtual machine after restoration is successful, and restoring the system disk of the Windows virtual machine to a state of a backup time point, wherein incremental backup is adopted for the backup files, so that storage space occupied by each backup file is relatively small, repeated snapshotting can be realized, and restoring to any backup point can be realized. By the method, the problems of crashing and breakdown of an operating system due to the fact that the Windows virtual machine is poisoned or attacked maliciously are solved, and stop time of applications and services is reduced as much as possible by restoring the backup files of the virtual machine to enable the virtual machine to restore to the state of the backup point; the method can be applied to backup and restoration of the Windows virtual machine system disk.

Description

A kind of Windows dummy machine system dish backup and restore method
Technical field
The present invention relates to cloud computing field, refer in particular to a kind of Windows dummy machine system dish backup and restore method.
Background technology
Under the megatrend of cloud computing development, no matter be physical host or fictitious host computer, particularly moved the Windows main frame of application and service, often face the danger of virus and malicious attack, the probability of delay machine and operating system collapse is higher; Therefore, need to carry out schedule backup to the system disk of Windows, to can quickly recover to the state of backup point after operating system collapse, the time that application and service is stopped shortens as far as possible.
The method of typically Windows host computer system dish being carried out to backup-and-restore is to use ghost software, and the step of backup method is as follows:
1, " a key ghost " software is installed on Windows main frame;
2,, after restarting, when selecting to need the operating system of startup, select " a key ghost ";
3, open ghost, select local->partion->To image, the name of then filling in standby system, as: win2003_r2, selection need to be placed the subregion of Backup Images;
4, after backing up successfully, will see win2003_r2.GHO backup file;
The step of restoration methods is as follows:
1, restart Windows operating system, when login system is selected to start mirror image, select a key ghost;
2, enter ghost interface, after hit OK enters, select local->partion->From image, find win2003_r2.GHO image file, reduction backups to original system dish;
3, after reducing successfully, Windows main frame is normally restarted, and enters after operating system state when C dish returns to backup.
Under cloud computing environment, because the virtual machine of needs backup is more much more than the quantity of physical machine, consider the feature of ghost class software backup method of reducing, can produce following problem:
1, the storage space that backup file takies is larger, because ghost class software adopts full backup, though the space that backup file, through overcompression, takies also reaches 70% of system disk space, in a physical machine, many virtual machines repeatedly back up, and the storage space of use will be very large;
2, the time that virtual machine need to shut down is longer.Because backup file is large, the time that backup recovers is relatively also long, and needs to shut down in backup rejuvenation, and the time that application and service stops will be corresponding elongated;
3,, under mbr damaged condition, can not recover.Because ghost class software itself relies on dos, therefore, when mbr damages, dos can not guide, and ghost also just can not start, and cannot carry out recovery operation.
Therefore, need a kind of special system disk backup-and-restore method for Windows virtual machine.
Summary of the invention
The technical matters that the present invention solves is to provide a kind of Windows dummy machine system dish backup and reduction side
Method, system disk quick backup and the reduction problem of a large amount of Windows fictitious host computers of solution cloud computing environment, the time shorten that application and service is stopped.
The technical scheme that the present invention solves the problems of the technologies described above is:
Backup-step comprises:
Step 1, the Windows virtual machine of outside snapshot operation at host with image file, during establishment, in virtual machine image file all for creating system disk;
Step 2, virtual machine shutdown, fill order, the inside snapshot of establishment virtual machine;
Step 3, checks the SNAPSHOT INFO of virtual machine, confirm back up successfully after virtual machine start continuation move;
Reduction step comprises:
Step 1, in the time of reducing the system disk of virtual machine, shuts down virtual machine;
Step 2, checks the SNAPSHOT INFO of virtual machine, selects the snapshot of certain backup point, carries out snapshot restore order;
Step 3, after being successfully recovered, virtual machine is started shooting again, and the system disk of virtual machine reverts to the state of BACKUP TIME point.
The described virtual machine method of operation is outside snapshot operation, and outside snapshot is that an increment with respect to virtual machine image carries out, and all immediate record is in this outside snapshot to changes all in mirror image for virtual machine, and it is constant that virtual machine image remains;
What described virtual machine backup mode adopted is inner snapshot, is the increment mirror image changing with respect to virtual machine image file sometime, and the data of only preserving dummy machine system increment, do not comprise all files.
Described outside snapshot be one all the time at the file changing, inner snapshot is a mirror image sometime; Outside snapshot only has one, and inner snapshot, as backup file, can exist a plurality of simultaneously.
The inventive method has following beneficial effect:
What 1, the backup mode of the inventive method adopted is incremental backup, do not comprise all files, so the storage space that backup file takies is relatively less.
2, the time that the inventive method backup and reduction needs is relatively less, so the time that the application and service on virtual machine stops is also shorter; Also make in addition timed backup become possibility, little on the impact of business continuance, the practicality of the method is higher.
3, the inventive method, because carry out the outside that backup and reduction operates in VME operating system, is not therefore subject to the restriction of virtual machine interior condition, even if virtual machine image file is damaged completely, can reduce yet.
Accompanying drawing explanation
Below in conjunction with accompanying drawing, the present invention is further described:
Fig. 1 is process flow diagram of the present invention;
Fig. 2 is a concrete applicating flow chart of the present invention;
Embodiment
As shown in Figure 1, be process flow diagram of the present invention:
Comprise the steps:
Step 1 is the windows virtual machine of outside snapshot operation with image file at host, during establishment, in virtual machine image file all for creating system disk;
The shutdown of step 2 virtual machine, fill order, the inside snapshot of establishment virtual machine;
Step 3 is checked the SNAPSHOT INFO of virtual machine, confirms to back up successfully rear virtual machine start and continues operation;
When step 4 will be reduced the system disk of virtual machine, virtual machine is shut down;
Step 5 is checked the SNAPSHOT INFO of virtual machine, selects the snapshot of certain backup point, carries out snapshot restore order;
After step 6 is successfully recovered, virtual machine is started shooting again, and the system disk of virtual machine reverts to the state of BACKUP TIME point.
The described virtual machine method of operation is outside snapshot operation, and outside snapshot is that an increment with respect to virtual machine image carries out, and all immediate record is in this outside snapshot to changes all in mirror image for virtual machine, and it is constant that virtual machine image remains.
What described virtual machine backup mode adopted is inner snapshot, for the increment mirror image changing with respect to virtual machine image file sometime, only preserve the data of dummy machine system increment, do not comprise all files, so the storage space that backup file takies is relatively less;
Outside snapshot is with the difference of inner snapshot, and outside snapshot is one, and all the time at the file of variation, inner snapshot is a mirror image sometime, and outside snapshot only has one, and inner snapshot is exactly backup file, can exist a plurality of simultaneously.
As shown in Figure 2, be a concrete application flow of the present invention:
1. at host, with Windows image file, create an outside snapshot, then the system disk operation qemu-img create-f qcow2-b windows2003-R2-32bit-200G.qcow2vm as virtual machine with this outside snapshot
2. virtual machine is shut down, fill order, the inside snapshot qemu-img snapshot-c snapl windows2003-R2-32bit-200G.qcow2 of establishment virtual machine
3. after inner snapshot success, complete the system disk backup of virtual machine, then checked backup information qemu-img info windows2003-R2-32bit-200G.qcow2
4., in the time of will reducing the system disk of virtual machine, first virtual machine is shut down
5. check the SNAPSHOT INFO of virtual machine, select the snapshot of certain backup point, carry out snapshot restore order qemu-img snapshot-a snap1windows2003-R2-32bit-200G.qcow2
6. after being successfully recovered, virtual machine is started shooting again, and the system disk of virtual machine reverts to the state of BACKUP TIME point.

Claims (3)

1. a Windows dummy machine system dish backup and restore method, is characterized in that:
Backup-step comprises:
Step 1, the Windows virtual machine of outside snapshot operation at host with image file, during establishment, in virtual machine image file all for creating system disk;
Step 2, virtual machine shutdown, fill order, the inside snapshot of establishment virtual machine;
Step 3, checks the SNAPSHOT INFO of virtual machine, confirm back up successfully after virtual machine start continuation move;
Reduction step comprises:
Step 1, in the time of reducing the system disk of virtual machine, shuts down virtual machine;
Step 2, checks the SNAPSHOT INFO of virtual machine, selects the snapshot of certain backup point, carries out snapshot restore order;
Step 3, after being successfully recovered, virtual machine is started shooting again, and the system disk of virtual machine reverts to the state of BACKUP TIME point.
2. dummy machine system dish backup and restore method according to claim 1, it is characterized in that: the described virtual machine method of operation is outside snapshot operation, outside snapshot is that an increment with respect to virtual machine image carries out, all immediate record is in this outside snapshot to changes all in mirror image for virtual machine, and it is constant that virtual machine image remains;
What described virtual machine backup mode adopted is inner snapshot, is the increment mirror image changing with respect to virtual machine image file sometime, and the data of only preserving dummy machine system increment, do not comprise all files.
3. dummy machine system dish backup and restore method according to claim 2, is characterized in that: described outside snapshot be one all the time at the file changing, inner snapshot is a mirror image sometime; Outside snapshot only has one, and inner snapshot, as backup file, can exist a plurality of simultaneously.
CN201310719669.1A 2013-12-23 2013-12-23 A kind of Windows virtual machine system disk backup and reduction method Active CN103729264B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310719669.1A CN103729264B (en) 2013-12-23 2013-12-23 A kind of Windows virtual machine system disk backup and reduction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310719669.1A CN103729264B (en) 2013-12-23 2013-12-23 A kind of Windows virtual machine system disk backup and reduction method

Publications (2)

Publication Number Publication Date
CN103729264A true CN103729264A (en) 2014-04-16
CN103729264B CN103729264B (en) 2016-07-13

Family

ID=50453347

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310719669.1A Active CN103729264B (en) 2013-12-23 2013-12-23 A kind of Windows virtual machine system disk backup and reduction method

Country Status (1)

Country Link
CN (1) CN103729264B (en)

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104407931A (en) * 2014-10-28 2015-03-11 国云科技股份有限公司 Method for obtaining mirror image of damaged system disk of virtual machine
CN104461773A (en) * 2014-11-18 2015-03-25 国云科技股份有限公司 Backup deduplication method of virtual machine
CN105242986A (en) * 2015-09-11 2016-01-13 金步国 Method for backing up and restoring Windows operating system
CN105279011A (en) * 2015-11-17 2016-01-27 国云科技股份有限公司 Method for performing system restoring on virtual machine according to mirror image
CN105278999A (en) * 2015-11-19 2016-01-27 国云科技股份有限公司 Safe and efficient method for deploying virtual machine software
CN105511937A (en) * 2015-11-23 2016-04-20 国云科技股份有限公司 Batch virtual machine blue screen monitoring method suitable for cloud platform
CN106250275A (en) * 2016-08-19 2016-12-21 上海爱数信息技术股份有限公司 The restoration methods of Hyper v virtual machine, system
CN106598785A (en) * 2016-12-16 2017-04-26 广东美晨通讯有限公司 File system backup and restoration method and device
CN106598658A (en) * 2016-12-07 2017-04-26 国云科技股份有限公司 Method for reducing ghost file of Windows to virtual machine
CN106648987A (en) * 2016-12-27 2017-05-10 江苏爱科赛尔云数据科技有限公司 Virtual machine increment backup and recovery method capable of keeping user snapshot setting total
CN107179934A (en) * 2016-03-10 2017-09-19 中标软件有限公司 The method and system of virtual machine automatic reduction in cloud computing environment
CN107533495A (en) * 2014-12-19 2018-01-02 华睿泰科技有限责任公司 Technology for data backup and resume
CN107818029A (en) * 2017-11-07 2018-03-20 上海爱数信息技术股份有限公司 A kind of cloud hard disc data recovers the automated testing method of uniformity
CN109032327A (en) * 2018-07-26 2018-12-18 郑州云海信息技术有限公司 A kind of energy consumption of virtual machine management method and device
CN109032838A (en) * 2018-06-28 2018-12-18 上海爱数信息技术股份有限公司 The automatic Verification method of virtual machine Backup and Restore data consistency
CN109144776A (en) * 2018-07-20 2019-01-04 新华三技术有限公司 Virtual machine image file processing method and processing device
CN109710377A (en) * 2018-12-14 2019-05-03 国云科技股份有限公司 A method of restoring kvm virtual machine in the distributed storage of failure
WO2020061805A1 (en) * 2018-09-26 2020-04-02 Intel Corporation Power Off and Power On Method and Apparatus For an In-Vehicle System
CN113110955A (en) * 2021-04-15 2021-07-13 山东英信计算机技术有限公司 System disk repair method, storage medium and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100011178A1 (en) * 2008-07-14 2010-01-14 Vizioncore, Inc. Systems and methods for performing backup operations of virtual machine files
CN102033755A (en) * 2009-09-30 2011-04-27 国际商业机器公司 Method and system for running virtual machine mirror image
CN102521071A (en) * 2011-11-24 2012-06-27 广州杰赛科技股份有限公司 Private cloud-based virtual machine maintaining method
CN102981931A (en) * 2012-12-03 2013-03-20 中国联合网络通信集团有限公司 Backup method and device for virtual machine
CN103365741A (en) * 2012-03-30 2013-10-23 伊姆西公司 Method and equipment for snapshot and recovery of virtual machine cluster

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100011178A1 (en) * 2008-07-14 2010-01-14 Vizioncore, Inc. Systems and methods for performing backup operations of virtual machine files
CN102033755A (en) * 2009-09-30 2011-04-27 国际商业机器公司 Method and system for running virtual machine mirror image
CN102521071A (en) * 2011-11-24 2012-06-27 广州杰赛科技股份有限公司 Private cloud-based virtual machine maintaining method
CN103365741A (en) * 2012-03-30 2013-10-23 伊姆西公司 Method and equipment for snapshot and recovery of virtual machine cluster
CN102981931A (en) * 2012-12-03 2013-03-20 中国联合网络通信集团有限公司 Backup method and device for virtual machine

Cited By (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104407931A (en) * 2014-10-28 2015-03-11 国云科技股份有限公司 Method for obtaining mirror image of damaged system disk of virtual machine
CN104461773A (en) * 2014-11-18 2015-03-25 国云科技股份有限公司 Backup deduplication method of virtual machine
CN107533495A (en) * 2014-12-19 2018-01-02 华睿泰科技有限责任公司 Technology for data backup and resume
US10877855B2 (en) 2014-12-19 2020-12-29 Veritas Technologies Llc Techniques for data backup and restoration
CN105242986A (en) * 2015-09-11 2016-01-13 金步国 Method for backing up and restoring Windows operating system
CN105242986B (en) * 2015-09-11 2018-04-06 金步国 Backup and the method for reduction Windows operating system
CN105279011A (en) * 2015-11-17 2016-01-27 国云科技股份有限公司 Method for performing system restoring on virtual machine according to mirror image
CN105278999A (en) * 2015-11-19 2016-01-27 国云科技股份有限公司 Safe and efficient method for deploying virtual machine software
CN105511937A (en) * 2015-11-23 2016-04-20 国云科技股份有限公司 Batch virtual machine blue screen monitoring method suitable for cloud platform
CN107179934B (en) * 2016-03-10 2021-03-05 中标软件有限公司 Method and system for automatically restoring virtual machine in cloud computing environment
CN107179934A (en) * 2016-03-10 2017-09-19 中标软件有限公司 The method and system of virtual machine automatic reduction in cloud computing environment
CN106250275A (en) * 2016-08-19 2016-12-21 上海爱数信息技术股份有限公司 The restoration methods of Hyper v virtual machine, system
CN106598658A (en) * 2016-12-07 2017-04-26 国云科技股份有限公司 Method for reducing ghost file of Windows to virtual machine
CN106598785A (en) * 2016-12-16 2017-04-26 广东美晨通讯有限公司 File system backup and restoration method and device
CN106648987A (en) * 2016-12-27 2017-05-10 江苏爱科赛尔云数据科技有限公司 Virtual machine increment backup and recovery method capable of keeping user snapshot setting total
CN107818029A (en) * 2017-11-07 2018-03-20 上海爱数信息技术股份有限公司 A kind of cloud hard disc data recovers the automated testing method of uniformity
CN107818029B (en) * 2017-11-07 2020-06-16 上海爱数信息技术股份有限公司 Automatic test method for cloud hard disk data recovery consistency
CN109032838A (en) * 2018-06-28 2018-12-18 上海爱数信息技术股份有限公司 The automatic Verification method of virtual machine Backup and Restore data consistency
CN109032838B (en) * 2018-06-28 2022-07-15 上海爱数信息技术股份有限公司 Automatic verification method for consistency of backup and recovery data of virtual machine
CN109144776A (en) * 2018-07-20 2019-01-04 新华三技术有限公司 Virtual machine image file processing method and processing device
WO2020015709A1 (en) * 2018-07-20 2020-01-23 新华三技术有限公司 Virtual machine mirror image file processing method and device
CN109032327A (en) * 2018-07-26 2018-12-18 郑州云海信息技术有限公司 A kind of energy consumption of virtual machine management method and device
WO2020061805A1 (en) * 2018-09-26 2020-04-02 Intel Corporation Power Off and Power On Method and Apparatus For an In-Vehicle System
CN109710377A (en) * 2018-12-14 2019-05-03 国云科技股份有限公司 A method of restoring kvm virtual machine in the distributed storage of failure
CN109710377B (en) * 2018-12-14 2023-06-30 国云科技股份有限公司 Method for recovering kvm virtual machine from faulty distributed storage
CN113110955A (en) * 2021-04-15 2021-07-13 山东英信计算机技术有限公司 System disk repair method, storage medium and device

Also Published As

Publication number Publication date
CN103729264B (en) 2016-07-13

Similar Documents

Publication Publication Date Title
CN103729264A (en) Method for backing up and restoring Windows virtual machine system disk
US9823877B2 (en) Virtual machine backup from storage snapshot
US9250824B2 (en) Backing up method, device, and system for virtual machine
US20210011817A1 (en) Virtual Machine Recovery Method and Virtual Machine Management Device
US9298724B1 (en) Systems and methods for preserving deduplication efforts after backup-job failures
CN102521071B (en) Private cloud-based virtual machine maintaining method
US9600369B2 (en) Operating system recovery method and apparatus, and terminal device
US8635422B1 (en) Systems and methods for reclaiming storage space from deleted volumes on thin-provisioned disks
US8065272B2 (en) Systems and methods for tracking changes to a volume
CN101770410A (en) System restore method, virtual machine managing device and system based on client operating system
KR101673299B1 (en) Operating system recovery method and apparatus, and terminal device
CN103473065A (en) Virtual machine creation method capable of rapidly restoring system disk
CN102521289B (en) File synchronization method, device and system
US8565545B1 (en) Systems and methods for restoring images
US9003139B1 (en) Systems and methods for recovering virtual machines after disaster scenarios
CN104572354A (en) Backup and restoration method for operating system based on restoration service and equipment thereof
CN102110032A (en) Method and device for improving reliability of configuration file
CN101685412B (en) Hard disk data backup and restore method, system and computer
CN103049343A (en) Method and device for restoring operating system blue screen
CN105550071A (en) System file upgrading and detecting method and communication device
CN112416527A (en) Data recovery method, device, equipment and storage medium
CN104572347A (en) System recovery method based on block-level recovery, registry correction and driver injection
CN109542672B (en) Method and apparatus for reclaiming memory blocks in snapshot memory space
CN105279011A (en) Method for performing system restoring on virtual machine according to mirror image
CN109308232B (en) Method, device and system for rollback after virtual machine live migration fault

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: 523808 19th Floor, Cloud Computing Center, Chinese Academy of Sciences, No. 1 Kehui Road, Songshan Lake Hi-tech Industrial Development Zone, Dongguan City, Guangdong Province

Patentee after: G-Cloud Technology Co., Ltd.

Address before: 523808 No. 14 Building, Songke Garden, Songshan Lake Science and Technology Industrial Park, Dongguan City, Guangdong Province

Patentee before: G-Cloud Technology Co., Ltd.