Bushman007
Contributor
Contributor

Unable to delete greyed out orphaned VM

Hi all,

Hope some one can help with a tricky problem.

I have a greyed out, orphaned VM that associates itself with a server but when I access the server through SSH and VI directly to the host, there is nothing there.

When I typed vmware-cmd -l nothing happened as nothing is registered with the host.

I've literally tried everything but the fix, restarted the host, restarted the VCS, tried pressing the delete and obvious of right clicking.

Any ideas or suggestions?

Bushman

0 Kudos
5 Replies
ab_lal
Enthusiast
Enthusiast

Have you tried registering the VM (Vmx file)

Browse the datastore and right click on the Vmdk.vmx file and choose 'Add to Inventory'

0 Kudos
Paule83
Enthusiast
Enthusiast

Try this, if you have multiple ESX hosts:

1) put the ESX host with the orphaned vm into maintenance mode

2) remove the ESX host from the virtual center

3) connect the ESX host to the virtual center

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful
0 Kudos
ab_lal
Enthusiast
Enthusiast

We tried what Paule83 said but that did not work immediately and we had to take areboot of the ESX Host and try again. It worked after the reboot so i guess the kernel might have locked the access.

0 Kudos
msemon1
Expert
Expert

Sometimes you can restart vCenter Services or management services on ESX host if you have orphaned VM guests. Most of the time re-registering guests does the trick.

0 Kudos
WeaverJK2011101
Contributor
Contributor

Resolution that worked for me: 

In vCenter 6.5

Right-click the VM > All vCenter Orchestrator plugin Actions > All categorized actions > Remove from Inventory.

 

John K. Weaver - CISSP, CISM, CISA, MCITP-EA, MCITP-VA, MCSE Security, CCNP, CCNA-Security, VCP-DCV, VCP-NV, F5-CA
0 Kudos