To share the contents of a local library with users from other vCenter Server instances, enable publishing for the library. This way, other users can subscribe to the published library and use its contents.
As an administrator, you can also create subscriptions for the library to gain control over the distribution of content.
To avoid name collisions and failures when you publish content from the publisher library, the publisher and subscriber libraries must have unique folders dedicated to them.
Local Libraries
You use a local library to store and manage items in a single vCenter Server instance. When you enable publishing for the library, users from other vCenter Server instances can subscribe to it and gain access to the library items. In this case, only the subscriber initiates and controls the synchronization of content between the published library and the subscribed library.
If publishing is enabled, you can also create subscriptions to the local library. Creating a subscription creates a new subscribed library or links the publisher library to an existing subscriber. Unlike regular subscribed libraries, subscriptions give the administrator of the local library control over the distribution of content library items.
A publisher library is a local library with subscriptions.
Using Subscriptions
When you create a subscription for a local library, the result is a subscribed library. A publisher library is aware of its subscriptions. Subscriptions enable the administrator of the publisher library to control the content distribution. With subscriptions, content is distributed either when the subscriber initiates synchronization, or when the administrator of the local library publishes the library items to one or more of the existing subscriptions.
When you use subscriptions, you have the flexibility to decide how much of the library content you want to share with the subscribers. For example, you can publish some or all library items. You can also publish content to selected subscribers or to all subscribers.
- The publisher and subscriber are in the same vCenter Server instance.
- The publisher and subscriber are in vCenter Server instances that are in Enhanced Linked Mode.
- The publisher and subscriber are in vCenter Server instances that are in Hybrid Linked Mode. For more information about Hybrid Linked Mode, see the VMware Cloud on AWS documentation.
Note: Publishing content is possible only from an on-premises publisher to a cloud subscriber, and not in the reverse scenario.
Limitations in Content Distribution
- You can publish only VM templates. If you publish an entire library that contains both VM templates and OVF templates, only the VM templates are replicated to the subscriber. To synchronize OVF templates and other types of files, the subscriber must initiate the synchronization.
- You can synchronize only OVF templates. If a subscriber initiates synchronization with a published library that contains both VM templates and OVF templates, only the OVF templates are synchronized in the subscribed library. VM templates are synchronized when a publisher library publishes them to its subscribers.
Create a Subscription for a Local Library
Subscriptions enable you to publish library items to a subscriber whenever you want. Create a subscription for a publisher library to control the distribution of templates to the subscriber.
When you create a subscription, you can link the publisher library to an existing subscribed library or create a new subscribed library. Creating a subscription to a new subscribed library triggers automatic synchronization. Creating a subscription to an existing library does not trigger automatic synchronization. If you create a subscription to an existing library, the synchronization happens when you publish an item or the entire library.
When you create a subscription to a new subscribed library and you select the option to download library content only when needed, only the metadata for the publisher library contents is downloaded to the associated storage. When the subscriber needs to use a library item, you either publish the item to the subscriber or the subscriber synchronizes the item to download its content to their local storage. For more information about synchronizing an entire library or a library item, see Synchronize the Contents of a Subscribed Library.
Prerequisites
- Verify that publishing is enabled for the library.
- Required privilege: on the content library for which you create a subscription.
Procedure
Results
A new subscription is created. When you go to the Subscriptions tab of the local library, you can view a list of all existing subscriptions for the library.
Delete a Subscription from a Local Library
Delete a subscription if you no longer want to share the contents of a publisher library with a subscriber. You might also need to delete a subscription if the corresponding subscribed library has been deleted.
If you do not delete a subscription to a deleted subscribed library and you publish content to that subscriber, the task triggers an error. To avoid errors, always delete subscriptions that link to deleted subscribed libraries.
Deleting is a useful option when you need to change a subscription. Because editing is currently not supported, your only choice is to delete the subscription that you want to modify and create a new one.
When you delete a subscription, the respective subscribed library and its contents are not deleted. Deleting a subscription means that you can no longer publish templates to the subscriber. The subscriber can still initiate the synchronization of OVF templates, if any. The subscriber can also continue using the previously synchronized content.
Prerequisites
Required privilege:
on the library.Procedure
- Navigate to the Content Libraries list.
- Open a local library by clicking its name.
- On the Subscriptions tab, select one or multiple subscriber libraries from the list.
- Click the Delete subscription button to delete the selected subscriber libraries.
Results
The subscription is deleted and you cannot use the publish function to synchronize the content in the respective subscribed library .