Home > Hyper-V, SCVMM, Windows 2008 R2 > Create Windows Server VHD image from WIM file

Create Windows Server VHD image from WIM file

Whilst deploying Virtual Machine Manager 2012 I needed to create a Server 2008 R2 VHD to use as a OS template. I found converting a WIM file to a VHD nice and easy.

To do this:

  1. Download the WIM2VHD.WSF file from http://archive.msdn.microsoft.com/wim2vhd/Release/ProjectReleases.aspx?ReleaseId=2603
  2. Copy the install.wim file from a Windows Server 2008 R2 installation media to a working directory, I used C:\
  3. Ensure you have the Windows® 7/Server 2008 R2 Automated Installation Kit (AIK) or the Windows® 7/Server 2008 R2 OEM Preinstallation Kit (OPK) installed.

During the process you need to choose which SKU to use, in order to determine the SKU’s available in the wim file run the below from a normal command prompt

C:\>cscript wim2vhd.wsf /wim:c:\install.wim

image

 

I want to create a VHD which has Windows 2008 R2 Standard Edition installed, so I will use “SERVERSTANDARD” AS MY SKU.

 

In order to create the actual VHD run the below command, this command will inspect the WIM file and create a VHD image of the SKU I selected, it will them save this to the root of my E drive. When complete it leaves you with a small log file and the VHD file.

cscript wim2vhd.wsf /wim:c:\install.wim /sku:SERVERSTANDARD /vhd:e:\2008R2Standard.vhd

 

image

 

image

Advertisements
Categories: Hyper-V, SCVMM, Windows 2008 R2 Tags:
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: