- Vixual - http://www.vixual.net/blog -

解決 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"

感覺第二種解決方式會造成未來檔案使用時的安全性問題,所以我是使用第一種方式解決。