Tuesday, August 5, 2014

Virtual machines appear as orphaned in vCenter Server

I had a server with the status Orphaned. I have read this article:


VMware KB: Virtual machines appear as invalid or orphaned in vCenter Server

But there was an easier way to solve it. I migrated the server to a new datastore and host.. Now it is available again. Read more about it below:

Recover Orphaned Virtual Machines
Virtual machines appear in the vSphere inventory list with (orphaned) appended to their name.
Virtual machines that reside on an ESXi host managed by vCenter Server might become orphaned in rare cases. Such virtual machines exist in the vCenter Server database, but the ESXi host no longer recognizes them.
Virtual machines can become orphaned if a host failover is unsuccessful, or when the virtual machine is unregistered directly on the host. If this situation occurs, move the orphaned virtual machine to another host in the datacenter that has access to the datastore on which the virtual machine files are stored.
1
In the vSphere inventory list, right-click the virtual machine and select Migrate.
2
Click Change Host and click Next.
3
Select the host on which to place the virtual machine.
If no hosts are available, add a host that can access the datastore on which the virtual machine's files are stored.
4
Click Finish to save your changes.
The virtual machine is connected to the new host and appears in the inventory list.

source:  
 

Friday, August 1, 2014