From 145a10e7c95e863e2217744e7b7e243ea939896b Mon Sep 17 00:00:00 2001 From: Jeff Mattson Date: Wed, 20 Nov 2024 20:04:45 -0500 Subject: [PATCH] fix vm cpu count --- src/TopoMojo.Hypervisor/vSphere/VimExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;