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:
THH-MM-SS | vmx| Config file: /vmfs/volumes/Datastore/MyVM/MyVM.vmx
- To obtain the virtual machine display name, run the command:
grep displayName /vmfs/volumes/Datastore/MyVM/MyVM.vmx
Where /vmfs/volumes/Datastore/MyVM/MyVM.vmx is the virtual machine configuration file path in the step 2 output.
There is a similar output to:
displayName = "MyVM"
Note: The display name of the virtual machine may be different to the configuration file name (for example, if the virtual machine is renamed).
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.
- 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