Reset Vcenter 6.5 Evaluation License

Oct 07, 2008 I installed ESXi on my host machine for home lab purposes 60 days ago. I assumed I was on the free version of ESXi since I couldn't do things like clone VMs and whatnot. Today, I did a RAM upgrade to my host and powered it back on. Now I find out I can't boot any VMs because my evaluation license for ESXi has expired. The ESXi 6 evaluation license is valid for 60 days and a free one can be obtained from VMware at anytime. Resetting the evaluation license provides continual access to all the features available, and most importantly for me, full compatibility with the ESXi Embedded Host Client. RESET ESXI 6.5 EVALUATION VMware Communities 0 Less than a minute Is there a problem if in an esxi 6.5 I reset the evaluation licenses several times and then add a correct license?

  1. Here's a one liner to reset the eval period: cp /etc/vmware/.#license.cfg /etc/vmware/license.cfg && /etc/init.d/vpxa restartDownload ESXi: http://mgnet.me/.
  2. “This guide will give you the steps needed to reset the license file so that you can apply the evaluation license back to your ESXi host. WARNING: This is for education/informational testing/development purposes only, and should not be used on a production server.

You can proceed refresh it manually everytimes it reaches the end by running this command

Alternatively you can set cronjob to refresh it automatically. Create file and place it in any of your preferred directory.

Copy and paste this scripts

Save it and change the permission so that it is executable.

Now you can create cronjob to run the script at at anytime you want

In order to preserve the crotab, you may need to put it in rc.local as ESXi will clear cronjob whenever it reboots.

Evaluation

and paste this scripts

One of the most important parts of a new VMware vSphere 6.7 U1 deployment is updating your VMware license. This should be a part of any validation plan you perform before the environment goes live. Unfortunately, I did not listen to my own advice, and when I logged into my VMware vSphere Client, I saw this:

Uh oh! As you can see I did not take my own advice. VMware vCenter is nice enough to tell me how much trouble I am in right now. All of my hosts are disconnected, so I will not be doing anything in this VMware vSphere environment.

Remember, as of vSphere 6.7, the preferred client is the HTML 5 based vSphere client which is all sorts of awesome. You can read more about it here, but the gist of it is it is super fast, does not require flash, and now has feature parity with previous generations of the vSphere client as of VMware vSphere 6.7 U1.

Adding a VMware License in the vSphere Client 6.7 U1

The first thing we need to do is add our VMware vSphere License to vCenter. We can get to this by first selecting Administration from the vSphere Client Menu.

Reset Vcenter 6.5 Evaluation License Replacement

Next, we simply click Licenses in the left navigation pane, and we will be brought to the VMware vSphere License screen.

If you have licenses entered already, you will be able to see your license key from this screen, which is why I have it blurred out. As you can see I am using three VMware vSphere products in my environment:

Adding a License to VMware vCenter Using the vSphere Client

The fist step before we an assign a license in VMware is to add the license into vCenter using the vSphere Client. From the above screen, simply click the +AddNew Licenses button. You will then see the following:

Like many things in VMware vCenter, there is a quick and easy to use wizard to help you. From this screen, you can add a single or multiple VMware vSphere license as long as you enter them one per line. The second step in the wizard is the most important, make sure you give your license a name that makes sense, because we will need to know what each VMware license is for.

Assigning a VMware vSphere License With the vSphere Client

Here is where things can get tricky. Now, we must assign or licenses. Click the Assets tab to view the assets you have in your VMware vSphere environment. This is your portal to adding your VMware licenses to your VMware products. I have clicked the Cluster tab within the Assets screen, as you can see.

A Special Note on VMware vSAN Licenses

The first time I had to assign a VMware vSAN license, it took me a few minutes to figure out how. VMware vSAN licenses are applied at the vSphere cluster level, which is why I selected cluster in the above screen. From the above screen, click Assign License, which as a little key symbol next to it.

Earlier in this process, I named my license vSAN so I would know what it was for later. I simply select it, and click OK and I have assigned my license.

Reset Vcenter 6.5 Evaluation License Number

You can follow this process to assign any license such as a vCenter Server license, or a vSphere ESXi license. Just select the Asset you would like to assign a license too.

Assign vcenter license 6.7

After Adding a VMware License in the vSphere Client 6.7 U1

In my particular case, every license in my lab had expired, and VMware vSphere was just not a happy camper. I had to right click on every host in my environment and select reconnect to get everything working again:

Once I did that I was good to go!

Reset Vcenter 6.5 Evaluation License

Managing VMware Licenses in VMware vSphere 6.7 U1

As I mentioned at the beginning of this article, it is very, very important to ensure you do not end up where I was when you log into the vSphere client. As part of the verification and testing of every VMware product you install, you should make sure to have a step to verify the license before you move to production.

How to Manage Licenses in the vSphere Client Video Demo

I have put together a video showing you how to do everything we just talked about.


Evaluation

This video was made with vSphere 7 and shows you everything you need to know about license management.

It covers how to assign licenses to vCenter, ESXi, and vSAN.

Are you using an older version of VMware vSphere and trying to figure out how to add licenses? Check out these helpful tips:

These articles may be handy if not all of your vSphere environment is running the most recent version.

Looking for more information on your VMware vSphere Upgrade? Check out these handy guides!

While often overlooked, please remember that adding or updating your VMware vSphere licences to your environment is a vital step so you do not run into issues once your environment has entered the production state.

Remember to include a VMware vSphere licence check in your pre-production validation so you do not encounter any issies in the future.

Related posts: