9.4. Managing App-V Repositories

9.4.1. Obtaining the ID of an App-V Repository
9.4.2. Obtaining the ID of a Revision to an App-V Repository
9.4.3. Renaming an App-V Repository
9.4.4. Applying an App-V Repository to a Pool
9.4.5. Creating a Revision to an App-V Repository
9.4.6. Making an App-V Revision the Master Revision
9.4.7. Renaming a Revision to an App-V Repository
9.4.8. Deleting a Revision to an App-V Repository
9.4.9. Deleting an App-V Repository

This section lists the available actions for managing App-V repositories, how you perform the action in Oracle VDI Manager, and the equivalent command-line command.

9.4.1. Obtaining the ID of an App-V Repository

Whenever you use the vda command to perform an action on an App-V repository, you must use the unique ID of the repository rather than the name. Oracle VDI Manager only displays the name.

To obtain the ID of an App-V repository, use either the vda pool-appv-templates command to list the repositories in a pool, or the vda provider-list-appv-templates command to list the repositories for a desktop provider.

In the following example, the App-V repositories in the pool MyPool are listed:

/opt/SUNWvda/sbin/vda pool-appv-templates MyPool
NAME                     ID                    MASTER            DESKTOPS
appv1                    41          appv1 Revision 2                   -
appv2                    53          appv2 Revision 1                  10

In the following example, the App-V repositories for the desktop provider MyProvider are listed:

/opt/SUNWvda/sbin/vda provider-list-appv-templates MyProvider
NAME                ID             DIRECTORY      
appv1               41             MyCompany
appv2               53             MyCompany

9.4.2. Obtaining the ID of a Revision to an App-V Repository

Whenever you use the vda command to perform an action on a revision to an App-V repository, you must use the unique ID of the revision rather than the name. Oracle VDI Manager only displays the name.

To obtain the ID of a revision, obtain the ID of the App-V repository (see Section 9.4.1, “Obtaining the ID of an App-V Repository”), and then use the vda template-appv-revisions command to list the revisions to the repository.

In the following example, the revisions to the App-V repository appv1 are listed:

/opt/SUNWvda/sbin/vda pool-appv-templates MyPool
NAME                     ID                    MASTER            DESKTOPS
appv1                    41          appv1 Revision 2                   -
appv2                    53          appv2 Revision 1                  10

/opt/SUNWvda/sbin/vda template-appv-revisions 41
NAME                       ID          CREATION MASTER                  DESKTOPS
appv1 Revision 1           43    08/01/13 16:43    No                          -
appv1 Revision 2           54    09/01/13 18:35    Yes                MyPool(10)

9.4.3. Renaming an App-V Repository

Perform the following steps to give an existing App-V repository a new name.

Oracle VDI Manager Steps

  1. In Oracle VDI Manager, select Pools and then select a pool.

  2. Click the Template tab and then click App-V Repository.

  3. Select an App-V repository and click the Rename button.

    A dialog box is displayed.

  4. Enter the new name for the App-V repository and click OK.

Command Line Steps

  1. Obtain the ID of the App-V repository you want to work with, see Section 9.4.1, “Obtaining the ID of an App-V Repository”.

  2. Rename the App-V repository using the vda template-appv-setprops command.

    /opt/SUNWvda/sbin/vda template-appv-setprops -p name=new-name template-id
    

    For example:

    /opt/SUNWvda/sbin/vda template-appv-setprops -p name=NewMyAppv 9

9.4.4. Applying an App-V Repository to a Pool

Perform the following steps to apply an App-V repository to one or more pools.

To apply the repository to existing used desktops, the desktops must be restarted.

Oracle VDI Manager Steps (One or More Pools)

  1. In Oracle VDI Manager, select Pools and then select a pool.

  2. Click the Template tab and then click App-V Repository.

  3. Select the App-V repository and click the Use in Pool button.

    The Use App-V Repository in Pool window is displayed.

  4. Select the pools you want to apply the App-V repository to and click OK.

Oracle VDI Manager Steps (Single Pool Only)

  1. In Oracle VDI Manager, select Pools and then select a pool.

  2. Click the Cloning tab and select a repository in the App-V Repository list.

  3. Click Save.

Command Line Steps

  1. Obtain the ID of the App-V repository you want to work with, see Section 9.4.1, “Obtaining the ID of an App-V Repository”.

  2. Apply the App-V repository to a pool using the vda pool-setprops command.

    /opt/SUNWvda/sbin/vda pool-setprops -p appv-repository=repository-id pool-name
    

    For example:

    /opt/SUNWvda/sbin/vda pool-setprops -p appv-repository=53 MyPool

9.4.5. Creating a Revision to an App-V Repository

Perform the following steps to update the App-V cache file on the staging desktop or to change the App-V user name.

This action has no effect on existing desktops until the revision is made the master revision, see Section 9.4.6, “Making an App-V Revision the Master Revision”.

Oracle VDI Manager Steps

  1. In Oracle VDI Manager, select Pools and then select a pool.

  2. Click the Template tab and then click App-V Repository.

  3. Select the App-V repository you want to create a new revision from and click the Create Revision button.

  4. The Create Application Repository Revision window is displayed.

  5. In the Name field, enter a name for the revision.

  6. In the User and Password field, enter the credentials of a user that is defined as an App-V user in Active Directory.

    The user must have access to all the available applications on the App-V Management Server. Oracle VDI uses the specified App-V user to update the App-V cache file on the staging desktop.

  7. Click OK.

