Make an OS template from wim image for WS 2012 R2

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

Anuncios

Script to check updates for Hyper-V hosts and Hyper-V FC

Folks,

Hans Vredevoort make a PS script that check if your Hyper-V 2012 or 2012 R2 is up to date and also your Hyper-V Failover cluster.

Here I put the link to his blog to see how to do and from where download the scripts.

http://www.hyper-v.nu/archives/hvredevoort/2014/03/makeover-hyper-v-update-list-for-windows-server-2012-and-r2/

Regards!