Sharepoint 2010 Development environment – Windows 7 boot VHD (Part 1)


Well here it is the first of a series of articles on setting up a Sharepoint 2010 development environment.

Because like so many I had limited resources to set up the 2010 environment, I had to solve this problem the best way I could, so having a Laptop with Windows 7, the solution I wanted to explore was to use the Boot VHD new feature  . . .  and I love it! It is simply brilliant to enable boot directly from a virtual disk, you not only can gain in resources available to your virtual environment but also have a distinct separation of environments. Ok, it has some disadvantages, one of those is that you cannot have the interaction that usually the Hyper-V, VMWare or other Virtualization software allow you to have with your host system, when choosing the VHD option the OS of the VHD is the only available.

The most interesting part is that the process to make the VHD Boot is so simple, let me describe it to you, in my case I already had a VHD with Windows Server 2008 R2:

1.We need to open a command prompt with Administrator privileges:

Start –> All Programs –> Accessories –> Command Prompt (right-click and choose the Run as administrator option )
2.Now we need to run the Diskpart(partition utility), so at c:\Windows\System32 run diskpart

3. Select the VHD we want to Boot:

DISKPART > select vdisk file”d:\vhdname.vhd”
DISKPART > attach vdisk

Note: You can also do this part using the Disk Management

4. Exit the DISKPART: DISKPART > Exit

5. Now we will use the BCDEDIT tool to finish our set up.
 
C:\>bcdedit /copy {current} /d “My New VHD Description”
Note: this will return a GUID to use in the next command instructions

C:\>bcdedit /set {GUID}  device vhd=[d:]\vhdname.vhd
C:\>bcdedit /set {GUID} osdevice vhd=[d:]\vhdname.vhd
C:\>bcdedit /set {GUID} detecthal on

After all these instructions you can check if it is all ok by using:

C:\>bcdedit /v

Now simply rebbot your machine and the Boot Menu will show up with the Windows 7 and your new option to choose.

And that’s it, the first part is finished, now we can have a Hyper-V VHD with Windows Server 2008 R2 to start setting up our Sharepoint 2010.

Computer developer/consultant from Portugal. You can find me at ricardo.magalhaes@gmail.com

Tagged with: , ,
Posted in Sharepoint 2010
11 comments on “Sharepoint 2010 Development environment – Windows 7 boot VHD (Part 1)
  1. […] Continued here:  Sharepoint 2010 Development environment – Windows 7 boot VHD (Part … […]

  2. Thanks a lot for your beneficial information. I have been seeking for this for ages in many websites. Windows 7 is a wonderful software ever. I suggest Win7Zilla to tweak Windows 7 efficiently

  3. im regularly surfing across the internet the majority of the night thus I possess a tendency to read significantly, which isnt commonly a good thing as a great number of the pages I view are composed of pointless rubbish copied from other web pages a million times, however I’ll hand it to ya this blog is honestly enjoyable and even holds some genuine substance, for that reason thank you for helping to stop the pattern of merely copying other folks’ websites, if you ever want to have fun with playing a few hands of myspace poker together let me know – you have my e-mail 🙂

  4. Weinberger says:

    Nevermind, got it!

  5. Petite Tops says:

    i really find registry cleaners very necessary to improve the system performance of a desktop PC :“

  6. arshad says:

    Hi,
    It’s really a good post. Here I have one question. We can use these steps on 32 bit laptop having 32 bit win 7?

    Thanks,
    Arshad

  7. srujan says:

    When I am using this command: bcdedit /copy {current} /d “SP2010 ” says
    “A description for the new entry must be specified.
    Run “bcdedit /? ” for commed line assistance.
    The parameter is incorrect.”
    can you please help me on this?

  8. Blake says:

    I am grateful I discovered your web site on bing. Thanks for the sensible critique. Me and my wife were just getting ready to study in regards to this. I will be thrilled to see this sort of wonderful information currently being shared freely out there.

  9. […] 7 Boot to SP on W2K8 R2 VHD – Sharepoint 2010 Development environment – Windows 7 boot VHD ; Upside Dual boot and easy to rollback and reconfigure if you want to update the image.  It’s a […]

  10. […] 7 Boot to SP on W2K8 R2 VHD – Sharepoint 2010 Development environment – Windows 7 boot VHD ; Upside Dual boot and easy to rollback and reconfigure if you want to update the image.  It’s a […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: