CN103207817B - 虚拟机自动还原方法 - Google Patents

虚拟机自动还原方法 Download PDF

Info

Publication number
CN103207817B
CN103207817B CN201310142619.1A CN201310142619A CN103207817B CN 103207817 B CN103207817 B CN 103207817B CN 201310142619 A CN201310142619 A CN 201310142619A CN 103207817 B CN103207817 B CN 103207817B
Authority
CN
China
Prior art keywords
virtual machine
temporary folder
automatic reduction
virtual
reduction method
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.)
Active
Application number
CN201310142619.1A
Other languages
English (en)
Other versions
CN103207817A (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.)
Softcom Power Information Technology Group Co ltd
Original Assignee
SHENZHEN JINGHUA KEXUN 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 SHENZHEN JINGHUA KEXUN TECHNOLOGY Co Ltd filed Critical SHENZHEN JINGHUA KEXUN TECHNOLOGY Co Ltd
Priority to CN201310142619.1A priority Critical patent/CN103207817B/zh
Publication of CN103207817A publication Critical patent/CN103207817A/zh
Application granted granted Critical
Publication of CN103207817B publication Critical patent/CN103207817B/zh
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明提供了一种虚拟机自动还原方法,包括步骤:a:开启虚拟机;b:判断虚拟机是否开启自动还原模式,如果是,进入步骤c;c:创建临时文件夹并保存所有写入数据;d:关闭虚拟机,删除临时文件夹数据;e:虚拟机重启后恢复到初始的磁盘状态,即虚拟机刚创建好的磁盘状态。该方法无需IT管理员手动安装软件,简便直接同时又增强了虚拟化备份数据的能力,而且具有安装复杂度和维护复杂度低,维护成本低等优点。<!--1-->

Description

