We help IT Professionals succeed at work.

Save files persistently  in ESXi5 USB after a reboot

Mazdajai
Mazdajai asked
on
Is it possible to save files persistently  in the usb for ESXi5? We have blades that are moving to different location and first thing I need to do is run a shell script to change the vmkernel port for management.

That being said no network or SAN is up when the server is first installed.
Comment
Watch Question

Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
why not login interactively, at the console, and perform the changes required, when at the site?

you can change the contents, of the state files, on the USB flash drive, if required, although this is not a supported method of deployment.
That's what I am thinking to do,. But why type instead of running a shell script ?
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
Putting files in rc.local can be scary. Is there a persistent directory I can put files in and run manually?
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
bootbank, but any changes to the ESXi installation is a hack and not supported.
Is there any other location?

I may have been unclear on the question. I am not trying to modify anything. Just a file system I can stage few scripts to update the ips on the kernel port manually when the hypervisor boots up.
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
maybe you could try /vmfs/volumes/vmimages
Unfortunately doesn't work...
VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017
Commented:
You will need to store the files in bootbank.
I ended up running the minimal commands to get ESX hosts on the new environment and passing them via the clipboard.

Thanks for the tips regardless.