Search This Blog

Tuesday, November 30, 2010

Create a three tier SharePoint 2010 Development Environment.

Ok, so today we are going to look at setting up a three tier SharePoint 2010 Development environment real quick. I spent alot of time trying to figure out how to get this done and in the end it turned out to be real simple.

What you will need:
  • VMWare Workstation 7.1
  • 500GB External USB drive
  • Laptop with 8GB memory
  • Windows Server 2008 R2 64 Bit
  • Windows Server 2003 (optional)
  • SQL Server 2008 R2 64 Bit
  • SharePoint Server 2010

How to do this:

First thing you need to do is create 4 virtual machines


Server Name Memory Disc Space Processor
Domain Controller 512 MB 20 GB 1
Web Server 2048 GB 50 GB 1
Application Server 2048 GB 50 GB 1
SQL Server 2048 GB 50 GB 1

The Web, Application and SQL servers will form the three tier. For the Domain controller I chose to install Windows Server 2003. Microsoft have some great articles on how to configure a Domain Controller here http://technet.microsoft.com/en-us/library/cc759011%28WS.10%29.aspx


Step 1

For the other servers I installed Windows Server 2008 R2. You can create one windows server 2008 and then run SysPrep to ensure each copy you make of the original thereoff will be unique. This will be our template. Make 3 copies of the template.

Great, so at this stage you should have 3 Windows Server 2008 R2 servers and 1 Windows Server 2003 Domain Controller called "DomainController".

Step 2

Go ahead and install SQL Server 2008 on one of the servers and make sure you give the server a reasonable name, I have named mine "SQLServer"...literally, no confusion here! Also, ensure TCP/IP connections are set to allow for network configuration.

Step 3

Grab another copy of the Windows Server 2008 template and use this as the Application Server. We will call this "AppServer". On this server you will install SharePoint Server 2010 but will not configure SharePoint 2010 just yet.

Step 4

Grab another copy of the template and use it as the Web Server, call it "WebServer", and on this we will install SharePoint Server 2010 but will leave the configuration for later.

To give these servers a proper name go to Computer Properties and change the name accordingly but make sure you document everything.

Step 5

Now for the all important bit....to get 4 virtual machines talking to each other you will need to ensure that the "Network Adapter" setting in VMWare Workstation 7.1 for each VM is set to "Host Only".

Next, power on each of the Servers and log in with the default Administrator password (not the domain account but the local account).

Step 6

Starting with the Domain Controller, change the IP configuration details to the following sample configuration. Uncheck the Get Automatic IP Address and enter a manual one.

Domain Controller - "DomainController"

IP: 192.168.0.12
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.0.1
Preferred DNS Server: 192.168.0.34

For the Application Server - "AppServer"

IP: 192.168.0.13
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.0.3
Preferred DNS Server: 192.168.0.12 (notice the IP address here is the IP address of the Domain Controller)

For the SQL Server - "SQLServer"

IP: 192.168.0.11
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.0.2
Preferred DNS Server: 192.168.0.12 (notice the IP address here is the IP address of the Domain Controller)

For the Web Server - "WebServer"

IP: 192.168.0.14
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.0.4
Preferred DNS Server: 192.168.0.12 (notice the IP address here is the IP address of the Domain Controller)

Now reboot all the servers and login with the domain\Administrator account on each of the servers.

Step 7

To configure SharePoint 2010 is easy! Create 2 accounts (spAdminAcct and spFarmAcct) with least priviledges - meaning don't add them to the Admins group on the Domain Controller. Add the spAdminAcct to the Administrator group on the Application Server, Web Server and in the SQL Server, create a new Login for spAdminAcct and check the DBCreator and SecurityAdmin checkboxes. Do not add the spFarmAcct to the Adminstrators group on the servers.

Run the SP 2010 installation with the SPAdminAcct and use the SPFarmAcct as the Farm Account when prompted.

Kerberos Configuration

I used Kerberos Authentication which involved a couple of extra steps wherein I had to allow the two accounts and the AppServer to be trusted for delegation in Active Directory, and then I ran the following command: setspn -a http/appserver.domain.local domain\spAdminAcct. Download the SetSpn.exe from the Microsoft website (see suggested reading below).

Join Web Server to Farm

Next, run the SP 2010 configuration on the Web Server and during configuration make sure you select the "Add to existing farm" setting and follow the steps from there.

And there you have it, 4 virtual machines comprising of a Domain Controller, a Web Server, an Application Server and a SQL Server with SharePoint 2010.


This article was more about getting 4 virtual machines talking to each other with the basics of installing and configuring SharePoint 2010.

If you have any questions please feel free to ask, any suggestions please let me know.

Regards,

Derek



Suggested Reading:



Thought for the day: 

  • Learn to live a carefree life.