VMware 虚拟机启动Failed to lock the file

今日中午同事在迁移公司一台虚拟机时进度比较缓慢,后有人说需要使用这台内的文件,因无法预估迁移完成时间,就中断了迁移任务,打算开机让使用者使用,但是在Power on时出现如下报错:

Cannot open the disk '*.vmdk' or one of the snapshot disks it depends on.Reason: Failed to lock the file.

VMware 虚拟机启动Failed to lock the file_Lock the file

         习惯性的百度了下该情况,大致的情况有两种:

         1、虚拟机数据存储内出现了*.lck的文件,删除即可。

         2、用记事本打开*.vmx文件加上一行代码disk.locking = "FALSE"

        观察了下存储内的内容,未找到*.lck的文件,略过。

        在*.vmx文件最后加上disk.locking = "FALSE",尝试启动虚拟机仍提示Failed to lock the file。

        再看看存储内的文件,发现了一个*.hlog的未知文件,因从未看到过该文件,立即将其从存储拿掉,然后再尝试就正常开机了。

VMware 虚拟机启动Failed to lock the file_虚拟机_02