Skip to first unread message

Solanki Ketul

Jan 25, 2021, 8:51:36 AM1/25/21
to Vagrant
          I have some confusion. What does provisioning actually do? Which are the files which run on provisioning? What is the need for provisioning?
          I couldn't find a satisfactory answer on google.

Jan 25, 2021, 9:01:02 PM1/25/21
to Vagrant
Provisioning is an optional step that occurs after vagrant brings up the guest VM.

In your Vagrantfile, you can specify provisioning steps. The two kinds of provisioning I'm familiar with are shell and ansible.

Shell provisioning is most often done with shell scripts included in the Vagrantfile, but can be done with external scripts.

Ansible provisioning starts by pointing to an Ansible playbook.

It's also possible to do the equivalent of shell provisioning with Powershell on Windows guests, but I've never tried that.

What does provisioning do? There's a split. Many aspects of setting up a guest can be done by preparing a specialized "box" for Vagrant to load. But when you are starting with a more generic box, the provisioning step can be used to install additional software packages or configure the VM to work in a particular environment or relationship. 

 -- jmcg

Solanki Ketul

Jan 26, 2021, 12:14:01 AM1/26/21
Thank you for the information.😄

This mailing list is governed under the HashiCorp Community Guidelines - Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues:
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
Reply all
Reply to author
0 new messages