vSphere 6.5

Remove Orphaned VM in VMware vCenter Web Client

Recently, I ran into an issue where I had a VM that was showing as orphaned in vCenter 6.5 web client.  The VM was not showing on the host itself when logging in directly.  When I right clicked on the orphaned VM in vCenter web client there was no option to remove the VM from inventory.  What was the resolution?  Let’s take a look at how to remove orphaned VM in VMware vCenter web client and the easy way we can get rid of a problem VM that is lingering in an orphaned state.

Remove Orphaned VM in VMware vCenter Web Client

As you can see below in the web client, I had an Ubuntu VM showing as “orphaned” and I couldn’t remove it from the web client.

orphaned1

In steps PowerCLI!  Using the latest version 6.5 Release 1, I connected to the vCenter VCSA appliance.  Running a get-vm | select name I can see the VM in question.

Now all we have to do is run a remove-vm <VM name> to remove the VM that is orphaned.  Finally, I ran the same get-vm | select name command to see if it was indeed gone and voila!

orphaned2

A final confirmation was looking in the web client once again to see if the VM was gone from there as well and it was.

orphaned3

Thoughts

There are many cases where when you can’t get rid of objects using the vSphere Client (no longer usable with 6.5) or the vCenter web client, you can pull out PowerCLI and accomplish what you want to and the “Remove Orphaned VM in VMware vCenter Web Client” is no exception to this.  So, if you get stuck with the GUI tools, be sure to leverage PowerCLI.

Subscribe to VirtualizationHowto via Email 🔔

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Brandon Lee

Brandon Lee is the Senior Writer, Engineer and owner at Virtualizationhowto.com and has over two decades of experience in Information Technology. Having worked for numerous Fortune 500 companies as well as in various industries, Brandon has extensive experience in various IT segments and is a strong advocate for open source technologies. Brandon holds many industry certifications, loves the outdoors and spending time with family.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.