If you powered off VM and you still ping it you likely have IP address conflict.
However can you show outputs from your troubleshooting? maybe you are looking for incorrect IDs?
The brute force is with you
This is the crudest method used to terminate a VM I can think of. It’s actually documented on the VMware site albeit slightly differently. A VM is invariably a series of processes running on ESXi. Using the ps command below, I can list the processes associated, say, with a VM called Centos 7 Web Server.1ps | grep "Centos 7 Web Server"
Listing the processes associated with a VM
If you look closely, you’ll see that the value in the second column is identical to all processes. This is the VMX Cartel ID value which, although different from the World ID value, can still be targeted to terminate a VM as follows:1kill 797300
If the processes persist in running, try kill -9 <process id>.Shell1kill -9 797300
The VM is not pinging after power down but the status in VC showing as like the VM is running.(Options I see is Power off, Suspend, Reset VM)
Now in this case the vm is not pining and I wont be able to find the world ID (Since it is Powered off)
Please suggest me some steps to troubleshoot.
You are probably looking on wrong VM with same display name as VM which you powered off.
Can you post some screenshots about running VM in question, on which host is it running? Can you check on this host output of the following command 'vim-cmd vmsvc/getallvms' and try find the running VM.
See if you are able to see the specific VM with this command:
If you are able to see that specific VM, that must be having some numeric ID.
Get the status of VM is its Power ON or not:
vim-cmd vmsvc/power.getstate vmid
If its on please power off with below command:
vim-cmd vmsvc/power.off vmid
Use restart if you need to restart in place of power.off
And if you want to remove this VM permanently, please run below commands as well:
First of all Unregister the VM using VIM command:
vim-cmd vmsvc/unregister vmid
Then Delete the VM using destroy command:
vim-cmd vmsvc/destroy vmid.
Hope that will help :-)