ERROR: "This virtual machine appears to be in use"

本文提供了解决虚拟机在非正常断电后出现无法引导的错误方法,通过删除虚拟机安装目录下的所有.lck文件,并重新开启虚拟机来解决问题。解释了.lck文件的作用以及在非正常关闭后可能导致的问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

虚拟器非正常断电后容易出现"This virtual machine appears to be in use"的错误而不能正常引导,解决办法是删除VMWare虚拟机安装目录下面的所有的.lck目录和文件,后重新开启,如还出错,需整机重启。

 

PS: 这个lck文件是虚拟机的磁盘锁文件,我们知道虚拟机的磁盘与主机的磁盘是共存的,只是由于采用特定的虚拟机制,使二者互不影响。在使用虚拟机时,vmware就会生成若干磁盘锁文件,用以保护当前虚拟机占用的磁盘不会被主机或者其它虚拟机占用修改。在正常关闭虚拟机后,vmware会自动删除这个锁。可是少数情况下,例如主机突然崩溃、非正常关机等,vmware就不能够删除lck磁盘锁文件。所以下次再启动虚拟机时,vmware还会误认为需要启动的虚拟系统已经正在运行,就出现了上面的this virtual machine appears to be in use 的错误。删除该文件后就能够恢复正常。

qwe123@qwe123-virtual-machine:~/CLionProjects/C_code/BDZ_hash$ gcc -o bdz_hash bdz_hash.c -lcmph bdz_hash.c:8:5: error: unknown type name ‘uint16_t’ 8 | uint16_t dist1, dist2, dist3; // 量化角距 (2字节×3) | ^~~~~~~~ bdz_hash.c:13:5: error: unknown type name ‘uint32_t’ 13 | uint32_t starID1 : 24; // 24位ID存储 | ^~~~~~~~ bdz_hash.c:14:5: error: unknown type name ‘uint32_t’ 14 | uint32_t starID2 : 24; | ^~~~~~~~ bdz_hash.c:15:5: error: unknown type name ‘uint32_t’ 15 | uint32_t starID3 : 24; | ^~~~~~~~ bdz_hash.c: In function ‘main: bdz_hash.c:35:5: error: unknown type name ‘uint32_t’ 35 | uint32_t *starID1 = NULL, *starID2 = NULL, *starID3 = NULL; | ^~~~~~~~ bdz_hash.c:5:1: note: ‘uint32_t’ is defined in header ‘<stdint.h>’; did you forget to ‘#include <stdint.h>’? 4 | #include <cmph.h> +++ |+#include <stdint.h> 5 | bdz_hash.c:43:58: error: ‘uint32_t’ undeclared (first use in this function) 43 | starID1 = realloc(starID1, capacity * sizeof(uint32_t)); | ^~~~~~~~ bdz_hash.c:43:58: note: ‘uint32_t’ is defined in header ‘<stdint.h>’; did you forget to ‘#include <stdint.h>’? bdz_hash.c:43:58: note: each undeclared identifier is reported only once for each function it appears in bdz_hash.c:48:17: error: expected ‘;’ before ‘id1’ 48 | uint32_t id1, id2, id3; | ^~~~ | ; bdz_hash.c:49:9: error: unknown type name ‘uint16_t’ 49 | uint16_t d1, d2, d3; | ^~~~~~~~ bdz_hash.c:49:9: note: ‘uint16_t’ is defined in header ‘<stdint.h>’; did you forget to ‘#include <stdint.h>’? bdz_hash.c:51:20: error: ‘id1’ undeclared (first use in this function); did you mean ‘d1’? 51 | &id1, &id2, &id3, &d1, &d2, &d3) == 6) { | ^~~ | d1 bdz_hash.c:51:26: error: ‘id2’ undeclared (first use in this function); did you mean ‘d2’? 51 | &id1, &id2, &id3, &d1, &d2, &d3) == 6) { | ^~~ | d2 bdz_hash.c:51:32: error: ‘id3’ undeclared (first use in this function); did you mean ‘d3’? 51 | &id1, &id2, &id3, &d1, &d2, &d3) == 6) { | ^~~ | d3
最新发布
07-31
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值