Now you can create a pre-installed OS on VHD in 15 Mins max using WIM2VHD.
Requirements.
A computer running one of the following Windows operating systems:
- Windows 7 Beta or RC
- Windows Server 2008 R2 Beta or RC
- Windows Server 2008 with Hyper-V RTM enabled (x64 only)
- The Windows 7 RC Automated Installation Kit (AIK) or Windows OEM Pre-Installation Kit (OPK) installed.
- A Windows 7 or Windows Server 2008 R2 installation source, or another Windows image captured to a .WIM file.
Let is see the steps to create the VHD
Step 1
Download the Windows 7 RC Automated Installation Kit (AIK) and install on the base machine.
Step2
Download the WIM2VHD and save in D:\ or E: where you have enough space to create the VHDs. Minimum of 20GB.
WIM2VHD 6.1.7033.0 Beta Windows(R) Image to Virtual Hard Disk (WIM2VHD) Converter
Let us see how we are going to use these.
Usage: ( Work with administrator rights)
WIM2VHD.WSF /wim: /sku:
[/vhd:] [/size:] [/disktype:]
[/unattend:] [/qfe:]
[/ref:] [/copylocal:]
[/passthru:] [/signdisk:]
[/mergefolder:]
Required parameters:
/wim:
The path of the WIM file to use when creating the VHD. For example:
X:\sources\install.wim
Where X: is the drive letter of your DVD ROM drive.
Step 3
Commands i used and worked :
E:\>cscript wim2vhd.wsf /wim:d:\sources\install.wim /SKU:ULTIMATE /QFE:C:\Windows6.1-KB961367-x86.MSU /VHD:C:\TEMP\MYDESKTOP1.VHD
D: is the Windows 7 RC DVD on the DVD Rom
SKU : used to put the name of the WIM ULTIMATE OR ServerStandard .
QFE : QFEs is to apply to VHD after the WIM is applied. Windows6.1-KB961367-x86.MSU
Download this MSU file and save it in C:\
Now the script started to build the VHD
..
Yes after max 10~ 15 mins i got the VHD of the WIM.
Step 4
Mount this VHD using the Microsoft VPC and start using..
Few Examples for other SKUs
Create a Windows Server 2008 R2 Server Standard Core VHD, named foo.vhd
CSCRIPT WIM2VHD.WSF /WIM:X:\sources\install.wim /SKU:SERVERSTANDARDCORE /VHD:C:\foo.vhd
Create a Windows Server 2008 R2 Server Standard VHD with an automatically generated name
CSCRIPT WIM2VHD.WSF /WIM:X:\sources\install.wim /SKU:SERVERSTANDARD
Thanks
E.Ravi