packer-cn/website/pages/partials/builder/vsphere/common/HardwareConfig-not-required.mdx
Jason Azze 9156563314
Update HardwareConfig-not-required.mdx
I've tested the behavior of CPUs and cpu_cores against both vSphere 5.5 and 6.7. In both cases, CPUs gives you virtual cores, not sockets.
For example, I want 6 cores per socket across 2 sockets for 12 total cores. Based on the wording of this doc, I set CPUs to 2 and cpu_cores to 6. The documentation implies that will give me 2 sockets with 6 cores each. The actual behavior is you get 2 cores, and when you crack open the VMs configuration, you see that cores per socket is set to 6 -- which is meaningless.

Setting CPUs to 12 and cpu_cores to 6 gives me what I wanted. So the wording I propose is 
```
- `CPUs` (int32) - Number of CPU cores.
```
2020-08-27 15:10:33 -04:00

32 lines
1.4 KiB
Plaintext

<!-- Code generated from the comments of the HardwareConfig struct in builder/vsphere/common/step_hardware.go; DO NOT EDIT MANUALLY -->
- `CPUs` (int32) - Number of CPU cores.
- `cpu_cores` (int32) - Number of CPU cores per socket.
- `CPU_reservation` (int64) - Amount of reserved CPU resources in MHz.
- `CPU_limit` (int64) - Upper limit of available CPU resources in MHz.
- `CPU_hot_plug` (bool) - Enable CPU hot plug setting for virtual machine. Defaults to `false`.
- `RAM` (int64) - Amount of RAM in MB.
- `RAM_reservation` (int64) - Amount of reserved RAM in MB.
- `RAM_reserve_all` (bool) - Reserve all available RAM. Defaults to `false`. Cannot be used together
with `RAM_reservation`.
- `RAM_hot_plug` (bool) - Enable RAM hot plug setting for virtual machine. Defaults to `false`.
- `video_ram` (int64) - Amount of video memory in KB.
- `vgpu_profile` (string) - vGPU profile for accelerated graphics. See [NVIDIA GRID vGPU documentation](https://docs.nvidia.com/grid/latest/grid-vgpu-user-guide/index.html#configure-vmware-vsphere-vm-with-vgpu)
for examples of profile names. Defaults to none.
- `NestedHV` (bool) - Enable nested hardware virtualization for VM. Defaults to `false`.
- `firmware` (string) - Set the Firmware for virtual machine. Supported values: `bios`, `efi` or `efi-secure`. Defaults to `bios`.
- `force_bios_setup` (bool) - During the boot, force entry into the BIOS setup screen. Defaults to `false`.