vSphere 6.5

Remove Orphaned VM in VMware vCenter Web Client

Let's take a look at how we can use PowerCLI to resolve the issue of how to 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 a 7-time VMware vExpert, with over two decades of experience in Information Technology. Having worked for numerous Fortune 500 companies as well as in various industries, He 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. Also, he goes through the effort of testing and troubleshooting issues, so you don't have to.

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.