Bootable VHD


This post is to make sure I don’t lose some information. John Papa has a great post on how to setup a machine to book directly into a VHD (http://johnpapa.net/bootoffmetal). I’ve been using this technique since I moved to Windows 7 (the first version to support the capability). It’s worked fine and I’d like to remember how to setup one in the future.

Here are the key commands:
DISKPART

create part primary
format fs=ntfs label=”256 GB SSD” quick
active
assign letter=c

create vdisk file=c:\win7.vhd maximum=50000 type=expandable

BCDBOOT x:\Windows

bcdedit /set {myguid} device vhd=[locate]\Win7Mix11.vhd
bcdedit /set {myguid} osdevice vhd=[locate]\Win7Mix11.vhd
bcdedit /set {myguid} detecthal on

Information and Links

Join the fray by commenting, tracking what others have to say, or linking to it from your blog.


Other Posts

Reader Comments

Sorry, comments are closed.