Galin Iliev's blog

Software Architecture & Development

Boot from Virtual Hard Drive (VHD)

What a great improvement :). Now I can freely explore different messy things without having to wait whole night to reboot the virtual machine :)

In Windows® 7, a virtual hard disk can be used as the running operating system on designated hardware without any other parent operating system, virtual machine, or hypervisor. Windows 7 disk-management tools, the DiskPart tool and the Disk Management Microsoft® Management Console (Diskmgmt.msc), can be used to create a VHD file. A Windows 7 image (.wim) file can be deployed to the VHD and the .vhd file can be copied to multiple systems. The Windows 7 boot manager can be configured to boot directly into the VHD.

The .vhd file can also be connected to a virtual machine for use with the Hyper-V Role in Windows Server® 2008 R2.

Here are some interesting articles that could help you to do the trick:

You need to prepare the Virtual OS for the change in hardware from a virtual to a physical environment using the following Sysprep command:
c:\windows\system32\sysprep\sysprep.exe /generalize /oobe /shutdown