How to build a SharePoint 2010 development machine


How to build a SharePoint 2010 development machine
Summary:
This tutorial covers how to build a SharePoint 2010 development machine on Windows Server 2008 R2.
Requirements:
For your virtual machine, you'll need VirtualBox and either an MSDN subscription or licenses for
  • Windows Server 2008 R2,
  • SQL Server 2008,
  • SharePoint Server 2010,
  • Office 2010 Professional Plus,
  • Visio 2010,
  • SharePoint Designer (free), and
  • Visual Studio 2010.
Note: Do not take snapshots during this process if you are using VirtualBox! When I did so (from a Mac OSX 10.6.8 on VirtualBox 4.4.1), VirtualBox threw disk errors every time I started up my VM (described here too). So at different milestones, like completing tedious updates, export the appliance (via "File > Export appliance") as an ova file instead.
Steps:
  1. Install Windows Server 2008 R2 with updates
  2. Convert it to a workstation
  3. Install Domain Controller
  4. Add users to Active Directory Users and Computers
  5. Install SQL Server 2008 R2
  6. Install SharePoint Server 2010
  7. Install Cumulative Updates (always install the SharePoint Foundation CUs before the SharePoint Server CUs)
  8. Install Apps (Office 2010 Professional Plus, Visio 2010, SharePoint Designer (free), and Visual Studio 2010)
How-to build your SharePoint 2010 development machine
Install Windows Server 2008 R2 and updates
  1. In VirtualBox, create a virtual disk that is 80gb
  2. Download and install Windows 2008 R2 Enterprise from MSDN
  3. Run all updates
  4. Download to the desktop:
  5. Install Virtual Clone Drive
  6. Use a private IP Address: Start > Ctrl Panel > Network and Internet > Network and Sharing Center > Local Area Connection > Properties > Internet Protocol Version 4 (TCP/IPv4) > Properties (I know, crazy right?). Then just set the IP manually in XP for the Local Area Connection using the following:
Internet Protocol Version 4
Use 10.10.10.1 for the IP Address. 255.0.0.1 for the subnet mask. 127.0.0.1 for the DNS server.
Convert Windows Server 2008 R2 to a Workstation:
  1. Click Start and type oobe. In the Initial Configuration Tools window click Provide computer name and domain. Type in a description for "Computer Description." (SharePoint Development Environment). In the System Properties window that shows up click Change. Fill in the Computer name and Workgroup and click OK twice. Use "sharepoint" for the Computer name and leave "WORKGROUP" as the Wordgroup.
  2. Shutdown
  3. Make sure there is no second adapter and that the first adapter is NAT.
  4. Start
  5. Change your computers registered owner and organization name
    Click Run in the Start menu. Type regedit and click OK. Navigate to HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > Windows NT > CurrentVersion. Double-click and edit RegisteredOwner to change your registered owner. Double-click RegisteredOrganization. Change the registered organization.
  6. Turn off strong passwords:
    Optional
    : Run > gpedit.msc. In the Local Group Policy Editor, expand Computer Configuration > Windows Settings > Security Settings > Account Policies and click Password Policy. In the right pane double click Password must meet complexity requirements. Set it to Disabled. Click OK.
  7. Turn off Shutdown event tracker:
    Click Run in the menu Start, then type gpedit.msc and click OK. The Local Group Policy Editor opens. Browse to Administrative Templates in Computer Configuration, click System and double click in the right window on Display Shutdown Event Tracker. Change its value to Disabled and click OK.
  8. Turn off ctrl-alt-del login:
    In the Start menu, expand Administrative Tools and click Local Security Policy. In the Local Security Policy editor expand Local Policies and click Security Options. In the right pane search and open Interactive logon: Do not require CTRL+ALT+DEL and choose Enabled. Save your change by clicking OK.
  9. Turn on Windows Audio:
    Run > services.msc. The Services management console opens. In the Services window scroll down to Windows Audio and double-click it. Select Automatic as Start-up type. Click Apply. Click Start to start the Windows Audio service.
  10. Turn off Internet Explorer anal retentiveness:
    Start the Server Manager. Click Configure IE ESC. Set both Administrators and Users to Off. Save the changes by clicking OK.
  11. Turn on Desktop Experience and SMTP:
    Server Manager > Features Summary > Add Features. Check Desktop Experience. Also, click SMTP. Click Next. After installation, click Close.
  12. Restart your computer.
Set it up as a Domain Controller
  1. Start > All Programs > Windows Update
  2. Install additional updates. There are always additional updates.
  3. Promote the machine to a domain controller by running dcpromo. Follow the installation steps according to screenshots below.
    Run dcpromo
    Installation message.
    Welcome to the Active directory domain services installation wizard
    Operating system compatibility
Choose a deployment configuration
Choose to create a new domain in a new forest
Name the Forest Root Domain
Use contoso.local

netbios name
Use your computer name... in this case, "SHAREPOINT"
Set forest functional level
Additional domain controller options
A delegation for this DNS Server cannot be created because the parent zone cannot be found.
Location for database, Log files, and sysvol.
Directory Services Restore Mode Administrator Password
Summary
Waiting for DNS installation to finish
Completing the active directory domain services installation wizard
Restart now
  1.  
    1. Once the server is booted and you logon to it, click on  Start > Administrative Tools ,  will notice that following have been installed :
o    Active Directory Domains and Trusts
o    Active Directory Sites and Services
o    Active Directory Users and Computers
o    ADSI Edit
o    DNS
o    Group Policy Management