虚拟机自动还原方法
技术领域
本发明涉及虚拟化技术领域,尤其涉及一种虚拟机自动还原方法。
背景技术
服务器虚拟化、桌面虚拟化和应用虚拟化是现在计算机虚拟化中的三大虚拟化技术。也是未来云计算的一个重要技术。目前在全球的各个行业,已经开始了虚拟化的技术的推广,并逐渐的在IT行业中盛行起来。目前针对一些大型企业都已经虚拟化,并且逐渐的完全虚拟化,朝着云计算的方向发展。
近年来虚拟机在企业办公领域与传统的PC机抢占市场,而虚拟化明显的优势是节约硬件资源和优化管理。根据市场2011年虚拟服务器销售额突破27亿美元来看,虚拟化未来发展动向将是不断优化完善自身功能,弥补PC机无法实现的功能并汲取PC机的优点。PC机在很多方面具有人性化设计,比如考虑用户使用过程中遇到自身或客观原因导致系统反应过慢或系统崩溃,其设计隐藏了一个分区作为备份,只需要简单的步骤就可以将系统恢复至出厂状态,而且所有的驱动程序和管理软件都是默认安装好的状态。
虚拟化的优势促使虚拟化不断占领PC市场,然而虚拟化在技术上仍然存在缺陷。虚拟机有自己的虚拟硬件,不完全用物理的电脑硬件,在安装磁盘还原软件时,必须严格要求制作克隆系统方法做才行,即使完全按照此办法做,也可能出现系统不兼容,硬盘空间不足等问题。所以部分虚拟化厂家建议用户除了测试目的外不安装。
发明内容
本发明的目的在于提供一种虚拟机自动还原方法,无需IT管理员手动安装软件,简便直接同时又增强了虚拟化备份数据的能力。
本发明的目的是通过以下技术方案实现的。
一种虚拟机自动还原方法,包括步骤:
a:开启虚拟机;
b:判断虚拟机是否开启自动还原模式,如果是,进入步骤c;
c:创建临时文件夹并保存所有写入数据;
d:关闭虚拟机,删除临时文件夹数据;
e:虚拟机重启后恢复到初始的磁盘状态,即虚拟机刚创建好的磁盘状态。
优选的,步骤c具体包括:系统盘自动更改为只读模式,并创建临时文件夹,所有用户写入数据保存在该临时文件夹中,且将该临时文件夹与当前盘排放在一个目录下。
优选的,步骤b中若虚拟机未开启自动还原模式,则继续等待判断选择。
本发明实施例与现有技术相比,本发明提供的虚拟机自动还原方法,当用户选择虚拟机自动还原操作时,系统盘自动更改为只读模式,所有用户改动保存在一个临时文件夹中,临时文件夹和当前盘排放到一个目录下,当确认虚拟机关机后,系统删掉保存的临时文件夹数据,虚拟机重启后恢复到初始的磁盘状态。该方法无需IT管理员手动安装软件,简便直接同时又增强了虚拟化备份数据的能力,而且具有安装复杂度和维护复杂度低,维护成本低等优点。
附图说明
图1是本发明虚拟机自动还原方法流程图。
具体实施方式
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
请参阅1所示,本发明虚拟机自动还原方法,包括:
步骤101:开启虚拟机;
步骤102:判断虚拟机是否开启自动还原模式,如果是,进入步骤103;否则,返回步骤102;
步骤103:创建临时文件夹并保存所有写入数据;
具体地,系统盘自动更改为只读模式,并创建临时文件夹,所有用户写入数据保存在该临时文件夹中,且将该临时文件夹与当前盘排放在一个目录下。
步骤104:关闭虚拟机,删除临时文件夹数据;
步骤105:虚拟机重启后恢复到初始的磁盘状态,即虚拟机刚创建好的磁盘状态。
本发明提供的虚拟机自动还原方法,当用户选择虚拟机自动还原操作时,系统盘自动更改为只读模式,所有用户改动保存在一个临时文件夹中,临时文件夹和当前盘排放到一个目录下,当确认虚拟机关机后,系统删掉保存的临时文件夹数据,虚拟机重启后恢复到初始的磁盘状态。该方法无需IT管理员手动安装软件,简便直接同时又增强了虚拟化备份数据的能力,而且具有安装复杂度和维护复杂度低,维护成本低等优点。
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。

Claims (1)

