To resolve this issue, identify the virtual machine that is locking the
vmware-vmx-xxx.log file, release the lock and delete the log file.
To identify the affected virtual machine:
- Log in to the ESXi host as the root user.
- Run the command:
grep "Config file:" /tmp/vmware-root/vmware-vmx-xxx.log
Where xxx is the log file number.
You see output similar to:
T08:32:05.463Z| vmx| Config file: /vmfs/volumes/4f55f70a-0bcd954f-d11c-001ec9cf1972/MyVM/MyVM.vmx
- To obtain the virtual machine display name, run the command:
grep displayName /vmfs/volumes/4f55f70a-0bcd954f-d11c-001ec9cf1972/MyVM/MyVM.vmx
Where /vmfs/volumes/4f55f70a-0bcd954f-d11c-001ec9cf1972/MyVM/MyVM.vmx is the virtual machine configuration file path in the step 2 output.
You see output similar to:
displayName = "MyVM"
Note: The display name of the virtual machine may be different to the configuration file name (for example, if you rename the virtual machine).
To release the lock on the vmware-vmx-xxx.log file and delete it:
- Launch vSphere Client.
- Click the ESXi host in the inventory and click the Virtual Machines tab.
- Search for the virtual machine display name noted in step 3.
- To release the lock on the vmware-vmx-xxx.log file, power off the virtual machine.
- You can delete the vmware-vmx-xxx.log file by logging in to the ESXi host and running the command:
rm /tmp/vmware-root/vmware-vmx-xxx.log