How enable FTP protocol on a VMWare ESXi 4 to survive after reboot of host with modify the "oem.tgz" file, this procedure is based on "ESXi_enable_FTP" page from site http://www.vm-help.com/
This procedure only explain the steps you do to enable FTP with modify "oem.tgz" file, if you want to say how and why to do thoses changes read article on site http://www.vm-help.com/
Before all enable SSH on your ESXi, to do that follow this procedure : http://www.vm-help.com/esx40i/ESXi_enable_SSH.php (Article on PDF format)
Procedure theory :
0. Download from vm-help.com or from simple-tech.info
Link1 : proftpd.zip (100 ko)
Link2 : proftpd.zip (100 ko)
1. Create tmp directory where you want in your datastore.
2. Create tmp/oem/sbin/ and tmp/oem/etc/ directories
3. Copy proftpd and tcpd with "Veem FastSCP" from zip file to tmp/oem/sbin/

4. Change execution permissions to files tmp/oem/sbin/proftpd and tmp/oem/sbin/tcpd (chmod 777)
5. Copy proftpd.conf from zip file to tmp/oem/etc

6. Edit tmp/oem/etc/proftpd.conf with "Veem FastSCP" to enable FTP on port 21

7. Copy original /etc/inetd.conf to tmp/oem/etc/
8. Edit tmp/oem/etc/inetd.conf with "Veem FastSCP" to enable FTP
ESXi 3.5 : ftp stream tcp nowait root /usr/sbin/tcpd proftpd
ESXi 4.0 : ftp stream tcp nowait root /usr/sbin/proftpd proftpd

9. Compress structure with "tar"
=> cd tmp/oem
=> tar -cvzf oem.tgz sbin etc

10. Copy the new tmp/oem/oem.tgz file and replace it on the ESXi 4 boot section /bootbank/oem.tgz.
11. Reboot ESXi
12. Test FTP connection.

Procedure commands :
1. cmd : mkdir tmp
cmd : cd tmp
2. cmd : mkdir -p oem/sbin
cmd : mkdir -p oem/etc
3. vfcp : Copy proftpd and tcpd files from zip file with "Veem FastSCP" to [datastore]/tmp/oem/sbin
4. cmd : chmod 777 sbin/proftpd
cmd : chmod 777 sbin/tcpd
5. vfcp : Copy proftpd.conf file from zip file with "Veem FastSCP" to oem/etc
6. vfcp : Edit [datastore]/tmp/oem/etc/proftpd.conf with "Veem FastSCP" to enable FTP on port 21, see explain in article.
7. cmd : cp /etc/inetd.conf oem/etc/
8. vfcp : Edit [datastore]/tmp/oem/etc/inetd.conf with "Veem FastSCP" to enable FTP, see explain in article.
for ESXi 3.5 : ftp stream tcp nowait root /usr/sbin/tcpd proftpd
for ESXi 4.0 : ftp stream tcp nowait root /usr/sbin/proftpd proftpd
9. cmd : tar -cvzf oem.tgz sbin etc
10. cmd : cp oem.tgz /bootbank/oem.tgz
11. man : Reboot ESXi
ESX & ESXi Links
Ultimate ESX Whitebox, Find hardware for your own VMware ESX whitebox.
Welcome to vm-help.com , home of the Unofficial VMware ESX Server Whitebox HCL