Originally a blog article by Leon Tribe. Read the original here: http://leontribe.blogspot.com/2011/06/running-dynamics-crm-vpc-on-windows-7.html


Microsoft have now released a VPC demo image for Dynamics CRM 2011

https://mbs.microsoft.com/Cms/Templates/document/General.aspx?NRMODE=Published&NRNODEGUID={060C9677-229D-49E1-9F00-95E56D9F1657}&NRORIGINALURL=/partnersource/deployment/methodology/vpc/MSD_CRM2011VirtualMachine&NRCACHEHINT=Guest&wa=wsignin1.0

A nice set of two virtual machines; one running Dynamics CRM and the other running Exchange.

The Problem

The problem is Dynamics CRM 2011 only runs on 64 bit servers. Therefore the VPC image is 64 bit. The only software Microsoft provides to run 64 bit VPC images on is Hyper-V. Hyper-V only runs on Windows Server 2008, which is also 64 bit. Therefore, if we are to embrace all things Microsoft, and want to run the demo on a laptop, we need to install Windows Server 2008 on our laptop.

Unfortunately Windows Server 2008 was not built to be run on laptops. It has no concept of things like hibernation and power management. No one says ‘I am so glad I installed Windows Server 2008 on my laptop’. So what is the solution?

The Solution

While Microsoft provides no software to run 64 bit VPC images on a laptop operating system like Windows 7, Sun Microsystems does. VirtualBox (http://www.virtualbox.org) runs on Windows 7 and plays nicely with Microsoft VPC 64 bit images.

So, the first step is downloading and installing VirtualBox. The latest version, at the time of writing is 4.0.8. Download the installer and hit ‘Next’, ‘Yes’ and ‘Install’ a lot.

image

Now that you have installed VirtualBox we need to run it and add our downloaded VPC image to it. To do this we click the ‘New’ button.

image

The wizard will guide you through adding the VPC image. Set up VirtualBox to run the image as a Windows Server 2008 64 bit

image

Next you will need to assign memory. The guide suggests 4G RAM but I only have 2G RAM to spare.

Please note: In the end I had to set this to over 2000 MB to avoid the guest blue screening due to running out of memory.

image

Next you will want to use an existing disk. Browse to the disk you have extracted from the Microsoft demo download.

image

After this you click ‘Finish’.

image

If you try to start the image at this point you will see the Blue Screen of Death about five seconds into booting. First we must click on ‘Storage’, remove the SATA hard drive and add it back as an IDE drive. It should look like this when you are done.

image

Click OK and start up the machine. Many popup boxes appear but once you wade through them it should kick into operation.

Fixing The Memory

The biggest problem you will have, if you are running the image on a host machine with 4G RAM, is the lack of memory available to the guest. To be honest, if you are going to be performing extended demos with this image you will need a machine with at least 8G RAM. However, if you don’t have this option, here is a quick bit of memory optimization. That cheeky SQL Server is grabbing as much as possible. In fact, on my work machine, SQL was chewing through 600M RAM when I ran this image. To fix the situation we need to run SQL Server Management Studio.

image

Once logged in, we can adjust the memory management of our SQL Server.

image

Going to the Memory area we see that SQL Server can grab up to 640M RAM from the machine. Given our limitations, we can set this to something more palatable, say 500M RAM, giving the guest just that little more to run. The downside of this is SQL Server may be a little slower in responding to database requests or may timeout. However, given the VPC image will not run in our case without a little extra memory, throttling is the lesser of two evils.

Another option to gain a little extra memory is to see how much idle memory the host has (via task manager). Leaving yourself a buffer of, say 200M RAM, if the host is not close to maximum you can boost the memory allocated to the guest.

Hopefully these little tricks will get it working on your machine.

Good luck.