10987C Setupguide
10987C Setupguide
Contents
Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectual property rights
covering subject matter in this document. Except as expressly provided in any written license agreement from
Microsoft, the furnishing of this document does not give you any license to these patents, trademarks,
copyrights, or other intellectual property.
The names of manufacturers, products, or URLs are provided for informational purposes only and Microsoft
makes no representations and warranties, either expressed, implied, or statutory, regarding these manufacturers
or the use of the products with any Microsoft technologies. The inclusion of a manufacturer or product does not
imply endorsement of Microsoft of the manufacturer or product. Links may be provided to third party sites.
Such sites are not under the control of Microsoft and Microsoft is not responsible for the contents of any linked
site or any link contained in a linked site, or any changes or updates to such sites. Microsoft is not responsible
for webcasting or any other form of transmission received from any linked site. Microsoft is providing these links
to you only as a convenience, and the inclusion of any link does not imply endorsement of Microsoft of the site
or the products contained therein.
© 2017 Microsoft Corporation. All rights reserved.
Microsoft and the trademarks listed at
https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/en-us.aspx are trademarks of the
Microsoft group of companies. All other trademarks are property of their respective owners
Template v1.17.2
Version 1.2
10987C: Performance Tuning and Optimizing SQL databases 1
Note: Some labs may not be available on the Microsoft Labs Online platform
due to specific requirements in the lab steps, such as labs which have a “boot
to vhd” or "native boot" requirement. Therefore, you should evaluate the labs in
your course before deciding whether to use local labs or Microsoft Labs Online
labs.
2 10987C: Performance Tuning and Optimizing SQL databases
Digital Courseware
If you are using digital courseware via the Skillpipe reader from Arvato, if the
course contains a “boot to vhd” or “native boot” scenario in some or all of the
labs, students will not be able to view the online courseware content and lab
steps in the Skillpipe reader while their host machine is offline. In this particular
scenario, there are available options:
1. Have two network interface cards (NICs) in the host machines.
2. Print out Lab steps for the particular module.
3. Ask student who have their own devices to bring them to the class.
4. Configure two virtual machines prior to the class to allow access to the
content offline.
Depending on your particular situation, consider implementing one of the above
options. Further details and considerations for these workarounds and options
are available on the Born To Learn website at https://borntolearn.mslearn.net/,
and have also been sent out via partner and MCT newsletters.
Note: You should request the Microsoft Learning Azure passes at least two
weeks prior to the class to allow sufficient time for their arrival.
Details of how to acquire Microsoft Learning Azure passes for your class, along
with pass functionality are available at http://aka.ms/mocazurepass.
Students should activate their Microsoft Learning Azure Passes prior to the start
of class by going to http://www.microsoftazurepass.com/learning and following
the outlined steps.
While using publicly available trial subscriptions or other types of passes is
possible with the course labs, the labs have not been tested with every available
pass type, so variations in functionality, while unlikely, are possible due to
10987C: Performance Tuning and Optimizing SQL databases 3
potential Azure subscription limitations. The scripts used in the labs will also
delete any existing services or components present in Microsoft Azure under the
subscription that you use. As such, using the Microsoft Learning Azure Pass will
provide a level of standardization and help prevent any inadvertent removal or
interference with existing Microsoft Azure infrastructure.
You can configure virtual machines to communicate with the host computer,
other virtual machines on the same host computer, other host computers, virtual
machines on other host computers, other physical computers on the network, or
any combination thereof.
The setup instructions that you will follow as part of this classroom setup guide
configure Hyper-V and the Virtual Machines that run on the host. Changing any
of the configuration settings may render the labs for this learning product
unusable.
Setup Overview
The host computers must be set up with Windows Server 2016 and must be
running on 64-bit hardware. For more information on the supported hardware for
Hyper-V, please see the follow web site: http://www.microsoft.com/hyper-v.
For the purposes of this learning product, it is not necessary for the host
computers to be able to communicate with another network. However, allowing
them to communicate with each other is recommended to make setup easier.
The setup procedures below assume that the host computers can communicate
with each other for setup purposes. You should note the administrator’s user
name and password for the host computers and provide this information to the
instructor.
Classroom Requirements
This learning product requires a classroom with a minimum of one computer for
the instructor and one for each student. Before class begins, use the following
information and instructions to install and configure all computers.
Hardware
The classroom computers require the following hardware and software
configuration.
Hardware Level 8
Processor*: 2.8 GHz 64-bit processor (multi-core) or better
**AMD:
AMD Virtualization (AMD-V)
Second Level Address Translation (SLAT) - nested page tables
(NPT)
Hardware-enforced Data Execution Prevention (DEP) must be
available and enabled (NX Bit)
Supports TPM 2.0 or greater
**Intel:
Intel Virtualization Technology (Intel VT)
Supports Second Level Address Translation (SLAT) – Extended
Page Table (EPT)
Hardware-enforced Data Execution Prevention (DEP) must be
available and enabled (XD bit)
Supports TPM 2.0 or greater
6 10987C: Performance Tuning and Optimizing SQL databases
**Important: To support courses that use Nested Virtualization, you must use
the Intel specs above. AMD processors do not currently support Hyper-V
Nested Virtualization.
Software
Please note that, unless otherwise indicated, this software is not included in the
Trainer Materials disc. This learning product was developed and tested on
supported Microsoft software, which is required for the classroom computers.
Also required, but not included in the Training Materials: Microsoft Office
PowerPoint® 2007 (instructor computer only).
Classroom Configuration
Each classroom computer will serve as the host for the following virtual machines
that will run in Hyper-V. Domain or workgroup membership does not matter. The
network configuration of the host computers should provide access to the
Internet. After completion of the setup, all computers will be configured to run
the virtual machines named:
• MT17B-WS2016-NAT
• 10987C-MIA-DC
• 10987C-MIA-SQL
As stated earlier, you must activate the Windows 10 client virtual machines for
each of the steps outlined below. However, you do not need to activate the
Windows Server 2016 virtual machines, but you will, at a minimum, need to
apply a grace period by running slmgr -rearm at the administrative command
prompt and then restarting. This gives a ten-day grace period before the virtual
machine returns to the notification mode and subsequent hourly shutdowns.
You can view the number of rearms available in the virtual machines by running
the command slmgr -dlv. If an extended period is required, it is also possible
to activate the server virtual machines for 180 days.
You do not require a product key to activate the server virtual machines
because they are pre-keyed and can be activated automatically by placing them
online or activating them over the phone. Once that initial 180-day activation
period has expired, you can obtain a second 180-day activation period by
running slmgr -rearm, restarting, and then activating the virtual machine as
outlined earlier.
You can obtain additional context and details on activation states from the
Born To Learn website at: http://aka.ms/moclabkey
In addition, when the virtual machine is started for the first time you might be
prompted to restart the computer. This is because of the hardware differences
on the host computer. You can restart, or you can click Restart Later to close
the message.
10987C: Performance Tuning and Optimizing SQL databases 9
1.
1. In the Server Manager console, on the Manage menu, click Add Roles and
Features.
2. On the Before you begin page of the Add Roles and Features Wizard, click
Next.
3. On the Select installation type page, select Role-based or feature-based
installation, and then click Next.
4. On the Select destination server page, ensure that the local computer is
selected, and then click Next.
5. On the Select Server Roles page, select Hyper-V.
6. In the Add Roles and Features Wizard dialog box, click Add Features.
7. On the Select Server Roles page of the Add Roles and Features Wizard, click
Next.
8. On the Select features page, click Next.
9. On the Hyper-V page, click Next.
10. On the Create Virtual Switches page, verify that no selections have been
made, and then click Next.
11. On the Virtual Machine Migration page, click Next.
12. On the Default Stores page, review the location of Default Stores, and then
click Next.
13. On the Confirm Installation Selections page, select Restart the destination
server automatically if required.
14. In the Add Roles and Features Wizard dialog box, review the message
about automatic restarts, and then click Yes.
15. On the Confirm Installation Selections page, click Install.
16. Ensure that you restart the machine.
17. After the final restart, log on using administrator credentials.
10 10987C: Performance Tuning and Optimizing SQL databases
MT17-SQL-MIA-SQL.part0001.exe
To Extract the Virtual Machines: (if required for disk space, you can extract the
course specific files to a different drive as long as the Base images and the
Middle-Tiers are located in the default path)
1. From the courseware source files location, double-click 10987C-MIA-
DC.part001.exe.
2. In the Official Microsoft Learning Product License Terms window, click
Accept to indicate that you accept the terms in the license agreement.
3. In the WinRAR self-extracting archive window, in the Destination folder text
box, ensure that C:\Program Files\Microsoft Learning\10987\Drives is
listed, and then click Extract.
4. Repeat steps 1 through 3 for the following virtual machines:
10987C-MIA-SQL.part001.exe
Note: After completing the extraction of all of the classroom files, you should have
the following files installed.
File In folder
Base17C-WS16-1607.vhd C:\Program Files\Microsoft Learning\Base
MT17-SQL-MIA-DC.vhd C:\Program Files\Microsoft Learning\Base\Drives
MT17-SQL-MIA-SQL.vhd C:\Program Files\Microsoft Learning\Base\Drives
C:\Program Files\Microsoft
10987C-MIA-DC.vhd Learning\10987\Drives\10987C-MIA-DC\Virtual Hard
Disks
C:\Program Files\Microsoft
VM-Pre-Import-10987C-MIA-DC.bat
Learning\10987\Drives\10987C-MIA-DC
C:\Program Files\Microsoft
<GUID>.vmcx Learning\10987\Drives\10987C-MIA-DC\Virtual
Machines
C:\Program Files\Microsoft
<GUID>.VMRS Learning\10987\Drives\10987C-MIA-DC\Virtual
Machines
C:\Program Files\Microsoft
10987C-MIA-SQL.vhd Learning\10987\Drives\10987C-MIA-SQL\Virtual
Hard Disks
C:\Program Files\Microsoft
VM-Pre-Import-10987C-MIA-SQL.bat
Learning\10987\Drives\10987C-MIA-SQL
C:\Program Files\Microsoft
<GUID>.vmcx Learning\10987\Drives\10987C-MIA-SQL\Virtual
Machines
12 10987C: Performance Tuning and Optimizing SQL databases
File In folder
C:\Program Files\Microsoft
<GUID>.VMRS Learning\10987\Drives\10987C-MIA-SQL\Virtual
Machines
1. From the student computer, copy all of the files from the Base_Drives share
on the instructor computer to C:\Program Files\Microsoft Learning\Base.
2. Copy all of the files from the 10987_Drives share on the instructor computer
to C:\Program Files\Microsoft Learning\10987\Drives.
3. Ensure that you have copied the files using a permission retaining software
such as RoboCopy or XCopy.
4. Check that all permissions have been retained, by looking at the directories
above and making sure they are not Read-Only.
5. Add the virtual machines to the Hyper-V management console. For detailed
instructions see the instructor computer setup.
10987C: Performance Tuning and Optimizing SQL databases 13
slmgr -rearm
9. Shut down the MIA-SQL virtual machine.
10. In the MIA-DC virtual machine, open an administrative command prompt, run
the following command, and then click OK on the resulting message box:
slmgr -rearm
11. Shut down the MIA-DC virtual machine.
10987C: Performance Tuning and Optimizing SQL databases 15
12. In Hyper-V Manager, under Virtual Machines. perform the following steps
for each virtual machine:
a. Right-click the virtual machine and click Checkpoint.
b. Wait for the snapshot process to finish.
c. In the Checkpoints pane, right-click the snapshot name, click Rename.
d. Type StartingImage, and then press Enter.
Note: You must download the installation file for Adobe Flash from
http://www.adobe.com and copy this file to the instructor computer.
Visit the Adobe Web site at http://www.adobe.com to download and install the
latest version.
Note: You must download the installation file for Adobe Acrobat Reader from
http://www.adobe.com and copy this file to the instructor computer.
Visit the Adobe Web site at http://www.adobe.com to download and install the
latest version.
16 10987C: Performance Tuning and Optimizing SQL databases
Note: If Hyper-V is already installed and configured, you can skip this
procedure.
For detailed instructions see the instructor computer setup, tasks 1-3.
Note: Ensure that all extracted courseware virtual machine files were copied
from the Instructor computer during the Instructor Computer setup.
If your physical keyboard doesn’t match the above layout, you may need to refer
to the above layout for the character positions used to logon. For future logons
and usage throughout the labs, you may want to install your keyboard layout in
the virtual machine.
6. At the command prompt, type slmgr /ato, and then press Enter.
Note: In order for you to activate the virtual machine successfully, the virtual
machine must have Internet connectivity.
NOTE: The Windows 10 client virtual machines will need Internet access to
allow activation. This can be provided directly or through the MT17B-WS2016-
NAT virtual machine. The virtual machine and associated Setup guide is
available from the MCT Download Center. High-level details are included
below.