Sdílet prostřednictvím


How to: Import a Virtual Machine or a Template from SCVMM

Virtual machines and templates are the basic building blocks for creating environments in Microsoft Test Manager. However, before you can create an environment in Microsoft Test Manager, you must import the initial virtual machines and templates from the System Center Virtual Machine Manager (SCVMM) library into your team project. For more information about how to create the initial virtual machines and templates in SCVMM, see How to: Create and Store Virtual Machines and Templates Ready for Lab Management.

When you import a virtual machine or a template from SCVMM, Microsoft Test Manager does not create a new copy. Instead, Microsoft Test Manager creates a reference to the original virtual machine or template stored in SCVMM.

Importing a Virtual Machine or Template

The following illustration shows the major steps for importing a virtual machine or a template.

Steps to import a VM or template from SCVMM

To import a virtual machine or a template into the team project

  1. Open Microsoft Test Manager.

    To display the Microsoft Test Manager window, click Start, and then click All Programs. Point to Microsoft Visual Studio 2010 and then click Microsoft Test Manager.

  2. Click Lab Center, click Library, and then click Virtual Machines and Templates.

  3. Click Import.

  4. Follow the steps in the wizard and enter the required information on the Name and machine and Machine properties pages. For more information about individual properties, see How to: Set the Properties of a Virtual Machine or Template

    Poznámka

    When you import a template from SCVMM, the secured administrator password and product key in the template are removed. You must re-enter this information. If the operating system is Windows 7, Windows Server 2008 and later, or Windows Vista, leave the password field blank. If the operating system is Windows XP or Windows Server 2003, type an asterisk (*) to indicate a blank password.

  5. On the Summary wizard page, review the information. Click Finish to import the virtual machine or the template.

If you make any changes to the original virtual machine or a template in SCVMM after importing it, the changes are not automatically propagated to the imported virtual machine or template. You have to manually open and change the imported virtual machine or the template by using Microsoft Test Manager.

An alternative way to add virtual machines and templates into a team project is by saving the virtual machines within an existing environment. For more information, see How to: Create a Virtual Machine or Template from an Environment.

Deleting a Virtual Machine or Template

If you delete an imported virtual machine or a template in Microsoft Test Manager, the underlying virtual machine or the template is not deleted in SCVMM. If you delete a stored virtual machine or template that was created from a virtual machine in a deployed environment, the stored virtual machine or template is deleted.

To delete a virtual machine or a template in Microsoft Test Manager

  1. Open Lab Center.

  2. Click the Library tab, Virtual Machines and Templates, and then click the virtual machine or the template to be deleted.

  3. Click the X (Delete) button.

See Also

Other Resources

Troubleshooting Virtual Environments