Unable to migrate VMs due to permission denied error in VMware
Applies to
- ONTAP 9
- VMware ESXi
- VMware vCenter
- NFS
Issue
When attempting to migrate a VM to a NFS datastore backed by NetApp storage, the following error can be seen in vCenter.
From the vCenter Event log, the following can be seen.
Failed to migrate the virtual machine for reasons described in the event message.
The virtual machine did not migrate. This condition can occure if vMotion IPs are not configured, the source and destination hosts are not accessible, and so on.
When trying to create a test file on the destination datastore on the source host when troubleshooting write permissions, the following error can also be seen.
[root@esx1:~] cd /vmfs/volumes/852dbbad-f0754b1c/
[root@esx1:/vmfs/volumes/852dbbad-f0754b1c] touch file.txt
touch: file.txt: Permission denied