Q.)Unable to power on the Virtual Machine, How to fix it?
Ans.) If the virtual machine is running in a cluster of esx hosts, sometimes it won’t power on. Why because, the files that are associated with that VM are locked by the host at the time of running. So when you try to VMotion the vm from one host to another host, the first host releases those files and again locked by the second host.
So what is meant by locking here, and why it is happening?
Locking is nothing but, the registration of a vm with a host. This happens every time when the vm is hosted on a host. This is helpful to prevent the access to the same vm for remaining hosts in the cluster.
Why the vm fails when trying to power it on?
When the files associated with that VM are locked by a host it won’t powered on. At that time, you must unregister the vm from the host using vmware-cmd utility.
I have found the above on http://www2.isupportyou.net/2010/06/vmware-interview-questions-tips.html
I have a query on the above answer. (Italic marked) During VMotion the files are not moved from one host to another right? as we use a shared storage.
Can someone please tell, is the above answer right? If not, please share the right one?
Thanks,
Prashant