We are using VMware View 4 with persistent desktops. We could not log into one of the desktops in the pool that was assigned to a particular User. We tried to reboot it through vCenter but it said another task was already in progress.
We stopped and restarted the Management Agent on the ESX 4i host, and that in turn made the VM in question orphaned (invalid).
Now when we try to do anything in VMware View we are getting an 'Error (misssing)' - Failed to remove VM: /COMPANY VDI Datacenter/vm/View Desktops/VDI4-XP-ENG_SP3/VDI4-XP-ENG-SP3/VDI4-XP-ENG1 from SVI inventory - null
How can we successfully remove this from the desktop pool and recreate it as it is still assigned to the User and they cannot login?
Hoping you can help please!?
A similar issue reported in a different thread. Give this a try to see if this fixes.
If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful
Found it eventually!
The vdmadmin command is located in the c:\program files\vmware\vmware view\server\bin directory of the broker server.
For syntax command see vdmadmin -help
To remove a User from a dedicated machine:
vdmadmin -L -d <desktop pool name> -m <virtual machine name> -r
would clear the User assigned to that VDI and leave it open for reuse. Handy if someone was to leave the company.
It may also be sometimes beneficial to assign a temporary user to the newly freed up VDI to stop another User accessing it as it is now available. The temporary user muct be an account already set up in AD, such as a dummy account. Such a case might be where there is an issue with the VDI in question and don't/can't remove it from the desktop pool:
vdmadmin -L -d <desktop pool name> -m <virtual machine name> -u <domain\user>
Hope this helps someone down the line!