I am using VMWareTasks 1.4 and VixCOM 1.8 and I am having trouble powering on a VM. If I check the events for the VM I am attempting to turn on I see the following error events. The first event says "Virtual Machine is starting" and the next one down says, "Could not power on VM : Admission check failed for memory resource". I did some searching and most people who were getting this had very low end machines trying to run multiple VM's and they had to lower the amount of resources each VM used before they could power them on. However, each of of our hosts has 16GB of RAM with 2 quad core procs and there really aren't that many VM's running at the moment. Also, I am able to manually power that machine on without any problem. Have anybody seen this before?
// declare a virtual host
using (VMWareVirtualHost virtualHost = new VMWareVirtualHost())
{
// connect to a remove (VMWare ESX) virtual machine
virtualHost.ConnectToVMWareVIServer("esx.mycompany.com", "vmuser", "password");
// open an existing virtual machine
using (VMWareVirtualMachine virtualMachine = virtualHost.Open("[storage] testvm/testvm.vmx"))
{
// power on this virtual machine
virtualMachine.PowerOn();
....
}
.....
}
How many VMS you are trying to power on concurrently using your program? You might be able to poweron each VM manually. But, enough resources might not be available to poweron multiple VMs concurrently. Also, check this link . You may find it useful.
-Thanks
Sankar.
How many VMS you are trying to power on concurrently using your program? You might be able to poweron each VM manually. But, enough resources might not be available to poweron multiple VMs concurrently. Also, check this link . You may find it useful.
-Thanks
Sankar.
That link did the trick. There were restrictions on that resource pool as it is where all of our lab VM's are. Thanks.