Had an issue where I’d deleted a VMDK from a LUN and was left with orphaned VM in vSphere, no problem I thought…right click and remove from inventory. The problem is, all options were greyed out:
So what to do?
Enable SSH on the host.
Connect wit Putty and run:
List all registered VMs
vim-cmd /vmsvc/getallvms
Then to unregistered:
vim-cmd /vmsvc/unregister <id>
Leave a Reply