原因
可能是重启动 VM 时,关掉 VMware Workstation 类似断电。
如果虚拟机意外关闭或者崩溃,可能会残留这个文件,从而阻止再次启动虚拟机。
在确认没有其它进程占用该虚拟机,可以尝试删除虚拟机目录下的 .lck
文件夹。这个文件夹通常是在虚拟机运行时自动生成的,
报错
The operation was cancelled by the user
Cannot open the disk '...... .vmdk' or one of the snapshot disks it depends on.
The process cannot access the file because another process has locked a portion of the file.
Module 'Disk' power on failed.
Failed to start the virtual machine.
解决方法
看到的报错如图:
在VM上点右键, 点击 "Open VM directory" / “打开VM目录”
尝试删除虚拟机目录下的 .lck
文件夹。