I made changes to my Vagrantfile (added config.vm.share_folder, config.vm.customize lines) and now I want them to show up on the box. Do I need to run
vagrant destroy && vagrant up
Or is it sufficient to run
vagrant reload
? I am unclear about whether vagrant reload will read anything from the Vagrantfile, since it seems to shutdown the VM and run the provisioner.
I don’t think you need to destroy your VM. You can make changes to VM configuration when the VM is not running and powered down.
Try using
vagrant haltand thenvagrant up.It should make the modifications to the VM as specified in Vagrantfile.
and you could also do
vagrant up --no-provisionto avoid re-provisioning as you bring up the VM.and
vagrant reload [vm-name] --no-provisionshould do the same trick.