When attempting to import a VM into VMware Cloud Director an error is seen in Cloud Director and vCenter with the following message:
" Unable to relocate VM. - Underlying system error: com.vmware.vim.binding.vim.fault.CannotAccessVmConfig - Unable to access the virtual machine configuration: Unable to access file [Example] Example/example.vmx"
VMware Cloud Director 10.x
There is a resource pool allocated to the Organization VDC that has mixed storage, and the VM is attempting to be relocated to an ESXi host that has no access to the datastores.
There are a few resolutions that can be attempted:
- Create host-affinity rules for the VM to stay within the correct resource pool. There are details here: https://techdocs.broadcom.com/us/en/vmware-cis/cloud-director/vmware-cloud-director/10-5/create-or-update-a-vm-host-affinity-rule.html.
- If there are prior rules then placement policies could be set to be used upon import and by the Org VDC.
- Ensure all hosts within a cluster have access to the same shared storage as a best practice.
- Ensure all resource pools within a provider VDC have access to similar resources.