Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

TF260095:TFS could not find virtual machine or template from SCVMM.


Symptoms

Consider the following scenario:


You try to create new environment using Microsoft Test Manager and gets an error TF260095: Team Foundation Server could not find virtual machine or template from SCVMM. It might have been deleted. Try again or contact your administrator. (type VMDeployerObjectNotFoundException)

Same error you get while using other templates or even with new template.

Complete error message:


Exception Message: TF260095: Team Foundation Server could not find virtual machine or template from SCVMM. It might have been deleted. Try again or contact your administrator. (type VMDeployerObjectNotFoundException)

Exception Stack Trace:    at Microsoft.TeamFoundation.Lab.Controller.Common.VMManager.GetTemplateObject(Guid templateId)

   at Microsoft.TeamFoundation.Lab.Controller.Common.VMManager.GetVMBaseObject(Guid id)

   at Microsoft.TeamFoundation.Lab.Execution.LabEnvironmentOperation.DisassociateLSFromSource(Object lo)

Inner Exception Details:

Exception Message: 801: VMM cannot find Template object .

 (type LabCmdletFailureException)


Exception Stack Trace:    at Microsoft.TeamFoundation.Lab.Controller.VirtualMachineManagerInterface.LabMonadUtilities.CheckAndFireOnErrors(ErrorInfo cmdletError)

   at Microsoft.TeamFoundation.Lab.Controller.VirtualMachineManagerInterface.VmmUtilities.FindTemplateById(VMMConnection activeConnection, Guid id)

   at Microsoft.TeamFoundation.Lab.Controller.Common.VMManager.GetTemplateObject(Guid templateId)

 }

↑ Back to the top


Cause

This error could happen if you have invalid path set in Placement for your host in SCVMM Server. Or if you have a drive set there without the trailing in form of “<drive>:”  (Example if you have ‘d:’ set there). As the code look for placement path as “<drive>:\”   ( ‘d:\’ in our case).

↑ Back to the top


Resolution

1.       Open SCVMM Admin Console.

2.       Select Hosts

3.       Expand All Host and check Properties of your host machine listed below it

4.       In Property windows select Placement

5.       Under Placement make sure we have a valid path and if path has “<drive>:”   change it to “<drive>:\”  

6.       We need to check same for all the host.

↑ Back to the top


Keywords: kb

↑ Back to the top

Article Info
Article ID : 2834699
Revision : 1
Created on : 1/7/2017
Published on : 5/4/2013
Exists online : False
Views : 208