Anddddd… Not again esxi.
Method 1 via cmd:
vim-cmd /vmsvc/getallvms
vim-cmd /vmsvc/unregister <id>
Method 2 via gui:
- Create a dummy vm
- Check the dummy vm and the invalid vm entries together
- Click actions and unregister.
References:
https://communities.vmware.com/thread/582673