VMware Horizon: remove folder VMwareViewComposerReplicaFolder

horizon-remove-VMwareViewComposerReplicaFolder-folder-01

When the VMware Horizon Composer is dismissed, the VMwareViewComposerReplicaFolder may be left in the vCenter Server and must be removed manually following a correct procedure.

The folder is by design a protected object to avoid deletion and remove from the vCenter Server Inventory and it is automatically configured by the Horizon Composer when replicas are created.

Since VMware Horizon 7.x will be Out of Support next March 2023, it is time to migrate the current infrastructure to the new Horizon 8 removing obsolete configurations from the infrastructure.

 

Delete folder VMwareViewComposerReplicaFolder

The procedure to remove the folder from the vCenter Server is the same as you normally do. Access the Inventory area, right click the folder VMwareViewComposerReplicaFolder and select Remove from Inventory.

horizon-remove-VMwareViewComposerReplicaFolder-folder-02

Click Confirm to delete the selected folder.

horizon-remove-VMwareViewComposerReplicaFolder-folder-03

Unfortunately the folder is not removed and it cannot be directly deleted because it is a protected object.

horizon-remove-VMwareViewComposerReplicaFolder-folder-04

 

How to remove the orphaned folder

To remove the orphaned folder we need to use the sviconfig tool provided with the VMware Horizon Composer.

To run the tool we need first to retrieve the Composer DSN configured in the system. From the Horizon Composer Server, open the ODBC Data Source Administrator and go to System DSN tab. Note the System Data Source in use (HorizonComposer in the example).

horizon-remove-VMwareViewComposerReplicaFolder-folder-05

Now open the Command Prompt and go to C:\Program Files (x86)\VMware\VMware View Composer\ folder. Run the following command:

sviconfig -operation=UnprotectEntity -DsnName=Composer_DSN_name -DbUsername=Composer_DSN_User_Name -DbPassword=Composer_DSN_User_Password -VcUrl=https://vCenter_Server_address/sdk -VcUsername=DomainUser_of_vCenter_Server_account_name -VcPassword=vCenter_Server_account_password -InventoryPath=/Datacenter_name/vm/VMwareViewComposerReplicaFolder -Recursive=true

C:\> cd \Program Files (x86)\VMware\VMware View Composer\

C:\...> sviconfig -operation=UnprotectEntity -DsnName=HorizonComposer -DbUsername=sa -DbPassword=Password55! -VcUrl=https://vcenter.morse.net/sdk -VcUsername=administrator@vsphere.local -VcPassword=Password99! -InventoryPath=/Datacenter-VDI/vm/VMwareViewComposerReplicaFolder -Recursive=true

horizon-remove-VMwareViewComposerReplicaFolder-folder-06

Now, go back to vCenter Server and try to remove the folder once again.

horizon-remove-VMwareViewComposerReplicaFolder-folder-07

This time the folder has been removed successfully.

horizon-remove-VMwareViewComposerReplicaFolder-folder-08

With this simple procedure, the orphaned folder is removed from the vCenter Server. Note that if you don't delete the folder, nothing bad happens to the vCenter Server and your infrastructure can work without any issue.

signature

2 Comments

  1. Maor 21/08/2024
    • Paolo Valsecchi 23/08/2024