Welcome to Sign in | Join | Help
in
Home Blog

The Lazy Admin

Windows 7 Boot From VHD

Sponsor

One of a new features in Windows 7 and Windows Server 2008 R2 is the ability to boot from a VHD.  It is pretty simple to enable this feature and have it ready at your disposal!  Before you begin you should note the following…

  • You can only boot a Windows 7 or Windows Server 2008 R2 VHD
  • You must configure the boot editor from a Windows 7 or Server 2008 R2 install
  • You cannot use a Virtual PC VHD, I suggest a Hyper-V VHD
  • You need to start with a clean slate, don’t try and reuse an old VHD

I am sure this will change as Windows 7 goes through the beta and RC stages on its way to RTM and we’ll update this as necessary but here goes…

Start by launching a Command Prompt and be sure to run as Administrator, once that is done run the following commands…

bcdedit /copy {current} /d “Boot_From_VHD”

Copy the CSLID that is displayed and then run…

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

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

bcdedit /set {CLSID} detecthal on

You can replace [C:]\vhdname.vhd with the path and name of your VHD.

Once that is complete reboot and you will have the option to “Boot_From_VHD”!  You can verify the bootloader is configured correctly with the bcdedit command which will list all the boot options.  If you want to delete the entry make note of the GUID listed in bcdedit and use the following command…

bcdedit /delete {GUID} /cleanup

For more information be sure to check out the Windows 7 resource page on Technet.com

 
Published Monday, January 12, 2009 6:39 PM by rodney.buike

Comments

 

Boot Windows 7 from VHD « Small Business Tech Ramblings said:

January 13, 2009 8:00 AM
 

Canadian IT Professionals said:

I had posted this entry on Thelazyadmin.com but after reading a comment asking about a previous post

February 10, 2009 7:55 PM
 

The Energized Tech said:

My challenge handed to me was to learn how to get the new Windows 7 to boot from a VHD. My head spun about on all the hows and whys and wherefores. There were theory’s on using Virtual PC’s to...

April 8, 2009 12:33 AM
 

Sean Kearney - Energized About Technology said:

My challenge handed to me was to learn how to get the new Windows 7 to boot from a VHD. My head spun

April 8, 2009 12:39 AM
 

Microsoft Windows Azure Cloud Talk! said:

One of my buddy Eugene recently wrote an article on Windows 7 boot from VHD. This is a pretty cool concept

June 24, 2009 5:24 AM
Anonymous comments are disabled


All postings are provided "AS IS" with no warranties, and confer no rights.
Microsoft product screen shot(s) reprinted with permission from Microsoft Corporation.