Skip Ribbon Commands
Skip to main content

Quick Launch

Steve Walker's SharePointing Blog > Posts > Dual Boot your Windows 7 Machine into another OS using a VHD
August 06
Dual Boot your Windows 7 Machine into another OS using a VHD
I wanted to be able to run Windows Server 2008 R2 on my laptop so that I could do development that requires this OS but I did not want to loose all of the coolness of Windows 7 (Hibernate, sleep, etc...)
 
I also did not have enough space once I shrunk my primary partition to install the OS in the typical Dual Boot fashion... I was getting ready to wipe my machine and reformat/repartion my machine so that I could Dual Boot in the traditional manner but then I thought... Why not try to use the new feature of Windows 7 and Server 2008 that allows you to boot from a VHD. Once I had gone through it, I realized just how easy this is !!!
 
Here are a couple of articles that i used to get me started:
 

http://edge.technet.com/Media/Windows-7-Boot-from-VHD/

http://blogs.technet.com/keithcombs/archive/2009/05/22/dual-boot-from-vhd-using-windows-7-and-windows-server-2008-r2.aspx

 

 

The basic steps are to:

Boot from your Server 2008 R2 DVD

Click next on the Language Screen

SHIFT+F10

DISKPART

 

Once you are in DISKPART, you use the following commands to create the VHD and format it

  1. LIST VOL
  2. CREATE VDISK FILE=c:\windows7rc.vhd MAXIMUM=200000 TYPE=EXPANDABLE
  3. SELECT VDISK FILE=c:\windows7rc.vhd
  4. ATTACH VDISK
  5. CRE PART PRI
  6. FORMAT FS=NTFS QUICK
  7. ASSIGN LETTER=V:
  8. LIST VOL
  9. LIST VDISK
  10. exit DISKPART
  11. exit WinPE command console

You are now returned to the installer

 

Complete your installation and then when you boot your machine, you will have the option to boot to Win7 OR server 2008.

 

You have the benefit of using a VHD for your disk, you can implement disk differencing, etc… but you are still running “On the Metal” rather than running virtually within another host OS. This provides all of the advantages of running straight on your hardware.

 

For SharePoint Development, this is a HUGE win :-)

 

Hope someone finds it helpful,

 

Happy SharePointing !!!

Add Comment

Items on this list require content approval. Your submission will not appear in public views until approved by someone with proper rights. More information on content approval.

Title


Name (Required) *


Name of the user commenting on the Blog Item

URL

Type the Web address: (Click here to test)  

Type the description: 

Hyperlink to the person who commented's blog or web site

Body (required) *

This is the body of the Comment

Attachments