Recently I have been looking at Microsoft CRM 2011. The first obstacle I had was to generate a virtual machine that would allow development … nothing is ever as simple as one would expect so after a lot of hair pulling and teeth gnashing and of course google usage I came up with the following
The process below details the steps to be taken to create a virtual machine containing the following products
- Microsoft Windows 2008 R2 (including active domain)
- Microsoft SQL Server 2008 R2
- Microsoft CRM 2011
This information came from various sources but the bulk came from a video I found on YouTube by ‘neilmed82′ entitled ‘Microsoft Dynamics CRM 2011 beta installation (http://www.youtube.com/watch?v=dDeebvZ8xNo)
The virtual machine should be a minimum of 30Gb in size
Windows 2008 R2 installation
- Install Windows 2008 R2
- Include active domain
- Set computer name to ‘devcrm’
- Install Active Directory
- Start -> Administrative tools -> Server manager
- Roles -> Add roles
- Ensure the following are ticked
- Active directory domain services
- DNS Server
- File Services
- Web Server (IIS) ????(see point 6 below)
- This may request the .Net Framework to be installed
- On completion reboot the virtual machine
- Run ‘dcpromo’ and create a new forest
- FQDN = ‘dev.dom’
- Functional Level = Win 2008
- Password = ‘Password1’ (suggested)
- On completion reboot the virtual machine
- Create the domain in the forest
- Start -> Administrative tools -> Server manager
- Roles -> Active directory domain services
- Run ‘Active directory domain services installation wizard’ (dcpromo.exe)
- Select ‘Create a new domain in a new forest’
- FQDN = ‘dev.dom’
- Forest functional = Win 2008 R2
- Dynamic IP Address = (select)
- Password = ‘Password1’ (suggested)
- On completion reboot the virtual machine
- Create OUs and Service User Accounts
- Start -> Administrative tools -> Active directory users and groups
- Select ‘dev.dom’ domain
- Right-click (on ‘dev.dom’) -> New -> Organisational unit
- Name = ‘CRM’
- Right-click (on ‘dev.dom’) -> New -> Organisational unit
- Name = ‘service accounts’
- Right-click (on ‘service accounts’ OU) -> New -> User
- First name = ‘SQL’
- Surname = ‘SVC’
- Login =‘sqlsvc’
- Password = ‘never expires’
- Right-click (on ‘service accounts’ OU) -> New -> User
- First name = ‘dynamics’
- Surname = ‘admin’
- Login =‘dynamicsadmin’
- Password = ‘never expires’
- Add IIS Role
- Start -> right-click (on ‘Computer’) -> Manage
- Roles -> Add roles
- Select ‘Web Server (IIS)’
- HTTP redirection
- ASP.Net (plus offered children)
- Windows authentication
- IIS6 management compatibility (plus children
- Add service users to local admin group
- Start -> Control Panel -> Users -> Manage user accounts -> Add
- User = ‘sqlsvc’; domain = ‘dev.dom’; Administrator
- User = ‘dynamics.admin’; domain = ‘dev.dom’; Administrator
- On completion reboot the virtual machine
- Start -> Control Panel -> Users -> Manage user accounts -> Add
SQL Server 2008 R2 Installation
- Include
- Database Engine (inc. full text)
- Reporting Services
- Management Tools (complete)
- BIDS
- Client Tools (MSSQLSERVER)
- Service accounts dev\sqlsvc
- On account provisioning
- Mixed mode ‘Password1’ (suggested)
- Administrators (dev\dynamicsadmin,
dev\sqlsrc, administrator)
- On completion reboot the virtual machine
It is suggested that at this point a backup is taken of the virtual machine.
CRM 2011 Installation
- Install CRM>
- Select ‘Create a new deployment’ (devcrm)
- OU -> browse to CRM
- Security account = domain user dev\dynamicsadmin
- Email router = devcrm
- Display name = <sitename>
- Report server = http://devcrm/reportserver
- System check screen will show some warnings
- Run ‘set SPN’ for service user account
- Go to a command prompt and enter the following commands
- Setspn –a http/devcrm dynamicsadmin
- Setspn –a http/devcrm.dev.dom dynamicsadmin
- Close command window
- Continue with CRM set up
- Select ‘install reporting services connector
- On completion reboot the virtual machine
- Start up and test
- http://devcrm/<sitename>
- Settings -> Currencies -> New
- Currency code ‘US Dollar’
- GBP (1.00) <suitable exchange rate>
- Save and close>
- Settings -> Customisations -> Publishers
- Select default publisher
- Set up prefix (up to 8 characters)
- Set ‘Option value prefix’ to suitable number (e.g. 10,000)
- Other configuration: File -> Options
- General: Currency pound sterling
- General: Default Tab <preferred tab>
- Formats: current format English/united kingdom
Additional Installation
- Install additional organisations
- Start -> All Programs -> Microsoft
Dynamics CRM 2011 -> Deployment Manager - Right click (on ‘Organisation’) -> New
organisation- Enter display name (but otherwise accept defaults)
- Recommended that ‘Contoso1’ is created (as a minimum)
- Check that organisation can be accessed using http://devcrm/Contoso1
- Start -> All Programs -> Microsoft
- Download and install Microsoft CRM 2011 SDK (place in directory c:\CRM2011 SDK)
- In browser enter URL of appropriate organisation (e.g. http://devcrm/Contoso1)
- Files -> Tools -> Import Data
- Browse to c:\crm2011 sdk\sdk\handsonlabs\orgsetupfiles\
- Import the following files
- importaccountscontoso1.csv (map to ‘Account’)
- importcontactscontoso1.csv (map to ‘Contact’)
Alternatively if you know someone who may just have a virtual machine already built … ask them!
If you spot any errors in the above please let me know and I will update accordingly.