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"
@="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\""
@="\"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\""
@="\"C:\\Program Files\\Microsoft Virtual Server\\Vhdmount\\vhdmount.exe\" /p \"%1\""
[HKEY_CLASSES_ROOT\.vhd]
@="Virtual.Machine.HD"
@="Virtual.Machine.HD"
本文转自 苏繁 51CTO博客,原文链接:http://blog.51cto.com/goxia/221269,如需转载请自行联系原作者