问题出现的原因:

虚拟磁盘(.vmdk)本身有一个磁盘保护机制,为了防止多台虚拟机同时访问同一个虚拟磁盘(.vmdk)带来的数据丢失和性能削减方面的隐患,每次启动虚拟机的时候虚拟机会使用扩展名为.lck(磁盘锁)文件对虚拟磁盘(.vmdk)进行锁定保护。当虚拟机关闭时.lck(磁盘锁)文件自动删除。但是可能由于您非正常关闭虚拟机,这时虚拟机还没来得及删除您系统上的.lck(磁盘锁)文件,所以当下次您启动虚拟机的时候出现了上述错误。

解决办法一:

1、在VMware该虚拟机路径下的所有.lck文件和文件夹下删除或迁移至其它目录,一般就可以解决了。

2、如果再次启动VMware的WindowsVista系统失败,尝试右键虚拟机出错的系统->Settings->Hardware->Hard Disk->Utilities->Map->映射虚拟硬盘到Z:/

3、断开虚拟硬盘,重新加载,启动。系统就可以正常启动了

经实验此办法以失败结束。如果有遇到Cannot open the disk '*.vmdk' or one of the snapshot disks itdepends on.Reason: Failed to lock the file错误的朋友不妨也试一下。如果您实验成功了,请给我们留言,以便我们进行更好的技术交流

解决办法二:

使用记事本打开*.VMX文件上加上一行代码disk.locking= "FALSE",重新启动该虚拟机。

使用方法二,问题得到解决,重新启动VMware正常启动,不会再出现Cannot open the disk '*.vmdk' or one of the snapshot disks itdepends on.Reason: Failed to lock the file.错误。

VMware “Cannot open the disk ‘XXXXXX.vmdk’or one of the snapshot disks it depends on.”

From time to time, I want to copy just theminimum files for a VMware virtual machine: the two .vmdk files and the .vmxfile. After moving those files to a new location or deleting a snapshot file,attempting to boot the virtual machine returns the following error message:

Cannot open the disk ‘XXXXXX.vmdk’ or oneof the snapshot disks it depends on.

Reason: The system cannot find the filespecified.

I’ve found that following the steps belowfixes the problem and allows me to boot the virtual machine as it existed atthe time of creation. DO NOT USE these steps if you need to retain any changesto the machine:

Open the *.vmx file in a text editor andfind the line that refers to the old snapshot file, which will look somethinglike:

scsi0:0.fileName = “XXXXXX-000002.vmdk”

or

ide0:0.fileName = “XXXXXX-000002.vmdk”

Change the value to the filename of the~1kb .vmdk file (which happens to be the same as the name of the VM). Forexample, if your virtual machine was named “Windows XP Professional”, the linewould read:

scsi0:0.fileName = “Windows XPProfessional.vmdk”

Power on the VM. It should boot normally,but because the snapshot file is missing, the machine will boot to an earlierstate.

虚机打不开报failed to lock the file错误原因及解决方案相关推荐

  1. 本机连接服务器mysql报错1130,连接mysql发生错误1130的解决方案

    连接mysql发生错误1130的解决方案 连接mysql发生错误1130的解决方案 一.通过MySQL-Front或mysql administrator连接mysql的时候发生的这个错误 ERROR ...

  2. VMware虚拟机出现Reason: Failed to lock the file

    打开VMware出现Cannot open the disk *.vmdk or one of the snapshot disks it depends on.Reason: Failed to l ...

  3. 虚拟机Failed to lock the file 和Reason: The file is too large错误的解决方法

    转自http://hi.baidu.com/perfectxyz/blog/item/23ac06f871720b04d8f9fd57.html 1.VMware 启动报错 "Failed ...

  4. vmware, failed to lock the file 的解决

    今天用vmware 6.0, 出现了"failed to lock the file"的错误.google一下,通过删除镜像文件的loc文件夹就解决了.据说6.5版就没有这个问题. ...

  5. VMware出错 Reason Failed to lock the file

    启动VMware虚拟机的时候出现了Cannot open the disk '*.vmdk' or one of the snapshot disks it depends on.Reason: Fa ...

  6. 如何处理VMware启动虚拟机时的错误信息Failed to lock the file

    有的时候我们使用WMware时,如果没有正确关闭虚拟机,下次启动时会遇到这个错误信息: Failed to lock the file Module XXX power on failed. Fail ...

  7. 解决:linux启动Redis报Failed to search for file:Cannot prepare internal mirrorlist: No URLs in mirrorlist

    1:打开linux命令行窗口,登录管理员账号:$ su root   回车,输入密码 ps:不登录管理员打开的文件是只读状态,修改后无法保存. 这一步十分重要,我因为没登管理员账号被卡了十来分钟 ╥﹏ ...

  8. 接手项目,项目路径与本机UE4路径不一致以及Failed to open descriptor file ..//..//..//UE4/UE4.uproject的解决方法

    删除文件夹.vs  ....Binarires ...Build...Intermediate  以及项目名.sln 右键项目名.uproject  generated .  打开项目名.uproje ...

  9. ChatGPT 常见错误原因及解决方案:报错、回答不完整、网络错误等

    最近,由人工智能实验室 OpenAI 发布的对话式大型语言模型 ChatGPT 火得一塌糊涂.它可以与人类轻松地对话,无论是多么奇葩的问题 ChatGPT 都不在话下.在体验 ChatGPT 的同时我 ...

最新文章

  1. 嗨:VSCode和IDEA都请安装上这个神奇的插件
  2. Bit-Z收不到邮箱验证码怎么办(如何添加Bit-Z至邮箱白名单?)
  3. 最受 IT 公司欢迎的 30 款开源软件
  4. 图解算法学习笔记(四):快速排序
  5. oracle课程设计摘要,Oracle程序设计课程设计概要(doc 35页)
  6. windows下安装ta-lib的方法
  7. iOS开发——获取本设备IP
  8. 面向对象的javascript-引用、作用域、闭包、上下文--(1)
  9. VS2013打包生成安装文件setup.exe(详细图解)
  10. qml鼠标拖动_QML学习笔记(七)— 实现可拖拽、编辑、选中的ListView
  11. 权限系统(第一次测试)
  12. 牛客 动物森友会(最大流+二分)
  13. ASP.NET MVC 学习第三天
  14. 订阅号与服务号的区别
  15. Echarts使用之-散点图(各国人均寿命与GDP关系演变)
  16. 【应用赏析】ArcGIS API for iOS在俄勒冈大学校园中的创新应用
  17. 使用SpringAOP拦截Feign请求动态添加参数
  18. mysql数据库生成脚本工具下载_PHPMaker下载-基于MYSQL数据库自动生成PHP脚本的软件 v2019.0.2.2 官方版 - 安下载...
  19. 百家号平台中的问答功能,自媒体人可以这样玩!
  20. Java 中 字符串 1234 怎么转成 int?

热门文章

  1. 高瓴投的澳斯康生物冲刺科创板:年营收4.5亿 丢掉与康希诺合作
  2. 建议各位站长网站404页面换成腾讯宝贝回家公益页面,为社会公益出一份力
  3. spring 项目启动完成执行_凝聚合力形成攻坚之势——21天顺利完成启动炉烟道改造施工项目...
  4. VB 数据库交互(二)——经典五实例总结
  5. C#入门学习——飞行棋
  6. 时间观——《天行九歌》第51集《一叶知秋》台词与典故
  7. CuteFTP 问题及 ftp 模式详解
  8. 关于unrecognized selector sent to instanc
  9. 微信小程序授权登录和账号登录
  10. 静默活体检测-人脸活体识别