问题描述:

试图打开一个虚拟机,VMware workstation弹出对话框(图1),选择“Take Ownership”后出错(图2)。

图1

图2

解决办法:

首先你需要确认虚拟机没有被其他VMware程序所使用,包括运行在另一个系统上的副本。若发现虚拟机正在被使用,那么你应该用正常的方式关闭那个实例。

注意:如出现图2所示情况,说明打开这个虚拟机的实例运行在本机,这时候有两种可能:

1. VMware Player或VMware workstation其中之一打开了这台虚拟机,解决办法自然是直接使用或关闭那个实例,这没什么好说的。反而是下面这种情况更常见!

2. 上次使用这台虚拟机的实例没有正常关闭,导致有旧的*.lck文件残留在系统中。对于这种情况,可以找到虚拟机所在目录,手动删除xxxx.vmx.lck文件夹(图3)或其中的*.lck文件。

图3

原理分析:

简单来说,VMware为了防止多个运行实例打开同一个虚拟机,引入了lock的机制,在打开虚拟机的时候,VMware会像虚拟机所在目录添加*.lck文件,以示该虚拟机正在被使用。这样如果有另一个VMware实例(可以不在同一台计算机上)试图打开这个虚拟机,该操作就会被拒绝,这样就可以防止多个实例同时修改一个磁盘文件(*.vmdk)所造成的错误。此外,*.lck文件中保存了两个最关键的信息,那就是打开这台虚拟机的宿主计算机(host computer)ID,还有打开它的VMware实例的进程ID(图4、图5)。

图4

图5

参考资料:

www.vmware.com | http://www.vmware.com/pdf/ws71_manual.pdf

Lock Files

A running virtual machine creates lock files to prevent consistency problems on virtual disks. Without locks, multiple virtual machines might read and write to the disk, causing data corruption.

Lock files are created in subdirectories with a .lck suffix. The locking subdirectories reside in the same directory as the virtual machine’s .vmdk files. A locking subdirectory and lock file are created for .vmdk files, .vmx files, and .vmem files.

Since theWorkstation 6.0 release, a unified locking method is used on all host operating systems, so files shared between them are fully protected. For example, if one user on a Linux host tries to power on a virtual machine that is already powered on by another user with a Windows host, the lock files prevent the second user from powering on the virtual machine.

When a virtual machine powers off, itremoves the locking subdirectories and their lock files. If it cannot remove these locking controls, one or more stale lock files might
remain. For example, if the host machine fails before the virtual machine removes its locking controls, stale lock files remain.

When the virtual machine restarts, it scans any locking subdirectories for stale lock files and, when possible, removes them. A lock file is considered stale if both of the following conditions are true:

 The lock file was created on the same host that is now running the virtual machine.

 The process that created the lock is no longer running.

If either of these conditions is not true, a dialog box warns you that the virtual machine cannot be powered on. You can delete the locking directories and their lock files manually.

Locks also protect physical disk partitions. However, the host operating system is not aware of this locking convention and thus does not recognize it. For this reason,
VMware recommends that the physical disk for a virtual machine not be installed on the same physical disk as the host operating system.

