I ran into an interesting problem a few weeks ago when I was moving a demo VMware View 4.5 environment to a new Cisco UCS cluster. The new cluster I was moving it to was managed by a vCenter server that managed a lot of other hosts with virtual machines scattered everywhere because this was our test, dev, and everything else environment. Needless to say, it was hard to find what you’re looking for so please excuse my mistake in generating the following error message when I completed the copying process then trying to inventory the virtual machine:
Invalid datastore path 'sanfs://vmfs_uuid:4cbd5511-e5a34e80-e092-001018659ff2/ULDEMOVIEW01/ULDEMOVIEW01.vmx'.
So what happened? Well, I actually chose the wrong ESXi server when specifying the host to add this virtual machine to:
The host this virtual machine was copied to was actually ESXi02 but I had selected ESXi01.
To try and add a bit more value to this post since the situation I encountered here probably is one of the many reasons this error might be thrown, I did talk to a VMware engineer about other scenarios that may cause this and I was told that it’s usually a permissions issue. No surprise there. :)