VMware ESXi Lab License Renewal

This blog is based on the following:
http://mikekurashima.blogspot.com/2013/02/vmware-lab-reset-trials-vcenter-esxi.html

1.  Establish SSH session to ESXi host

 login as: root
 Using keyboard-interactive authentication.
 Password:
 The time and date of this login have been sent to the system logs.
 VMware offers supported, powerful system administration tools. Please
 see www.vmware.com/go/sysadmintools for details.
 The ESXi Shell can be disabled by an administrative user. See the
 vSphere Security documentation for more information.
 ~ #

2. View license.cfg and vmware.lic files

~ # cd /etc/vmware/
/etc/vmware # ls -lh
total 1588
-r--r--r--    1 root     root        3.0K Sep 19 00:09 BootbankFunctions.sh
-rw-r--r--    1 root     root         282 Jan 22 11:05 config
-rw-r--r--    1 root     root       10.1K Jan 22 11:05 configrules
drwxr-xr-x    1 root     root         512 Jan 22 11:05 default.map.d
-r--r--r--    1 root     root        9.9K Sep 19 00:32 defaultconfigrules
drwxr-xr-x    1 root     root         512 Jan 22 11:05 driver.map.d
-rw-r--r--    1 root     root         512 Jan 22 11:26 dvsdata.db
-rw-------    1 root     root       24.0K Jan 22 11:06 esx.conf
drwxr-xr-x    1 root     root         512 Jan 22 11:05 firewall
-r--r--r--    1 root     root          59 Sep 19 00:32 ft-vmk-version
-r--r--r--    1 root     root          60 Sep 19 00:32 ft-vmx-version
drwxr-xr-x    1 root     root         512 Jan 22 11:06 hostd
drwxr-xr-x    1 root     root         512 Jan 22 11:05 icu
-rw-r--r-T    1 root     root          50 Sep 19 00:09 ima_plugin.conf
-rw-r--r--    1 root     root         311 Jan 22 11:26 license.cfg
-rw-r--r-T    1 root     root         440 Sep 19 00:09 localsas
-rw-r--r-T    1 root     root           0 Sep 19 00:09 lockdown
-rw-r--r-T    1 root     root          53 Sep 19 00:32 lockdown.conf
-rw-r--r--    1 root     root          51 Jan 22 11:05 locker.conf
drwxr-xr-x    1 root     root         512 Jan 22 11:05 microcode
-rw-r--r-T    1 root     root         817 Sep 19 00:09 passthru.map
-r--r--r--    1 root     root      885.3K Sep 19 00:43 pci.ids
drwxr-xr-x    1 root     root         512 Sep 19 00:09 pciid
drwxr-xr-x    1 root     root         512 Jan 22 11:05 rhttpproxy
drwxr-xr-x    1 root     root         512 Jan 22 11:05 secpolicy
drwxr-xr-x    1 root     root         512 Jan 22 11:05 service
-rw-r--r-T    1 root     root           0 Sep 19 00:09 settings
-rw-r--r-T    1 root     root           0 Sep 19 00:09 smart_plugin.conf
-rw-r--r--    1 root     root         278 Jan 22 11:05 snmp.xml
drwxr-xr-x    1 root     root         512 Jan 22 11:05 ssl
-rw-r--r-T    1 root     root         480 Sep 19 00:09 support
-rw-r--r-T    1 root     root          42 Sep 19 00:32 system-users.conf
-r--r--r--    1 root     root      514.2K Sep 19 00:09 usb.ids
-rw-r-----    1 root     root           0 Jan 22 11:05 usbarb.rules
drwxr-xr-x    1 root     root         512 Jan 22 11:05 vm-support
drwxr-xr-x    1 root     root         512 Jan 22 11:05 vmfs
drwxr-xr-x    1 root     root         512 Jan 22 11:05 vmkiscsid
-rw------T    1 root     root          30 Sep 19 00:09 vmware.lic
drwxr-xr-x    1 root     root         512 Jan 22 11:05 vmwauth
drwxr-xr-x    1 root     root         512 Jan 22 11:05 vpxa
drwxr-xr-x    1 root     root         512 Jan 22 11:05 vsan
drwxr-xr-x    1 root     root         512 Jan 22 11:05 weasel
-rw-rw-rwT    1 root     root           0 Sep 19 00:09 welcome

3.  Remove both files

~ # rm -r /etc/vmware/vmware.lic
~ # rm -r /etc/vmware/license.cfg

4.  Copy

cp /etc/vmware/.#license.cfg /etc/vmware/license.cfg

5.  Restart All Services

services.sh restart

MAGIC SAUCE FOLLOWS
Eval

Advertisements

About Amir Safayan

I live with my family in beautiful Colorado. We have a basset / beagle named Cisco. We board / ski, ride dirtbikes, RV and enjoy living in the Western US. I've done R/S, security, wireless, IPT and am now focused on virtualization technologies on the High Touch Team for Shoregroup.com, a large Cisco reseller.
This entry was posted in Uncategorized and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s