UEFI system to boot VHD

Discussion in 'Windows 8' started by Jacoub, Feb 10, 2014.

  1. Jacoub

    Jacoub MDL Junior Member

    Aug 14, 2011
    98
    12
    0
    Greetings all
    Can somebody advise me how to A UEFI System using VHD. I was able to configure A UEFI system to boot from two different partitions one Windows 8.1 x64 & the second was Windows Server 2012 Rd. I want to do the same with VHD if possible


    Thanks in advance
     
  2. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    7,151
    21,894
    240
    #2 abbodi1406, Feb 11, 2014
    Last edited by a moderator: Apr 20, 2017
    Not sure if this works with UEFI, but i use this script to add VHD to boot menu on bios system (i changed winload.exe to winload.efi for you)
    notice the vhd file path and how it's set
    Code:
    @echo off
    setLocal EnableDelayedExpansion
    echo.
    for /f "tokens=3" %%A in ('bcdedit /create /d "System Name" /application osloader') do set guid=%%A
    bcdedit /set %guid% device vhd=[C:]\Files\Programs\file.vhd,locate=custom:12000002
    bcdedit /set %guid% path \Windows\system32\winload.efi
    bcdedit /set %guid% locale en-US
    bcdedit /set %guid% osdevice vhd=[C:]\Files\Programs\file.vhd,locate=custom:22000002
    bcdedit /set %guid% systemroot \Windows
    bcdedit /set %guid% detecthal Yes
    bcdedit /displayorder %guid% /addfirst
    echo.
    endlocal
    pause
    
     
  3. HALIKUS

    HALIKUS MDL Addicted

    Jul 29, 2009
    527
    369
    30
    #3 HALIKUS, Feb 11, 2014
    Last edited by a moderator: Apr 20, 2017