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.
- Enable the SSH server
- SSH in with your client, regardless of platform.
- 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.
- Make your crontab writable with chmod.
- chmod 1644 /var/spool/cron/crontabs/root
- Enter a text editor of choice to write your timed cronjob.
- vi /var/spool/cron/crontabs/root
- Add the following line
- 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.