VMware Communities
lincong618
Contributor
Contributor

'vmrun deleteVM' failed with error 'This VM is in use' in workstation 10

I can't successfully execute this command once the VM had been started in the workstations with gui( the VM is listed in the library).

It seems I need to manually remove the VM from the workstation GUI before running this command.

I can create a virtual machine with vmrun but I can't delete it with vmrun. This doesn't make sense!

I want to automate this operation with vmrun.

Could somebody tell me how? Thanks.

Or should I try some higher version?

0 Kudos
1 Reply
RJB3ST
Enthusiast
Enthusiast

Hello,

Having a quick look online I have found that unfortunately the unregister command doesn't work for VMware Workstation and is not supported. You will have to manually remove the VM from inventory before running the DeleteVM command.

Kind Regards,

RJ

0 Kudos