How To Launch Multiple VM’s With Single Vagrantfile

Often times you might want to launch more than one VM of a related application with different configurations. In this case, you don’t have to create multiple vagrant configurations. You can use a single Vagrantfile with multiple configurations as shown below. The best part is you can start VM’s individually rather than starting all VM’s at once.

An example configuration which launches three VM’s is shown below.

To start the VM’s, open the terminal and browse to the location which contains the Vagrantfile. execute the following command to bring up the VM’s.

To ssh, you can use the individual VM names mentioned in the configuration.

For example,

 

Related

When you start learning powershell you wont be knowing all the commands. So the help system will let you discover…

Read more

Rails form_for helper used the active record class for handling the forms and saving to database. However in some cases…

Read more

Controllers and views are the integral part of ruby on rails frameworks. The requests from the client is first sent to…

Read more

Internet is huge! Help us find great content

Newsletter

Never miss a thing! Sign up for our newsletter to stay updated.

About

The Best Tutorials & Tips to Speedup Your DevOps Workflow.

Created by Bibin Wilson.

All Udemy Course For $9.99