解决打开VMware虚拟机时Take Ownership出错的问题
来源:互联网 发布:鲁班软件一套多少钱 编辑:程序博客网 时间:2024/06/14 16:44
问题描述:
试图打开一个虚拟机,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出错的问题
- 解决 Vmware 克隆 Centos 虚拟机时,网卡需要重新设置的问题
- VMware安装windows XP OS 虚拟机时常见的问题
- vmware 打开虚拟机时提示“该虚拟机似乎正在被使用”解决
- vmware 打开虚拟机时提示“该虚拟机似乎正在被使用”解决
- VMware识别虚拟磁盘出错的解决
- 装VMware虚拟PC机时问题集锦
- 解决关闭,暂停 vmware 虚拟机时导致系统很卡问题
- Take ownership
- 安装虚拟机时,出现VT未打开的问题的解决方法
- android关于打开虚拟机时右侧工具栏不显示的问题
- 安装虚拟机时可能会出现的问题
- 消除VMware启动虚拟机时的floppy0提示的方法
- 克隆或复制VMware虚拟机时的网络设置
- modprobe loop解决xen安装虚拟机时提示安装源错误的问题
- 打开VMware的系统出错
- VMware非正常关闭导致打开虚拟机时提示:未找到.vmx文件
- win10下打开虚拟机时,常出现vmware workstation内部错误解决方法
- C与C++动态分配,释放内存的区别
- dos命令之CD
- jdk目录详解
- 几款免费的英文SEO工具
- 主流平板比较
- 解决打开VMware虚拟机时Take Ownership出错的问题
- Android之UI学习篇三:TextVeiw单击文字链接弹出Activity
- 到mor上找工作... ...
- ld: library not found for -lz
- Google Maps导出的kml与kmz纠偏
- Android 实用工具之emulator
- PyQt4 关联不同的滚动条
- location of the android sdk has not been setup in the preferences如何解决
- java_command_宏命令