Install and configure Lab Center 2010

Updated on April 17, 2012

You can see the full video series (93 videos) of install and configure TFS 2010 in enterprise, see the guide on the Codeplex

End of update April 17, 2012 update 

Prepare your environment as the following:

  • Lab Management with TFS architecture


Lab Management and TFS architecture

  • Install TFS, Build Server and Test Controller


TFS without Lab Management

  • Install Hyper-V on a physical machine
  • Install SCVMM on the Hyper-V machine or any other machine
  • Install Admin console on the SCVMM  machine to configure the library and add the host machine(s) (Hyper-V) to the SCVMM
  • Install Admin console on the TFS machine
  • Configure Lab Management on the TFS machine from The TFS Administration console


TFS with Lab Management

  • Create virtual machines on the Hyper-V and prepare them as you need of OS or application (one Windows 2008 R2, one Windows 7, one Windows Vista, etc..)
  • Join all created virtual machines to the domain
  • Install Lab Agent, Test Agent, Build Agent on every virtual machine (as needed) for example if you will not run automated test on the virtual machine you will not need test agent
  • Run those machines on the Hyper-V so you can create the template from them ( you don’t need it)
  • Create templates using the existing configured virtual machine that running on the Hyper-V or if you didn’t run them in the Hyper-V, you can create them from virtual hard disk VHD and then put those templates on the library
  • Import the templates in the Lab Management from the library
  • Create any number of environments using imported virtual machines (templates)
  • Deploy the created environment to Hyper-V (it happen automatically as you create your environment)
  • You can store the environment on the library or not
  • Start using your environment in your manual or automated test


  • I decide to install the build controller on the TFS and create a separate machine as a build server which has the build agent, I will create also a separate machine as a test controller because the recommended is to not install test controller on the TFS machine and the recommended also not install the build agent on the TFS machine
  • Hyper-V will be the host for all virtual machines in my infrastructure included TFS, Build Server, Test Control mahcines, it will include also the library of the templates or actual virtual machines or environment or the running environment, remember the library can has template machines or virtual environment in another word you can create the template from virtual machine and store it in the library and you can also create virtual environment and store it in the library on the SCVMM
  • When you install the build agent on the virtual machine at the last step choose option 3 (Manual configure or use with Lab Management) and when you click configure from the Lab Center, it will configure it automatically
  • After you create the virtual machine that you will use to create your templates, if there is any error happen setup the build agent try to add the account needed in the administrators group of the virtual machine itself
  • When I configure Lab Management from TFS Admin Console at the project collection configuration, at service account settings, I choose TFSLAB which is a domain account with restricted permission, this account will be used when I configure the Test Agent on the virtual machine that has the Test Agent, and also will be used by the Lab Management to configure the Build Agent
  • After you install Test Agent you configure it to run as service or interactive process (Coded UI test)
  • You install the Test Agent if you want to run automated test on the machine and you may configure as (Service if this a server machine web server for example or configure as  Interactive process if it’s client machine windows 7 for example) so if you log in in interactive case you must log-in using TFSLAB or the account that used in configure Test agent and Lab Management configuration on TFS Admin console
  • Test Agent configured manually on the virtual machine–> start–> Test Agent configuration
  • Build Agent configured automatically by the Lab Management on the virtual machine–> when connecting to the machine using Lab center click configure button
  • When I configure Test Agent, with TFSLABaccount I have an error “Test agent is not configured to run interactively under this account. Run the Test Agent Configuration Tool to change the interactive user account.”  This error could happen from many reason my reason was that I write the domain when configure the Test Agent like (mydomain.comTFSLAB) but it should be (MydomainTFSLAB), there are another resoan if you comfigue the Test Agent using local account, for more info see the following link Troubleshooting errors in lab management



Share This: