Monthly Archives: May 2016

Automate Resetting the ESXi 6.0 Test-Lab License

If for whatever reason you are running an evaluation copy of ESXi, and you need additional time you can easy re-instate the evaluation period. I had this problem when I installed a copy, didn’t get around to actually evaluating the features I wanted to, and then was forced with the pain of re-imaging bare metal. Yuck!

Note: Run all italicized text as root in the shell.

  1. Enable the SSH server
  2. SSH in with your client, regardless of platform.
    1. If you are not using any type of advanced configuration, your user will be ‘root’ and your password is whatever you defined at installation time.
  3. Make your crontab writable with chmod.
    1. chmod 1644 /var/spool/cron/crontabs/root
  4. Enter a text editor of choice to write your timed cronjob.
    1. vi /var/spool/cron/crontabs/root
  5. Add the following line
    1. 0 12 * * * rm -r /etc/vmware/license.cfg && cp /etc/vmware/.#license.cfg /etc/vmware/license.cfg && /etc/init.d/vpxa restart

Now your license is being re-instated on the 12th hour of every day, and the service that handles it is restarted to take effect. All without a reboot – just remember to disable your SSH server once more afterwards.