VMware Cloud Community
demhyt
Contributor
Contributor
Jump to solution

Create Simple VM without resource pool

Hi All,

I try to use create simple virtual machine workflow but always error because I'm not insert resource pool parameter because in our datacenter we dont have any resource pool...I'm read from CreateVM_Task is always use resource pool, any chance I can create new VM without use resource pool?..Thank you

Reply
0 Kudos
1 Solution

Accepted Solutions
Burke-
VMware Employee
VMware Employee
Jump to solution

Actually, you do have a resource pool as Joerg eludes to.. however, regardless of DRS status, your Cluster(s) and even standalone hosts have a root "Resources" resource pool that the vCO client can see via the vSphere API. This root resource pool is NOT visible in the vSphere Client or vSphere Web client:

Screen Shot 2014-03-18 at 9.40.24 AM.png

As you can see above, the standalone host "esx-03a.vcoteam.lab" has a "Resources" resource pool, as does the "Standby" cluster that does not have DRS enabled Smiley Wink

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vRealize Orchestrator tips and tutorials - @TechnicalValues on Twitter

View solution in original post

Reply
0 Kudos
3 Replies
tschoergez
Leadership
Leadership
Jump to solution

Hi,

it depends if you are creating the VM in a cluster that has DRS enabled or not.

If DRS is enabled, you HAVE to specify a resource pool (even if it's just the root resource pool of the cluster, get it via myClusterComputeResourceObject.resourcePool. That is alway there, even if you have not created any other child resourcepools ). If DRS is not enabled, you should not define a resource pool. In this case, just bind the resourcepool parameter of the workflow to NULL.

Maybe the videos on www.vmwarelearning.com/orchestrator even contains some examples for that.

Cheers,

Joerg

Burke-
VMware Employee
VMware Employee
Jump to solution

Actually, you do have a resource pool as Joerg eludes to.. however, regardless of DRS status, your Cluster(s) and even standalone hosts have a root "Resources" resource pool that the vCO client can see via the vSphere API. This root resource pool is NOT visible in the vSphere Client or vSphere Web client:

Screen Shot 2014-03-18 at 9.40.24 AM.png

As you can see above, the standalone host "esx-03a.vcoteam.lab" has a "Resources" resource pool, as does the "Standby" cluster that does not have DRS enabled Smiley Wink

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vRealize Orchestrator tips and tutorials - @TechnicalValues on Twitter
Reply
0 Kudos
demhyt
Contributor
Contributor
Jump to solution

Thanks for Joerg and Burke....It works like magic...thank you very much, I dont know if the "resource pool" in that place...

Reply
0 Kudos