Adding an existing VHD to the Windows 7 boot loader
In my last post I wrote about how to install Windows Server 2008 R2 into a VHD for dual-booting purposes. Well, recently I broke my laptop and had to rebuild my boot loader. Anyways, adding an existing VHD to the Windows 7 boot loader is a doddle.
First, copy your current boot loader:
bcdedit /copy {current} /d "Boot Description"
This will generate a new boot entry and print out the GUID. You’ll need this! Next, you’ll set the VHD path for the OS to use.
bcdedit /set {GUID from last step} osdevice vhd=[DriveLetter:]\PathToVHD\VHD_File
bcdedit /set {GUID from last step} device vhd=[DriveLetter:]\PathToVHD\VHD_File
That’s it! Reboot your PC and your VHDs should be bootable. Remember though, you can only boot Windows 7 or Windows Server 2008 R2 VHDs like this.
This is awesome, Rob.
Is this also doable to dual boot a primary Vista installed computer with Windows 7 on VHD?
Thanks in advance, Kent
It is possible… I’m just not 100% certain on how to do it though I’m afraid. Something to do with copying the bootmgr file and the boot folder from a Windows 7 installation. In fact thinking about it, that should be all that’s required; and even if you’ve got Vista installed, installing Windows 7 (even to a VHD) should replace the boot loader anyway.
I don’t understand what I’m doing wrong. I go step by step per you instructions but I get and error when I set the osdevice.
I get this message: “The element data type specified is not recognized, or does not apply to the specified entry.”
Can you help.
Gv
@Gv: You’re forgetting the {}.
I followed exact steps as you mentioned,but it is not working for me.
I think problem is boot loader