Fix for ‘Cannot install test agent on these machines because another environment is being created using the same machines’
We have recently been upgrading our TFS 2012QU1 Lab Management system from SCVMM 2008 to SCVMM 2012 SP1. This has not been the nicest experience, we are preparing at least one joint blog post from Rik, Rob and myself on the joys, yes it did take everyone, a lovely cross skill problem.
We are now in the process of sorting out the state of running environments transferred between the systems. I thought I would start with an easy one, a single non-domain joined VM.
So after the upgrade this VM appeared as a running VM on one of the Hyper-V hosts, I could add it to a new environment, which I did. All appeared OK, the environment was created but Lab Management could not upgrade the Test Agents. If you tried the ‘reinstall agents’ option in Test Manager you got the error ‘cannot install test agent on these machines because another environment is being created using the same machines’
All very confusing and a hunt on the web found nothing on this error.
The fix I found (might be another way) was to
- Connect to the VM via MTM
- Uninstall the TFS 2012 RTM Test Agent.
- Install the TFS 2012 QU1 test agent from the Test Agents ISO (which I had unpacked to network share so I could run the vstf_testagent.exe easily)
- When the install was complete the configuration wizard ran, I set the agent to run as the local administrator and pointed it at one of our test controllers
Once the Test Agent configuration completed and the agent restarted it connected to the test controller and the environment reported itself as being ready.
So one (simple) environment down, plenty more to go
Read the complete post at http://blogs.blackmarble.co.uk/blogs/rfennell/post/2013/02/26/Fix-for-Cannot-install-test-agent-on-these-machines-because-another-environment-is-being-created-using-the-same-machines.aspx