Skip to content

Commit

Permalink
fix vm cpu count
Browse files Browse the repository at this point in the history
  • Loading branch information
sei-jmattson committed Nov 21, 2024
1 parent 3142e8c commit 145a10e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TopoMojo.Hypervisor/vSphere/VimExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 145a10e

Please sign in to comment.