To resolve this issue, if you can storage vMotion, move the virtual machine to another datastore and retry the vMotion.
If you are unable to storage vMotion investigate the directory stated in the error. If you see two vmx-swap files, perform these steps:
- Power down the virtual machine.
Note: Swap files should not be present when the virtual machine is powered down.
- On the ESXi host, navigate to the virtual machine directory listed in the error.
- Check if there is a swap file present by running the command:
ls -lah
- If you see a vmx-swap file, move the file to a backup location by running the command:
mv vmx-vmname.vswp /vmfs/volumes/backup_location
- Power on the virtual machine and retry the vMotion task.
Note: Once the vMotion task completes successfully you can remove the back vmx-swap file.