Chris's profileCappy's Blog - Live Spac...PhotosBlogLists Tools Help

Xbox GamerCard

chrislcap
Xbox Live GamerCard
Rep:
5/5 stars
Score:
1850
Zone:
Recreation
Forza Motorsport 3Guitar Hero IIIGuitar Hero IIRock BandHalo 3

Cappy's Blog - Live Space of Chris Caplinger

Information on KnowledgeLake, SharePoint, ECM and Document Imaging
November 18

Windows 7 and Windows Server 2008 R2 Boot from VHD

Most people reading this already know what this is so you may want to skip ahead a few paragraphs.  For those of you who are just know hearing about this read one.  And, although the title says Windows Server 2008 R2, this will be about Windows 7, but I believe it’s the same either way.

What the boot from VHD feature allows you to accomplish is to run a VHD directly on your hardware, without a host OS.  When doing this the VHD is still contained in one single file and when you shut down you can back it up or move it to another machine, although it’s just like moving any other hard drive and you may have driver compatibility issues.  In simple terms think about it for exactly what it is, a Virtual Hard Drive (VHD).

I also know there’s hundreds of sites about booting from VHD, but as many of them were based on early version of Windows 7, some of the information seems to be outdated and honestly I’m not sure if it worked at all.  I did find a site that helped me get this accomplished though, so I’m going to use that site so share what I did to get it all working.  If you want to stop reading here and just go to the site, it’s http://www.sevenforums.com.  Never heard of them before this, but it all seemed to work.

And lastly before I get to the meat and potatoes, why do you want to do this?  Because unless you own VMWare (and maybe even if you do) Virtual PC does not support x64, which is what is now required to run with SharePoint 2010.  And, I’ve tried but just can’t run Server 2008 and Hyper-V on my laptop without getting frustrated.

<BEGIN what=”actual tutorial”/>

Before you start make sure you have enough disk space (50GB for me) on a LOCAL hard drive (not USB) and a Windows 7 (RTM) DVD.

The first thing I did was to start with a Windows 7 OS, although I think this will work in Vista also.  Place your Windows 7 (I used Enterprise) DVD in your drive and reboot to the DVD.  Instead of repeating any more on this step, simply use the directions from http://www.sevenforums.com/tutorials/2953-virtual-hard-drive-vhd-file-create-start-boot.html.  Scroll down to OPTION ONE.  Also note this entire site has many other ways to accomplish this and is the best resource I found for the information.

I now have dual boot capabilities, but there’s a couple things that bugged me.  1) Both boots are called Windows 7 2) VHD boot is the first and default.

I also want to move my VHD to another hard drive that gets plugged in when I remove my DVD drive.  This is an SSD and will let the VHD run much faster.  This is not a USB drive, but is considered internal and will work just fine.

<BEGIN what=”command line fun”/>

I booted back to my original Windows 7 OS for this part, but it may work on the VHD boot also.

To limit what you need to do on the command line, first run MSCONFIG.EXE and go to the boot tab.  I simply changed my default here which gave me one less command line to worry about.  Select your original, probably “Windows 7 (C:\Windows)” and select “Set as default”.

Next thing you’ll want to do is change the name of VHD boot (at least I did).  Instead of repeating everything, just use the directions from http://www.sevenforums.com/tutorials/5110-dual-boot-change-os-name-windows-boot-manager.html.  They mention something called EasyBCD, but I have enough junk installed and figured it’d be easier to just type this stuff in.

When I did all this, my VHD boot was still the first on the list and I didn’t like that, even though it was no longer the default.  Using most of the information from the previous step  you can used this command to move it to the last boot option “bcdedit /displayorder {clsid} /addlast”.  If you need help with bcdedit you can do a “bcdedit /?”, or if you need help with a specific option use “bcdedit /[option] /?”.

Okay, the last step was moving my VHD.  Well moving it was the easy, I think we can all do that, but now that it’s on my “D Drive” I need to edit the boot info so it knows.  So, again using the command line I had to do the following two commands (yours will vary depending on your VHD locations):

“bcdedit /set {clsid} device vhd=[D:\vhd\win7.vhd” – because I moved it from c:\ to d:\vhd

Also, you’ll need to change the osdevice:

“bcdedit /set {clsid} osdevice vhd=[D:\vhd\win7.vhd”

<BEGIN what=”complaints” value=”none”/>

This is what I had to do and it should help you accomplish the same.  If it doesn’t work, I’m sorry, but I did try to help.  Again, check out http://www.sevenforums.com as I did learn how from them.

-Chris

November 16

SharePoint 2010 Beta 2 hit today

Today is a good day.  Bits are here, can’t wait to play.

-Chris

October 09

Stop and see Russ Houberg and I at the SharePoint Conference

Russ Houberg and I will be presenting at the SharePoint Conference this year on 10 ECM features of SharePoint 2010 that we think rock.  We’d love for you to stop by and see our session.

Session Title: ECM on SharePoint 2010 - Features that Rock!

Session Date and Time: Mon Breakout 4:30 PM

Session Room: Surf 1

Print

Until Vegas,

Chris Caplinger
http://www.knowledgelake.com

September 08

Win a VIP Trip to the 2009 Microsoft SharePoint Conference

If you haven’t registered or made travel arrangements to the SharePoint Conference this year, check out our web site and register for a VIP trip.  The winner will get to hang out with me… no seriously we wouldn’t make you do that, but you will get your conference fee, airfare, hotel, limo service and dinner paid for.  SharePoint 2010 will be unveiled at the conference and most sessions will be centered around the new Microsoft SharePoint Server 2010.

Did I mention it’s in Las Vegas?

You can register to win at http://www.knowledgelake.com/events/SP_Contest2009/default.asp.

Print

Regards,
Chris

August 03

Congratulations to Russ Houberg on becoming Microsoft Certified SharePoint Master

Just wanted to give a shout out to Russ Houberg on becoming a Microsoft Certified Master for SharePoint.  Makes me very proud to have Russ as part of the KnowledgeLake organization.  Thank you Russ!

See Russ’ post about his accomplishment at http://www.houberg.net/archive/2009/07/28/microsoft-certified-master-sharepoint2007.aspx.

Chris Caplinger
http://www.knowledgelake.com

 

Chris Caplinger

Occupation
Location
Interests
I enjoy my life with my wife and kids near St. Louis, MO. I'm the CTO and one of the founders of KnowledgeLake, Inc.