VMware虚拟机出现Reason: Failed to lock the file
来源:互联网 发布:槟知椰子糖 编辑:程序博客网 时间:2024/05/21 16:27
今天我公司做的虚拟化服务器出现故障意外重启了,主系统启动之后,在启动VMware虚拟机的时候出现了Cannot open the disk '*.vmdk' or one of the snapshot disks it depends on.Reason: Failed to lock the file.的错误,一个虚拟机无法启动将影响到很多用户的使用,所以我马上开始寻找解决Reason: Failed to lock the file的办法!于是我到百度搜索了一下这个错误的具体原因,搜索结果中给出了两种解决办法!
解决办法一:
1、在VMware该虚拟机路径下的所有.lck文件和文件夹下删除或迁移至其它目录,一般就可以解决了。
2、如果再次启动VMware的Windows Vista系统失败,尝试右键虚拟机出错的系统->Settings->Hardware->Hard Disk->Utilities->Map->映射虚拟硬盘到Z:\
3、断开虚拟硬盘,重新加载,启动。系统就可以正常启动了
经实验此办法以失败结束。如果有遇到Cannot open the disk '*.vmdk' or one of the snapshot disks it depends on.Reason: Failed to lock the file错误的朋友不妨也试一下。如果您实验成功了,请给我们留言,以便我们进行更好的技术交流
解决办法二:
使用记事本打开*.VMX文件上加上一行代码disk.locking = "FALSE",重新启动该虚拟机。
使用方法二,问题得到解决,重新启动VMware正常启动,不会再出现Cannot open the disk '*.vmdk' or one of the snapshot disks it depends on.Reason: Failed to lock the file.错误。
问题出现的原因:
虚拟磁盘(.vmdk)本身有一个磁盘保护机制,为了防止多台虚拟机同时访问同一个虚拟磁盘(.vmdk)带来的数据丢失和性能削减方面的隐患,每次启动虚拟机的时候虚拟机会使用扩展名为.lck(磁盘锁)文件对虚拟磁盘(.vmdk)进行锁定保护。当虚拟机关闭时.lck(磁盘锁)文件自动删除。但是可能由于您非正常关闭虚拟机,这时虚拟机还没来得及删除您系统上的.lck(磁盘锁)文件,所以当下次您启动虚拟机的时候出现了上述错误。
- VMware虚拟机出现Reason: Failed to lock the file
- VMware虚拟机出现Reason: Failed to lock the file
- VMware虚拟机出现Reason: Failed to lock the file
- VMware虚拟机出现Reason: Failed to lock the file
- VMware虚拟机出现Reason: Failed to lock the file
- VMware虚拟机出现Reason: Failed to lock the file
- VMware虚拟机出现Reason: Failed to lock the file
- VMware虚拟机出现Reason: Failed to lock the file
- VMware虚拟机出现Reason: Failed to lock the file
- VMware出错 Reason Failed to lock the file
- 打开VMware出现Reason: Failed to lock the file.错误的解决办法
- VMWARE虚拟机无法启动:Failed to lock the file!
- VMware启动系统报错,reason: failed to lock the file.
- VMware启动报错Reason: Failed to lock the file的解决方法
- VMware启动报错Reason: Failed to lock the file的解决方法
- vmware, failed to lock the file
- vmware, failed to lock the file
- VMWare出现文件未能锁定(Failed to lock the file)的解决方法
- iPhone开发经典语录集锦
- The Search Function For Complete Letting
- About sdk manager :error null
- MTK平台下图片旋转90的函数
- 转向 Ubuntu!
- VMware虚拟机出现Reason: Failed to lock the file
- SVN的文件夹链接太强大了!(目录链接,目录映射,svn:externals)
- pushlet工作流程分析与研究
- 关于通信原理的一点总结(大学的时候写的,现在把自己仅有的一点点总结存档一下)
- 我会一直积累下去的
- Source Insight下载及注册码
- window 7 ADSL宽带自动连接
- MFC入门学习
- jsp获取applet返回值