To restore the methods, follow one of the options below:
Option 1: Using vSphere Client (8.0 U3 and later)
- Navigate to the affected Virtual Machine in the vCenter Inventory.
- Select Configure > Disabled Methods.
- Select the required method and click Enable.
Option 2: Using vCenter Managed Object Browser (MOB)
- Identify the VM's MOB ID (MOID):
- Select the affected Virtual Machine in the vCenter Inventory.
- Check the browser URL for the string VirtualMachine:vm-xx (where vm-xx is the MOID).
- Access the MOB URL: https://<vCenter_FQDN_or_IP>/mob/?moid=AuthorizationManager&method=enableMethods.
- Log in using the vCenter Server's Local SSO account (e.g., [email protected]).
- For the entity parameter, enter the MOID identified in step 1 (e.g., vm-xx).
- For the method parameter, add the following strings one at a time or as an array:
Destroy_Task
UnregisterVM
- Click Invoke Method.
- Refresh the vSphere Client and verify the options are now active.
Option 3: Using vCenter Postgres Database
Warning: Ensure you have a valid backup and snapshot of the vCenter Server before performing database modifications.
- Stop the vpxd service:
service-control --stop vpxd
- Enter the vCenter Postgres Database:
/opt/vmware/vpostgres/current/bin/psql -d VCDB -U postgres
- Identify the ID for the Virtual Machine:
select id, file_name from vpx_vm where file_name like '%VM_NAME%';
- Query the disabled methods to find entries for the affected VM:
select * from vpx_disabled_methods where entity_mo_id_val = 'vm-ID';
- Remove the disabled methods:
DELETE FROM vpx_disabled_methods WHERE entity_mo_id_val = 'vm-ID';
- Exit the database using
\q
- Restart services:
service-control --start vpxd