============================================================ [VM-虚拟机]重新导入虚拟环境启动报错
Writed by semiter
版权所有,文章允许转载,但必须以链接方式注明源地址,否则追究法律责任!
============================================================
OS:win7 32bit
vmware server:2.0.2
情形一:
重装系统后,机器名称改变了,重装虚拟机后导入原来的虚拟环境;
情形二:
把虚机环境从一台机器导到另一台机器后,也等同于情形一;
启动总是提示错误:
SCSI reservation for virtual device "scsi1:0" cannot be enabled because the disk "share-disk.vmdk " is being used by another virtual machine running on a different host machine. SCSI reservation under VMware Server is only available for machines running on the same host machine. Failed to configure virtual device scsi1.
分析过程:
由于导入的虚拟机是个双机环境,同时用到了共享磁盘,share-disk.vmdk是共享磁盘的配置文件,安装报错说明,应该是另一个主机也同时加载了这个虚拟磁盘,难道没有配置共享磁盘的设置?? 打开其中一台虚拟机的配置文件:Red Hat Enterprise Linux 5.vmx disk.locking = "false" diskLib.dataCacheMaxSize = "0" diskLib.dataCacheMaxReadAheadSize = "0" diskLib.DataCacheMinReadAheadSize = "0" diskLib.dataCachePageSize = "4096" diskLib.maxUnsyncedWrites = "0" 磁盘共享已经配置了,为何还是报错呢,犹豫之际,看到了几个lock文件,难道问题在这里? share-disk.vmdk.RESLCK、564d06b1-1836-79ac-7fd9-b024b42335c1.vmem.lck share-disk.vmdk.RESLCK这个是共享磁盘启用时的一个锁文件,由于以前的环境已经不存在,于是,删除此文件,再次启动VMware Server,正常启动了! 同时启动后,可以看到share-disk.vmdk.RESLCK在新的环境下,又重新生成了,原来如此,忽略了!在此记之,以备后用!
============================================================
QQ: 84096791
Email:
Blog:
============================================================