CN106598658A - 一种Windows的ghost文件还原到虚拟机的方法 - Google Patents
一种Windows的ghost文件还原到虚拟机的方法 Download PDFInfo
- Publication number
- CN106598658A CN106598658A CN201611117197.2A CN201611117197A CN106598658A CN 106598658 A CN106598658 A CN 106598658A CN 201611117197 A CN201611117197 A CN 201611117197A CN 106598658 A CN106598658 A CN 106598658A
- Authority
- CN
- China
- Prior art keywords
- windows
- virtual machine
- ghost
- files
- gho
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
- G06F11/1469—Backup restoration techniques
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45562—Creating, deleting, cloning virtual machine instances
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本发明涉及云计算和虚拟化技术领域,特别是一种Windows的ghost文件还原到虚拟机的方法。本发明首先制作一个Windows预安装环境iso,把GHO格式的ghost文件及ghost软件添加到iso,然后在宿主机创建一个空的虚拟机磁盘文件,配置虚拟机配置文件挂载经过修改的Windows预安装环境iso,启动虚拟机进入Windows预安装***操作界面,再运行ghost软件,选择还原的镜像来源为刚才添加的GHO文件,最后执行ghost还原。本发明解决了GHO格式的Windows ghost文件无法直接在没有操作***或者非Windows操作***的虚拟机直接还原的问题,可应用于Windows应用快速还原到虚拟机。
Description
技术领域
本发明涉及云计算和虚拟化技术领域,特别是一种Windows的ghost文件还原到虚拟机的方法。
背景技术
随着云计算发展越来越迅速,越来越多的用户把应用迁移到虚拟机。在以前大多数Windows应用***常用Ghost软件备份、还原硬盘分区,包括对整个硬盘的所有文件信息进行备份,使用GHO扩展名安装操作***,即俗称的克隆安装法。因为使用这种方法的速度比较快,故而颇受运维人员的青睐,在某些操作***文件丢失、毁损的情况下,只要有了GHO扩展名的备份文件,还能使用GHOST浏览器来修改或提取文件,从而可以避免重装操作***。由于GHO格式文件只能在Windows操作***下利用ghost软件还原,还原到虚拟机的通常做法是:
(1)先在虚拟机安装Windows操作***;
(2)配置完网络或者借助其它物理介质,把GHO格式文件上传到虚拟机;
(3)虚拟机安装ghost软件,运行ghost软件还原GHO格式文件到虚拟机的磁盘。
这样的做法会带来以下问题:
(1)耗时较长,如果虚拟机不是Windows操作***,需要重装;
(2)操作复杂,还需要对虚拟机操作***本身进行环境基础配置、网络相关的***配置,才能将GHO文件上传到虚拟机。
由于上述2点的影响,可以看出,传统的GHO文件还原虚拟机的方案耗时无疑是比较长的。
为了提升ghost文件还原虚拟机的速度及准确性,降低复杂度,需要一种快速Windows的ghost文件还原虚拟机的方法。
发明内容
本发明解决的技术问题在于提供一种快速、方便、准确把Windows的ghost文件还原虚拟机的方法;解决ghost文件还原虚拟机操作复杂、速度慢等问题。
本发明解决上述技术问题的技术方案是:
所述的方法包括如下步骤:
步骤1:制作一个Windows预安装环境iso,把GHO格式的ghost文件及ghost软件添加到iso;
步骤2:宿主机创建一个空的虚拟机磁盘文件,配置虚拟机配置文件挂载经过修改的Windows预安装环境iso;
步骤3:启动虚拟机进入Windows预安装***操作界面;
步骤4:运行ghost还原工具,选择还原的镜像来源为步骤1添加的GHO格式文件所在路径,执行ghost还原;
步骤5:虚拟机还原完毕。
所述的GHO格式的ghost文件是Ghost工具软件的镜像文件存放扩展名,是使用Ghost软件备份的硬盘分区或整个硬盘的所有文件息;
所述的ghost软件能够提供快速对***进行完整备份和还原,支持的磁盘文件***格式包括FAT,FAT32,NTFS,ext2,ext3,linux swap等,还能够对不支持的分区进行扇区对扇区的完全备份。
所述的Windows预安装环境是带有有限服务的最小Win32子***,用于为安装Windows而准备计算机,它包括运行Windows安装程序及脚本、连接网络共享、自动化基本过程以及执行硬件验证所需的最小功能。
所述的空的虚拟机磁盘文件用于还原GHO文件;
所述的虚拟机配置文件是一种XML格式的配置文件,可以利用其定义虚拟机资源的各种配置信息,挂载iso。
本发明通过把GHO格式文件和ghost软件添加到Windows预安装环境iso,在Windows预安装环境进行GHO格式文件快速还原到虚拟机,无需预先在虚拟机安装Windows操作***,可以节省安装配置虚拟机操作***环境及上传GHO文件的时间,降低操作复杂度,大大加快应用恢复的时间。
附图说明
下面结合附图对本发明进一步说明:
图1为本发明方法流程图。
具体实施方式
如图1所示,本发明的方法实现步骤如下:
1、以编辑方式打开Windows预安装环境iso,添加GHO格式文件和ghost软件,并保存为新的iso;
2、宿主机创建一个空的虚拟机磁盘文件,配置虚拟机配置文件挂载经过修改的Windows预安装环境iso;
创建40G的虚拟机磁盘
qemu-img create -f qcow2 win2008.qcow2 40960M //
配置虚拟机配置文件vm.xml,启动虚拟机:
启动虚拟机:
virsh create/root/libvirt.xml
3、进入Windows预安装环境***操作界面,运行ghost软件;
4、选择还原的镜像为Windows预安装环境***添加的GHO格式文件,执行ghost还原;
5、虚拟机还原完毕。
Claims (5)
1.一种Windows的ghost文件还原到虚拟机的方法,其特征在于:所述的方法包括如下步骤:
步骤1:制作一个Windows预安装环境iso,把GHO格式的ghost文件及ghost软件添加到iso;
步骤2:宿主机创建一个空的虚拟机磁盘文件,配置虚拟机配置文件挂载经过修改的Windows预安装环境iso;
步骤3:启动虚拟机进入Windows预安装***操作界面;
步骤4:运行ghost还原工具,选择还原的镜像来源为步骤1添加的GHO格式文件所在路径,执行ghost还原;
步骤5:虚拟机还原完毕。
2.根据权利要求1所述的Windows的ghost文件还原到虚拟机的方法,其特征在于:
所述的GHO格式的ghost文件是Ghost工具软件的镜像文件存放扩展名,是使用Ghost软件备份的硬盘分区或整个硬盘的所有文件息;
所述的ghost软件能够提供快速对***进行完整备份和还原,支持的磁盘文件***格式包括FAT,FAT32,NTFS,ext2,ext3,linux swap等,还能够对不支持的分区进行扇区对扇区的完全备份。
3.根据权利要求1所述的Windows的ghost文件还原到虚拟机的方法,其特征在于:所述的Windows预安装环境是带有有限服务的最小Win32子***,用于为安装Windows而准备计算机,它包括运行Windows安装程序及脚本、连接网络共享、自动化基本过程以及执行硬件验证所需的最小功能。
4.根据权利要求2所述的Windows的ghost文件还原到虚拟机的方法,其特征在于:所述的Windows预安装环境是带有有限服务的最小Win32子***,用于为安装Windows而准备计算机,它包括运行Windows安装程序及脚本、连接网络共享、自动化基本过程以及执行硬件验证所需的最小功能。
5.根据权利要求1至4任一项所述的Windows的ghost文件还原到虚拟机的方法,其特征在于:
所述的空的虚拟机磁盘文件用于还原GHO文件;
所述的虚拟机配置文件是一种XML格式的配置文件,可以利用其定义虚拟机资源的各种配置信息,挂载iso。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611117197.2A CN106598658A (zh) | 2016-12-07 | 2016-12-07 | 一种Windows的ghost文件还原到虚拟机的方法 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611117197.2A CN106598658A (zh) | 2016-12-07 | 2016-12-07 | 一种Windows的ghost文件还原到虚拟机的方法 |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106598658A true CN106598658A (zh) | 2017-04-26 |
Family
ID=58596441
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611117197.2A Pending CN106598658A (zh) | 2016-12-07 | 2016-12-07 | 一种Windows的ghost文件还原到虚拟机的方法 |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106598658A (zh) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107463404A (zh) * | 2017-08-03 | 2017-12-12 | 浪潮(北京)电子信息产业有限公司 | 一种向虚拟机文件***中增加配置文件的方法和*** |
CN107608760A (zh) * | 2017-09-14 | 2018-01-19 | 郑州云海信息技术有限公司 | 一种kvm虚拟机部署方法、***及计算机可读存储介质 |
CN110780980A (zh) * | 2019-10-30 | 2020-02-11 | 成都无糖信息技术有限公司 | 对不同来源磁盘或操作***镜像进行快速还原处理的方法 |
CN117591247A (zh) * | 2024-01-18 | 2024-02-23 | 腾讯科技(深圳)有限公司 | 云环境虚拟机的修复方法、装置及电子设备 |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103034566A (zh) * | 2012-12-06 | 2013-04-10 | 华为技术有限公司 | 虚拟机还原的方法和装置 |
CN103729264A (zh) * | 2013-12-23 | 2014-04-16 | 国云科技股份有限公司 | 一种Windows虚拟机***盘备份还原方法 |
-
2016
- 2016-12-07 CN CN201611117197.2A patent/CN106598658A/zh active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103034566A (zh) * | 2012-12-06 | 2013-04-10 | 华为技术有限公司 | 虚拟机还原的方法和装置 |
CN103729264A (zh) * | 2013-12-23 | 2014-04-16 | 国云科技股份有限公司 | 一种Windows虚拟机***盘备份还原方法 |
Non-Patent Citations (1)
Title |
---|
哈哈小88: "虚拟机如何简单的安装ghost备份***", 《百度经验》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107463404A (zh) * | 2017-08-03 | 2017-12-12 | 浪潮(北京)电子信息产业有限公司 | 一种向虚拟机文件***中增加配置文件的方法和*** |
CN107608760A (zh) * | 2017-09-14 | 2018-01-19 | 郑州云海信息技术有限公司 | 一种kvm虚拟机部署方法、***及计算机可读存储介质 |
CN110780980A (zh) * | 2019-10-30 | 2020-02-11 | 成都无糖信息技术有限公司 | 对不同来源磁盘或操作***镜像进行快速还原处理的方法 |
CN117591247A (zh) * | 2024-01-18 | 2024-02-23 | 腾讯科技(深圳)有限公司 | 云环境虚拟机的修复方法、装置及电子设备 |
CN117591247B (zh) * | 2024-01-18 | 2024-04-26 | 腾讯科技(深圳)有限公司 | 云环境虚拟机的修复方法、装置及电子设备 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20190004849A1 (en) | Exposing a proprietary image backup to a hypervisor as a disk file that is bootable by the hypervisor | |
US20110246988A1 (en) | Hypervisor for starting a virtual machine | |
CN103970585B (zh) | 创建虚拟机的方法及装置 | |
CN106598658A (zh) | 一种Windows的ghost文件还原到虚拟机的方法 | |
US8555017B2 (en) | In-place physical to virtual (P2V) migration of an existing operating system during installation of a new operating system | |
CN102402446B (zh) | 应用软件的安装方法和应用软件的安装装置 | |
US20170124103A1 (en) | Method and Apparatus for Creating System Disk Snapshot of Virtual Machine | |
CN103514023B (zh) | 一种虚拟机离线自动软件安装的方法及*** | |
CN102937909B (zh) | 一种部署和更新Linux***的方法 | |
US9588793B2 (en) | Creating new virtual machines based on post-boot virtual machine snapshots | |
CN106406979A (zh) | XenServer平台虚拟机迁移至KVM虚拟化平台的方法 | |
US20150373102A1 (en) | Deployment of virtual machine disks from a shared network file system | |
CN106095528B (zh) | 一种检测虚拟机盘符的方法 | |
CN106775928A (zh) | 一种异构云平台间的虚拟机自动迁移***及方法 | |
CN108255574A (zh) | 一种虚拟机迁移方法及装置 | |
US20160098204A1 (en) | Exposing proprietary data to a hypervisor as native hypervisor data | |
CN105573830A (zh) | 一种虚拟机迁移方法 | |
CN111679889B (zh) | 一种虚拟机的转换迁移方法和*** | |
WO2019027655A1 (en) | SYSTEMS AND METHODS FOR ALIGNING REDUNDANT NETWORK DATA | |
CN105607869B (zh) | 一种快速格式化与使用虚拟机磁盘的方法 | |
US20200110666A1 (en) | Data recovery of guest virtual machines | |
CN103530144A (zh) | 一种从遗留***生成虚拟机镜像的方法 | |
CN106293535B (zh) | 一种nas的性能优化方法及装置 | |
CN105573671A (zh) | 一种获取虚拟机磁盘对应磁盘文件的方法 | |
US20120124355A1 (en) | Single volume image file extraction |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170426 |
|
WD01 | Invention patent application deemed withdrawn after publication |