Today, when unplugging the virtual machine's hard drive, it does not turn off the virtual machine, causing the virtual open to appear: Cannot open the disk ' XXXXXXX.VMDK ' or one of the snapshot disks it depends on. . A lot of information has been found to find a solution at last.
The virtual disk (. vmdk) itself has a disk protection mechanism that, in order to prevent multiple VMs from accessing the same virtual disk (. vmdk) for both data loss and performance reduction, virtual machines are used each time the virtual machine is started with a. LCK (disk Lock) file on the virtual disk (. vmdk ) for lock protection. The. LCK (disk lock) file is automatically deleted when the virtual machine shuts down. However, it is possible that the virtual machine has not been able to delete the. LCK (disk Lock) file on your system since it was not properly shut down, so the next time you start the virtual machine, the above error occurs.
The workarounds are :
Open with a text editor *. VMX file, and at the end add a line of code disk.locking = "FALSE" To restart the virtual machine, you can open it.
There was an error in VMware starting CentOS cannot open the disk ' XXXXXXX.VMDK ' or one of the snapshot disks it depends on. .