We get a lot of questions around the support matrix for Lab Management in TFS 2010 – does it only work for Hyper-V virtual machines or with physical machines too? Can I use it with my non-Hyper-V VMs?

I will first talk about the types of environments and the support for various capabilities of Lab Management, and finally summarize this with a table.

Types of environments:

Visual Studio 2010 supports 2 types of environments – virtual and physical, which you can create using the Microsoft Test Manager.

  • A virtual environments is a collection of virtual machines (with network and other settings) running on Hyper-V hosts, managed by System Center Virtual Machine Manager.
  • A physical environment is a collection of physical machines, on which you have installed the test agent. If you have virtual machines running on a non-Hyper-V platform, you can model them as physical machines in the system. This way, you will be able to get all the capabilities available for physical environments for the non-Hyper-V environments, but not the capabilities exclusively available for virtual environments. (refer the last section in the table below).

That said; let us look at each of the scenarios/capabilities a little more closely.

1. Testing

Using Microsoft Test Manager, you can run tests on both virtual as well as physical environments. The capabilities are exactly the same here and this means that you can run automated and manual tests, and do rich diagnostic data collection from all sorts of environments – Hyper-V, non Hyper-V, and physical.

2. Build deployment

You can easily automate the build-deployment-testing workflow on Hyper-V virtual environments using the template shipped in TFS 2010 (labdefaulttemplate.xaml).

For physical environments, such a template is not available out of the box. However, since this automation is based on Windows Workflow Foundation 4.0, you can customize the template (or create your own) using the activities in the toolbox, to automate build deployment and testing on physical machines. This means you can do the same for non-Hyper-V environments as well, however note that the virtual environment specific actions (restore to snapshot/start/stop environment) will not be available for physical and non-Hyper-V environments.

3. Environment creation and management

Creating virtual machines from a template, cloning environments using network isolation, VM operations such as Start/Stop/Snapshot/Pause are exclusively available for Hyper-V based virtual environments and not available for non-Hyper-V or physical environments.

 

Summary

To sum up and to answer the questions asked in the beginning, Visual Studio 2010 isn’t meant only to work with Hyper-V virtual environments. A lot of integration capabilities work for physical as well as for non-Hyper-V environments, as described in this post. Here is a table that summarizes these capabilities.

image

I hope this clarifies your doubts. In case you have further comments/questions, please leave a comment here or reach out to us using the msdn forum.