Friday, March 25, 2011

Using WIM2VHD deploys Windows OS to VHD

WIM2VHD is a tool to covert WIM file to VHD file.

You can go to the following website to download:

http://code.msdn.microsoft.com/wim2vhd

Supported OS
Windows 7
Windows Server 2008 R2
Windows Server 2008 SP2 with Hyper-V RTM enabled (x64 only)

Using WIM2VHD deploys Windows Server 2008 R2
Wim2VHD requires the computer to be installed Windows Automated Installation Kit for Windows 7.

Assuming that WIMVHD was saved in F:\WIM2VHD

1. At Hyper-V server, login as Administrator.
2. Download and Install WAIK 7.
3. Insert the Windows Server 2008 R2 DVD
4. Click "Start > All Programs > Microsoft Windows AIK > Deployment Tools Command Prompt".
5. Enter "dism /get-wiminfo /wimfile:H:\Sources\Install.wim".

Figure 1: The index of the installation file

Remark: H drive is the dvd drive.

6. Navigate to F:\Wim2vhd folder, enter "Cscript WIM2VHD.wsf /WIM:H:\Sources\Install.wim /SKU:"SERVERENTERPRISE" /VHD:D:\Win2k8.vhd".

Figure 2: The result of Wim2vhd

Remark: You can add the parameter "/unattend:h:\<answer file.xml> for unattend deploying.

As a result, the Windows Server 2008 R2 was deployed in the VHd file. Now, you can use this VHD for a new virtual machine hard disk.

This posting is provided “AS IS” with no warranties, and confers no rights!

No comments:

Post a Comment