Dual booting Windows 7 and Windows Server 2008 R2

I’ve been using Windows 7 as my primary OS on my laptop (a nice shiny new Dell Studio 17) for a little while now. I’ve found it almost as stable as Vista, definitely faster and some of the new features are very useful – the wireless connection stuff is much better for example. However, the lack of any hypervisor-based virtualization product with it means I have to use Windows Server 2008 for many work-based things.

Now, with both Windows 7 and Windows Server 2008 R2, you can boot from a VHD file. Why is this great? Well, my laptop only has one disk partition and I can’t be bothered to resize it (and no, using DISKPART doesn’t work – I have 0B available to shrink). It also means that I can stick in my USB stick with the Windows Server 2008 R2 install files on, open a command prompt (using SHIFT+F10 when the first dialog box pops up) and type:

diskpart
create vdisk file=D:\VHDs\Win2k8R2.vhd type=expandable maximum=32768
select vdisk file=D:\VHDs\Win2k8R2.vhd
attach vdisk
exit

I can then continue the install – it does complain about not being able to boot from this volume, but don’t believe it. Just press next and the whole thing works like a dream.


This entry was posted on Tuesday, January 27th, 2009 at 11:19 am and is filed under Windows 7. Find similar posts by selecting any of the following tags: , , . You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

3 Comments so far

  1. [...] Links « Dual booting Windows 7 and Windows Server 2008 R2 [...]

  2. When you boot Windows 2008 Server R2 from a VHD, can you still run Hyper-V? I know with Windows 7, VHD booting has a couple of side effects such as no Hibernate or Windows Experience score.

  3. I already have Wins7 installed. Can I install Sr2008, using the VHD method, on the same machine with W7? W7 will not be in a VHD.

    Thank you,

Have your say

Fields in bold are required. Email addresses are never published or distributed.

Some HTML code is allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
URIs must be fully qualified (eg: http://www.domainname.com) and all tags must be properly closed.

Line breaks and paragraphs are automatically converted.

Please keep comments relevant. Off-topic, offensive or inappropriate comments may be edited or removed.

  1. Search

  2. Recent Comments

  3. Tags