a·gen·tic a·gil·i·ty

Create a VHD from the Windows 7 Image disk

Step-by-step guide to converting a Windows 7 .wim image to a VHD, including extraction, merging, deployment with imageX, and configuring boot options for quick setup.

Published on
3 minute read
Image
https://nkdagility.com/resources/5Um1AiEyIZr
Subscribe

This being my first week at SSW , and still waiting for my nice shiny new laptop to arrive, I am sitting here at my Wife’s laptop (which is PINK, a requirement to keep the WAF high), until it arrives.

Create a VHD from the Windows 7 Image disk  

Figure: Current workspace…one wall short of working in a cupboard, but it beats trying to work with the kids underfoot.

Create a VHD from the Windows 7 Image disk

Figure: I know its nearly Christmas, but that’s a long time between order and delivery!

SSW have sent me a .wim (Windows Image) file in the post and I really want to get a look at it before my new computer arrives.

In order to be able to create a clean install very quickly we need to convert this to a Windows 7 VHD. This way when the new computer arrives we can just move it over :) I also want to be able to reinstall my computer quickly. And what is quicker then mounting a new VHD and rebooting.

In order to achieve this there are a number of things that need done:

  1. Copy all of the .rar files from the DVD’s Create a VHD from the Windows 7 Image disk

    Create a VHD from the Windows 7 Image disk

    Figure: First disk nearly finished Create a VHD from the Windows 7 Image disk

    Figure: Third disk is taking a while

  2. Use WinRar to fit the 3 packages back together
    Create a VHD from the Windows 7 Image disk

    Figure: Joining the wim file together is going to take a while as well. I don’t want to have to do this more than once!

  3. **Create a new VHD
    ** Create a VHD from the Windows 7 Image disk

    Figure: Showing the physical and Virtual disks on my wife’s pink laptop.

  4. Create a VHD from the Windows 7 Image disk Deploy Image to new VDH

    In order to do this you will need imageX from the Windows 7 Automated Installation Kit . Check http://blogs.technet.com/aviraj/archive/2009/01/18/windows-7-boot-from-vhd-first-impression-part-2.aspx for more details and scenarios that will suit you.
    note: You may look at the Windows(R) Image to Virtual Hard Disk (WIM2VHD) Converter as another solution, but it requires that the Windows 7 Automated Installation Kit be installed locally, where I just downloaded imageX separately and bypassed the 1gb download.
    Create a VHD from the Windows 7 Image disk

    Figure: As usual, this is showing the remaining in “Microsoft Minutes” Create a VHD from the Windows 7 Image disk

    Figure: So 10% took just over a Minute? What is the rest of the hour for? Create a VHD from the Windows 7 Image disk

    Figure: All done, I don’t know how long it took because I got on with some other things, but it was a while!

  5. Detach the VHD
      Create a VHD from the Windows 7 Image disk

    Figure: Detaching the VHD will allow us to copy it.

  6. Create a VHD from the Windows 7 Image disk Copy the new VHD

    Create a VHD from the Windows 7 Image disk

    Figure: This will allow me to save ssw.vhd for a rainy day, and use the copy as a working install.

  7. Rename the copy to “SSW_001.vhd”

  8. Attach SSW_001.vhd
    Create a VHD from the Windows 7 Image disk

    Figure: Attaching a VHD is very easy Create a VHD from the Windows 7 Image disk

    Figure:

  9. Add  the new SSW*001.vhd to the boot list using the folowing commands:
    **_C:>bcdedit /copy {current} /d “SSW_001”
    C:>bcdedit /set device vhd=[driveletter:]
    C:>bcdedit /set osdevice vhd=[driverletter:]
    C:>bcdedit /set detecthal on
    *****Note:**  detecthal is used to force windows to auto detect the Hardware Abstraction Layer.
    Create a VHD from the Windows 7 Image disk

    Figure: Added and configured the new Image…lets try it out…

Although this took a long time with 3 long running processes, it will be a lot faster next time as I can start from step #9…

Technorati Tags: SSW   Windows

Windows Install and Configuration System Configuration
Subscribe

Related Blog

No related videos found.

Connect with Martin Hinshelwood

If you've made it this far, it's worth connecting with our principal consultant and coach, Martin Hinshelwood, for a 30-minute 'ask me anything' call.

Our Happy Clients​

We partner with businesses across diverse industries, including finance, insurance, healthcare, pharmaceuticals, technology, engineering, transportation, hospitality, entertainment, legal, government, and military sectors.​

Bistech Logo

Bistech

Xceptor - Process and Data Automation Logo

Xceptor - Process and Data Automation

Emerson Process Management Logo

Emerson Process Management

Cognizant Microsoft Business Group (MBG) Logo

Cognizant Microsoft Business Group (MBG)

Illumina Logo

Illumina

Boxit Document Solutions Logo

Boxit Document Solutions

ProgramUtvikling Logo

ProgramUtvikling

Teleplan Logo

Teleplan

Alignment Healthcare Logo

Alignment Healthcare

Ericson Logo

Ericson

YearUp.org Logo

YearUp.org

Lockheed Martin Logo

Lockheed Martin

Workday Logo

Workday

Flowmaster (a Mentor Graphics Company) Logo

Flowmaster (a Mentor Graphics Company)

Slicedbread Logo

Slicedbread

Healthgrades Logo

Healthgrades

Philips Logo

Philips

DFDS Logo

DFDS

Department of Work and Pensions (UK) Logo

Department of Work and Pensions (UK)

Ghana Police Service Logo

Ghana Police Service

New Hampshire Supreme Court Logo

New Hampshire Supreme Court

Washington Department of Enterprise Services Logo

Washington Department of Enterprise Services

Washington Department of Transport Logo

Washington Department of Transport

Nottingham County Council Logo

Nottingham County Council

Boeing Logo

Boeing

Deliotte Logo

Deliotte

Freadom Logo

Freadom

Trayport Logo

Trayport

Philips Logo

Philips

Lockheed Martin Logo

Lockheed Martin