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 vCentre the option to 'Delete' is greyed out.
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
- Download the attached EnableVM.zip file to the ZVR directory off the affected ZVM
- Extract the archive
- Run it as follows, where 'VM moref' is e.g. vm-123
EnableVM <VC IP> < VCadmin user> <VM moref>
- The tool will ask you for the password with which to connect to the vCenter, and it should then unblock the VM.
- If you use vCloud Director you may also need to force delete any associated vApps created by the failover test.
In order to match the VM name to its MoRef ID
- Navigate to https://vcenterIP/mob
- Login with admin credentials
- Click the "Content" link under the value for the "content" property
- Click the "group" link under the value for the "rootFolder" property
- Click the relevant "datacenter" link under the value for the "childEntity" property
- Click the relevant "group" link under the value for the "hostFolder" property
- Click the "domain" link for the relevant cluster (or standalone host) under the value for the "childEntity" property
- Check the values for the "host" property - the relevant hosts will be listed there along with their MoRefs