VMware Communities
JoJoMan25
Contributor
Contributor

vmrun doesnt clean up lock folder (linux)

I have a cron that will start/stop some VMs in VMWare workstation using the `vmrun` command:


45 19 * * * vmrun -T ws start '/home/me/vmware/VM1/VM1.vmx' nogui
15 4 * * * vmrun -T ws stop '/home/me/vmware/VM1/VM1.vmx'


However it seems like the `vmrun -T ws stop` leaves the `.lck` folder hanging around, which makes the next vmrun start fail.
Is there anyway to clean up this folder? Or check manually if it is legitimate, and remove it if it is not?

0 Kudos
1 Reply
fabio1975
Commander
Commander

Ciao 

have you tried to perform a soft shutdown by adding to the line vmrun stop <vmx path>  the command soft and check if the situation changes?

vmrun -T was stop '/home/me/VMware/VM1/VM1.vmx' soft 

Fabio

Visit vmvirtual.blog
If you're satisfied give me a kudos

0 Kudos