Virtual Server 2005 R2 SP1 Beta2中为用户提供了一个实用的工具,它能够将虚拟磁盘文件(VHD)挂载到宿主系统中进行编辑。目前微软提供的是命令行方式来操作,感觉到很麻烦,今天浏览了Virtual PC Guy's WebLog,发现了一个方便快速的方法,在注册表中添加以下键值就可以实现通过鼠标右键来快速的将VHD载入或卸载。以下是完整的REG导入内容,可以将其保存为一个reg文件格式。

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Virtual.Machine.HD]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Virtual.Machine.HD\shell]
@="Mount"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Virtual.Machine.HD\shell\Dismount]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Virtual.Machine.HD\shell\Dismount\command]
@="\"C:\\Program Files\\Microsoft Virtual Server\\Vhdmount\\vhdmount.exe\" /u \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Virtual.Machine.HD\shell\Mount]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Virtual.Machine.HD\shell\Mount\command]
@="\"C:\\Program Files\\Microsoft Virtual Server\\Vhdmount\\vhdmount.exe\" /p \"%1\""

[HKEY_CLASSES_ROOT\.vhd]
@="Virtual.Machine.HD"

分页: 1/1 第一页 1 最后页 [ 显示模式: 摘要 | 列表 ]