This is an old revision of the document!
Gave up trying to get Hyper-V Server 2012 to work…
http://technet.microsoft.com/en-us/library/ee731893%28WS.10%29.aspx
During this procedure, carefully keep track of the disk numbers, partition numbers and drive letters. A mistake can ruin your whole disk!
1) Download and install WAIK: http://www.microsoft.com/en-us/download/details.aspx?id=5753
2) Download the Hyper-V Server .iso file
3) Mount the Hyper-V Server .iso file
4) Insert the 16GB USB flash drive
5) Create, mount and prepare the VHD (virtual hard disk)
Windows will prompt you to format the VHD; just click 'Cancel'
Open a command prompt as administrator:
mkdir c:\hvvhd diskpart create vdisk file=c:\hvvhd\hyperV.vhd maximum=12288 type=fixed select vdisk file=c:\hvvhd\hyperV.vhd attach vdisk create partition primary assign letter=r format quick fs=ntfs label=hyperV
6) Apply the install image to the VHD.
Leave the “diskpart” window open and open another command prompt as administrator.
Change into the appropriate directory (
x86
or amd64
) based on the architecture of your technician workstation
cd "C:\Program Files\Windows AIK\Tools\<arch>\" imagex.exe /apply g:\sources\install.wim /check 1 r:\
7) After imagex finishes, switch back to the “diskpart” command window (where diskpart
is still running) to detach the VHD file and prep the USB flash drive:
detach vdisk
Determine the disk number of the USB flash drive and prepare it:
list disk select disk 1 clean create partition primary select partition 1 active format quick fs=ntfs assign letter=z
8) Switch back to the “imagex” window and copy the VHD to the USB target disk:
copy c:\hvvhd\hyperV.vhd z:
9) Prep the boot sector of the USB flash drive:
cd /d “c:\program files\Windows AIK\tools\PETools\<arch>” bootsect /nt60 z: /force /mbr
9)
'boot' files from the VHD to the USB target disk:
bcdboot x:\Windows /s z: /v
8) Switch back to the “diskpart” window and dismount the VHD file:
detach vdisk exit
9) Safely Remove the USB flash drive from the technician workstation and test.