IT Core Blog

Never stop questioning. Curiosity has its own reason for existing…

Image to Virtual Hard Disk (WIM2VHD) Converter

leave a comment »

You can use WIM2VHD to quickly create a VHD from a WIM file, e.g. the install.wim file in the Vista/Windows7/Server 2008/Server 2008 R2 installation media, and then attach that VHD to a Hyper-V virtual machine.

Mikael Nystrom blogged about WIM2VHD.

Sometimes you need a fast way to create a reference image. You know, suddenly you need to have a VHD file of Windows Server 2008 R2 and a Windows 7 machine, like NOW. It always seem to be NOW or yesterday that things need to be done, wonder why…

Anyway, you need the following:

WAIK (Well, you only need Imagex, but if you have WAIK installed you have that)
WIM2VHD, and that’s just a small download
The OS (You only need the Install.wim, but I’ll guess you already have the DVD somewhere anyway)
WIM2VHD
This tools i really nice actually, but it only supports Windows 7 and Windows Server 2008 R2. The command line to create a VHD file is quite simple:

cscript WIM2VHD.wsf /wim:g:\sources\install.wim /sku:1

That will create a 40gb dynamic VHD file in less than 3 minutes (Yes, I do have a SSD disk), but it also have a bunch of other commands that could be used to make it more fun 🙂

Required parameters:

  /wim: Path to the .wim file
  /sku: Sku number or sku name

Some Optional parameters:

  /vhd: Name and path to the VHD file you would like to have
  /size: Size (default is 40960 mb)
  /disktype: Dynamic, Fixed or FastFixed (FastFixed requires VHDTOOL)
  /unattend: Path and name of an unattended XML file
  /qfe: A comma-seperated list of .MSU files that you would like to have in the image
  /mergefolder: Names of folders that you would like to have in the image

I use it from time to time when a need a fast solution and i don’t have time to do it the “real” way and in this case the real way is using MDT of course.

Nice work 🙂

Advertisements

Written by IT Core

August 26, 2010 at 12:00 AM

Posted in Tools, Virtualization

Tagged with ,

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: