17 Jun 2010
Lab Management error: TF259115
While preparing a demonstration of Lab Management today I experienced an error I hadn’t seen before. The error message occurred when I created a new Virtual Environment and attempted to deploy to an existing host group using Lab Center.
The error message looked like this:
and the text was as follows:
TF259115: Team Foundation Server could not find any suitable host to deploy the virtual machine: Win2K8R2x64IIS.
More details: All the hosts in the host group had one or more of the following inadequacies:
Memory requirement of the virtual machine(s) exceeds the available host resources. The placement policy for this host group is set to be conservative and hence virtual machines that are in stopped state are also accounted as consuming host resources.
In this case I had a demo server with 8Gb RAM with only one running virtual machine using just 1.5Gb of the available RAM. The new environment I was trying to deploy had a single server in it with just 1.2Gb allocated. As the error indicated, I needed to change the “placement policy” for the host group from conservative to um? non-conservative? I looked in every nook and cranny I could find in SCVMM but couldn’t find anything about changing the placement policy.
After putting out a call for help, Deepraj Dixit, a developer in the Lab Management team came to my rescue with the following information.
“The lab environment placement policy is an attribute of host group in lab management object model. At present, there is no UI way to change this setting. You can use the TFSCONFIG command as below:
TfsConfig Lab /hostgroup /CollectionName:<collectionName> /Edit /Name:<HostGroupName> /LabEnvironmentPlacementPolicy:Aggressive
I logged onto my TFS Server, started a command prompt and went to work. You can see in the following screen shot that I made the change and then confirmed it using the “/list” option to make sure the change had taken effect.
You can find out more about the TFSConfig Lab /HostGroup command line options at http://msdn.microsoft.com/en-us/library/dd547199(VS.100).aspx
- Retrospective – DevOps using VSTS and Azure course Build , DevOps , Release Management , TFS2017 , Training
- DevOps using VSTS & Azure training on 11th-13th September. DevOps , Training , VSTS
- TFS 2017 – Adding reports to an existing team project Reporting , TFS2017
- DevOps training in Perth this week DevOps , TFS2015 , Training
- Upgrade your TFS administration skills to TFS 2017 today Uncategorized
I love sharing my ALM knowledge with my readers. Don’t miss anything by subscribing to my newsletter
- Addons and Extras12
- Application Insights3
- Lab Management3
- Release Management11
- TFS 201214
- User Groups16
- Version Control1
- VSTS 20109