Solved

Can't delete orphaned VM's

Posted on 2013-06-27
17
638 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 121
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
Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

 
LVL 121
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 121

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

Independent Software Vendors: 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!

Question has a verified solution.

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

HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
Ransomware is a malware that is again in the list of security  concerns. Not only for companies, but also for Government security and  even at personal use. IT departments should be aware and have the right  knowledge to how to fight it.
This Micro Tutorial walks you through using a remote console to access a server and install ESXi 5.1. This example is showing remote access and installation using a Dell server. The hypervisor is the very first component of your virtual infrastructu…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

726 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