发布于 4年前

虚拟机Error:"This virtual machine appears to be in use"

早晨起来过来用虚拟机,发现无法加载,而且奇怪的是,装了7个虚拟系统,只有linux可以,别的windows都不行。
出现的错误是:

This virtual machine appears to be in use.

If this virtual machine is not in use, press the "Take Ownership" button to obtain ownership of it. Otherwise, press the "Cancel" button to avoid damaging it.

Configuration file: D:\VMos\win7x86\Windows 7.vmx.

顺着他的意思我点击了take ownership,但是出现了这样的结果

Could not open virtual machine: D:\VMos\win7x86\Windows 7.vmx

Taking ownership of this virtual machine failed.

The virtual machine is in use by an application on your host computer.

Configuration file: D:\VMos\win7x86\Windows 7.vmx.

以为是进程占用,然后关掉了所有与vm相关的进程,都不能打开。
无奈之中百度了一下,终于找到了解决办法。
这篇文章中,作者是这样说的:

vm中存在一种文件叫做lck的虚拟机磁盘锁文件,用于保护当前虚拟机所使用的物理磁盘不被改写。当关掉虚拟机界面程序的时候,这个lck文件会自动被虚拟机删除,也就是说到了这一步才算是正确的退出。

终于知道原因了,昨晚直接强行关机了。对虚拟机造成的结果就是,没有让虚拟机解锁磁盘锁,也就是lck文件,导致下次启动的时候,虚拟机程序发现vmos下有个lck文件,以为这个虚拟机已经打开了。然后,就不让你重复打开了。

那么,解决方法就很简单了。直接删除掉lck文件即可。

相关文章

©2020 edoou.com   京ICP备16001874号-3