解决打开VMware虚拟机时Take Ownership出错的问题相关推荐

  1. 虚拟机里提示计算机内存不足,windows下打开VMware虚拟机时提示内存不足的处理方法...

    参考:http://thinkpig007.blog.51cto.com/971471/1589831 以管理员身份运行vmware.exe即可 错误的错误提示: Not enough physica ...

  2. 打开VMware虚拟机时提示“内部错误”

    解决方法: 输入命令行:services.msc打开服务 将上述服务重启,可以正常进入虚拟机.

  3. 卸载完windows版的docker后打开vmware虚拟机提示:您在运行该虚拟机时启用了侧通道缓解。侧通道缓解可增强安全性,但也会降低性能。 要禁用缓解,请在虚拟机设置的“高级”...

    卸载完windows版的docker后打开vmware虚拟机提示:您在运行该虚拟机时启用了侧通道缓解.侧通道缓解可增强安全性,但也会降低性能. 要禁用缓解,请在虚拟机设置的"高级" ...

  4. 打开VMware虚拟机报错VMware Workstation 与 Device/Credential Guard 不兼容

    打开VMware虚拟机报错VMware Workstation 与 Device/Credential Guard 不兼容 一.问题描述 二.本机环境 三.解决方案 一.问题描述 复制虚拟机到笔记本, ...

  5. 解决 VMware 中安装虚拟机时屏幕显示不全的问题

    解决 VMware 中安装虚拟机时屏幕显示不全的问题 软件环境 发现问题 解决方案 软件环境 本文所使用的软件: VMware® Workstation 12 Pro (12.0.1 build-31 ...

  6. 【VirtualBox】VirtualBox使用现有的虚拟盘文件(如VHD)创建虚拟机时,报错:打开虚拟硬盘失败,“UUID already exist”的解决方法

    ###0.问题描述 使用现有的虚拟盘文件(如VHD)创建虚拟机时,报错:打开虚拟硬盘失败,"UUID already exists"的错误. ###1.参考博客 https://w ...

  7. 【Vmware】打开虚拟机时提示“无法连接虚拟设备,因为主机上没有响应的设备”

    打开VMware后,将其中的一个虚拟机开机,结果提示这个错误: 解决方法: 选择虚拟机右键点击属性后,进入硬盘的高级设置,在节点中配置如下 然后在CD/DVD的高级设置中,配置如下: 最后重新把虚拟机 ...

  8. VMWare workstation 在打开虚拟机时出现 Unable to find the VXM binary

    问题描述 今天打开VMware时,发现之前的虚拟机打不开了了,并且报了一个"Unable to find the VXM binary"的错误 原因分析: 因为VMware最开始的 ...

  9. WIN10的联想小新VMcare安装Centos7虚拟机时提示“Intel VT-x处于禁用状态”有以下几种解决办法

    WIN10的联想小新VMcare安装Centos7虚拟机时提示"Intel VT-x处于禁用状态"有以下几种解决办法: 一.开启虚拟化服务(此类方法网上有很多可以自己百度详细教程) ...

  10. VMware:在部分链上无法执行所调用的函数,请打开父虚拟磁

    问题:VMware给虚拟机扩展硬盘容量,提示:在部分链上无法执行所调用的函数,请打开父虚拟磁. 原因:是因为你的虚拟磁盘文件是分多个文件存储的(创建虚拟机的时候可以选择分多文件存储或单文件存储),所以 ...

最新文章

  1. maven项目中 把依赖的jar包一起打包
  2. golang中的sync.once
  3. 索引,表增删改统计,加锁查具体情况(推荐)
  4. mysql忘记密码可以卸载吗_mysql忘记密码,修改密码重新安装的一些问题
  5. 关于大龄程序员的谣言 新手必读
  6. java代码顺序执行命令_将小程序安装到Java卡的APDU命令的顺序是什么?
  7. linux dd 命令详解
  8. php跨域session共享,PHP中利用COOKIE与SESSION联合实现SESSION跨域
  9. 怎样把java项目转换成web项目_Eclipse中将Java项目转换成Web项目的方法
  10. 年底促销海报还没准备好?电商美工看这里
  11. python globle用法
  12. UnityShader基础案例(二)——UI流光,扭曲,外边框,波纹效果
  13. 性能测试从入门到精通高级篇 - Jmeter之IP伪装和欺骗(详解教程)
  14. easyUI1.7学习第一天_menu表单
  15. 《“笨办法” 学C语言(Learn C The Hard Way)》
  16. securecrt 远程映射端口
  17. html 遮罩层穿透问题,移动页面点击穿透问题解决方案
  18. 手机抢红包助手深陷作弊指责 部分外挂植入木马
  19. VJ—今年暑假不AC
  20. eclipse安装hadoop插件教程

热门文章

  1. BeagleBone Black– 智能家居控制系统 LAS - ESP8266 UDP 服务
  2. 西安音乐学院人计算机学院,我校在“中国大学生计算机设计大赛”中获佳绩
  3. java forward方法_JAVA的服务重定向:使用forward()方法转发请求和使用sendRedirect()方法重定向的区别...
  4. 服务器微信互通是什么意思,妄想山海微信区和QQ区互通吗,服务器互通数据详解...
  5. 基于波动率模型对上证综指的建模与实证分析
  6. UG 10.0打开装配图不产生零件图
  7. java多文件生成zip_如何在java中创建多部分压缩zip文件
  8. JavaScript 鼠标事件
  9. qq的云消息服务器,20 万台 QQ 服务器全面上云
  10. Ant Design Pro从零到一(页面创建)