Where Is the vCenter License Key Stored? (2026 CLI & DB Guide)
Where Is the vCenter License Key Stored? Complete Guide
To answer where is the vCenter license key stored, VMware vCenter Server Appliance (VCSA) stores all 25-character license keys and asset assignments inside the embedded VMware Postgres (VCDB) database—specifically within the cis_license and vpx_key_store tables—rather than in a plain-text configuration file. Administrators can inspect, export, or recover these keys through the HTML5 vSphere Client, VMware PowerCLI, or direct VCSA Bash queries.
All Storage Locations for vCenter and ESXi License Keys
Answer Capsule: While vCenter Server centralizes all cluster and appliance keys inside its embedded PostgreSQL database (
VCDB) and VMware Directory Service (vmdir) for Enhanced Linked Mode, standalone ESXi hosts also cache their individual host license locally inside/etc/vmware/license.cfg. Broadcom Support Portal stores master entitlements externally for disaster recovery.
Understanding each storage layer prevents accidental key loss during VCSA rebuilds, database migrations, or host disconnects. Compare the exact storage repositories across VMware vSphere environments below.
Key Architectural Behaviors to Know
No Plain-Text VCSA Key File: Unlike standalone ESXi hosts, VCSA does not write its vCenter Server license key to
/etc/vmware/license.cfgon the appliance filesystem.Automatic Linked Mode Replication: When multiple vCenter Servers share an SSO domain in Enhanced Linked Mode, adding a key to one instance automatically replicates the inventory entry across all linked nodes.
Host Cache Persistence: If an ESXi host disconnects from vCenter Server, the host continues running using the cached key stored inside
/etc/vmware/license.cfg.IT Software Procurement: Organizations auditing virtualization keys alongside Windows Server, SQL Server, and desktop productivity licenses can source verified perpetual keys through CodesForever and review buyer feedback on CodesForever Real Customer Reviews.
How to Extract vCenter License Keys via CLI and PowerCLI
Answer Capsule: Administrators can retrieve stored vCenter and ESXi license keys even when the web client is inaccessible by querying the VCSA PostgreSQL database over SSH or running a PowerCLI
LicenseManagerscript. Both methods output the exact 25-character keys, assigned asset names, and expiration timestamps in seconds.
Use the following command-line methods to audit or recover keys during troubleshooting or migration windows.
Method 1: Query VCSA Postgres Database via Bash (SSH)
Connect to your VCSA via SSH, enable the Bash shell, and query the cis_license tables directly:
# Enable the VCSA Bash shell from the appliance prompt
shell
# Query stored license keys, labels, and product names from VCDB
/opt/vmware/vpostgres/current/bin/psql -d VCDB -U postgres -c "SELECT lic_key, name, edition_key, total_units, used_units FROM cis_license.lic_license;"
Method 2: Extract ESXi Host Key via ESXi Shell
If you only have SSH access to an individual ESXi hypervisor node, read the local license configuration file directly:
# Display the active 25-character license key cached on an ESXi host
grep -i "Serial" /etc/vmware/license.cfg
Method 3: Export All Keys to CSV via VMware PowerCLI
Run this PowerShell snippet against your vCenter Server to export every stored license key and its assigned host or vCenter entity:
# Connect to vCenter Server
Connect-VIServer -Server "vcenter01.corp.local"
# Access the vSphere LicenseManager API
$ServiceInstance = Get-View ServiceInstance
$LicenseManager = Get-View $ServiceInstance.Content.LicenseManager
# Retrieve and export all stored license keys, names, and usage counts
$LicenseManager.Licenses | Select-Object Name, LicenseKey, EditionKey, Total, Used | Export-Csv -Path "C:\Audits\vCenter_License_Inventory.csv" -NoTypeInformation
Keyboard Shortcuts for Fast UI & Console Inspection
Open vSphere Client Licensing View: Press
Ctrl+Alt+Finsidehttps://<vcenter-fqdn>/ui, typeLicenses, and hitEnterto open Administration > Licensing.Switch to ESXi Local Shell: Press
Alt+F1on the physical or IPMI ESXi console screen to log in and inspect/etc/vmware/license.cfg.Return to ESXi DCUI Screen: Press
Alt+F2to exit the ESXi console shell cleanly after checking license files.
Quantitative Formulas for License Audit and Recovery Readiness
Answer Capsule: Maintaining accurate license visibility across multi-cluster VMware environments requires tracking unit utilization ratios and database backup recovery windows. Applying deterministic audit formulas ensures unallocated license keys do not sit idle while confirming VCSA file-based backups capture
VCDBlicense tables before major upgrades.
Use these two operational formulas during quarterly software compliance audits.
1. License Pool Utilization Ratio Formula
Rule of Thumb: Maintain a
Utilization_Ratebelow90%across production clusters so emergency host additions or hardware replacements do not stall waiting for procurement approvals.
2. VCSA File-Based Backup Retention Formula
Backup Protection Rule: Because vCenter license keys reside inside
VCDB, configure automated VCSA File-Based Backups via the VAMI portal (https://<vcenter-fqdn>:5480) to exportVCDBdaily, preserving at least two extra historical snapshots for disaster recovery.
Visual Architecture Section
The ASCII architecture diagram below maps where is the vCenter license key stored and how keys synchronize between the Broadcom portal, VCSA database, Linked Mode peers, and ESXi hosts.
+-----------------------------------+
| Broadcom Support Portal |
| (Master Entitlement Repository) |
+-----------------------------------+
|
v (Manual Entry / PowerCLI / VCF Sync)
+-----------------------------------+ +-----------------------------------+
| VCSA Embedded Postgres (VCDB) | <-> | VMware Directory Service (vmdir) |
| Table: cis_license.lic_license | | Replicates Keys Across Linked Mode|
+-----------------------------------+ +-----------------------------------+
|
v (Host Assignment Push)
+-----------------------------------+
| ESXi Host Local Filesystem Cache |
| Path: /etc/vmware/license.cfg |
+-----------------------------------+
Frequently Asked Questions
Can I retrieve a lost vCenter license key if VCSA will not boot?
Yes. If VCSA fails to boot, log into the Broadcom Support Portal (support.broadcom.com) under My Entitlements to view all registered keys, or mount your latest VCSA File-Based Backup archive and extract the VCDB dump.
Does resetting the vCenter root password delete stored license keys?
No. Resetting the VCSA appliance root or ad***********@*****re.local password modifies operating system or SSO credentials only and leaves the cis_license tables inside VCDB intact.
Where are evaluation keys stored before I enter a paid vCenter license?
During the 60-day evaluation period, vCenter generates an internal evaluation token tracked inside the same cis_license Postgres schema with an edition_key set to eval.
How do I remove an expired or unused license key from vCenter?
Open the HTML5 vSphere Client, navigate to Administration > Licensing > Licenses, ensure the Used column reads 0, select the checkbox next to the obsolete key, and click REMOVE.
Key Takeaways & Conversion CTA
Database-Backed Storage: VCSA stores all vCenter and cluster keys inside the embedded Postgres
VCDBdatabase (cis_license.lic_license), not in flat text files.ESXi Local Cache: Individual ESXi hosts maintain a local copy of their assigned key in
/etc/vmware/license.cfgto survive vCenter outages.Automate Exports: Schedule monthly PowerCLI exports and VCSA File-Based Backups so your 25-character keys remain recoverable during hardware failures.
Need verified Windows Server, Windows 11 Pro, or Microsoft Office licenses to complete your infrastructure deployment? Buy License at CodesForever for instant digital key delivery.
Generated Visual Reference Diagram (Summary Matrix)
Dedicated Resource & Citation Link Block
Official Broadcom License Management Guide: Broadcom TechDocs – Managing Licenses in vSphere
Official VCSA File-Based Backup Docs: Broadcom TechDocs – File-Based Backup and Restore of vCenter Server
Direct Software Procurement: Buy License at CodesForever
Verified Customer Feedback: CodesForever Real Customer Reviews