Solved

Can't delete orphaned VM's

Posted on 2013-06-27
17
635 Views
Last Modified: 2013-07-10
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?
0
Comment
Question by:cloudbase
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 7
  • 3
17 Comments
 
LVL 120
ID: 39282584
Connect directly to all hosts and try removing from inventory.
0
 
LVL 20

Expert Comment

by:compdigit44
ID: 39288478
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
0
 

Author Comment

by:cloudbase
ID: 39292978
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.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 120
ID: 39293011
You will have to remove them from the vCenter database.
0
 
LVL 20

Expert Comment

by:compdigit44
ID: 39293014
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
0
 

Author Comment

by:cloudbase
ID: 39293078
How do I remove the host from the DB?
0
 
LVL 20

Expert Comment

by:compdigit44
ID: 39293086
0
 

Author Comment

by:cloudbase
ID: 39293179
Sorry but this KB is talking about reclaiming space from the DB, not about manually remove items from within the DB
0
 
LVL 120

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE^2)
Andrew Hancock (VMware vExpert / EE MVE^2) earned 250 total points
ID: 39293209
0
 

Author Comment

by:cloudbase
ID: 39293223
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
0
 
LVL 20

Expert Comment

by:compdigit44
ID: 39293425
have to check the logs on the host for any errors?
0
 

Author Comment

by:cloudbase
ID: 39293448
The specific host was reinstalled so no logs there since it is not really connected to the vcenter.
0
 
LVL 20

Expert Comment

by:compdigit44
ID: 39293470
0
 

Author Comment

by:cloudbase
ID: 39293561
This KB is about other issues: disk space and shrinking the DB and logs.
0
 
LVL 20

Expert Comment

by:compdigit44
ID: 39293646
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?
0
 
LVL 20

Accepted Solution

by:
compdigit44 earned 250 total points
ID: 39293652
Try a query like this...

select ID from VPX_ENTITY where name ='<host_name>';
0
 

Author Comment

by:cloudbase
ID: 39313585
Thank you all, we ended up with rebuilding the vcenter.
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Will try to explain how to use the VMware feature TAGs in the VMs and create Veeam Backup Jobs using TAGs. Since this article is too long, I will create second article for the Veeam tasks.
In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
Teach the user how to install and configure the vCenter Orchestrator virtual appliance Open vSphere Web Client: Deploy vCenter Orchestrator virtual appliance OVA file: Verify vCenter Orchestrator virtual appliance boots successfully: Connect to the …
Teach the user how to install log collectors and how to configure ESXi 5.5 for remote logging Open console session and mount vCenter Server installer: Install vSphere Core Dump Collector: Install vSphere Syslog Collector: Open vSphere Client: Config…

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question