Manaul installation

From AutoVM WIKI
Revision as of 20:53, 23 March 2020 by Wiki (talk | contribs) (صفحه‌ای تازه حاوی «<div lang="en" dir="ltr" class="mw-content-ltr"> == Necessary packages == We recommend to install '''Ubuntu''' server version '''18.04''...» ایجاد کرد)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Necessary packages

We recommend to install Ubuntu server version 18.04 with apache/nginx webserver and Change your webserver root directory to the /web.

sudo apt install python-pip libpq-dev python-dev libxml2-dev libxslt1-dev libldap2-dev libsasl2-dev libffi-dev git
sudo apt install php7.2-fpm php7.2-cli php7.2-mysql php7.2-mbstring php7.2-gd mysql-server php7.2-curl php7.2-zip php7.2-xml
pip install paramiko spur pycryptodome pysphere crypto netaddr

Set password on the database:

mysql -u root
create user 'autovm'@'localhost' identified with mysql_native_password by 'password';
* Enter your own password on 'password'
grant all privileges on *.* to 'autovm'@'localhost';
flush privileges;
create database autovm default character set utf8;

Download platform

git clone
chmod 777 -R autovm
cd autovm && php7.2 composer.phar install

Open your browser and go to the installation URL


After installation, Remove the install on the web directory then enter:

php yii migrate
  • Atention: Do not remove WEB directory.

Open the /web/index.php and comment two first line to disable the log.

After installation

Give permission to root directory again:

chmod 777 autovm

If you get any problem in the installation process, please see the installation errors page.

Server Settings

Change your Datastores name to the datastoreX such as change datastore name instruction.

Download the Operating System templates from the LAB and then Deploy template on the ESXI Server. (Do not turn on the VM after deploying.)

Enable SSH service in ESXi server.

For having a VM Console, enable the gdbserver in the VMware Vsphere Client. To enable this option, Select the Configuration tab, locate and open the Software list box, then select Security Profile. In the Firewall section, select the Properties link to display the Firewall Properties dialog. In the dialog, scroll to select GDBServer and click OK, Then in Firewall section, Select the SSH Server and click on Firewall icon then enter the AutoVM node IP address.

Finally, in the ESXI Server, change the name of all existing machines to their IP Address (for example, rename a machine named ubuntu- to the VM IP (

Other Settings

For check the system works properly on the ESXI server, go to the Dedicated Servers section and click on the view icon that appears with the magnifying and checks that all items are displayed OK and otherwise click on Option Description for each error.

Notice-1: If you want to create a VM, go to users section in the AutoVM admin area, Then click on create VPS. After creating VM,   go to Virtual servers section, and click on VM view (Magnifier icon), And choose change OS button to install VM.
Notice-2: If you want to add your existing VM into the AutoVM, install WHMCS module, Because AutoVM platform use particularly configuration.

After launching the AutoVM panel, if you want to use the bandwidth monitoring service, Create Cronjob

If your network card has other names than VM Network, first go to the Dedicated servers section and edit the server, in the Network Label section, enter the name of the server's network card.

WHMCS Modules installation

If you encounter an error while installing the WHMCS module, please read the WHMCS module installation error page.

At first, in the AutoVM Admin area, go to the APIs section and click on the Create New option.

To launch the WHMCS AutoVM module, download the WHMCS plugin from the LAB and then paste it into the main directory of the WHMCS script:


Go to the WHMCS Admin section and following address:

setup -> Products/Services -> Servers

Click on the Add New Server button.

In the Name field, enter autovm.

In the Hostname section, enter your panel address such as:

  • HTTP or HTTPS is very important.
  • In the IP Address box, do not enter any statement.

Then, in the Type menu, select Autovm and enter your API key in the Username field.

In the password box, do not enter any statement.

Click Save Changes to capture the information inside the system.

After completing the above steps, please refer to the Create products at WHMCS instructions.