http://www.elmajdal.net/Win2k8/Setting_Up_Your_First_Domain_Controller_With_Windows_Server_2008/Check_installation.jpg

Summary
Setting up a Domain Controller in Windows Server 2008 to install Active Directory Domain Services is performed by running the dcpromo command. It has some new options like using Advanced Mode Installation, and exporting settings to an answer file . In my next articles, I will show you how to perform an unattended installation to set up your domain controller, and also how to set up an additional domain controller using Windows Server 2008.

                        Then run Start > Accessories > Terminal Type in "ipconfig /all"IPconfig /all
Add users to Active Directory Users and Computers
  1. Start > Active Directory Users and Computers. You will want to create accounts for these users. Shown below are steps to add SP_SQL. Rinse and repeat for SP_Farm and SP_Setup.
    • CONTOSO\SP_SQL
    • CONTOSO\SP_Farm
    • CONTOSO\SP_Setup
Start menu > Active Directory Users and ComputersActive Directory Users and Computers
Add a new user
New Object - User
  1. Set up SP_Setup
    Go to Start > Active Directory Users and Computers and double click on SP_Setup. Click on MembersOf and add "Domain Admins" and any other groups the regular Administrator account belongs to. (Enterprise Admins, Group Policy, Group Policy Creator Owners, Schema Admins). I'm really not sure if all that is necessary.
  2. Shut down
  3. Export a OVA File so you have a backup.
Install SQL Server 2008 R2
Select Logins
  1. Reboot
  2. Log in as Contoso\Administrator
  3. Download SQL Server 2008 R2 Enterprise from Msdn.microsoft.com.
    Click Installation in the left side of the WizardSQL Server Installation Center
  4. and then click New installation
    SQL Server Installation Center - Installation
  5. wait
  6. Click ok on the Setup Support Rules page, assuming all rules passed.
    Setup Support Rules
  7. wait
    Please wait while sql Server 2008 R2 Setup processes the current operation
  8. Type the appropriate product key and click Next on the Product Key page.
    Product Key
  9. Review and accept the license terms. Microsoft appreciates you clicking to agree to send feature usage data to help improve product features and support. Click Next.
    License Terms
  10. Click Install on the Setup Support Files page.
    Setup Support Files
  11. wait
    Setup Support Files
  12. Review the Setup Support Rules. There will probably be warnings:
    Setup Support Rules
  13. You can skip them if these are the warnings you get:
    Rule Computer Domain Controller generated a warning
    Rule Microsoft .NET Application Security generated a warning
    Rule Windows Firewall generated a warning
  14. Click Next
    Setup Role
  15. Click Database Engine Services, Reporting Services and Management Tools Complete on the Feature Selection page. Click Next to continue.
    Feature Selection
  16. Click Next on the Installation Rules page.
    Installation Rules
  17. Choose "Default instance" and go with the default name.
    Instance configuration
  18. Click Next
    Disk space requirements
  19. Use the SP_SQL account to run the services:
    Server configuration
  20. Click "Collation" and then "customize" set it to Latin1_General_CI_AS_KS_WS
    Server configuration collation
  21. Cover all bases you do not need to put in the SP_SQL user, tempting though it is:
    Database Engine configuration
  22. Choose the middle option:
    Reporting Services Configuration
    Error Reporting
    Installation Configuration Rules
  23. Click "Install"
    Ready to install
  24. Export a OVA File so you have a backup.
Install SharePoint Server 2010
  1. Log in as SP_Setup
  2. Go to Start > Computer > Local Disk (C:) > Users > Administrator > Desktop and copy over the files that are there to the desktop.
  3. Go to Start > Microsoft SQL Server 2008 R2 > Configuration Tools > Reporting Services Configuration Manager and "Connect to local Server"
    SQL Server 2008 R2 Reporting Services
  4. Click "Web Service URL"
    Web Services URL
  5. Set the TCP port to 8080.
  6. Shutdown
  7. Add a second network adapter (bridged)
  8. Restart
  9. Log in as SP_Setup
  10. Go to Start > SQL Server 2008 R2 > Microsoft SQL Server Management Studio
  11. Add SP_Setup to dbcreator and securityadmin server roles
  12. Expand Sharepoint > Security > Server roles and click on "securityadmin"
    SQL Server Management Studio
    Server Role Properties - dbcreator

    Server Role Properties - dbcreator
    Server Role Properties - securityadmin
    Select Logins
  13. Mount SharePoint disk image
    Mount Sharepoint Disk image
  14. Click "Install software prerequisites"
    SharePoint server 2010
    Welcome to the Microsoft SharePoint 2010 Products Preparation Tool
    License terms for software products
    Microsoft SharePoint 2010 Products Preparation Tool
    Installation Complete
  15. Run Autorun
    Enter your product key
    Read the Microsoft Software License Terms
    Choose a file location
    Installation in progress
  16. Start the Sharepoint Configuration Wizard
    Welcome to SharePoint Products
    Choose yes to restart the services
    Connect to a server farm
    Specify Configuration Database Settings
    Specify farm security settings
    Configure SharePoint Central Administration Web Application
    Completing the sharepoint products configuration wizard
    Configuring SharePoint Products
    Configuration Successful
Install Cumulative Updates
  1. Shutdown, run any updates, restart, shutdown and export an ova file
Download and Install Development Applications
  1. Install SharePoint Designer
  2. Install Office Professional Plus 2010 with SP1
  3. Visio 2010
  4. Visual Studio 2010 Ultimate

No comments:

Post a Comment