Command Line Steps

  1. Obtain the ID of the App-V repository you want to work with, see Section 9.4.1, “Obtaining the ID of an App-V Repository”.

  2. Create a new revision using the vda revision-appv-create command.

    /opt/SUNWvda/sbin/vda revision-appv-create -p revision-name=name repository-id
    

    For example:

    /opt/SUNWvda/sbin/vda revision-appv-create -p revision-name='"MyAppv Revision 2"' 53

    In the following example, the App-V user name is also specified when creating the revision to the App-V repository:

    /opt/SUNWvda/sbin/vda revision-appv-create -p \
    revision-name='"MyAppv Revision 3"',appv-username=new-appv-user 53

9.4.6. Making an App-V Revision the Master Revision

Perform the following steps to schedule a revision to an App-V repository as the master revision so that it is applied to pools.

When the revision becomes the master, used desktops must be restarted in order to update the App-V cache.

Oracle VDI Manager Steps

  1. In Oracle VDI Manager, select Pools and then select a pool.

  2. Click the Template tab and then click App-V Repository.

  3. Expand the App-V repository and select a revision.

  4. Click the Nominate Master button.

    The Nominate Master Revision window is displayed.

  5. Set the date and time when the revision is to become the master.

  6. (Optional) Select Log User Out to automatically log out users and restart the desktops when the revision becomes master.

    If you do not select this option, desktops must be manually restarted in order to use the new master revision.

  7. Click OK.

Command Line Steps

  1. Obtain the ID of the revision to the App-V repository you want to work with, see Section 9.4.2, “Obtaining the ID of a Revision to an App-V Repository”.

  2. Make the revision the master revision using the vda revision-appv-nominate-master command.

    /opt/SUNWvda/sbin/vda revision-appv-nominate-master revision-id
    

    In the following example, the App-V revision is scheduled to become the master immediately and desktops are automatically restarted:

    /opt/SUNWvda/sbin/vda revision-appv-nominate-master -f 12

    In the following example, the App-V revision is scheduled to become the master at a particular time and desktops must be manually restarted:

    /opt/SUNWvda/sbin/vda revision-appv-nominate-master -d 02/11/2013 -t 01:00 13

    The date format is MM/dd/yyyy and the time format is HH:mm.

9.4.7. Renaming a Revision to an App-V Repository

Perform the following steps to give an existing revision to an App-V repository a new name.

Oracle VDI Manager Steps

  1. In Oracle VDI Manager, select Pools and then select a pool.

  2. Click the Template tab and then click App-V Repository.

  3. Expand the App-V repository and select the revision you want to rename.

  4. Click the Rename button.

    A dialog box is displayed.

  5. Enter the new name for the revision and click OK.

Command Line Steps

  1. Obtain the ID of the revision to the App-V repository you want to work with, see Section 9.4.2, “Obtaining the ID of a Revision to an App-V Repository”.

  2. Rename an existing revision using the vda revision-appv-setprops command.

    /opt/SUNWvda/sbin/vda revision-appv-setprops -p name=new-name revision-id
    

    For example:

    /opt/SUNWvda/sbin/vda revision-appv-setprops -p name='"Update 28 Sept"' 92

9.4.8. Deleting a Revision to an App-V Repository

Perform the following steps to delete a revision to an App-V repository.

You can only delete the latest revision and you cannot delete the master revision. To delete the master revision, see Section 9.4.9, “Deleting an App-V Repository”.

Oracle VDI Manager Steps

  1. In Oracle VDI Manager, select Pools and then select a pool.

  2. Click the Template tab and then click App-V Repository.

  3. Expand the App-V repository and select the revision you want to delete.

  4. Click Delete.

    A confirmation dialog box is displayed.

  5. Click OK.

Command Line Steps

  1. Obtain the ID of the revision to the App-V repository you want to work with, see Section 9.4.2, “Obtaining the ID of a Revision to an App-V Repository”.

  2. Delete a revision using the vda revision-appv-delete command.

    /opt/SUNWvda/sbin/vda revision-appv-delete revision-id
    

    For example:

    /opt/SUNWvda/sbin/vda revision-appv-delete 12

9.4.9. Deleting an App-V Repository

Perform the following steps to schedule an App-V repository and all its associated revisions for deletion. At the scheduled time, all running desktops that use the App-V repository are shut down. Next, all the desktops that use the App-V repository are started so that App-V can be unconfigured, and then they are shut down again.

Oracle VDI Manager Steps

  1. In Oracle VDI Manager, select Pools and then select a pool.

  2. Click the Template tab and then click App-V Repository.

  3. Select the App-V repository you want to delete and click the Delete button.

    The Delete App-V Repository window is displayed.

  4. Set the date and time when you want to delete the App-V repository.

  5. (Optional) Deselect Unconfigure to leave the Windows registry settings for App-V unchanged in the desktops.

    You should only do this if you intend to use a different App-V repository with the desktops. If you do this, the desktops that use the App-V repository are not restarted.

    If the App-V repository is not used by any desktops, the deletion takes place immediately and cannot be scheduled.

  6. Click OK.

Command Line Steps

  1. Obtain the ID of the App-V repository you want to work with, see Section 9.4.1, “Obtaining the ID of an App-V Repository”.

  2. Delete the App-V repository and its revisions using the vda template-appv-delete command.

    /opt/SUNWvda/sbin/vda template-appv-delete repository-id
    

    In the following example, the App-V repository is scheduled for immediate removal and desktops are automatically unconfigured and restarted:

    /opt/SUNWvda/sbin/vda template-appv-delete 9

    In the following example, the App-V repository is scheduled for removal at a particular time and desktops are not automatically unconfigured and restarted:

    /opt/SUNWvda/sbin/vda template-appv-delete -u false -d 02/12/2013 -t 01:00 68

    The date format is MM/dd/yyyy and the time format is HH:mm.