In this section, we will cover the various sections that are available to configure in a Vagrantfile. You will learn how to configure the virtual machine directly, configure the provider (VirtualBox), and configure how Vagrant will connect to your machine via SSH or any other communicator.
Using the config.vm
namespace, we will look at configuring certain parts of the Vagrant machine, such as box information and miscellaneous settings including synced folders, provision, and providers. The configurable elements are as follows:
config.vm.boot_timeout
is used to specify (in seconds) how long Vagrant will wait for the machine to start up and become available for use. The default time is 300 seconds.config.vm.box
is used to set a specific box for the machine. You can reference a box already installed on your system or a shorthand syntax box name from the Vagrant cloud, such asubuntu/trusty64
.config.vm.box_check_update
is used by Vagrant...