Enable bandwidth on ESXi

Go to the AutoVM admin area and create a user with admin access, then copy the user token.

Bandwidth configuration should be done per ESXi server.

Enable ESXi server SSH access. (Read how to Enable SSH on ESXi)

Connect to your ESXi server through SSH and follow the below steps:

  1. Change DATASTORE_NAME, DOMAIN, TOKEN on the below commands:
  2. Be careful about HTTP or HTTPS

$ cd /vmfs/volumes/DATASTORE_NAME/ && wget http://file.autovm.net/vmware/modules/bandwidth.sh
$ cat > /etc/rc.local.d/local.sh <<EOL
echo '*/10  *    *   *   *   /bin/sh /vmfs/volumes/<strong>DATASTORE_NAME</strong>/bandwidth.sh <a href="http://backend/">http://backend</a>.<strong>domain</strong> <strong>TOKEN'</strong> >> /var/spool/cron/crontabs/root
pkill crond && /usr/lib/vmware/busybox/bin/busybox crond
$ sh /etc/rc.local.d/local.sh

Finally, disable the ESXi SSH service.