-1

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.

5 Answers 5

2
  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

2
  • Will bcdboot allow the VHD to boot on any machine like it is the case with the original method?
    – Ziad
    Commented Dec 15, 2012 at 13:48
  • If VHD is untouched yes (created using imagex from installation source). After you boot it, it is adapting to current hardware. But you can keep a separate original VHD and copy it to another machine withot problems.
    – snayob
    Commented Dec 19, 2012 at 0:24
0

Scott Hanselman has done some excellent articles on this. Here is one, though it might be a bit dated (it was written for Win8 Developer Preview), the basic steps are still valid:

http://www.hanselman.com/blog/GuideToInstallingAndBootingWindows8DeveloperPreviewOffAVHDVirtualHardDisk.aspx

0

I created a tool to create a VHD, apply the Windows Image and add it to the boot menu:

http://www.fiechter.eu/Blog/Post/40

Br, Adrian

0

Please check this article, I try it and I can boot from vhdx file properly on physical machine.

1
  • Note that link-only answers are discouraged, SO answers should be the end-point of a search for a solution (vs. yet another stopover of references, which tend to get stale over time). Please consider adding a stand-alone synopsis here, keeping the link as a reference.
    – kleopatra
    Commented Jul 29, 2013 at 7:40
0

I added my comment to the actual script.

Add command: bcdedit /set {newguid} nointegritychecks ON

This will prevent windows from going into repair mode.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.