VMware Cloud Director 10.6.x
Mismatch between the reservation at VM and VDC level.
Setting the compute (both cpu and memory) Allocation to 0 at org vDC level.
Try power-on the VM, if issue still persists we need to manually clear the reservation at the VM level.
Once the vdc compute reservation was made 0. These vm(s) were still holding the reservations and were not cleared.
To verify such vm(s) for the specified effected org Vdcs follow below steps:
1.SSH into the primary node.
2.Connect to the database using the below query.
sudo -u postgres psql vcloud;
3.Run the below to get the list of the VM's.
select ovdc.name, vi.mem_reservation, vi.cpu_reservation, vi.name as vc_vm_name, vi.moref from vm_container vapp join vapp_vm on vapp.sg_id = vapp_vm.vapp_id join vm on vapp_vm.svm_id = vm.id join vm_inv vi on vi.moref = vm.moref join org_prov_vdc ovdc on vapp.org_vdc_id = ovdc.id and vi.vc_id = vapp.vmfolder_vc_id and vi.state = 1 and (vi.mem_reservation > 0 or vi.cpu_reservation > 0) and ovdc.name in ('OVDC_Name');
4.Steps to clear reservation from vCenter side:
5.Once the reservation on all VMs are set to 0, try powering-on the VM. It will power-on without any issues.
KB 374537 - Error: "There are insufficient CPU resources to complete the operation. Please contact the System Administrator." when powering on VMs in Cloud Director
KB 388325 - Error: "Total memory required for all VMs in the VRP including current VM(s) being deployed [<value>MB] is greater than VRP maxResourceValue 0MB." occurs when powering on VMs