Answer the question
In order to leave comments, you need to log in
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
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/
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 questionAsk a Question
731 491 924 answers to any question