?
Solved

Manually Remove Disconnected VM when Host Unavailable

Posted on 2011-03-07
7
Medium Priority
?
11,239 Views
Last Modified: 2012-05-11
Today we have had major problems with one of our clusters.  Thank fully at time of writing we have managed to restore most services. Howvever, we have a number of guest that have come disconnected.  Unfortunatley we cannot remove these from the inventory as they still have a status of powered on.  This is despite that actually physical host being powered down.  Does anyone know how we can change the status and remove and re-add to the inventory everything I have seen points to the physical host being available to fix such an issue.  Would appreciate anyone's wisdom.

Thanks

Graeme
0
Comment
Question by:GraemeTL
[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
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 40

Expert Comment

by:coolsport00
ID: 35060311
I assume you're logging into vCenter with vSphere Client? Do the VMs show as 'not connected' if you log onto the ESXi host directly? You can remove a powered-on VM from Inventory in vCenter and it would still be powered on, because VMs are actually on a host, not on vCenter. Remove from Inventory/then re-add one of your less critical VMs to test, but I'm pretty confident that is the case. Oh, and to re-add, you need to go into the VM's folder, right-click on its .vmx file and select Add to Inventory.

~coolsport00
0
 
LVL 16

Expert Comment

by:danm66
ID: 35060333
try restarting the management service on the hosts that these VM's are being reported as living on.  If they still persist, then restart the VC server service.
0
 
LVL 28

Expert Comment

by:bgoering
ID: 35060337
0
10 Questions to Ask when Buying Backup Software

Choosing the right backup solution for your organization can be a daunting task. To make the selection process easier, ask solution providers these 10 key questions.

 

Author Comment

by:GraemeTL
ID: 35061361
Hi all.  The problem we have is that the host where the vms live is dead, therefore we cannot logon to the host to remove or change the guest status to powered off, to then remove the machine from inventory.  These guests are part of a large cluster but we cannot migrate or anything as the physical host won't boot.
0
 
LVL 16

Expert Comment

by:danm66
ID: 35061388
can you right-click on the dead host and choose 'disconnect'?  if you can do that, then you can right-click and remove host.  That will remove the VM's on it, too.  
0
 
LVL 28

Accepted Solution

by:
bgoering earned 2000 total points
ID: 35061958
The first thing to do would be to remove the host from the cluster. I expect you should be able to do that - I believe it may ask do you want to uninstall the agent and you will say no because the host is dead. Removing the host would also remove the vms living on that host from inventory.

Next you would browse your datastores to each vm that was on the host in the datastore browser, right click the vmx file, and select add to inventory.

I did have to do that once a while back and I am pretty sure that was the process I followed.
0
 

Author Closing Comment

by:GraemeTL
ID: 35192322
Apologies for the delay in accepting the response
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Last article we focus in how to VMware: How to create and use VMs TAGs – Part 1 so before follow this article and perform the next tasks, you should read the first article how to create the TAG before using them in Veeam Backup Jobs.
In this article, I show you step by step with screenshots to assist you - HOW TO: Deploy and Install the VMware vCenter Server Appliance 6.5 (VCSA 6.5), with some helpful tips along the way.
Teach the user how to rename, unmount, delete and upgrade VMFS datastores. Open vSphere Web Client: Rename VMFS and NFS datastores: Upgrade VMFS-3 volume to VMFS-5: Unmount VMFS datastore: Delete a VMFS datastore:
Teach the user how to use vSphere Update Manager to update the VMware Tools and virtual machine hardware version Open vSphere Client: Review manual processes for updating VMware Tools and virtual hardware versions: Create a new baseline group in vSp…
Suggested Courses

777 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