K
K
Konstantin2014-03-16 22:53:04
Vagrant
Konstantin, 2014-03-16 22:53:04

How to run multiple boxes on Vagrant?

Is it possible to run several boxes on Vagrant - not multivm within one project (box = project?), but several boxes (different virtual machines)?

I fully admit that I misunderstand the essence of launching several instances on Vagrant - if there is something to explain, I will be glad.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
Boris Benkovsky, 2014-03-19
@benbor

Vagrant uses Vagrantfile for config. And looks for it in the current directory. On my project, I simply deployed several Vagrantfiles in different directories. For example, ./deployment/Vagrantfile is for deployment testing, and ./Vagrantfile is for development. In this case, to manage the deployment box you need to be in the folder ./deployment/

R
rgb000, 2015-11-18
@rgb000

I just recently wrote an article about this - sysadm.pp.ua/linux/sistemy-virtualizacii/vagrantfi... . Since Vagrant uses Ruby syntax, you can freely create an array of hashes where you can specify which box to use, how much RAM to allocate for each machine individually using one Vagrantfile.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question