Knowledge Base

|
Cannot remove source and replica virtual machines associated with View Composer desktop pools (1008704)
Symptoms
- You cannot remove source and replica virtual machines associated with desktop pools in View Composer.
- Removing source and replica virtual machines associated with desktop pools in View Composer fails.
Purpose
Resolution
The View Connection Server creates, manages, and deletes linked clones during View Composer operations. If the Connection Server functions are interrupted, the linked clones create orphaned folders, protected folders and virtual machine objects remaining in the vCenter Server.
Caution: In View Composer 2.0, if a replica folder is unprotected, it cannot be protected again. Use the UnprotectEntity command as a last-resort troubleshooting procedure and exercise caution when running this command.
- 32-bit servers: C:\Program Files\VMware\VMware View Composer
- 64-bit servers: C:\Program Files (x86)\VMware\VMware View Composer
Note: In Windows Server 2008 machines, the command prompt must be run as an Administrator or you will receive an error. To accomplish this, Click Start, and type cmd. Hold Ctrl + Shift, and press Enter. User Account Control will then confirm the escalated permissions, and you will be running cmd.exe as an Administrator.
To unprotect a replica in the VMwareViewComposerReplicaFolder folder, run the command:
For View Composer 2.7 and earlier (View 5 and earlier):
sviconfig -operation=UnprotectEntity -VcUrl=https://<VirtualCenter address>/sdk -Username=<VirtualCenter account name> -Password=<VirtualCenter account password> -InventoryPath=/<Datacenter name>/vm/VMwareViewComposerReplicaFolder/<Replica Name> -Recursive=true
For View Composer 3.0 (View 5.1):
sviconfig -operation=UnprotectEntity -DsnName=<Composer Database Name> -DbUsername=<Composer DSN User Name> -DbPassword=<Composer DSN Password> -VcUrl=https://<vCenter Server address>/sdk -VcUsername=<Domain\User of vCenter Server account name> -VcPassword=<vCenter Server account password> -InventoryPath=/<Datacenter name>/vm/VMwareViewComposerReplicaFolder/<Replica Name> -Recursive=true
Notes:
- The sviconfig command parameters are case sensitive.
- Values within <brackets> are variables and must be replaced with your environmental values.
- Values with spaces must be surrounded by "double quotes". For example:
-InventoryPath= "/View Repository/vm/VMwareViewComposerReplicaFolder"
- The VMwareViewComposerReplicaFolder is a special container. The replica virtual machines are not visibly part of this container and the path to the virtual machine for sviconfig will always be /<Datacenter_Name>/vm/VMwareViewComposerReplicaFolder/replica-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx, regardless of which Resource Pools or Folders contain the virtual machine.
- If the Datacenter object is not the top level object and is inside a folder, the path must reflect this. For example, /<folderName>/<Datacenter_Name>/vm/VMwareViewComposerReplicaFolder/replica-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
To unprotect the replica folder VMwareViewComposerReplicaFolder and all the linked clone related objects it contains, run the command:
For View Composer 2.7 and earlier (View 5 and earlier):sviconfig -operation=UnprotectEntity -VcUrl=https://my.vc/sdk -Username=User1 -Password=123 -InventoryPath=/<Datacenter_name>/vm/VMwareViewComposerReplicaFolder -Recursive=True
sviconfig -operation=UnprotectEntity -DsnName=<Composer Database Name> -DbUsername=<Composer DSN User Name> -DbPassword=<Composer DSN Password> -VcUrl=https://<vCenter Server address>/sdk -VcUsername=<Domain\User of vCenter Server account name> -VcPassword=<vCenter Server account password> -InventoryPath=/<Datacenter name>/vm/VMwareViewComposerReplicaFolder -Recursive=true
- In View Composer 2.5 and later, you can re-protect the VMwareViewComposerReplicaFolder using -operation=ProtectEntity
Note: The inventory path is case sensitive. If any part of the path entered in the command line differs from the inventory path, you can receive an Error 11.
Possible error codes from the SviConfig utility:
|
Code |
Description |
|
0 |
The operation ended successfully |
|
2 |
Invalid VirtualCenter administrator credentials were provided |
|
9 |
An invalid VirtualCenter URL was provided |
|
10 |
VirtualCenter was unavailable or could not be accessed |
|
11 |
The specified entity was not found |
|
12 |
Unknown entity type. Recognized entities are VM and Folder |
|
13 |
The release operation failed |
Additional Information
- Manually deleting linked clones or stale virtual desktop entries from VMware View Manager 3.x and 4.0 (1008658)
- Manually deleting linked clones or stale virtual desktop entries from VMware View Manager 4.5 and later (2015112)
- Finding and removing unused replica virtual machines in VMware View (2009844)
Tags
See Also
- Manually deleting linked clones or stale virtual desktop entries from VMware View Manager 3.x and 4.0.x
- View Composer デスクトップ プールに関連付けられたソースおよびレプリカの仮想マシンを削除できない
- Finding and removing unused replica virtual machines in VMware View
- Manually deleting linked clones or stale virtual desktop entries from the View Composer database in VMware View Manager 4.5 and later
Update History
Request a Product Feature
- Updated:
- Categories:
- Languages:
- Product Family:
- Product(s):
- Product Version(s):

