Adding Windows 8 VHD to boot menu

Ziad picture Ziad · Dec 8, 2012 · Viewed 20.5k times · Source

Those are the steps I've used to add a VHD image to the boot menu:

bcdedit /copy {originalguid} /d "New Windows 7 Installation"

bcdedit /set {newguid} device vhd=[D:]\Image.vhd
bcdedit /set {newguid} osdevice vhd=[D:]\Image.vhd
bcdedit /set {newguid} detecthal on

This worked beautifully with Windows 7 VHDs but Windows 8 VHDs don't seem to like it. It does appear in the boot menu but on selection my PC goes into Windows repair mode for the previous OS and then restarts.

I've also tried BCDEdit UI which is based on the process above. It works previously with Windows 7 VHDs but fails again with Windows 8 VHDs.

Is there anything I might have missed? I'm using Windows 7 as base OS in both cases.

Update: I'd preferably use a method that does not involve 3rd party software for security reasons(I know I'm being a little bit paranoiac here) and above all I need to be able to carry the VHD from one machine to another without driver issues. So a VHD that uses the drivers of another existing base OS would be ideal just like it was the case before.

Answer

snayob picture snayob · Dec 15, 2012
  1. You mount the VHD to say V:

  2. As VHD is Windows 8 you have to place Windows 8 boot files to active partition. (Windows 7 boot manager cannot boot Windows 8 !)

    "Dual-boot Repair" utility can help - you click a button "Automatic Repair" and you are done.

You can also use following command to acomplish the task:

bcdboot V:\Windows