Adding license keys to vCenter is the first step. In general, you’ll have 2 keys, one for vCenter and a second one for the ESXi hypervisors. After you load vSphere Web client, click on Licensing from the Home screen.
Figure 6 – Accessing the licensing module in vCenter
Select the Licenses tab on the Licenses screen and click on the green arrow button to add the new license keys.
Enter every key on its own line. As can be seen in Fig.8, I’ve added 3 license keys for vCenter Server, ESXi Enterprise Plus and vSAN Advanced. The keys are obfuscated for obvious reasons!
Figure 8 – Adding multiple license keys to vCenter Server
On the next screen, you can name the license keys. This makes it easier to identify which key is being assigned to what. This screen also provides details about the product expiry and capacity relevant to each key.
Press Finish on the last screen (not shown) and then verify that the new keys have in fact been added. The new keys should be listed alongside the previous ones.
Figure 10 – A listing of all the available license keys on vCenter Server
Step 2 – Assigning license keys
After the keys have been added, we can go ahead and use them to license the corresponding VMware products. The Products tab gives you an overview of the products you can license, with all the license keys grouped accordingly. You can also view the features unlocked by the currently assigned key for the specific product by right-clicking on the product name and selecting View Features.
Figure 11 – A view of currently licensed VMware products and related features
To license a product, switch to the Assets tab. Under the 4 additional tabs – vCenter Server systems, Hosts, Clusters, and Solution – you will find the respective products including one or more vCenter instances and managed ESXi hosts. The Clusters tab is there to license cluster-centric features such as vSAN. The Solutions tab is instead used to license products such as NSX.
Figure 12 – In vCenter you can assign a license to vCenter, ESXi, clusters, and solutions
Step 2a – Licensing vCenter Server
To license vCenter Server, switch to the vCenter Server systems tab and right click on the vCenter Server name listed under the Asset column selecting Assign License as you do.
Figure 13 – Assigning a license key to vCenter Server
Select the license key you wish to assign to vCenter Server and press OK. This is where the license names, previously mentioned, come in handy.
Figure 14 – Choosing a license key to assign to vCenter Server
Step 2b – Licensing ESXi
Likewise, you can easily license one or multiple ESXi hosts by way of the Hosts tab. You can license hosts individually using different licenses or, as is generally the case, simply select all the hosts (Ctrl-A) and enter a common license. To do this, just right-click on the selection made and select Assign License. Again, select the required license from the list and press OK.
Figure 15 – Assigning a license to vCenter managed ESXi hosts
Some vCenter and/or ESXi features require a separate license key. Virtual San (vSAN) is one such example. Since this is a cluster-centric feature, you can either license vSAN using the Clusters tab on the Licenses page or directly from the cluster’s context menu.
Figure 16 – Assigning a license to vSAN from the Licenses page
The other method you can use to license vSAN is to right-click on the cluster name while in Hosts and Clusters view selecting Assign License as you do.
Figure 17 – Assigning a vSAN license using the cluster context-menu option
Snipe-it artisan not generating key. No post would be complete without mentioning PowerCLI. Yep, you can query and add license keys to vCenter using PowerCLI.
First, launch a PowerCLI instance. Make sure you are connected only to the vCenter Server you want to query or make changes to. If in doubt, run Disconnect-VIServer * -Confirm:$false first. As always, use Connect-VIServer to connect to vCenter Server.
Task 1 – List existing license keys on vCenter:
$licInfo.AddLicense('XXXXX-XXXXX-XXXXX-XXXXX-XXXXX',$null) |
Figure 19 – Adding a license key to vCenter Server using PowerCLI
Here are a few references on the subject matter in addition to the information presented in this and other posts you’ll find on our VMware Blog.