解决 VMware 出现 "Failed to lock the file" 的错误

VMware Server 当掉后重新启动 Guest OS 时,出现

cannot open the disk '*.vmdk' or one of the snapshot disk is depends on.
Reason: Failed to lock the file.

解决方法一:

进到 VMware 的 Guest OS 资料夹,将所有的 *.lck 资料夹或档案删除

解决方法二:

手动编辑 *.vmk,加入一行:

disk.locking = "FALSE"

感觉第二种解决方式会造成未来档案使用时的安全性问题,所以我是使用第一种方式解决。

Peter 发表回响 取消回复

你的电子邮件位址并不会被公开。 必要字段标记为 *

  1. Using Google Chrome Google Chrome 43.0.2357.132 on Windows Windows 7

    感谢 用第一个方法解决我的问题了

  2. Using Google Chrome Google Chrome 60.0.3112.90 on Windows Windows NT

    谢谢你,这个方法真的有用。