如果您还在另一台计算机上使用Windows XP,则可以将该VHD文件传输到 XP 计算机并安装它,而无需运行Virtual PC或Microsoft Virtual Server。您只能安装Microsoft Virtual Server的一个组件并从命令行运行命令。
注意:(NOTE:)如果您在Windows 7中使用BitLocker为您的(BitLocker)VHD文件应用了密码,则无法在(VHD)Windows XP中访问您的VHD文件。系统将要求您格式化驱动器。
从以下位置下载Microsoft 虚拟服务器(Microsoft Virtual Server)
http://www.microsoft.com/downloads/details.aspx?FamilyId=BC49C7C8-4840-4E67-8DC4-1E6E218ACCE4&displaylang=en。
双击setup.exe文件开始安装Microsoft Virtual Server 。将显示初始Microsoft Virtual Server 2005 R2 SP1 设置(Microsoft Virtual Server 2005 R2 SP1 Setup)屏幕。单击安装 Microsoft Virtual Server 2005 R2 SP1(Install Microsoft Virtual Server 2005 R2 SP1)旁边的按钮。
显示许可协议(License Agreement)。选择我接受许可协议中的条款(I accept the terms in the license agreement )单选按钮,然后单击下一步(Next)。
显示客户信息(Customer Information)屏幕。输入您的用户名(User Name)和组织(Organization)。产品密钥(Product Key)会自动输入。单击下一步(Next)。
在设置类型(Setup Type)屏幕上,选择自定义(Custom)单选按钮并单击下一步(Next)。
在自定义设置(Custom Setup)屏幕上,单击列表中第一个功能旁边的按钮Virtual Server Service,然后从弹出菜单中选择此功能将不可用。(This feature will not be available)
对除VHD Mount(VHD Mount)功能之外的所有功能执行相同的操作。自定义设置(Custom Setup)屏幕应如下图所示。单击下一步(Next)。
VHD 装载(VHD Mount)功能已准备好安装。单击安装(Install)。
显示安装过程的进度。
当显示设置完成(Setup Complete)屏幕时,单击完成(Finish)。
在Windows Explorer中,导航到C:\Program Files\Microsoft Virtual Server目录。在右窗格中,按住Shift键的同时右键单击Vhdmount目录。从弹出菜单中选择在此处打开命令行。(Open Command Line Here)
在命令提示符处,输入以下行。
vhdmount /p /f <path to VHD file>
将“ <path to VHD file> ”替换为要附加的VHD文件的位置。按Enter。您应该会看到一条消息,指示虚拟硬盘(Virtual Hard Disk)已成功插入。
注意:(NOTE:)有关vhdmount命令参数的信息,请在提示符处键入vhdmount并按Enter。将显示带有描述的可用参数列表。
在Windows Explorer中,您的VHD文件显示为带有驱动器号的硬盘驱动器。
要分离VHD文件,请在命令提示符处输入以下行:
vhdmount /u <path to VHD file>
再次,替换“VHD 文件>”以及您的VHD文件的位置。
如果您仍然打开Windows 资源管理器并选择了(Windows Explorer)VHD,则在尝试分离VHD文件时将收到错误消息。您必须选择不同的驱动器,或关闭Windows Explorer。
一旦不再使用VHD文件,您可以再次输入 detach 命令,您应该会看到一条消息,指示虚拟硬盘已成功拔出。
如果您在Windows 7(Windows 7)计算机和Windows XP计算机之间传输文件,此Microsoft Virtual Server组件非常有用。您可以将所有文件保存在一个可移植文件中,并在两个操作系统上轻松访问它们。
Attach a VHD File in Windows XP
If you also use Windows XP on another computer, yоu can transfer that VHD file to the XP computer and mount it without having to run Virtual PC or Microsoft Virtual Server. You can install only a component of Microsoft Virtual Server and run a command from the command line.
NOTE: If you have applied a password to your VHD file using BitLocker in Windows 7, you CANNOT access your VHD file in Windows XP. You will be asked to format the drive.
Download Microsoft Virtual Server from
http://www.microsoft.com/downloads/details.aspx?FamilyId=BC49C7C8-4840-4E67-8DC4-1E6E218ACCE4&displaylang=en.
Start installing Microsoft Virtual Server by double-clicking on the setup.exe file. The initial Microsoft Virtual Server 2005 R2 SP1 Setup screen displays. Click the button next to Install Microsoft Virtual Server 2005 R2 SP1.
The License Agreement displays. Select the I accept the terms in the license agreement radio button and click Next.
The Customer Information screen displays. Enter your User Name and Organization. The Product Key is automatically entered. Click Next.
On the Setup Type screen, select the Custom radio button and click Next.
On the Custom Setup screen, click on the button next to the first feature in the list, Virtual Server Service, and select This feature will not be available from the pop-up menu.
Do the same thing for all the features except the VHD Mount feature. The Custom Setup screen should look like the following image. Click Next.
The VHD Mount feature is ready to be installed. Click Install.
The progress of the installation process displays.
When the Setup Complete screen displays, click Finish.
In Windows Explorer, navigate to the C:\Program Files\Microsoft Virtual Server directory. In the right pane, hold down the Shift key while right-clicking on the Vhdmount directory. Select Open Command Line Here from the pop-up menu.
At the command prompt, enter the following line.
vhdmount /p /f <path to VHD file>
Replace “<path to VHD file>” with the location of the VHD file you want to attach. Press Enter. You should see a message indicating the Virtual Hard Disk was successfully plugged in.
NOTE: For information about the parameters for the vhdmount command, type vhdmount at the prompt and press Enter. A list of available parameters with descriptions displays.
In Windows Explorer, your VHD file displays as a hard drive with a drive letter.
To detach your VHD file, enter the following line at the command prompt:
vhdmount /u <path to VHD file>
Again, replace “<path to VHD file>” with the location of your VHD file.
If you still have Windows Explorer open and your VHD selected, you will receive an error when you try to detach the VHD file. You must either select a different drive, or close Windows Explorer.
Once the VHD file is no longer being used, you can enter the detach command again and you should see a message indicating that the virtual hard disk has been successfully unplugged.
This component of Microsoft Virtual Server is useful if you transfer files between a Windows 7 computer and a Windows XP computer. You can keep all your files in one portable file and easily access them on both operating systems.