An unexpected error was received from the ESX host while powering on VM VM_name.
Could not power on VM : Reason
Failed to power on VM.
Failed to extend swap file from 0 KB to size KB.
For example:
VMware vSphere ESXi 6.x
VMware vSphere ESXi 7.x
VMware vSphere ESXi 8.x
This issue occurs if the ESX host is unable to create the swap file required to power on the virtual machine. This is most likely due to a storage problem on the datastore where the swap file is located.
Note: These work arounds allow you to power on the virtual machine. However, you still need to investigate the underlying storage issue.