diff --git a/src/TopoMojo.Hypervisor/vSphere/VimExtensions.cs b/src/TopoMojo.Hypervisor/vSphere/VimExtensions.cs index 5a0c8ec..8e6cb48 100755 --- a/src/TopoMojo.Hypervisor/vSphere/VimExtensions.cs +++ b/src/TopoMojo.Hypervisor/vSphere/VimExtensions.cs @@ -51,7 +51,7 @@ public static void AddCpu(this VirtualMachineConfigSpec vmcs, string cpu) coresPerSocket = 1; } - vmcs.numCPUs = sockets * 1; + vmcs.numCPUs = sockets * coresPerSocket; vmcs.numCPUsSpecified = true; vmcs.numCoresPerSocket = coresPerSocket; vmcs.numCoresPerSocketSpecified = true;