nsidc / vagrant-vsphere

VMware vSphere provider for Vagrant
Other
607 stars 166 forks source link

Is it possible to declare number of CPU cores? #214

Open jpetruccifns opened 8 years ago

jpetruccifns commented 8 years ago

Versus CPU sockets, that is.

taliesins commented 7 years ago

Looking at: https://www.vmware.com/support/developer/vc-sdk/visdk25pubs/ReferenceGuide/vim.vm.ConfigSpec.html

it doesn't look like its possible.

But google found this: https://communities.vmware.com/thread/342422?start=0&tstart=0

so it should be relatively easy to add

rgl commented 5 years ago

we should also have support for setting the number of cpu cores per socket with the rbvmomi numCoresPerSocket property.

Probably calling this setting core_per_cpu_count. What do you guys think?

PS this should be straitforward to implement has cpu_count was at https://github.com/nsidc/vagrant-vsphere/commit/9c3626f5ae36e0ac332ba0b7aba44c6f0f8790e1. I'll take a stab at it... just need your advice about the property name core_per_cpu_count.

rgl commented 5 years ago

I've an initial version at https://github.com/rgl/vagrant-vsphere