This issue occurs when the virtual machine is registered on multiple ESX/ESXi hosts at the same time.
- Ensure the virtual machine is fully powered off.
- Unregister the virtual machine from the ESX host again with the command:
vim-cmd vmsvc/unregister vmid
- Run this command to stop the hostd process:
/etc/init.d/hostd stop
- Use a text editor to open the /etc/vmware/hostd/vmInventory.xml file.
- Locate the virtual machine you want to remove.
- Remove all the information between the <ConfigEntry> tags for the affected virtual machine.
- Run this command to start the hostd process:
/etc/init.d/hostd start