You can populate a content library with VM templates and OVF templates that you can use to provision new virtual machines. You can also add other files to a content library, such as ISO images, scripts, and text files.
You can populate a library with items in several ways.
Import Items to a Content Library
You can add items to a local content library by importing files from your local machine or from a Web server. You can import OVF and OVA templates and other types of files, such as ISO images, certificates, and so on. You can keep the items in the library and share them with other users across multiple vCenter Server instances. You can also use the templates in the content library to deploy new virtual machines and vApps.
Prerequisites
Required privilege:
and on the library.Procedure
Results
In the Recent Tasks pane you see two tasks, one about creating a new item in the library, and the second about uploading the contents of the item to the library. After the task is complete, the item appears on the Templates tab or on the Other Types tab.
Clone a vApp to a Template in a Content Library
You can clone existing vApps to vApp templates in a content library. You can use the vApp templates later to provision new vApps on a cluster or a host in your vSphere inventory. The vApp is exported to a content library in the OVF format.
Procedure
Results
A new task for cloning to OVF package appears in the Recent Tasks pane. After the task finishes, the vApp template appears on the Templates tab for the content library.
What to do next
Use the template to provision vApps on a host or a cluster in your vSphere inventory. See Create New vApp From a Template in a Content Library.
Clone a Virtual Machine or a Virtual Machine Template to a Template in a Content Library
You can add new templates to a content library by cloning virtual machines or virtual machine templates from your vCenter Server inventory to templates in the content library. You can use the content library items later to provision virtual machines on a cluster or a host. You can also update an existing template in the content library by cloning a virtual machine or virtual machine template from the vCenter Server inventory.
Templates are primary copies of virtual machines that you can use to create virtual machines that are ready for use. You can change the template, such as installing additional software in the guest operating system, while preserving the state of the original template.
For more information, see Templates in Content Libraries.
Procedure
- Navigate to the virtual machine or template that you want to clone.
- Select your task.
Option Description Clone a virtual machine - Right-click the virtual machine and select
The Clone Virtual Machine To Template wizard opens.
. - On the Basic information page, enter a name and description for the template, select the template type, and select an inventory folder for the template.
You can create an OVF Template or VM Template in the content library.
- On the Location page, select a local content library in which you want to add the template.
- On the Select a compute resource page, select the compute resource for the template.
- On the Select storage page, select the storage for the template disk and configuration files.
- On the Review page, review the details and click Finish to complete the cloning task.
Clone a virtual machine template - Right-click the virtual machine template and select Clone to Library.
The Clone to Template in Library dialog box opens.
- Select the Clone as option.
You can create a template or you can choose an existing template to update.
- From the content libraries list, select the library in which you want to add the template.
- Enter a name and description for the template.
- (Optional) Select the configuration data that you want to include in the template.
You can select to preserve the MAC-addresses on the network adapters and include extra configuration.
- Click OK.
- Right-click the virtual machine and select
Results
A new task for cloning appears in the Recent Tasks pane. After the task is complete, the template appears in the Templates tab for the content library. You can view the type of template in the Type column.
What to do next
Use the template to create virtual machines on hosts or clusters in the vSphere inventory.
Clone Library Items from One Library to Another Library
You can clone a template from one content library to another in the same vCenter Server instance. The cloned template is an exact copy of the original template.
When cloning a template between libraries, you can select the source library to also be a destination library in the clone wizard.
A subscribed library can be the source of an item you want to clone, but you cannot clone items to a subscribed library. The subscribed libraries are filtered out from the list with destination libraries in the Clone Library Item dialog box. When the source library of an item you want to clone is a subscribed library with the setting to download items only when needed, the item is first downloaded to the source subscribed library and then cloned to the destination library.
Procedure
Results
What to do next
Deploy a virtual machine from template on a host or a cluster in your vSphere inventory.