Wednesday, September 11, 2013

Build a Sharepoint Server 2010 Single Tier Dev Environment


This posting organizes and archives my notes associated with building a limited single-tier SharePoint 2010 development and testing environment.  The environment is composed of the following components:
  • Windows Server 2008 R2 Enterprise SP1
  • SQL Server 2008 R2 Enterprise SP2
  • SharePoint Server 2010 Enterprise SP1
  • Microsoft Office Professional 2010
  • DNS
  • Domain Controller
The environment is built using VMware Workstation 7.X.  This installation procedure follows the one drafted by Critical Path Training, Building a SharePoint 2010 Virtual Machine Lab.  Note that the free VMware Player can also be used for single-server environment development.

I. Preparation

Download or create ISOs for the software listed below.  Trial versions of server software can be obtain through the TechNet Evaluation Center.  Here's the software that is needed:
  • Windows Server 2008 R2 Enterprise
  • Windows Server 2008 R2 SP1
  • SQL Server 2008 R2 Enterprise
  • SQL Server 2008 R2 SP1
  • SQL Server 2008 R2 SP2
  • SharePoint Server 2010 Enterprise
  • SharePoint Server 2010 SP1
On the host, add the PrerequisiteInstaller.Arguments.txt file to the SharePoint 2010 installation files folder.  In the PrerequisiteInstallerFiles subfolder of the install folder, make sure that all of the prerequisites are there.  Listed below are the primary prerequisites and some others that may be needed.  URLs to all of these are provided in the TechNet article, Hardware and software requirements (SharePoint Server 2010).
  • Microsoft .NET Framework version 3.5 SP1 (dotnetfx35setup.exe)
  • SQL Server 2008 Express with SP1 (SQLEXPR_x64_ENU.exe)
  • Microsoft Sync Framework Runtime v1.0 (x64) (Synchronization.msi)
  • Microsoft Filter Pack 2.0
  • Microsoft Chart Controls for the Microsoft .NET Framework 3.5 (MSChart.exe)
  • Windows PowerShell 2.0 (Windows6.0-KB968930-x64.msu)
  • SQL Server 2008 Native Client (sqlncli.msi)
  • Microsoft SQL Server 2008 Analysis Services ADOMD.NET (SQLSERVER2008_ASADOMD10.msi)
  • ADO.NET Data Services Update for .NET Framework 3.5 SP1 (Windows6.1-KB976127-v6-x64.msu)
  • A hotfix for the .NET Framework 3.5 SP1 that provides a method to support token authentication without transport security or message encryption in WCF (Windows6.1-KB976462-v2-x64.msu)
  • Windows Identity Foundation (WIF) (Windows6.1-KB974405-x64.msu)
 I. Build the VM
  1. Create a new virtual machine having the characteristics shown in the image below.  When building the VM, choose the option to create the full disk immediately.
  2. Verify that VM settings are as follows: 

II.  Install and Configure Windows Server 2008 R2 Enterprise
  1. Change the CD/DVD (IDE) drive to the Windows Server 2008 R2 Enterprise ISO.
  2. Power on the VM.
  3. Perform an installation of Windows Server 2008 R2 Enterprise (full).
  4. Change the Administrator password setting to: Password never expires.
  5. Disable Windows Firewall and Enhanced Security Configuration.
  6. Disable loopback checking.
  7. Enable remote desktop.
  8. Add features: Windows Server Features for the Desktop Experience and PowerShell Integrated scripting environment
  9. Set updates to: Never check for updates.
  10. Change the CD/DVD (IDE) drive to the Windows Server 2008 R2 SP1 ISO.
  11. Launch the SP1 installation.
  12. Install all updates except for IE 10 or above.
III.  Configure the Domain Controller
  1. Assign adapter explicit IP4 and DNS settings.
  2. Add Roles: Active Directory.
  3. Add domain user accounts: sp_admin, sp_web, sp_app.
IV. Install SQL Server 2008 R2 Enterprise
  1. Change the CD/DVD (IDE) drive to the SQL Server 2008 R2 Enterprise ISO.
  2. Launch the installation.
  3. From the VM options, create a shared folder to the location where the service packs are saved.
  4. Perform the installations of SP1 and SP2.
  5. Add domain user sp_admin to the SQL Server logins, with server roles: dbcreator and securityadmin.
IV. Script Installation of SharePoint Server 2010 Prerequisites
  1. In the VM properties, create a shared folder pointing to the SharePoint 2010 installation files on the host.
  2. From the VM, navigate to the installation folder, and then launch PrerequisiteInstaller.exe.  No arguments are needed.  It automatically seeks and reads the contents of PrerequisiteInstaller.Arguments.txt if it finds it.  If you experience an error running this, see notes [3, 4] below.  If an error is presented once it completes, see [5] below.
V. Install SharePoint Server 2010
  1. From the installation folder, launch SharePoint 2010 setup.
  2. For Choose the installation you want, select to install Server Farm.
  3. For Server Type, select Complete.  Completion may take up to 15 minutes.
  4. Click Close on Run Configuration Wizard panel.
  5. On the Connect to a server farm, choose Create a new server farm.
  6. For Specify Configuration Database Settings:
    1. Database Server: spdev01
    2. Database name: [default]
    3. Username: [domain]\sp_admin
  7. For Specify Farm Security Settings: I Love SharePoint
  8. For Configure SharePoint Central Administration Application
    1. Specify the port: 2000
    2. Authentication provider: NTLM
  9. After completion of the product configuration wizard, you will be asked if you want to use the Farm Configuration Wizard to configure (provision) the farm for you: choose Cancel.
  10. From the installation folder, launch SharePoint 2010 SP1.
  11. Launch the Farm Configuration Wizard (CA > Configuration Wizards > Farm Configuration Wizard).  Only key changes from defaults are shown here:
    1. Create a new managed account: [domain]\sp_app
    2. Do not create a new site just yet.
  12. Complete the wizard.
VI. Optional: Install AdventureWorks Database and Project Files
  1. Attach the AdventureWorksDW for SQL Server 2008 R2 database from CodePlex [see note 6 below].
  2. Download the AdventureWorks 2008R2 Analysis Services Project from CodePlex [see note 7, below].
  3. Complete the installation procedure as discussed in Exercise 5 of Building a SharePoint 2010 Virtual Lab.

This posting organizes and archives my notes regarding the building of a SharePoint 2010 development and training environment.

Primary References
General References
  1. I couldn't find ISOs for SQL Server 2008 R2 service packs.
  2. Installing the database server on the same machine hosting the domain controller is not best practice but isn't an issue for a development and training environment.
  3. Here's the contents of the PrerequisiteInstaller.Arguments.txt file used for scripted prerequisite installation (below).  Make this all one line in the file.  No CRs or LFs in the file.  Separate each switch/value pair with a space only.
    /Speech:PrerequisiteInstallerFiles\SpeechPlatformRuntime.msi test
  4. If you see this error message in the the prerequisite installer log file, The following file does not exist: ... Error: Custom file location is not accessible, after running PrerequisiteInstaller.exe, check the arguments file to make sure that there is no CR/LF at the end of the file.
  5. If error (0X643=1603) is presented in the log file, once the PrerequisiteInstaller completes, and the error indicates that a prerequisite could not be installed, trying installing the prerequisite yourself and then rerun the PrerequisiteInstaller to verify that the installation was successful.  I have found this to be the case with the sqlncli.msi file.
  6. Note that the AdventureWorksDW database must first be installed before proceeding with solution installation.
  7. The description and URL for this project has changed since Exercise 5 was released.  Presented above is the description and URL valid as of 9/11/13.

No comments: