you must shutdown and restart the vm - a reboot is not sufficient
I have tried this along with restarting the whole ESXI server, but the issue still occurs.
I followed the steps, but did not work, ESXI reports that the setting is invalid and remves it from the vmx file.
> ESXI reports that the setting is invalid and remves it from the vmx file.
What if ESXi is correct and you entered invalid parameters ?
In other words - lets see what you entered ...
Is it happened for all of your VMs or not specific VMs? after changing host swap settings did you try to create a new VM and check its swap file?
and another point, are you sure both of *.swap and vmx-*.swap files are still in initial place?
Also please check value of this entry line: sched.swap.derivedName in the .vmx file of that VM. where is mentioned? old location or new one as the swap datastore?Please mark my comment as the Correct Answer if this solution resolved your problem