From your VMware vCenter Server, you can also clone a virtual machine as an OVF template to a local content library.
The advantage of this format is that this type of template can be synchronized from a published content library to a subscribed content library. Unlike VM models for which this is not possible.
To begin, right-click the virtual machine to clone, then click: Clone as Template To Library.
To clone the virtual machine to an OVF template:
Select the content library in which you want to store this OVF template.
Note that unlike VM templates, OVF templates are stored and referenced only in the content library selected here.
A summary appears.
Click Finish.
If you view the list of recent tasks, you will see these tasks appear:
You will also see tasks regarding the OVF format used:
The first tasks that will complete are those related to file transfer and uploading files to a library item.
Note that unlike the VM template which appears in the list of virtual machines and in the targeted content library, the OVF template will not appear in the "VMs and Templates" tab of your VMware vCenter Server.
To see it, you will need to click on "vSphere Client", then on: Content Libraries.
Click the name of your content library.
As you can see, this time the type of this template is "OVF Template".
If you click on its name, you will be able to obtain information about this OVF template, including its size, the guest OS (guest operating system) located there, its virtual hardware, ...
As a demonstration, we published our local content library, then created a subscribed content library "RemoteContentLibrary" from our published content library (ContentLibrary).
As you can see, VMware vCenter Server displays this message to you:
Plain Text
You can sync OVF templates only. Synchronization is not available for VM templates.
This explains why our OVF template "Win 10 v2004 x64 - Template OVF" appears in the list of templates in our subscribed content library and the VM template "Win 10 v2004 x64 - Template" does not appear here.
For type "Unknown" and size 0 bytes, this is simply because this item has not yet been synchronized. This element is therefore empty at the moment in our content library, but it can be synchronized unlike the VM model which will never be available here.
Since we selected "Download content immediately" when creating this subscribed content library, there are several tasks running in our case.
Once all background tasks have completed, refresh the page.
Now, VMware vCenter Server tells you that this is indeed an OVF template. The size is also displayed since this item has finished syncing.
As you have already seen, when you clone a virtual machine as a VM template to a local content library, this VM template appears in 2 places: the desired content library and in the "VMs and Templates" tab.
However, if you go to your VMware vCenter Server storage, you will see that your VM template is only stored in one place.
And more precisely, a folder with the name of the VM template has been created at the root of your datastore.
If you look in the "contentlib-..." folder which corresponds to the targeted content library, you won't find it.
Which means that deleting this VM template in one location will also delete it in the other location.
Note: in our case, the "contentlib-..." folder corresponding to our local content library only contains one folder.
The one corresponding to the OVF template.
Note that for OVF templates, these are only present in the content library previously selected via the clone wizard.
Deleting an OVF template will therefore only delete it from this content library. There is nothing special for this case.
Select the VM template you want to delete.
In our case, we will do it from the "VM and Templates" tab.
Right-click "Delete from Disk" on it.
Confirm the deletion of the VM template (and all files associated with it) by clicking Yes.
As expected, the VM template is gone.
If you go to the content library where this VM template was also located, you will see that it has also disappeared from there.
Indeed, if you look in the recent tasks, you will see that its deletion from the "VM and Templates" tab will also have caused the execution of the task "Delete Library Item" for the target "[name of template deleted]".
VMware 12/30/2022
VMware 5/26/2023
VMware 5/30/2022
VMware 4/12/2024
Pinned content
Contact
® InformatiWeb-Pro.net - InformatiWeb.net 2008-2022 - © Lionel Eppe - All rights reserved.
Total or partial reproduction of this site is prohibited and constitutes an infringement punishable by articles L.335-2 and following of the intellectual property Code.
No comment