Vagrant Multi-machine #115


In this tutorial I will speak about multi-machine in Vagrant. You will see how to define and control multiple guest machines using a single Vagrantfile. During this tutorial I will define 3 virtual machines: a generic HTTM VM, a WP (WordPress) VM and a test VM. Because the test VM has the property “autostart: false” it will not start when using “vagrant up –provider virtualbox”.
The VMs act as web servers so you will see how you can access them from both SSH and using a web browser.


In this tutorial I will speak about multi-machine in Vagrant. You will see how to define and control multiple guest machines using a single Vagrantfile. During this tutorial I will define 3 virtual machines: a generic HTTM VM, a WP (WordPress) VM and a test VM. Because the test VM has the property “autostart: false” it will not start when using “vagrant up –provider virtualbox”.
This tutorial will show you what Vagrant done for a multi-machine project and what can you do with the http and wp VM that you started.


In this tutorial I will speak about multi-machine in Vagrant. You will see how to define and control multiple guest machines using a single Vagrantfile. During this tutorial I will define 3 virtual machines: a generic HTTM VM, a WP (WordPress) VM and a test VM. Because the test VM has the property “autostart: false” it will not start when using “vagrant up –provider virtualbox”.
This tutorial will show you what can you do with the test VM that you just started and I will give you some advices about how to avoid problems with Vagrant inheritance and how you can refer to a specific VM when using Vagrant.

Code used during this tutorial:

Useful links:
https://docs.vagrantup.com/v2/provisioning/basic_usage.html
https://docs.vagrantup.com/v2/multi-machine/