User Tools

Site Tools


virtualization:microsoft:hyper-v-usb

This is an old revision of the document!


Run Microsoft Hyper-V Server From USB

FIXME Gave up trying to get Hyper-V Server 2012 to work…

http://technet.microsoft.com/en-us/library/ee731893%28WS.10%29.aspx

  • Boot Hyper-V Server from USB flash devices
  • Saves hot-swap drive bay for storage
  • 16GB Flash device recommended
    • Get the fastest one you can
    • This device will be wiped and any data lost

On a Windows 7 Technician Workstation

:!: During this procedure, carefully keep track of the disk numbers, partition numbers and drive letters. A mistake can ruin your whole disk!

G: = Hyper-V Server Install DVD C: = Drive on which we create and prepare the VHD file X: = Mounted VHD file Z: = Mounted USB flash drive 1 = Disk number of VHD 2 = Disk number of 16GB USB flash drive 1 = Partition number on VHD 1 = Index number of the image within install.wim (there is only one image within the Hyper-V Server install.wim)

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 (G: used here for mounted .iso file)

4) Create, mount and prepare the VHD (virtual hard disk) that will become your bootable USB flash drive. Open a command prompt as administrator:

diskpart

create vdisk file=c:\virtualharddisk.vhd maximum=6000 type=fixed
select vdisk file=c:\virtualharddisk.vhd
attach vdisk
list disk
select disk 1 (select the newly created VHD)
create partition primary
select partition 1
active
format fs=ntfs quick
assign letter=x
list volume

5) 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 x:\

6) After that finishes, switch back to the “diskpart” command window (where diskpart is still running) to prep the USB flash drive:

list disk (to determine the disk number of the USB flash drive - '2' used here)
select disk 2
clean
create partition primary
select partition 1
active
format quick fs=ntfs
assign letter=z

7) Switch back to the “imagex” window and copy '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.

virtualization/microsoft/hyper-v-usb.1347736114.txt.gz · Last modified: 2012/09/15 13:08 by gcooper