Tartalomjegyzék

VHD-ről bootolás (Windows 7, 8)

Before I provide the detailed steps, let me just provide an overview of the process.

  1. First, I need to be running Windows 7 or higher or Windows Server 2008 R2 or higher in order to perform these steps and have administrative access.
  2. I then need to create a VHD file and format it.
  3. Mount the ISO of Windows 8 (or have the thumb drive or DVD inserted or just have the source files available).
  4. Open a Command Prompt (run as Administrator).
  5. Use ImageX:
    imagex /apply e:\sources\install.wim 1 f:\
    • I am essentially installing Windows 8 from the install.wim file located in the sources directory of the source files
    • Selecting the 1st OS instance in the WIM file
    • Installing it to drive F:\ (VHD file)
  6. Add the installation of Windows 8 to the boot menu.

ImageX telepítése

A telepítőkép kicsomagolásához szükség van az ImageX.exe-re

Boot rekordok beállítása

bcdedit /enum /v
bcdedit /copy {current} /d "Windows 7 VHD Boot"
bcdedit /set {d89f3fa4-6416-11de-b070-b08b383b8f33} device vhd="[locate]\VHD Files\WIN7.vhd"
bcdedit /set {d89f3fa4-6416-11de-b070-b08b383b8f33} osdevice vhd="[locate]\VHD Files\WIN7.vhd"
bcdedit /set {d89f3fa4-6416-11de-b070-b08b383b8f33} detecthal Yes

Ilyesmit kell kialakítani:

Windows rendszertöltő
---------------------
azonosító              {d89f3fa4-6416-11de-b070-b08b383b8f33}
device                  vhd=[locate]\VHD Files\WIN7.vhd,locate=custom:12000002
path                    \Windows\system32\winload.exe
description             Windows 7 VHD Boot
locale                  hu-HU
inherit                 {6efb52bf-1766-41db-a6b3-0ee5eff72bd7}
recoverysequence        {54d78c0b-bb2c-11e0-aaec-b1d1d5d664d9}
recoveryenabled         Yes
osdevice                vhd=[locate]\VHD Files\WIN7.vhd,locate=custom:22000002
systemroot              \Windows
resumeobject            {54d78c09-bb2c-11e0-aaec-b1d1d5d664d9}
nx                      OptIn
detecthal               Yes