Adding custom script on ESXi 5.0

Posted by Quzar on Server Fault See other posts from Server Fault or by Quzar
Published on 2012-06-21T21:16:41Z Indexed on 2012/06/21 21:17 UTC
Read the original article Hit count: 148

Filed under:

I have an ESXi server that I would like to have run a custom script on every boot that contains esxcli and other commands. I have tried adding the script into init.d and creating an rc.local.d folder with a script, but the etc folder gets rebuilt on startup. I've also tried modifying state.tgz and local.tgz in the /bootbank folder in order to force these files to appear, but that does not seem to work either.

Is there any way I can run custom commands on boot?

Note: I've tried the advice here ESXi boot process / state storage to no avail. Seems the system was changed between 4.1 and 5.0

© Server Fault or respective owner

Related posts about vmware-esxi