Share via


Upgrading SCVMM 2008 R2 to SCVMM 2012

Lab Management for Visual Studio Team Foundation Server 2012 supports SCVMM 2008 RS and SCVMM 2012. If you are upgrading Team Foundation Server 2010 to Visual Studio Team Foundation Server 2012, and plan to upgrade SCVMM 2008 R2 to SCVMM 2012, we recommend that you upgrade to SCVMM 2012 after you complete your upgrade to Visual Studio Team Foundation Server 2012. This topic describes how to upgrade SCVMM 2008 R2 to SCVMM 2012 or when you are using Lab Management on Visual Studio Team Foundation Server 2012.

Important

When you upgrade SCVMM, certain steps will cause some downtime for your Team Foundation Server. Those steps are indicated below.

Upgrading to SCVMM 2012

  1. Use the SCVMM 2012 installer to upgrade SCVMM 2008 R2 Server to SCVMM 2012 Server.

    Note

    To perform an offline upgrade, set up your new SCVMM 2012 or 2012 SP1 server. Then populate the data base with the old SCVMM data.

  2. Upgrade the SCVMM agents on your hosts and library shares.

  3. Use the SCVMM Administration Console to verify that all of your SCVMM components are working.

  4. Install SCVMM 2012 Administration Console on all machines of the application tier of your Team Foundation Server.

  5. Warning

    This step will disrupt the services on your Team Foundation Server.

    Use the iisreset command to restart the Team Foundation Server web service. Then restart the Team Foundation Server job agent.

  6. Note

    When you use the upgradeSCVMM command, Team Foundation Server will create a new template object on your SCVMM server for every team project that uses that template. This ensures that your templates are upgraded to be compatible with SCVMM 2012 without losing any data. However, when the new templates are created, the team project name is appended to the template name. If the new template name is greater than 64 characters, this will cause an SCVMM failure. To resolve this error, you must give those templates a shorter name.

    If the SCVMM server name has been changed, use TFSConfig lab /settings /scvmmServerName:<new server name> /force to change to use the new server name.

    Open an elevated command prompt on your Team Foundation Server and enter the following command: C:\Program Files\Visual Studio Team Foundation Server 2011\bin\tools> tfsconfig lab /upgradeSCVMM /collectionName:*. This command will upgrade the data and templates in each project collection database so it is compatible with SCVMM 2012. If you encounter any errors or warnings when you run this command, see the next section to resolve those errors. If you do not encounter any errors or warnings, your upgrade is complete and you can begin using SCVMM environments with Lab Management.

Resolving errors and warnings when using the upgradeSCVMM command

After you use the upgradeSCVMM command, you must resolve any errors or warnings you receive then rerun the command before you can start using Lab Management. The upgradeSCVMM command generates a log file that contains information about any errors and warnings that you encounter. The location of the log file is displayed when you run the upgradeSCVMM command.

SCVMM failure: If you receive an error that is related to an SCVMM failure, use your SCVMM job history to get additional information about the error. After you resolve the error in SCVMM, rerun the upgradeSCVMM command.

See Also

Other Resources

Upgrading Lab Management Components from Visual Studio 2010