Unable to connect to SCVMM server on create Snapshot from Lab Center

Locked Unable to connect to SCVMM server on create Snapshot from Lab Center

  • 2011年2月1日 下午 09:02
     
     

    We recently added a second SCVMM host so that we could have additional VMs.  Prior to that everything worked well.  Now we are unable to create new snapshots from within Lab Center.  The error is:

     Environment message: Type=Error; Message=TF259098: Team Foundation Server could not perform the following operation because of errors on one or more virtual machines: Create snapshot. Resolve those errors, and then try the operation again.;

    Machine message: Type=Error; Message=TF260078: Team Foundation Server could not connect to the System Center Virtual Machine Manager Server: TF260038: Team Foundation Server is initializing connection to the System Center Virtual Machine Manager Server: <Scvmm server name>. Please try the operation after some time.. More information for administrator: TF260078: Team Foundation Server could not connect to the System Center Virtual Machine Manager Server: <Scvmm server name>.  More information for administrator: TF260038: Team Foundation Server is initializing connection to the System Center Virtual Machine Manager Server: <Scvmm server name>. Please try the operation after some time.

    I've tried reprovisioning everything and it all looks good using the TFS Admin console.  I can create snapshots directly using Hyper-V Manager directly on the SCVMM machine.  Any ideas what would prevent this communication/ creating snapshots from Lab Center?

所有回覆

  • 2011年2月2日 上午 01:49
     
     

    Hi,

    Are you facing this issue only with snapshots. If you dont create snapshots, does everything works fine.

    When you add a new VM Host, the following things need to be considered:

    1. The VM Host is in the same host group as configured in the lab management section of project collection in the TFS Admin console
    2. The lab mangement service account has administrative rights on the VM Host
    3. Confirm everything is shown as green by clicking verify on the sections host group, library share and service account

    Thanks,

    Anuj

  • 2011年2月4日 下午 09:44
     
     

    Hi Anuj,

    Thanks for the reply. 

    I've already considered all 3 of the above items.  I have 2 host groups configured one per VM Host and both can be verified in the lab management section in the TFS Admin console.  The lab management service account does have admin rights on both VM Hosts.  Everything is checks green when I verify the sections for host  group, library share, and service account.

    Any other ideas?

    Thanks,
    Shane

  • 2011年2月8日 下午 01:10
     
     

    Hi Shane,

    Have you tried connecting to the SCVMM server using SCVMM admin console (installed on your TFS host) to see if the host shows Status=OK?

    The thing you can check is to see if the Create Snapshot action from Test Manager has a corresponding task in SCVMM. You will find one in the task list in SCVMM admin console. This task should have some more information on the failure.

    Thanks

    Allen Mathias

  • 2011年2月14日 下午 10:27
     
     

    I am experiencing an identical issue. When I attempt to create a Snapshot of a Virtual Environment I get this error:

    TF260078: Team Foundation Server could not connect to the System Center Virtual Machine Manager Server: TF260038: Team Foundation Server is initializing connection to the System Center Virtual Machine Manager Server: <SCVMM Server Name>. Please try the operation after some time.. More information for administrator: TF260078: Team Foundation Server could not connect to the System Center Virtual Machine Manager Server: <SCVMM Server Name>. More information for administrator: TF260038: Team Foundation Server is initializing connection to the System Center Virtual Machine Manager Server: <SCVMM Server Name>. Please try the operation after some time.

     

    I have connected using the SCVMM Manager application from the TFS machine and it is successful. I have ensured that the TFS server has Lab management set up correctly as well. All of the little "Test" actions work as expected.

     

    Additional Information is that the VM machines are on a domain with a One Way trust (VM Domain trusts TFS domain). This worked some time ago when I initially configured the Lab Management but has ceased to function recently (in the past two months).

     

    -Kevin

     

  • 2011年4月13日 上午 10:32
     
     
    I started having same issue. No confugration changes were made. Creating snapshot from SCVMM works fine. Other lab management operations like shutdown/run LE also working fine.
    ~vg
  • 2011年5月16日 下午 05:01
    版主
     
     
    Shane/Kevin/Vladimir: Is this issue resolved now?
    Alternatively, I would request you to enable TFS logs for further investigation.
    Hariveer Singh | If a post appropriately answers your query, Click 'Mark as Answer'.
  • 2011年5月16日 下午 06:48
     
     提議的解答

    Hi Hariveer,

     

    Actually I opened support case regarding this, but resolved by myself. I enabled logging but didn't find any useful information. Also, test from Admin console succeeded very quickly and I did IISReset as well. At some point I tried restarting TFSJobAgent service on AT and it didn’t help also. Day after I noticed that there is another instance of this process stuck on AT and eating around 5 GB of RAM. I killed it, restarted service again and confirmed that there is single process and its ID changed after service restart. It took some time to establish connection to SCVMM and everything has started working.

     

    If you need logs you can find them attached to support case 211041340322022001.

     

    Thanks,


    ~vg


  • 2012年3月5日 上午 03:36
     
     

    I encountered the same problem and solved by restarting everything (restart TFS server, SCVMM server...) 

    don't understand why this could happen...


    totta wang