Windows 7 Boot from VHD
Posted: June 22, 2009 Filed under: technology | Tags: Microsoft, technology, Virtualization, Windows 7 1 CommentFor all Windows junkies out there. (and for those loving Mac fans) this is one feature that I’m really excited about. Working with tons of PCs and a lab environment, having one base image for you VHD is quite powerful. This saves time and energy from doing things over and over again. Yea yea, there are existing tools you can use to do this but this one is just better. There’s VMWare, VPC, and other virtualization technologies that you can use but booting from VHD!? Hell yea! (I’m not sure if VMware has something like it though)
This topic has been discussed in several blogs and I’ll be adding to those and linking the ones I found very useful.
Two main steps to get your VHD a bootin:
- Prep your image via ImageX
- BCDedit to make it show up upon boot.
This is not really a daunting task, the only problem is it would take quite some time. Installing Win 7 via copying the .wim file, Disk Management, getting it prepped via Image X. These steps are quite time consuming but! after you have set it up, you basically have a VHD that you can boot on and install all the stuff you want in it. This is really helpful for me as rather than having to install the common dev tools (Visual Studio, SQL) you would just have to copy your VHD to the host OS and bcdedit (just four lines) your VHD. The amount of time you’ll save is just amazing.
Two blogs that gets it done
http://thelazyadmin.com/blogs/thelazyadmin/archive/2009/01/12/windows-7-boot-from-vhd.aspx
Follow the two blogs and you shouldn’t encounter any major problems. I’m looking at automating the BCDedit but the guid every VHD produces is unique. My simple workaround is just a batch file that has a variable for the guid. Quick and easy.
Much fun this is! π
~Eugene
Visted your site. New layout and new domain. Will visit frequently. π