vSphere 7

VMware vCenter 7 Content Library VM Template Versioning and Management

VMware vCenter 7 Content Library VM Template Versioning and Management including check-in and check-out in vSphere 7 with vSphere Client

One of the great new features that is included with vSphere 7 and the new vCenter 7 features is VM template management and versioning. Previously to vSphere 7, there was not really a good way to keep templates versioned. Templates were, well, just templates sitting out in inventory. If you didn’t really have an internal way to keep up or track changes, this wasn’t really visible from the vSphere side. Now, this has changed with vSphere 7 to provide really great visibility and control over your template versioning as part of new capabilities of the content library. Let’s look at VMware vCenter 7 content library VM template versioning and management.

What is the Content Library?

As most already know, the content library is a new construct that was introduced in vSphere 6.0. It provides a storage container for storing things like VM templates, scripts, text files and ISO image files.

The library can be either a local library or a subscribed library that is pulled from another environment. VM templates are able to be syncrhonized to other content libraries via the publish feature. Publishing allows syncing a template to a set of subscriber libraries. Also, VMTX files can be stored directly now in the content library and do not have to exist as OVR files.

It has evolved quite a lot from the introduction of the new component in 6.0. Now, with vSphere 7.0, it has evolved even further.

Creating a Content Library

Creating a content library is super easy.

Setting-the-name-and-location-for-a-new-content-library
Setting the name and location for a new content library
Configure-the-content-library-publishing-and-subscriber-settings
Configure the content library publishing and subscriber settings
Add-storage-to-the-content-library-for-storing-objects
Add storage to the content library for storing objects
Ready-to-complete-the-content-library-creation-process
Ready to complete the content library creation process

New Content Library Check-In and Check-Out

VMware has embraced the DevOps mentality with vSphere 7. You can take a look at the new desired state methodology of the vSphere Lifecycle Managerd that allows a declarative model for applying updates to your vSphere infrastructure to see how this is the case.

However, this has also made its way to the content library with true versioning controls and visibility for making changes to VMware templates in the environment. This includes a new check-in and check-out feature. Let’s take a closer look at the new check-in and check-out features of the new content library.

The new check-in and check-out feature of the content library makes it much easier to make changes to your VMware templates in the content library. Before the new content library features with vSphere 7, there were a number of things that a vSphere administrator had to do to make changes to a VM template.

This included:

  • Converting the VM from a template to a virtual machine
  • Create a snapshot to provide a safe rollback
  • Make changes
  • Convert back to a template
  • Re-upload back to the content library
  • Delete the old template

Now, with the check-out and check-in process, these steps that used to be required to make changes are no longer required.

Checking Out a VM Template and Checking it back in

To begin the process to check out a template, you need to first clone a template to Library.

Clone-as-template-to-library
Clone as template to library

This launches the clone wizard to clone it to the Content Library. Select the template type as well as the name. You can also enter notes and select the folder for the template.

Setting-the-type-and-name-for-the-clone-to-template-in-library
Setting the type and name for the clone to template in library

Select the content library you want to use to house the VM template.

Choose-the-content-library-you-are-clonging-to
Choose the content library you are cloning to

Select a compute resource for cloning purposes.

Select-a-compute-resource
Select a compute resource

Select the storage that will back the VM clone.

Choose-storage
Choose storage

Review the settings of the clone to content library operation.

Review-the-configuration-of-the-template-cloned-to-the-content-library
Review the configuration of the template cloned to the content library

Now, when you view the Verisioning tab for this new template, you will see the ability to Check out VM from this Template. Click the button here to begin the check out process.

Checking-out-a-VM-template-from-the-content-library
Checking out a VM template from the content library

This begins the Check out VM from VM Template wizard. Set the name fo the virtual machine that will be provisioned as a result of the check out process.

Setting-the-name-and-location-on-the-check-out-wizard
Setting the name and location on the check out wizard

Select the compute resource.

Select-the-compute-resource-for-the-check-out-process
Select the compute resource for the check out process

Review the operation and click Finish.

Review-the-check-out
Review the check out

You will see a new version of the template provisioned and a resulting VM will be spun up in inventory. With this VM, you will make the changes needed. Then when the changes are complete, you will check the VM back into the template.

Viewing-the-versioning-and-the-new-VM-created
Viewing the versioning and the new VM created

Click the Check In VM to Template button.

Checking-in-a-VM-template
Checking in a VM template

This will create a new version of the template with notes and all the supporting documentation from the process. Very cool!

Viewing-the-template-after-checkin
Viewing the template after checkin

Wrapping Up

With the new VMware vCenter 7 Content Library VM Template Versioning and Management, vSphere administrators have a great way to keep track of changes made to templates in vSphere 7. It also provides a drastically simplified way to create a new template version than the manual steps required previously.

Subscribe to VirtualizationHowto via Email ๐Ÿ””

Enter your email address to subscribe to this blog and receive notifications of new posts by email.



Brandon Lee

Brandon Lee is the Senior Writer, Engineer and owner at Virtualizationhowto.com, and a 7-time VMware vExpert, with over two decades of experience in Information Technology. Having worked for numerous Fortune 500 companies as well as in various industries, He has extensive experience in various IT segments and is a strong advocate for open source technologies. Brandon holds many industry certifications, loves the outdoors and spending time with family. Also, he goes through the effort of testing and troubleshooting issues, so you don't have to.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.