User Tools

Site Tools


virtualization:microsoft:hyper-v-usb

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
virtualization:microsoft:hyper-v-usb [2012/09/15 14:49]
gcooper
virtualization:microsoft:hyper-v-usb [2019/05/20 11:32] (current)
gcooper
Line 1: Line 1:
 ====== Run Microsoft Hyper-V Server From USB ====== ====== Run Microsoft Hyper-V Server From USB ======
  
-FIXME Gave up trying to get Hyper-V Server 2012 to work...+See also **[[https://virtualarchitects.com/wiki/doku.php?do=search&id=start&q=hyper-v|more Hyper-V pages]]** 
 + 
 +FIXME I'm not really sure how well this works because it was so slow to boot up that I decided I'd rather use a 32GB SSD and Velcro...
  
 http://technet.microsoft.com/en-us/library/ee731893%28WS.10%29.aspx http://technet.microsoft.com/en-us/library/ee731893%28WS.10%29.aspx
Line 20: Line 22:
 R: = Mounted VHD file R: = Mounted VHD file
 Z: = Mounted USB flash drive Z: = Mounted USB flash drive
-1 = Disk number of VHD +1 = Disk number of 16GB USB flash drive 
-2 = Disk number of 16GB USB flash drive +2 = Disk number of VHD
 1 = Partition number on VHD 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 = Index number of the image within install.wim (there is only one image within the Hyper-V Server install.wim)
Line 64: Line 66:
 </file> </file>
  
-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:+7) After imagex finishes, switch back to the "diskpart" command window (where ''diskpart'' is still running) to prep the USB flash drive
  
 <file> <file>
Line 90: Line 92:
 9) Prep the boot sector of the USB flash drive: 9) Prep the boot sector of the USB flash drive:
  
 +<file>
 cd /d "c:\program files\Windows AIK\tools\PETools\<arch>"  cd /d "c:\program files\Windows AIK\tools\PETools\<arch>" 
 bootsect /nt60 z: /force /mbr bootsect /nt60 z: /force /mbr
 +</file>
  
-9+10Switch back to the "diskpart" window, mount the VHD file on the USB flash drive: 
 + 
 +<file> 
 +select vdisk file=z:\HyperV.vhd  
 +attach vdisk 
 +</file> 
 + 
 +11) Back in the "imagex" window, make the USB flash drive bootable: 
 + 
 +<file> 
 +bcdboot r:\windows /s z: /v 
 +</file>
  
-'boot' files from the VHD to the USB target disk:+12) Disable paging.
  
 <file> <file>
-bcdboot x:\Windows /s z: /v+reg load HKLM\HyperVTemp r:\windows\system32\config\system 
 +reg add "HKLM\HyperVTemp\ControlSet001\Control\Session Manager\Memory Management" /v PagingFiles /t REG_MULTI_SZ /d "" /f 
 +reg delete "HKLM\HyperVTemp\ControlSet001\Control\Session Manager\Memory Management" /v ExistingPageFiles /f 
 +reg unload HKLM\HyperVTemp
 </file> </file>
  
-8) Switch back to the "diskpart" window and dismount the VHD file:+13) Switch back to the "diskpart" windowdismount the VHD file and exit ''diskpart'':
  
 <file> <file>
Line 108: Line 126:
 </file> </file>
  
-9) Safely Remove the USB flash drive from the technician workstation and test.+14) Safely Remove the USB flash drive from the technician workstation and test.
virtualization/microsoft/hyper-v-usb.1347742173.txt.gz · Last modified: 2012/09/15 14:49 by gcooper