Clone running vmware virtual machines running on preconfigured cluster

pip install vmware-clones==0.2.11


Build Status


Export vmware configuration and store it on webdav server

Setup with virtualenv

yum install gcc python-virtualenv
cd /opt
git clone git@github.com:gmelillo/esxi-backup.git && cd esxi-backup.git
virtualenv esxi && source esxi/bin/activate
pip install -r requirements.txr
python setup.py install

After setup you will be able to use /opt/esxi-backup/esxi/bin/esxi-backup backup the hypervisor described in /etc/esxi.ini


vim-cmd hostsvc/maintenance_mode_enter
vim-cmd hostsvc/firmware/restore_config /path/to/backup/file

Additional info

Note: The information about virtual machines is not stored in the config backup and the virtual machines must be re-inventoried from the datastore browser after a config backup restore. Also, bootbank information is not stored in a config backup. If needed, this must be backed up and downloaded separately in a compressed tar file.

For more information, see:

Note: if you have installed a version of vSphere later than 5.1, see the Command Line Document and PowerCLI Reference for that version in the VMware Documentation Library.

PowerCLI Notes:

  • Remember that the 64 bit version of PowerCLI is installed in C:\Program Files, and the 32 bit version is in C:\Program Files (x86).
  • You must always run PowerCLI as Administrator.