Deleting Orphaned Virtual Desktops In VMware View

If you’ve ever managed a VMware View vdi environment for a period of time sooner or later you will have to manually delete orphaned virtual desktops.  Although VMware provides KB 1008658 that explains this procedure.  It is lacking in clarity especially for first time VMware View admins.

As we all know our friend Google provides if you only ask.  I have found 3 other blogs that do very good job of taking KB 1008658 and parsing it down to a more concise version.  My intention was to do this myself but why reinvent the wheel when you can just pay homage to it.

Here are the 3 blog post links:

http://terenceluk.blogspot.com/2013/02/manually-deleting-orphaned-andor-stale.html

http://marcdrinkwater.com/2013/06/13/removing-missing-desktops-from-vmware-view/

http://luckyblogshere.blogspot.com/2011/06/removing-vms-from-adam-database.html

 

The summarized steps for deleting an orphaned virtual desktop in VMware View is:

  1. Stop provisioning on the offending vdi pool (optional but my experience is that it is essential especially with very busy non-persistent pools with)
  2. Remove orphaned virtual desktop from ADAM database
  3. Remove all relevant entries for the orphaned vdi in the SQL Composer database
  4. Delete corresponding computer object out of Active Directory
  5. Enable provisioning once again on the pool

Please see the other blog posts for exact details.

Hopefully seeing more than one example really helps in understanding the necessary steps.

Advertisements