Hi guys!
Here I writte how to make a vhdx when you have built an image with DISM for WS 2012 R2 Standard.
http://technet.microsoft.com/en-us/library/hh825691.aspx
Requisites:
WADK 8.1
WS 2012 R2 CU1.
Process:
Creating vhdx disk:
• Diskpart
o create vdisk file=E:\temp\golden.vhdx maximum=122880 type=expandable
o select vdisk file=E:\temp\Image\golden.vhdx
o Attach vdisk
o Create partition primary size=350
o Format quick fs=ntfs
o Assign letter=s
o Active
o Create partition primary
o Format quick fs=ntfs
o assign letter=V
o Exit
Applying wim image to vhdx with dism:
• dism /apply-image /imagefile: E:\temp\ISO_2012R2\sources\golden.wim /index:2 /applydir:V:\
http://technet.microsoft.com/en-us/library/gg318056(v=ws.10).aspx
Type the following command to specify that V is the drive for Windows Boot Manager and the boot configuration data:
V:\windows\system32\bcdboot V:\windows /s S: (S: is the recovery partition)
Use the bcdedit /store <path> option to specify the BCD file inside the VHD as the BCD store, for example:
• bcdedit v:\windows
Bcdedit /store s:\Boot\bcd /set {bootmgr} device locate (where s: is the recovery partition)
Bcdedit /store s:\Boot\bcd /set {default} device locate (where s: is the recovery partition)
Bcdedit /store s:\Boot\bcd /set {default} osdevice locate (where s: is the recovery partition)
• Diskpart
o Select vdisk file= E:\temp\ISO_2012R2\sources\golden.vhdx
o Detach vdisk
o Exit
I hope it will be helpfull
Regards