The document provides instructions for setting up a database server virtual machine including:
- Installing Hyper-V software on the host machine
- Creating a virtual switch and virtual machine
- Installing Windows Server 2012 and configuring network settings
- Joining the virtual machine to the domain
- Creating service accounts and adding them to the domain administrators group
- Installing .NET Framework and SQL Server features
The overall steps prepare the virtual machine environment and install necessary software for use as a database server.
2. Setting up the Database Server
What do you need for this Exercise :
• Create a VM for setting up DB Server
• Windows 2012 / 2008 R2
• .Net Framework 4.5
• SQL Server 2012 R2
Steps for Preparing the Domain Controller :
• Prepare the VM
• Install Windows 2012 Server
• Connect the Server to the Domain
• .Net Framework 4.5
• Open the Port in Windows Firewall to allow data
pass through
• Install the SQL Server application
3. Why do we need so many servers and
How do they communicate ?
4. Installing the Virtual Machine Software
H
Y
P
E
R
-
V
1. Click on the Start Button on the Host Machine OS
2. Search for Programs and Features
3. Click on Turn Windows Features on or Off
4. Select the Hyper-V and its features
5. Click Ok to install the components
Note: You will need to enable the Virtualization chip in BIOS
5. 1. Click on the Start Button on the Host Machine OS
2. Search for Hype-V Manager [only for windows 8.1 or Windows
2012 or 2012 R2
3. Launch the Hyper-V Manager
Setting up the Virtual Machine
6. Setting up the Virtual Machine
1. Click on Virtual Switch
Manager
2. Create an Internal Switch
by Selecting Internal
Option and select Create
Switch
3. You will be prompted to
enter the Name for the
Virtual Switch
7. Setting up the Virtual Machine
4. Enter the Name that you
can remember and will be
easy to identify for later
use.
Note: This switch will be used
for VM to VM Communication
and will be assigned a Static IP
post installation of the OS.
8. Setting up the Virtual Machine
Now that we have setup the
Virtual Switch, it is time to
setup the Virtual Machine
itself.
1. Click on the New and
Select Virtual Machine
9. Setting up the Virtual Machine
Now that we have setup the Virtual
Switch, it is time to setup the Virtual
Machine itself.
2. Enter the name of the Virtual
machine. In this case as I am setting
up the Database Server, I named it
Database Server as it will be easy to
refer to it in the future exercises.
3. I would leave the location for storing
the file as default and Click Next
4. Select the Generation as Generation 1
if your host operation is older than
Windows 8.1 and click Next again.
10. Setting up the Virtual Machine
5. Assign the required amount of RAM.
In this scenario, although domain
controller will not need more than 1.5
GB of RAM, I have allocated about
2GB which will be used by Sharepoint
Server.
Note: We will be installing the Sharepoint
Server on the top of Domain Controller in
our exercises.
11. Setting up the Virtual Machine
6. Select the Network Adaption.
This will be Internal Switch that
we created before setting up the
Virtual Machine.
7. Click Next.
12. Setting up the Virtual Machine
8. Select the amount of disk space that you
wish to allocate.
9. Click Next
Note: Recommended Space is 80GB. In our
Learning environment we are going to
allocate only 40GB of HDD space.
13. Setting up the Virtual Machine
10. Select the Location of the ISO [Windows
2012 Server Image File]
11. Click Next
12. Review the Summary and Click on Finish
13. You will now see the VM that is created.
You can double click on click on the power
on Icon to start the VM.
14. Installing Windows Server 2012
1. Double click on the VM from the list.
You will see this window on the left
2. Click on the Green power on button
to start the VM.
3. It will select the ISO Image and will
start the Windows Server Installation.
15. Installing Windows Server 2012
4. Select the Language for Installation and,
Time Format and the Keyboard input
method and click on Next.
5. Click on Install Now.
16. Installing Windows Server 2012
6. Select Windows Server 2012 DataCenter
Evaluation (Server with a GUI) and click Next
7. Review and accept the license Agreement
8. Click Next
9. Click on Custom: Install Windows Only
Note: There is no 32-bit evaluation available.
Also there is no 32-bit evaluation available for
Sharepoint 2013.
17. Installing Windows Server 2012
10. Select the Drive for installing Windows
Server 2012 and Click Next.
11. The Installation of windows will start and
unlike it’s predecessors, there will not be any
human intervention needed during the
installation.
18. 12. Enter the password for the Administrator account and Hit the Enter Key
13. You will now be logged in as Local Administrator and Server Manager window will open up.
Installing Windows Server 2012
19. Promoting the Server to DC [Domain Controller]
1. Assign the Static IP to the Virtual Network adapter.
2. Right click on the network icon on the lower right hand
side on the VM Window.
3. Select Open Network and Sharing Center
4. Click on Change Adapter Settings
20. Promoting the Server to DC [Domain Controller]
5. Right click on the Network Adaptor and Select
Properties
6. Select IPv4 and then click on the Properties button
7. Enter the IP Address and Preferred the DNS Address
8. Preferred DNS will be the same as DC’s IP Address
21. Joining the Server to the Domain
1. Ensure that the Domain Controller is turned ON.
2. You need to join the Database Server the Domain.
3. After assigning the static IP and DNS Address [same IP of the DC], you need to click on Start >
Right Click on Computer > Select Properties
4. On the System Settings screen Click
on the Change Settings
5. Click on Change
6. Enter the Computer name as
“Database Server”.
7. Enter the Domain Name as
“DeloitteOnLine.com”. [ or the
name of the Domain that you
entered while setting up the DC. ]
23. Joining the Server to the Domain
8. Upon clicking on the OK button, you will be
prompted to enter the Domain Administrator
Password.
9. Upon validating the Administrator credentials,
the Server will be joined to the Domain and you
will receive the message : “Welcome to the
DeloitteOnline.com Domain”.
Yourcompany.com
Yourcompany.com
Yourcompany.com
24. Joining the Server to the Domain
10. You will be prompted to restart the server
11. Click on the Restart Now
25. Setting up the Service Accounts
To be performed on Domain Controller
26. Setting up the Service Accounts
1. Now that you have joined the Server to the Domain. It is time to create the Service Account
using which we will complete the rest of the Installation.
2. You will be needing a minimum of 3 Service Accounts.
• SPFarm – Which will be used to manage Sharepoint Farm
• DBAdmin – Which will be used to install and Manage the Database Server
• SPAdmin – Which will be used to manage the services on the Sharepoint Farm. Can also
be used for testing the Site Collections
• All of the accounts needs to be added in the Domain Administrator Group
27. Setting up the Service Accounts
1. Login to Domain Control using the Domain Admin
2. Access the Service Manager and open the Active Directory Users and Computers
28. Setting up the Service Accounts
3. You will now see the ADUC screen. [Active Directory Users and Computers]
4. Create a Organization Unit to keep the Service Accounts belonging to the Sharepoint
separately.
29. Setting up the Service Accounts
5. Right click on the Domain Name
6. Click on New > Select Organizational Unit
7. Name it SP Users
8. You will now see a new Folder [OU]
named “ SP Users “. Click on it.
Yourcompany.com
Yourcompany.com
30. Setting up the Service Accounts
1. Right Click on the OU named SP Users
2. Select New > User
3. You will get the New Object – User dialog
box. Enter the details for the Service
Account to be created.
4. For example: If you are creating the SP
Farm Account, then enter the details as
below:
• First Name: SP Farm
• Last Name: Leave it Blank
• User Logon Name: SPFarm
• Account : SPFarm
[ Look at the screenshot in the next slide ]
Yourcompany.com
31. Setting up the Service Accounts
5. Click on Next and entering the required
information
6. Type the password.
7. Uncheck the option: “User must change
password at next Logon”
8. Check the box for : “User Cannot change
password “ and “Password Never Expires”
9. Click Next and then Click Finish
10. Repeat the steps 1 – 9 to create the other 2
service accounts.
Yourcompany.com
Yourcompany.com
Yourcompany.com
32. Setting up the Service Accounts
1. Now that we created the required Service
Accounts, we need to elevate the
permissions of these accounts to Domain
Administrator account.
2. For this we need to add the 3 accounts to
Domain Administrators Group
3. Click on the Users Folder in ADUC, and
select Domain Administrators group
4. Double Click on this Group to open the
properties on the Domain Admins Group.
Yourcompany.com
33. Setting up the Service Accounts
5. Click on the Members Tab and click the Add button.
6. Type the accounts that we created in the box that
reads: “Enter the object names to select”.
7. Click on the Check Names and click OK
8. This will complete the process of
setting up the Service Accounts.
Yourcompany.com
Yourcompany.comusers