Windows 7 - Natively Booting from a .VHD file (Virtual PC image)

Posted by sumeethevans on January 24 2009, 8:16 PM. Posted in Windows 7.

Most important thing to keep in mind is that we currently cannot boot from any kind of .VHD. 

Actually, I have just managed to boot from a Windows 7 installed on a new .VHD, and I installed it right from the Windows 7 DVD. We can do a similar process with "Windows Server 2008 R2 (beta)" installed on a .VHD file, as well.

If you'd use Virtual PC 2007 to install the Virtual image, the produced .VHD wouldn't work when trying to boot from the .VHD. 

A.-  Creating the .VHD file and Windows 7 installation on that .VHD file

1. Boot the machine using the Windows 7 DVD2. Choose Windows Repair3. start CMD4. Run Diskpart5. Type: Create vdisk file=c:\Windows7Build7000.vhd maximum=400006. Type: select vdisk file=c:\Windows7Build7000.vhd7. Type: attach vdisk (in previous Betas, it was 'surface' instead of 'attach')8. Type: 'exit' (you exit Windows Repair, but Do Not Reboot)9. Install Windows 7 to this attached .VHD (From Win7 installation, you now have to 'see' another Hard Drive, you'll need to create a partition & format it, first. You might get an error/warning saying that your computer hardware might not support this disk, just ignore it..).10. Reboot, and you got it!!!!

Continue At Source