1. 程式人生 > >VMware啟動Centos時出現錯誤Cannot open the disk 'xxxxxxx.vmdk' or one of the snapshot disks it depends on. .

VMware啟動Centos時出現錯誤Cannot open the disk 'xxxxxxx.vmdk' or one of the snapshot disks it depends on. .

每次 pan 鎖定 mic 數據 als log xxxxxx end

  今天拔裝虛擬機的硬盤的時候,沒有關掉虛擬機,導致虛擬打開的時候出現:Cannot open the disk ‘xxxxxxx.vmdk‘ or one of the snapshot disks it depends on. .查了很多資料終於找到解決辦法了。

  虛擬磁盤(.vmdk)本身有一個磁盤保護機制,為了防止多臺虛擬機同時訪問同一個虛擬磁盤(.vmdk)帶來的數據丟失和性能削減方面的隱患,每次啟動虛擬機的時候虛擬機會使用擴展名為.lck(磁盤鎖)文件對虛擬磁盤(.vmdk)進行鎖定保護。當虛擬機關閉時.lck(磁盤鎖)文件自動刪除。但是可能由於非正常關閉虛擬機,這時虛擬機還沒來得及刪除您系統上的.lck(磁盤鎖)文件,所以當下次您啟動虛擬機的時候出現了上述錯誤。

解決方法為

  用文本編輯器打開*.VMX文件,在最後加上一行代碼disk.locking = "FALSE",重新啟動該虛擬機,就可以打開啦。

VMware啟動Centos時出現錯誤Cannot open the disk 'xxxxxxx.vmdk' or one of the snapshot disks it depends on. .