Unable to delete a VM created by a Zerto Failover Test

Modified on Tue, 28 Jun 2022 at 01:28 PM

Symptoms:

 

After performing a VPG Failover Test, when the test is stopped one or more VMs are not removed cleanly from the VMware environment. When you try to manually delete the VM from vCenter the option to 'Delete' is greyed out.



Cause:

 

When Zerto creates a VM as part of an automated process it locks the VM ensuring only Zerto components can control the associated VM/s



Solution:


  1. Download the EnableVM.zip file to a tempdirectory on a machine that can access the vCenter
  2. Extract the archive
  3. Run it as follows, where 'VM moref' is e.g. vm-123
    EnableVM <VC IP> < VCadmin user> <VM moref>
  4. The tool will ask you for the password with which to connect to the vCenter, and it should then unblock the VM.
  5. If you use vCloud Director you may also need to force delete any associated vApps created by the failover test.






Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article