Native Boot A VHD, from not working to working

To remedy this issue with my VM performance in my previous post.  My coworker suggested i take a look at scott hanselmans blog at the Booting from a VHD post. This was a great post and I never had any idea that this was even possible. So i converted my vmdx(or whatever the vmware hd format is) back to a vhd and then went to making the changes to the boot partation using bdedit that were suggested…..

c:\> bcdedit /copy {current} /d “myVHD”

Copy the CSLID that is displayed and then run…

c:\> bcdedit /set {CLSID} device vhd=[C:]\vhds\vhdname.vhd

c:\> bcdedit /set {CLSID} osdevice vhd=[C:]\vhds\vhdname.vhd

c:\> bcdedit /set {CLSID} detecthal on

This didnt work, but upon further looking i found this. It used the bdboot command instead.I ran this command and then it booted right up into my server 2012 vhd.

I must add that i used the disk managment tool to attach the vhd in my 32bit host first and i gave it a drive letter of p. Then i ran the bcdboot (driveletter:\windows) command and it worked.

bcdboot p:\windows

This created the boot entry and did all the setup that was needed. I restarted the computer and booted from the new entry.

Dont forget to backup your boot partition first.

bcdedit /export c:\BACKUPBCD

bcdedit /import c:\BACKUPBCD

This entry was posted in Uncategorized and tagged , , , , , , . Bookmark the permalink.

One Response to Native Boot A VHD, from not working to working

  1. Maryellen says:

    Hi webmaster do you need unlimited articles for
    your website ? What if you could copy article from other sites, make
    it pass copyscape test and publish on your website –
    i know the right tool for you, just search in google:
    kisamtai’s article tool

Leave a Reply

Your email address will not be published. Required fields are marked *