Knowledge Base
The VMware Knowledge Base provides support solutions, error messages and troubleshooting guides

|
Manually deleting linked clones or stale virtual desktop entries from VMware View Manager 3.x and 4.0.x (1008658)
Symptoms
- You cannot provision a linked clone desktop pool
- You see the error:
Desktop Composer Fault: 'Virtual Machine with Input Specification already exists' - Provisioning a linked clone desktop pool fails with the error:
Virtual machine with Input Specification already exists
- The Connection Server shows that linked clone virtual machines are stuck in a Deleting state
Cause
- A table in the database contains incorrect data.
- The virtual machine name has been manually changed in the vCenter Server after the pool has been created, which causes View Composer and vCenter Server to refer to the same virtual machine with different names.
Resolution
Note: If following the steps in Manually deleting linked clones or stale virtual desktop entries from VMware View Manager 4.5 and later (2015112) does not resolve the issue in View 4.5 and later, continue to perform the procedures in this article.
If the virtual machine was renamed through the vSphere Client after the pool was provisioned, you can resolve the issue by renaming the virtual machine to its original deployed name.
To resolve database inconsistency, you must delete the virtual machine references from the ADAM database and from the View Composer database so the tables regenerate properly. Then ensure that no pool desktop names are changed through vCenter Server after the pool is created.
Perform these steps in order. The sections are ordered in the most appropriate sequence to isolate the issue, identify the proper resolution, and minimize data loss. After each section, check to see if the issue is resolved. Work through each troubleshooting section in order, and do not skip a section.
Warning: Before you delete entries from either database, take a complete backup of the ADAM and Composer databases and disable provisioning for the pool in View Manager. For more information, see Performing an end-to-end backup and restore for View Manager (1008046).
Removing the virtual machine from the ADAM database
Note: Before removing entries from the ADAM database, note the virtual machine name of the desktops that are being removed for reference when editing the Composer Database.- Connect to the View ADAM Database. For more information, see Connecting to the View ADAM Database (2012377).
- Locate the GUID of the virtual machine.
To locate the GUID of the virtual machine:
- Right-click the Connection View ADAM Database [localhost:389], and click New > Query.
- Under Root of Search, click Browse.. and select the Servers organizational unit.
- Click OK.
- In the Query String, paste this search string:
(&(objectClass=pae-VM)(pae-displayname=VirtualMachineName))
WhereVirtualMachineNameis the name of the virtual machine for which you are trying to locate the GUID. You may use * or ? as wildcards to match multiple desktops.
- Click OK to create the query.
- Click the query in the left pane. The virtual machines that match the search are displayed in the right pane.
- Record the GUID in
cn=<GUID>.
pae-VM object from the ADAM database:- Locate the
OU=SERVERScontainer. - Locate the corresponding virtual machine's GUID (from above) in the list which can be sorted in ascending or descending order, choose Properties and check the
pae-DisplayNameattribute to verify the corresponding linked clone virtual machine object. - Delete the
pae-VMobject.
- Check if there are entries under
OU=DesktopsandOU=Applicationsin the ADAM database. - A broken pool that does not contain any desktops can be removed from View Manager by removing the pool entry from both the Server Groups and Applications organizational units. However, removing one entry and not the other from the ADAM database results in the
java.lang.nullpointerexceptionerror when attempting to view the pools or desktops inventory in View Manager.
Removing the linked clone references from the View Composer database
To remove the linked clone references from the View Composer database:- Open SQL Manager > Databases > View Composer database > Tables.
- Open the
dbo.SVI_VM_NAMEtable and delete the entire row where the virtual machine is referenced under theNAMEcolumn. - Open the
dbo.SVI_COMPUTER_NAMEtable and delete the entire row where the virtual machine is referenced under theNAMEcolumn. - Open the
dbo.SVI_SIM_CLONEtable, find the virtual machine reference under columnVM_NAMEand note the ID. If you try to delete this row, it complains about other table dependencies. - Open the
dbo.SVI_SC_PDISK_INFOtable and delete the entire row where dbo.SVI_SIM_CLONE IDis referenced under thePARENT_IDcolumn. - Open the
dbo.SVI_SC_BASE_DISK_KEYStable and delete the entire row wheredbo.SVI_SIM_CLONE IDis referenced under thePARENT_IDcolumn. - If the linked clone was in the process of being deployed when a problem occurred, there may be additional references to the clone left in the
dbo.SVI_TASK_STATEanddbo.SVI_REQUESTtables:
- Open the
dbo.SVI_TASK_STATEtable and find the row wheredbo.SVI_SIM_CLONE IDis referenced under theSIM_CLONE_IDcolumn. Note theREQUEST_IDin that row. - Open the
dbo.SVI_REQUESTtable and delete the entire row wheredbo.SVI_TASK_STATE REQUEST_IDis referenced. - Delete the entire row from the
dbo.SVI_TASK_STATEtable.
- Open the
- In the
dbo.SVI_SIM_CLONEtable, delete the entire row where the virtual machine is referenced.
Removing the virtual machine from Active Directory
- Log into the Domain Controller as Administrator.
- Navigate to Start > Administrative Tools > Active Directory Users and Computers.
- Remove the virtual machine from Computers.
Deleting the virtual machine from vCenter Server
To delete the virtual machine from vCenter Server:- Log into vCenter Server using the vSphere Client.
- Right-click the linked clone virtual machine and click Delete from Disk.
Additional Information
For more information about ADSI Edit, see the Microsoft TechNet ADSI Edit page.
Note: The preceding link was correct as of September 20, 2012. If you find the link is broken, provide feedback and a VMware employee will update the link.
Note: The preceding link was correct as of September 20, 2012. If you find the link is broken, provide feedback and a VMware employee will update the link.
Note: For help on removing physical machines from ADAM, see Removing stale physical machine entries from the ADAM database in View Manager (2036601).
Tags
view-composer view-pool-delete view-pool-delete-fails
See Also
- Performing an end-to-end backup and restore for View Manager
- Cómo borrar manualmente linked clones o escritorios virtuales inoperantes desde VMware View Manager
- Connecting to the View ADAM Database
- VMware View Managerからリンククローンや仮想デスクトップのエントリを手動で削除する方法
- Manually deleting linked clones or stale virtual desktop entries from the View Composer database in VMware View Manager 4.5 and later
- Removing stale physical machine entries from the ADAM database in View Manager
- Como excluir manualmente clones vinculados ou entradas de áreas de trabalho virtuais obsoletas do VMware View Manager 3.x e 4.0.x
This Article Replaces
Update History
Request a Product Feature
To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.
Actions
KB:
- Updated:
- Categories:
- Languages:
- Product Family:
- Product(s):
- Product Version(s):

