I have VM with Hot CPU Add enabled, ESXi6.0. When attempting to increase the # of sockets I'm getting the following error:
Failed to power on VM.
Could not power on virtual machine: msg.vmk.status.VMK_BAD_PARAM.
Group vmm.3349833: Failed to apply memory configuration for VMM group vmm0:tyler-ip1-121. (min: 0, max: -1, minLimit: -1, shares: -3, units: pages)
Invalid memory reservation for a fully preallocated virtual machine: the minimum must be equal to memsize (29884416 pages).
The VM failed to resume on the destination during early power on.
Hot-add of cpu failed.
The hot-plug operation failed.
The VM in question has the full memory reserved (locked). It also has a passthrough device, which requires full memory reservation anyways. I have confirmed there's plenty of memory available for several fully provisioned/reserved memory images of this VM.
I see the above "Failed to apply memory configuration for VMM group vmm0:tyler-ip1-121. (min: 0, max: -1, minLimit: -1, shares: -3, units: pages)". This is curious, as it certainly seems as if the logic for creating the shadow VM for hot-plug isn't taking into account the original VM's memory reservation settings at all!
For comparison, here are the two vmkernel log messages for the memory/cpu:
Normal startup:
2016-11-16T22:01:04.106Z cpu54:3293773)Sched: vm 3293775: 6499: Adding world 'vmm0:tyler-ip1-121', group 'host/user', cpu: shares=-4 min=13794 minLimit=-1 max=-1, mem: shares=-3 min=29884416 minLimit=-1 max=-1
Shadow VM startup:
2016-11-17T16:16:34.825Z cpu13:3349783)Sched: vm 3349784: 6499: Adding world 'vmm0:tyler-ip1-121', group 'host/user', cpu: shares=-4 min=0 minLimit=-1 max=-1, mem: shares=-3 min=0 minLimit=-1 max=-1
2016-11-17T16:16:34.964Z cpu13:3349783)WARNING: MemSched: vm 3349784: 6090: invalid memory allocation for VMM group: Bad parameter
Seems like a bug, agree?
Thanks.