Quick Start Guide for Virtual Environments

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

This is a Quick Start guide for Lab Management. The guide helps you get up and running quickly by describing how to create and use virtual environments using Microsoft Test and Lab Manager. The following procedures describe the key steps for this Quick Start guide:

  1. Connect to your team project

  2. Import virtual machine templates

  3. Create a new environment in the library

  4. Deploy the environment

  5. Start the environment

  6. Connect and interact with the virtual machines in environment

  7. Take a snapshot

Before you start these procedures, make sure that the system administrator has completed the configuration steps in Configuring and Admininstering Lab Management. Also, make sure that the system administrator has created one or more golden virtual machine templates in the Virtual Machine Manager library.

First, you must connect to the appropriate team project. Select the team project that is used to develop the application under test and store your requirements or user stories.

Note Note

Only team projects that you have permission to access will be displayed. For more information, see Team Foundation Server Permissions.

Connect to Your Team Project

To connect to your team project

  1. Click Start, click All Programs, click Microsoft Visual Studio 2010, and then click Microsoft Test and Lab Manager.

  2. To add a new Team Foundation Server 2010 for the first time, type the name of the server, and then click Add.

  3. Click the arrow to view the list of team projects in the project collection, select your team project in the list, and then click Connect Now.

  4. Select Lab Center from the choice of centers to open.

  5. Click Continue to connect to the lab center of the selected team project.

To import a virtual machine template

  1. In Lab Center, click Library, Virtual Machines and Templates, and then Import.

  2. On the Name and machine wizard page:

    1. Click Browse to display a list of the virtual machines and templates that are available from Virtual Machine Manager.

    2. From the list of virtual machines and templates, click the one that you want to import, and then click Add.

    3. Select the role of the virtual machine template, and click Next.

  3. On the Machine properties wizard page, follow these steps:

    1. Click the OS profile tab, and then click Identity information.

    2. Under Full name, type your name and, under Organization name, type the name of your company.

    3. Click Administrator password, and type the password that will be used for administrator account when this template is deployed. Reconfirm the password.

    4. Click Product key and type a product key that matches the version of the operating system in the virtual machine template.

    5. Click Operating system, and then confirm that the operating system displayed in the drop-down list matches the version of operating system in the virtual machine template.

    6. Click Domain/Workgroup and then select either Workgroup or Domain. If you choose Domain, type in the credentials of a user who has permissions to join the virtual machine to the specified domain.

    7. Click Finish to import the template.

  4. Repeat these steps to import additional templates.

To create a new environment in the library

  1. In Lab Center, click Library, Environments, and then click New.

  2. On the Name and location wizard page, type a name and description for the environment.

    1. Under Select the location, make sure that the library into which this environment should be stored is correct.

  3. On the Machines wizard page, follow these steps:

    1. Click the virtual machine template that you imported earlier and then click Add to environment.

      This adds a copy of that template to the environment being created.

    2. Right-click the virtual machine and click Rename. Type a more appropriate name for the copied virtual machine.

    3. Assign the role of the virtual machine in the environment.

    4. Repeat these steps to add more virtual machines into the environment.

  4. On the Capabilities wizard page, follow these steps:

    1. Select Run tests on this environment. Make sure that the correct test controller is selected. For this option to be enabled, your system administrator must have installed a test controller and configured it for your team project collection.

    2. Select Run workflows on this environment. Make sure that the correct build controller is selected. For this option to be enabled, your system administrator must have installed a build controller and configured it for your team project collection.

  5. On the Summary wizard page, review all the selected options, and then click Finish.

    This starts the process of creating the environment in library. The creation process takes a few minutes.

  6. After the creation is complete, notice that the environment is in the Stored state in the library.

To deploy the environment

  1. Click the environment that was stored into library in the previous step, and then click Deploy.

  2. In the Deploy environment dialog box, in Environment name, type a name of the environment to be deployed. Make sure that the correct host group is selected, and then click Deploy environment.

  3. This begins the process of deploying a copy of the environment onto the selected host group. The creation process can take up to 30 minutes or more depending on the topology of your lab. You can see the progress of the creation in Test and Lab Manager.

  4. After the creation is finished, you will notice the environment is in the Stopped state.

To start the environment

  1. Click the environment that you just deployed, and then click Start.

  2. When the environment is fully started, you will notice that the status of the environment is Running. In addition, the status of the two capabilities, which are Run tests on environment and Run workflows on this environment, become "Ready" when they have been configured on the environment. This might take up to 10 minutes, depending on how long the virtual machines in the environment take to start.

To connect to the VMs in the environment

  1. Click the environment that you just started, and then click Connect. This opens Microsoft Environment Viewer.

  2. Click Ctrl+Alt+Del and type the administrator credentials that you used when importing the template. Alternatively, use the credentials of a domain user if the virtual machine is joined to a domain.

  3. On the virtual machine, click Start to open the Windows Start menu and then interact with the virtual machine.

  4. Repeat steps 1-3 to interact with other virtual machines in the environment.

To take a snapshot

  1. In Microsoft Environment Viewer, click Take snapshot.

  2. When you are prompted, type a name for the snapshot, and then click Take snapshot.

  3. This takes a snapshot of all the virtual machines in the environment. You can revert to this state by selecting the snapshot under Snapshots tab in Microsoft Environment Viewer.

Show: