2 Replies Latest reply on Nov 5, 2019 11:09 AM by BarryUWSEFS

    Orphaned VM Mystery

    BarryUWSEFS Novice

      Hello, VSphere 6.7

       

      I spent a couple hours researching this and still do not have a definitive answer.

      I had a dozen or more Linked clone VM's that were no longer in VMware Horizon pools. I had shut them all down with the intention to delete them. I did some work on the cluster that initiated a failover. After the cluster was healthy again these VM's were all orphaned. I want to delete them from disk but most of the research I did only mentioned removing from inventory. When I look at the VSAN storage these all still have folders and vmdk. I tried to register one but that did not work.

      I opened PowerCLI and  Get-VM -Name *  on the host. None of the orphaned VM's were listed. So now I am not sure what to do. Can I just remove from inventory and delete the data folders?

       

      Thanks

        • 1. Re: Orphaned VM Mystery
          Amin Masoudifard Expert

          If you remove/unregister from the ESXi web console or vCenter server directly, Horizon View Connection server doesn't know about it and think it still exists.

          If you remove/unregister from the Connection server middle of connection interruption between Horizon servers and the vCenter, it may cause the VM to still be registered in the vCenter and doesn't remove them really. So remove operation of a VM from VDI desktop pool needs to knowledge of both vCenter and Connection Servers and database VDI and vSphere must be informed of this action, otherwise, you need to remove them by connecting to that mentioned databases. (Sometimes PowerCLI cannot find object of that VM if it's not belong to your virtual datacenter anymore )

          Please mark my comment as the Correct Answer if this solution resolved your problem
          • 2. Re: Orphaned VM Mystery
            BarryUWSEFS Novice

            Thank you Amin. Good explanation of the cause and process.

            -Barry