| |
How to use your ESX3 server as an FTP server.
(esXpress also supports SSH as a network transport for backups.)
- Within the VI3 client go to Configuration tab
- Go to Security Profile
- Click Properties
- Enable FTP Server, NIS Client and EMC AAM Client in the Firewall
- If you are running ESX 3.5 the EMC AAM Client is not an available service
You need to open up the firewall ports manually for ESX 3.5.
esxcfg-firewall -o 2050:5000,tcp,in,ftp
esxcfg-firewall -o 2050:5000,tcp,out.ftp
- Download vsftpd-1.2.0-4.i386.rpm
- Copy vsftpd-1.2.0-4.i386.rpm to your ESX server
- SSH to your ESX server console
- Become the root user (su -)
- Install the FTP server rpm -i vsftpd-1.2.0-4.i386.rpm
- vi /etc/vsftpd/vsftpd.conf
- Change anonymous_enable=NO (for security)
- You need to add the following lines to force passive mode to only use ports 2050-5000.
pasv_min_port=2050
pasv_max_port=5000
- Start the FTP server with service vsftpd start
- Create a user. Do not use 'anonymous' or 'ftp'.
User and Pass cannot contain symbols like @ (single quote)
- adduser mybackups.
- passwd mybackups.
- To have the ftp server automatically start on boot, type:
chkconfig --level 3 vsftpd on
- Remember you will probably have to change the permissions on the /vmfs/volume you are using as a FTP destination.
chmod 1777 /vmfs/volumes/(UUID of Folder)
You can also link the path to a simpler name, such as:
ln -s /vmfs/volumes/UUID-NAME/backups /backups
Then use just '/backups' in the esXpress configuration.
- Run a backup on one VM, make sure it works.
- Run a restore of one VM, make sure it works.
Why use the ESX Host as a FTP Server?
In a simple environment with 2 ESX Hosts, with esXpress installed on both ESX Hosts and configured to backup to both FTP and VMFS would allow a completely redundant system.
Each Host would backup to it's local VMFS and to the VMFS on the other ESX Host through FTP (at the same time).
This is a great setup for branch locations.
|
|