次の方法で共有


Install and configure SCVMM for TFS Lab Management

 

The following are the required components for setting up lab management with TFS.

· Hyper-V hosts
· SCVMM
· Team Foundation Server
· Test Controller

This blog will explain about the installation and configuration of SCVMM, and adding Hyper-V host machines, to be used with lab management. The configurations required from TFS side is explained in this blog

Note: All the machines that are used for Lab Management must be joined either to the same domain or domains that have two-way trust between them.


Compatibility between TFS, SCVMM and Hyper-V

· Below is the compatibility matrix for TFS and SCVMM versions.

clip_image002

· Below is the compatibility matrix for SCVMM and Hyper-V versions.

clip_image004

Product versions used throughout this blog:

TFS: 2013 Update 3
SCVMM: 2012 R2
Windows Server 2012 R2 (Hyper-V: 2012 R2)

Enable Hyper-V role on each of the host machines

· Log on to the machine as an administrator.
· Open up Server Manager on the machine, and choose Add Roles and Features to the local server.

clip_image006

· Click Next on the following screens. On the Server Roles selection page, choose Hyper-V and click Add Features.

clip_image008

· Select a network adapter in the Virtual Switches tab and click Next. Choose appropriate settings on the Migration Machine Migration and Default Stores page.

clip_image010

· Restart of the destination sever might be required. Select the check box and click Install.
· The hyper-v setup can be verified by creating a virtual machine.

Install and configure SCVMM 2012 R2

Prerequisites:

· Windows Assessment and Deployment Kit for Windows 8.1 is a pre-requisite for installing SCVMM 2012 R2. Download it from: https://www.microsoft.com/en-us/download/details.aspx?id=39982
· Run the setup and accept the license agreement to proceed.

clip_image012

· In the feature selection page, select Deployment Tools” and “Windows Pre installation Environment and click on Install.

clip_image014

· After the installation completes, Run the SCVMM 2012 R2 setup and choose to install the VMM management server.

clip_image016

· Accept the license agreement and click Next to specify the install location.

clip_image018[4]

clip_image020[4]

· The pre-requisites check will be run and you need to resolve any errors, before proceeding. On the database configuration page, enter the name of the SQL server and specify the instance name. Leave the port number blank and specify an account if the logged on account doesn’t have create database permissions on the SQL server.

clip_image022[4]

· Specify the service account for SCVMM.

clip_image024[4]

· Accept the default values for port configuration.

clip_image026[4]

· Specify a path for the library share accept the default value and click on Next.

clip_image028[4]

· Verify the installation summary and click on Install. Wait for the installation to complete.

clip_image030[4]

Create a new Host group and add a hyper-v host to SCVMM

· In the SCVMM admin console, choose fabric. Select All Hosts, and then choose Create Host Group under the folder list, and provide a name for the new host group.

clip_image032[4]

· Right click on the new host group and choose Add Hyper-V Hosts and Clusters.

clip_image034[4]

· Choose the first option on the Resource Location page, specify host machines in your trusted AD domain.

clip_image036[4]

· Provide the credentials of an account that has administrator access on the hyper-v hosts.

clip_image037[4]

· Specify the hyper-v host machine names and click on Next.

clip_image039[4]

· Once the host names are verified, select all the hosts that are listed on the Target Resources page and click on Next.

clip_image041[4]

· In the Host Settings page, select the newly created host group from the drop down list.

clip_image043[4]

· Click on Finish, this will trigger an SCVMM job to add the selected hosts to the new host group.

clip_image045[4]

· Setup a new SCVMM 2012 R2 server.

· Creating VMs and VM templates:
https://technet.microsoft.com/en-us/library/hh427282.aspx
https://technet.microsoft.com/en-us/library/jj860424.aspx

· Adding host groups and library shares in SCVMM:
https://technet.microsoft.com/en-in/library/gg610579.aspx
https://technet.microsoft.com/en-us/library/gg610689.aspx
https://technet.microsoft.com/en-in/library/gg610598.aspx

· More information on version compatibility for SCVMM and Lab Management:
https://msdn.microsoft.com/en-IN/library/dd380687.aspx

 

Content created by – Sreeraj Rajendran
Content reviewed by – Romit Gulati