2010年4月18日星期日

Windows Boot from VHD

这个从Vista版本以后Windows的新增功能很实用,微软总算又减少了一个不良设计。

可以从VHD文件启动以后,一机多系统则变得灵活得多,目前我采用的系统方案如下:

C:\Windows\system32>bcdedit

Windows Boot Manager
--------------------
identifier {bootmgr}
device partition=D:
description Windows Boot Manager
locale en-US
inherit {globalsettings}
default {current}
resumeobject {29c6bd95-a8ac-11de-adb5-9036525d4b6f}
displayorder {current}
{29c6bd99-a8ac-11de-adb5-9036525d4b6f}
{29c6bd9b-a8ac-11de-adb5-9036525d4b6f}
{29c6bd92-a8ac-11de-adb5-9036525d4b6f}
toolsdisplayorder {memdiag}
timeout 30

Windows Boot Loader
-------------------
identifier {current} - OS 1
device vhd=[D:]\VMs\Boot\Win7x64\Win7x64.vhd
path \Windows\system32\winload.exe
description Windows 7x64 VHD - doing
locale en-US
inherit {bootloadersettings}
recoverysequence {29c6bd97-a8ac-11de-adb5-9036525d4b6f}
recoveryenabled Yes
osdevice vhd=[D:]\VMs\Boot\Win7x64\Win7x64.vhd
systemroot \Windows
resumeobject {29c6bd95-a8ac-11de-adb5-9036525d4b6f}
nx OptIn

Windows Boot Loader
-------------------
identifier {29c6bd99-a8ac-11de-adb5-9036525d4b6f} - OS 2
device vhd=[D:]\VMs\Boot\Win7x32\Win7x32.vhd
path \Windows\system32\winload.exe
description Windows 7x32 VHD - shell
locale en-US
inherit {bootloadersettings}
recoverysequence {29c6bd93-a8ac-11de-adb5-9036525d4b6f}
recoveryenabled Yes
testsigning Yes
osdevice vhd=[D:]\VMs\Boot\Win7x32\Win7x32.vhd
systemroot \Windows
kernel ntkr128g.exe
resumeobject {29c6bd91-a8ac-11de-adb5-9036525d4b6f}
nx OptIn
pae ForceEnable

Windows Boot Loader
-------------------
identifier {29c6bd9b-a8ac-11de-adb5-9036525d4b6f} - OS 3
device vhd=[D:]\VMs\Boot\Advance64\Advance64.vhd
path \Windows\system32\winload.exe
description Windows 7x64 VHD - Advance
locale en-US
inherit {bootloadersettings}
recoverysequence {29c6bd97-a8ac-11de-adb5-9036525d4b6f}
recoveryenabled Yes
osdevice vhd=[D:]\VMs\Boot\Advance64\Advance64.vhd
systemroot \Windows
resumeobject {29c6bd95-a8ac-11de-adb5-9036525d4b6f}
nx OptIn

Windows Boot Loader
-------------------
identifier {29c6bd92-a8ac-11de-adb5-9036525d4b6f} - OS 4
device partition=D:
path \Windows\system32\winload.exe
description Windows 7x64 Primary
locale en-US
inherit {bootloadersettings}
recoverysequence {29c6bd93-a8ac-11de-adb5-9036525d4b6f}
recoveryenabled Yes
osdevice partition=D:
systemroot \Windows
resumeobject {29c6bd91-a8ac-11de-adb5-9036525d4b6f}
nx OptIn

系统一共安装了4个操作系统,分别是:
  1. Windows 7、64位,这是我日常使用的宿主操作系统
  2. Windows 7、32位,这是我MM日常使用的操作系统
  3. Windows 7、64位,这是我日常放在虚拟机中使用的操作系统
  4. Windows 7、64位,这是磁盘上的操作系统
一般来说,我会启动OS1、然后通过vmware启动OS3。OS1作为宿主机运行,OS3则是虚拟机。如果OS3中毒或是被恶意软件篡改,则从事先备份的文件中恢复即可。如果要玩装在OS3上的游戏(或其他需要发挥计算机的性能的软件),则可以重新启动OS3,以物理机方式运行OS3。可以任意在虚拟机和物理机间切换,并且便于备份和恢复,这是操作系统可以安装在文件中带来的便利。

没有评论:

发表评论