1.一种虚拟机自动还原方法,其特征在于,包括步骤:
a:开启虚拟机;
b:判断虚拟机是否开启自动还原模式,如果是,进入步骤c;
c:创建临时文件夹并保存所有写入数据;
d:关闭虚拟机,删除临时文件夹数据;
e:虚拟机重启后恢复到初始的磁盘状态,即虚拟机刚创建好的磁盘状态;
步骤c具体包括:系统盘自动更改为只读模式,并创建临时文件夹,所有用户写入数据保存在该临时文件夹中,且将该临时文件夹与当前盘排放在一个目录下;
步骤b中若虚拟机未开启自动还原模式,则继续等待判断选择。
CN201310142619.1A 2013-04-23 2013-04-23 虚拟机自动还原方法 Active CN103207817B (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310142619.1A CN103207817B (zh) 2013-04-23 2013-04-23 虚拟机自动还原方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310142619.1A CN103207817B (zh) 2013-04-23 2013-04-23 虚拟机自动还原方法

Publications (2)

Publication Number Publication Date
CN103207817A CN103207817A (zh) 2013-07-17
CN103207817B true CN103207817B (zh) 2016-04-20

Family

ID=48755046

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310142619.1A Active CN103207817B (zh) 2013-04-23 2013-04-23 虚拟机自动还原方法

Country Status (1)

Country Link
CN (1) CN103207817B (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103713937B (zh) * 2013-12-13 2017-08-25 广东电网公司信息中心 变电站终端系统运行方法
CN104461757A (zh) * 2014-11-03 2015-03-25 中国联合网络通信集团有限公司 一种恢复虚拟机的方法及装置
CN106708419A (zh) * 2015-11-18 2017-05-24 中兴通讯股份有限公司 一种虚拟机的磁盘文件的处理方法及装置
CN107179934B (zh) * 2016-03-10 2021-03-05 中标软件有限公司 云计算环境中虚拟机自动还原的方法和系统
CN108108255A (zh) * 2016-11-25 2018-06-01 中兴通讯股份有限公司 虚拟机故障的检测和恢复方法及装置
CN112559126A (zh) * 2020-12-11 2021-03-26 上海德拓信息技术股份有限公司 一种基于openstack云管理平台永久存储虚机还原的实现方法

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1936866A (zh) * 2006-08-18 2007-03-28 福昭科技(深圳)有限公司 具有资料还原功能的闪存记忆体存储机制
CN1940877A (zh) * 2005-09-28 2007-04-04 联想(北京)有限公司 用于软件系统保护的软件系统保护点还原方法和装置

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8566640B2 (en) * 2010-07-19 2013-10-22 Veeam Software Ag Systems, methods, and computer program products for instant recovery of image level backups

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1940877A (zh) * 2005-09-28 2007-04-04 联想(北京)有限公司 用于软件系统保护的软件系统保护点还原方法和装置
CN1936866A (zh) * 2006-08-18 2007-03-28 福昭科技(深圳)有限公司 具有资料还原功能的闪存记忆体存储机制

Also Published As

Publication number Publication date
CN103207817A (zh) 2013-07-17

Similar Documents

Publication Publication Date Title
CN103207817B (zh) 虚拟机自动还原方法
US10871980B2 (en) Execution of a script based on properties of a virtual device associated with a virtual machine
KR101672227B1 (ko) 멀티모드 컴퓨팅 디바이스
US9262212B2 (en) Systems and methods for migrating virtual machines
US8468522B2 (en) Virtual machine system, system for forcing policy, method for forcing policy, and virtual machine control program
CN101359355B (zh) Windows系统下受限帐户提升用户权限的方法
US20110265183A1 (en) Secure virtualization environment bootable from an external media device
US20110239019A1 (en) Method and system for managing power consumption of a computing device
US9836357B1 (en) Systems and methods for backing up heterogeneous virtual environments
CN104239166A (zh) 一种对运行中虚拟机实现文件备份的方法
US20130239108A1 (en) Hypervisor management system and method
US8615488B2 (en) Physical replication of database subset to improve availability and reduce resource cost in a cloud environment
US20150254103A1 (en) Instant xvmotion using a private storage virtual appliance
US9524159B2 (en) Updating an operating system
JP2021516837A (ja) 複数のクラウドサービスのデータ管理のためのシステム及び方法
US20140082275A1 (en) Server, host and method for reading base image through storage area network
US20160330241A1 (en) Remote password management using local security policies
CN103235746B (zh) 服务器一体机自动恢复方法
CN103268268B (zh) 虚拟机自动还原装置
CN105068899A (zh) 一种Vmware系统下自动重启稳定性测试方法
CN105653342B (zh) 一种Windows池桌面自动入域的方法及系统
CN105607869B (zh) 一种快速格式化与使用虚拟机磁盘的方法
US20180081930A1 (en) Maintaining storage profile consistency in a cluster having local and shared storage
US20160266951A1 (en) Diagnostic collector for hadoop
US20120324077A1 (en) Providing Resource Accessbility During a Sleep State

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230828

Address after: 502, 5th Floor, Building 16, East District, No. 10 Northwest Wangdong Road, Haidian District, Beijing, 100080

Patentee after: Softcom power information technology (Group) Co.,Ltd.

Address before: 801-821, Comprehensive Service Building, Nanshan Yungu Innovation Industrial Park, No. 1183 Liuxian Avenue, Taoyuan Street, Nanshan District, Shenzhen, Guangdong Province, 518000

Patentee before: Shenzhen Jinghua Kexun Technology Co.,Ltd.