How to: Configure or Reconfigure Lab Management in Team Foundation Server Application Tier
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Before you can use Visual Studio Team Lab Management, you must configure Team Foundation to work with System Center Virtual Machine Manager 2008 R2, and you must specify the network to which the virtual machines in an environment will connect.
You can configure Lab Management by using either the Administration Console for Team Foundation or the TFSConfig lab /settings command-line tool. For more information about the Administration Console, see Open the Team Foundation Administration Console. For more information about the command-line tool, see Managing Server Configuration with TFSConfig.
Set up Lab Management in Team Foundation Server Application Tier(<TfsMachine>)
To install the VMM Administrator Console on <tfsMachine>
Log in to TfsMachine as domain\tfsadmin.
Install Virtual Machine Manager Administrator Console. You can just click Next in all but the following pages of the wizard.
Under Setup on the System Center Virtual Machine Manager 2008 startup wizard page, click VMM Administrator Console.
On the Summary of Settings wizard page, click Install.
On the Installation wizard page, click Close.
To configure Lab Management in Team Foundation Server
On TfsMachine, click Start, All programs, Microsoft Team Foundation Server 2010 Beta 2, and then click Team Foundation Administration Console.
In the Administration Console, in the Application Tier node, click Lab Management.
Click Configure Lab Management.
On the Virtual Machine Manager tab, in VMM Server Name, type the name of VmmMachine, the server that is running Virtual Machine Manager and that you will use to manage the virtual machines.
Click Test to determine whether Visual Studio Team Foundation Server can communicate with the VMM server.
If Team Foundation Server service account does not have the appropriate permissions on the specified VMM, a dialog box prompts you for your username and password.
Specify the credentials of an existing member of VMM Administrators Role. Using this username and password, the Team Foundation Server service account will be added to the VMM Administrator Role.
If Team Foundation Server cannot contact the VMM server, a red x and an error message will appear.
In Network Location, select PreferredNetworkLocation from the drop-down list.
If PreferredNetworkLocation does not appear in the list, then follow the steps in How to: Set Up and Configure Virtual Machine Manager to verify that PreferredNetworkLocation has been determined and made known to VMM.
On the Network Isolation tab, you can use network isolation in Visual Studio Team Lab Management to enable multiple copies of a lab environment to run at the same time without causing network conflicts, such as conflicts in computer names and Domain Name System (DNS) registration.
In IP Block, type the range of Internet Protocol (IP) addresses to be assigned to the virtual machines in an environment when an isolated network is created.
The addresses that you specify are used only for internal routing among virtual machines and are not exposed beyond the boundaries of an environment. Therefore, you can specify any address range that is not used within your public network. In most cases, you can use the default range of 192.168.23.0/24.
In DNS Suffix, type the suffix of the domain name to be assigned to the environment when an isolated network is created.
Each virtual machine in a network-isolated environment is registered with a unique external name and DNS suffix that you specify.
Click Test to determine whether Visual Studio Team Foundation Server can use the suffix.
If the suffix is valid, a green check mark appears. Click OK.
If the suffix is not valid, a red x and an error message appear. You must fix the error before you can continue.
See Also
Tasks
How to: Configure or Reconfigure Library Shares for Team Project Collections
How to: Configure or Reconfigure Host Groups for Team Project Collections
Concepts
Configuring Your Server Using the Team Foundation Administration Console