Create a VHD from the Windows Server 2008 R2 Image disk

Topic(s)
Audience

Everyone

Previously I created this the manual way, but if you have a fast internet connection and can take the 1.6gb download of the AIK, then this is a much easier way of getting started.

This is not really the same as the SSW image that I created before, the SSW image was a lovely slipstreamed beauty with all the application I would ever need already preinstalled.. It was 32GB and took a very long time to setup. This will be sum what faster as it  only require a base Windows Server 2008 Setup…

  1. Download Windows® Automated Installation Kit (AIK)
    image
    Figure: Downloading AIK, done in under 5 minutes
    image 
    Figure: Unpack using WinRAR, don’t burn it as it is a waste of a DVD. Some applications don’t like being run from a Virtual DVD.
  2. Install  the AIK onto your local computer.
    image
    Figure: Weird setup, but what the heck…
  3. Download and Install Windows(R) Image to Virtual Hard Disk (WIM2VHD) Converter
    image
    Figure: Its just a script file that you download. I would prefer if it was a command line app with an optional UI, but you can’t have everything.
  4. Mount your Windows 2008 R2 image to a Virtual DVD drive. I am using Virtual Clone Drive.
    image
    Figure: Mounted Windows 2008 R2 ready to go…
    image
    Figure: Use your favourite Virtual DVD mounting software..
  5. coffee-cupRun the script to create your VHD using a command line running as an administrator
    CSCRIPT WIM2VHD.WSF /WIM:I:sourcesinstall.wim /SKU:SERVERSTANDARDCORE /VHD:D:WimBuildWinSvr2008R2OOB.vhd
    image 

You now have a lovely Out Of Box Windows 2008 R2 VHD. I would keep a copy of this in a nice safe place so you don’t need that coffee break every time.

Whoa there… not so fast..

Did you spot my mistake?

Could it be to do with the little “SERVERSTANDARDCORE” tag?

Could it be the “CORE” bit?

I think so.. I was just wondering why my resultant VHD was only 2.5gb in size!

Doh!

Lets try that properly:

  1. coffee-cupRun the script to create your VHD using a command line running as an administrator
    CSCRIPT WIM2VHD.WSF /WIM:I:sourcesinstall.wim /SKU:SERVERSTANDARD /VHD:D:WimBuildWinSvr2008R2OOB.vhd
    image

Make a copy of this file, and attach it to your boot list, and boot…

Technorati Tags:   

Create a conversation around this article

Share on Facebook
Share on Twitter
Share on Linkdin

Read more

Martin Hinshelwood
In organizational development and team dynamics, Agile (as the Agile Manifesto delineates) and Scrum (as the Scrum Guide outlines) guide teams not by solving their problems but by illuminating the issues that demand attention. These frameworks aim to identify and spotlight the challenges within a team or organization’s processes, effectively …
Martin Hinshelwood
This week, I participated in a Scrum.org Webinar hosted by Sabrina Love (Scrum.org Product Owner) as well as my colleagues, Joanna Płaskonka, Ph.D. and Alex Ballarin to discuss the state of learning and how immersive learning is the future of training. You can watch the video below to hear what …
Martin Hinshelwood
For a long time now I have been searching for that perfect domain that epitomised the vision, the why, of what I am trying to achieve with my customers and the industry at large. Now I have found it in http://nkdagility.com
Martin Hinshelwood
At the MVP Summit I was appalled by the number of people who asked questions about new features for supporting hierarchical tasks! I shared a disgusted look with Peter Provost and we had a quick (and I mean really quick) conversation that resulted in this post. it really comes down …