Link to home
Start Free TrialLog in
Avatar of cloudbase
cloudbase

asked on

Can't delete orphaned VM's

Hi,

In my vcenter I have 2 VM's which are under Orphaned status.
I cannot find them on the host that is reported to host them and if I try to remove them from the inventory, the connection to the vcenter is restarted.

Any advice how can I remove them?
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Connect directly to all hosts and try removing from inventory.
Avatar of compdigit44
compdigit44

Adding on to hanccoka's post, try the following..

1) SSH to your host
2) In vCenter change your view to datastores -> Browse the datastore for the host in question and select the VM's folder. Try to right the VM's VMX file to re-register the VM in vCenter

On another note, has anything been done on these VM's recently
Avatar of cloudbase

ASKER

I found out that the problem comes from the host itself.
When I connected directly to the host, I don't see the orphaned VMs, but in vCenter I can see the VMs.

I also tried to remove the host from the cluster but it results in the same issue - the connection to the vCenter is being dropped and I need to log in again.

Currently the host is powered off, but I am unable to remove it from the cluster.
You will have to remove them from the vCenter database.
INteresting..

I wonder if the vpx agent is corrupt. You could try to completely>>
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1003742
How do I remove the host from the DB?
Sorry but this KB is talking about reclaiming space from the DB, not about manually remove items from within the DB
SOLUTION
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Tried both options.
Like I said, I suspect that the problem is with the host.
I could not move the VMs to the new folder (no error, simply could not).
I restarted the services and restarted the host several times, but this failed to solve my issue
have to check the logs on the host for any errors?
The specific host was reinstalled so no logs there since it is not really connected to the vcenter.
This KB is about other issues: disk space and shrinking the DB and logs.
Sorry about that, I posted the wron article.

HUm.. have you tried to run a query on your vCenter DB to look for reference for your host then try to delete it?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you all, we ended up with rebuilding the vcenter.