Multiple Boxes

Vagrant is often used to manage MANY virtual machines. Therefore we need to be able to provide many customized configurations. In the following example, you can see 2 virtual box configurations

MultiBox Configuration

The first part of the configuration is the general configuration for all boxes. As you can see, we have enabled GUI for all machines and we have enabled 1534 MBs of Virtual memory (RAM). The next part is configuration for a box called: ainsible and the other for a box called: app1

Rsync Back

By default, vagrant rsync shared folders from the host (where vagrant runs) → the target machine. So if we want to download any files generated on the target servers, to be used by the others, using the host as proxy. We have to install a specific plugin.

Install rsync back

Possible Errors

In case you receive the following error:

Authentication-Error

Assure that the password for the user (in our case root) is the same as the vagrant file AND ensure that the rootlogin is enable and the password authentication is also enabled.